npm @notionhq/client 5.31.0
v5.31.0

6 hours ago

What’s changed

TypeScript compatibility

  • views.create now accepts typed filters, sorts, and quick filters. views.update also accepts typed filters and quick filters. If you pass filter: {} or sorts: [{}], omit the field or supply a valid filter or sort. An empty quick filter is still valid. #841

New capabilities

  • Pass betas to a typed SDK method to opt one request into an API beta. For example, pass betas: ["status-group-filters-2026-10-06"] to dataSources.query to filter by status group. Pagination helpers keep the flags on each page. #838

Deprecations

  • Enhanced Markdown (v1) is deprecated. API versions through 2026-03-11 still default to v1. Set markdown_version: "v2" on page and comment Markdown requests to test your integration before the next API version. Migration guide · #840

Links

Don't miss a new client release

NewReleases is sending notifications on new releases.