Skip to navigation

SDK v5.1.0 Release: Page Locking and Data Source Updates

We released v5.1.0 of @notionhq/client, our SDK for JavaScript and TypeScript. This includes the following fixes and improvements:

  • Add support for is_locked boolean parameter on update page and database APIs (to update whether a page is locked in the Notion app UI)
  • dataSource.update: add support for changing a data source’s parent database
  • Remove page_id as a possible parent for CreateDataSourceBodyParameters
  • Add request_id to Client log lines

As noted in the library’s README, v5 and above of the SDK isn’t compatible with API versions older than 2025-09-03. See the upgrade guide to learn more.