What’s changed
Breaking change: Node.js 22 or later required
- Support for all Node.js versions below 22 has been dropped (#823).
- Upgrade your Node.js runtime to 22 or later before updating the SDK.
New capabilities
- More types available from the package root (#822)
- Import
RichTextItemRequest,ClientOptions,PropertyFilter,TimestampFilter,PageIconRequest,PageIconResponse,DateRequest,DateResponse, andPropertyConfigurationRequestdirectly from@notionhq/client. - New
QueryDataSourceFilterandQueryDataSourceSortaliases make data source query options easier to type without deep imports.
- Import
Webhooks
- Signature verification uses global Web Crypto (#827)
- Webhook helpers use
globalThis.crypto.subtledirectly, removing the Node crypto fallback and replacing the handwritten signature comparison withsubtle.verify(). - Public helper APIs, HMAC-SHA256, signature format, and raw-body handling remain unchanged.
- Webhook helpers use
Links
- Full Changelog: v5.29.0…v5.30.0
- NPM Package: @notionhq/client v5.30.0