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