> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://notion.ferndocs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://notion.ferndocs.com/_mcp/server.

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

We [released v5.1.0](https://github.com/makenotion/notion-sdk-js/releases/tag/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

<Note>
As noted in the [library's README](https://github.com/makenotion/notion-sdk-js?tab=readme-ov-file#requirements-and-compatibility), v5 and above of the SDK isn't compatible with API versions older than `2025-09-03`. See the [upgrade guide](/docs/upgrade-guide-2025-09-03) to learn more.
</Note>