releases.shpreview
Notion/SDK (JS)

SDK (JS)

$npx -y @buildinternet/releases show notion-sdk-js
Mon
Wed
Fri
AprMayJunJulAugSepOctNovDecJanFebMarApr
Less
More
Releases14Avg4/moVersionsv5.7.0 → v5.19.0
Sep 8, 2025

What's Changed

New Contributors

Links

Sep 3, 2025

What's Changed

Major changes and highlights from v4.0.2 to v5.0.0.

⚡️ Major API and SDK updates

  • Added support for multiple data sources
    • Prepared the SDK for Notion API version 2025-09-03, introducing notion.dataSources.* endpoints to manage databases at the data source level and repurposing notion.databases.* endpoints for the database container. #600 #601 #602 #603 #607 #609
  • Removed support for `notion.databases.list
    • The list databases method has been removed, since this endpoint has been deprecated & unsupported since 2022-02-22, and v5 of the SDK is tailored toward 2025-09-03 #600
  • Added support for verification filters for data sources
    • Added verification filter property to queryDataSources API shape #604

📝 API shape and type improvements

  • Richer API error details
    • SDK now surfaces the optional additional_data field in API error responses for better diagnostics. #603
  • API schema syncs
    • DataSourceObjectResponse["parent"] now supports the data_source_id variant.
    • Search filter enum updated from page | database to page | data_source.
    • Typechecking added for all examples/ projects in CI. #602

🧩 Examples and internal maintenance

  • Examples directory
    • Migrated all examples/ to TypeScript and committed missing build files. #603 #600
  • CI improvements
    • All examples are now typechecked as part of continuous integration. #602
  • Other
    • Added Copilot instructions file for repo #610

🛠 Miscellaneous fixes

  • Documentation
    • Updated the minimum recommended TypeScript version in the README after a dependency upgrade. #598
  • Patch releases
    • Version bumps and lockfile updates to keep publish and infra consistent. #596 #597

[!NOTE] v5.0.0 and 2025-09-03 bring fairly major changes to the SDK and to the API schema!

You can help us by tracking any friction as you upgrade, as well as any issues or improvement opportunities with the JavaScript → TypeScript changes in the examples/ projects, and filing an issue or opening a pull request for each.

New Contributors

Links

Aug 29, 2025

What's Changed

New Contributors

Full Changelog: https://github.com/makenotion/notion-sdk-js/compare/178b3c083520fbadacb76799a0745a9f44e73a16...v5.0.0-rc.1

NPM link: https://www.npmjs.com/package/@notionhq/client/v/5.0.0-rc.1

Aug 28, 2025

🚀 Release Candidate Changelog

Major changes and highlights from v4.0.2 to v5.0.0-rc.0.

⚡️ Major API and SDK updates

  • Support for multiple data sources
    • Prepared the SDK for Notion API version 2025-09-03, introducing notion.dataSources.* endpoints to manage databases at the data source level and repurposing notion.databases.* endpoints for the database container. #600 #601 #602 #603
  • Pinned v5 pre-release
    • Version bumped to premajor v5.0.0-rc.0 to reflect breaking and additive changes. #600
  • Removed support for `notion.databases.list
    • The list databases method has been removed, since this endpoint has been deprecated & unsupported since 2022-02-22, and v5 of the SDK is tailored toward 2025-09-03 #600

📝 API shape and type improvements

  • Richer API error details
    • SDK now surfaces the optional additional_data field in API error responses for better diagnostics. #603
  • API schema syncs
    • DataSourceObjectResponse["parent"] now supports the data_source_id variant.
    • Search filter enum updated from page | database to page | data_source.
    • Typechecking added for all examples/ projects in CI. #602

🧩 Examples and internal maintenance

  • Examples directory
    • Migrated all examples/ to TypeScript and committed missing build files. #603 #600
  • CI improvements
    • All examples are now typechecked as part of continuous integration. #602

🛠 Miscellaneous fixes

  • Documentation
    • Updated the minimum recommended TypeScript version in the README after a dependency upgrade. #598
  • Patch releases
    • Version bumps and lockfile updates to keep publish and infra consistent. #596 #597

Full Changelog: https://github.com/makenotion/notion-sdk-js/compare/f12b584f8a71ed9c6ad5d73efa3e792bd83c99c0...178b3c083520fbadacb76799a0745a9f44e73a16

Upgrade Guide: https://developers.notion.com/docs/upgrade-guide-2025-09-03

Aug 13, 2025

What's Changed

  • Update Notion JS SDK with GetComment endpoint by @julyou in https://github.com/makenotion/notion-sdk-js/pull/595
    • Introduces notion.comments.retrieve({...}) endpoint to fetch a comment by its ID; this was previously a hidden and un-documented endpoint
    • Introduces API shape to manually refresh an API token by passing grant_type: "refresh_token" with a refresh_token to notion.oauth.token(...)
    • Minor refactors and additional type exports
  • Bump TypeScript dependency to 5.9 by @ksinder in https://github.com/makenotion/notion-sdk-js/pull/597
    • WARNING: This might be effectively a breaking change in some cases since part of the SDK contract is exporting types for Notion's public API endpoints. Before upgrading, confirm your TypeScript version is sufficiently new or that the types are compatible with your system.

Full Changelog: https://github.com/makenotion/notion-sdk-js/compare/f84957479f2b8d6f17b52972879f3c330c8ae7c0...v4.0.2

View this version on NPM: https://www.npmjs.com/package/@notionhq/client/v/4.0.2

Jul 10, 2025

What's Changed

  • Support additional headers passed to notion.request()

Full Changelog: https://github.com/makenotion/notion-sdk-js/compare/f7bfcfd1bc0504022e76751908928f847345dc59...v4.0.1

View this version on NPM: https://www.npmjs.com/package/@notionhq/client/v/4.0.1

Jul 1, 2025

What's Changed

  • Remove no-op duplicates from union types across all endpoints by @ksinder in https://github.com/makenotion/notion-sdk-js/pull/579
  • Remove legacy (<=2021) v1 API shape for page properties by @ksinder in https://github.com/makenotion/notion-sdk-js/pull/580
    • Removes support for the legacy (pre-Q3-2021) shape for page properties parameters from CreatePageBodyParameters and UpdatePageBodyParameters in src/api-endpoints.ts.
    • This collapses the union type of {old properties shape, new properties shape} down to the new shape only.
    • In the old shape, properties was a fairly ambiguous Record<string, ...> mapping each property key to the property value (a union type across all possible property types' values) e.g.
      {
        // ...
        "numberId": 24,
      }
    • In the new shape (the only one we want to support going forward), the value must be wrapped in an object that uses the polymorphic type pattern with the actual value defined in a sub-object to disambiguate:
      {
        // ...
        "numberId": {
          "type": "number",
          "number": 24
        }
      }
    • This matches up with our responses in the API read path so most, if not all, integrations are likely already using syntax compatible with the new shape
  • chore: add JSDoc comments to API types by @julyou in https://github.com/makenotion/notion-sdk-js/pull/585
  • Add support for attachments in Comment API by @julyou in https://github.com/makenotion/notion-sdk-js/pull/586
  • CreatePage: support workspace-level private pages (+ misc param type refactors) by @ksinder in https://github.com/makenotion/notion-sdk-js/pull/587
    • No-op refactors/cleanups: extracting some components into separate type aliases, e.g. AnnotationRequest
    • Support the new mode in POST /v1/pages (CreatePage) API where:
      • parent can be omitted, or passed as {"workspace": true}, to create top-level private pages at the workspace level (for public integrations only)
      • properties is also optional. For standalone pages, this results in title defaulting to an empty string
  • Sync API endpoints: add display_name to Comment, more extraction refactors and docstrings by @ksinder in https://github.com/makenotion/notion-sdk-js/pull/588
    • This includes miscellaneous extraction refactors for named subsets of parameters and other cleanups like new parameter docstrings.
    • The only functional change is adding the new display_name object to the CommentObjectResponse, and some fixes from previous PRs around parenthesizing a & (b | c) in allOfoneOf OpenAPI types to get the correct result rather than defaulting to the incorrect interpretation (a & b) | c.
  • Sync latest API endpoints schema as of 2025-06-30 by @ksinder in https://github.com/makenotion/notion-sdk-js/pull/590
    • Most of these are no-op re-ordering of type definitions.
    • Some added and edited comments/docstrings.
    • The only semantic change is adding support for the abc music language to LanguageRequest.

New Contributors

Full Changelog: https://github.com/makenotion/notion-sdk-js/compare/df95f350ce31c198b74e4d19dcfb02405004ec4f...v4.0.0

View this version on NPM: https://www.npmjs.com/package/@notionhq/client/v/4.0.0

May 28, 2025

What's Changed

Full Changelog: https://github.com/makenotion/notion-sdk-js/compare/0e38438c35307f0dc24ad465038fbaca8e8123b3...v3.1.3

View this version on NPM: https://www.npmjs.com/package/@notionhq/client/v/3.1.3

May 23, 2025
May 21, 2025

What's Changed

New Contributors

Full Changelog: https://github.com/makenotion/notion-sdk-js/compare/f8bb1d0c9b9087c9e7c12d993320035084d030db...v3.1.1

View this version on NPM: https://www.npmjs.com/package/@notionhq/client/v/3.1.1

What's Changed

  • Add support for File Upload API endpoints by @ksinder in https://github.com/makenotion/notion-sdk-js/pull/565
    • Sync the latest OpenAPI schema for Notion's Public API to src/api-endpoints.ts
    • Introduce the /v1/file_uploads family of API endpoints (File Upload Create, Get, List, Send, Complete)
      • notion.fileUploads.send builds a FormData object to send fields via multipart/form-data
    • Add several refactors to extract common reused schema components, which drastically reduces the size of the file
  • Add file upload API example and fix Blob send logic by @ksinder in https://github.com/makenotion/notion-sdk-js/pull/566
    • Fix the FormData parameter passing logic in src/Client.ts for the Send File Upload API
    • Add examples/intro-to-notion-api/intermediate/5-upload-file.js example of using the File Upload API to upload and attach a file

Full Changelog: https://github.com/makenotion/notion-sdk-js/compare/f2e166522a1df34fce8075299a09a6c500e25f4a...v3.1.0

View this version on NPM: https://www.npmjs.com/package/@notionhq/client/v/3.1.0

May 7, 2025

What's Changed

Full Changelog: https://github.com/makenotion/notion-sdk-js/compare/8b867fdc7058e015ceef30c1986b61476bd86280...v3.0.1

View this version on NPM: https://www.npmjs.com/package/@notionhq/client/v/3.0.1

May 5, 2025

What's Changed

This update, v2.3.0 → v3.0.0, is marked as a major version upgrade due to the Node minimum version increase to 18, as part of the change to use built-in fetch as the default in the Client constructor instead of node-fetch.

Full Changelog: https://github.com/makenotion/notion-sdk-js/compare/650d23bd94c1cd9a4179fcbea25be617e2f5a7e5...v3.0.0

View this version on NPM: https://www.npmjs.com/package/@notionhq/client/v/3.0.0

New Contributors

Mar 13, 2025

What's changed

Full Changelog: https://github.com/makenotion/notion-sdk-js/compare/b7f3de8563bd566cb3a0cea421aa1a82f2be9e46...v2.3.0

View this version on NPM: https://www.npmjs.com/package/@notionhq/client/v/2.3.0

Mar 12, 2025

What's changed

Full Changelog: https://github.com/makenotion/notion-sdk-js/compare/eed58030649895b95ab9b97e2959f77bab19cd62...v2.2.17

View this version on NPM: https://www.npmjs.com/package/@notionhq/client/v/2.2.17

Feb 18, 2025
  • Added link_mention and custom_emoji types, which are surfaced in various places (page, database, mention rich text item responses; block object requests)
  • Added a new ApiColor of default_background
  • Added "ascii art", "hcl", and "smalltalk" to LanguageRequest

Full Changelog: https://github.com/makenotion/notion-sdk-js/compare/7950edc034d3007b0612b80d3f424baef89746d9...v2.2.16

Apr 10, 2024
  • Added in_trash field to request and response body
  • Added description field to database properties
  • Added PartialSelectResponse to be used for select properties
Dec 4, 2023
  • Added read/write support for names on file blocks
  • Fixed a bug where tables couldn't be added as children of toggle blocks
  • Updated the list of emoji and timezones
Sep 1, 2023

Now createDatabase and updateDatabase allow creating unique ID properties and getDatabase will now return unique ID properties.

Support querying databases by unique ID.

Latest
v5.19.0
Tracking Since
May 13, 2021
Last fetched Apr 19, 2026