npx @buildinternet/releases get notionRecently shipped v5.31.0 of the JavaScript SDK with per-request beta flags and typed view filters, and deprecated Enhanced Markdown in favor of its replacement.
Markdown v1 is deprecated. Set markdown_version: "v2" on page and comment Markdown requests to try the replacement before the next API version; v1 stays the default through API version 2026-03-11.
Beta APIs are now opt-in per request. Typed SDK methods take betas, so one call can use a beta without changing the client defaults. Pagination helpers carry the flags across pages.
View filters are typed. views.create and views.update accept typed filters, sorts, and quick filters. If you pass filter: {} or sorts: [{}], omit the field or supply a real filter; an empty quick filter is still valid.
Node.js 22 or later is now required. Upgrade your runtime before updating to v5.30.0. Separately, v5.28.0 made default_option: string | null required on Status property configs in data source responses, so hand-built test fixtures need the field.
Imports are tidier and the published types smaller. RichTextItemRequest, ClientOptions, PropertyFilter, and TimestampFilter import straight from @notionhq/client, and v5.31.1 shares page-property and list-result definitions, cutting 1,712 bytes of declarations. Cloudflare Workers and Deno workers are no longer misread as browsers, so the dangerouslyAllowBrowser: true workaround can go.
The iOS app stayed on bug fixes. iPhone Duo support arrived in 1.7.348 and 1.7.349.
Type declarations shrink by 1,712 bytes
This release3 enhancementsImprovements to existing featuresAI-tallied from the release notesThe SDK ships 1,712 fewer bytes of TypeScript declarations by sharing one page-properties definition across page creation and updates, and one list-result definition across search and data source queries.
Enhanced Markdown v1 deprecated; per-request beta flags added
This release2 featuresNew capabilities1 enhancementImprovements to existing featuresAI-tallied from the release notesEnhanced Markdown v1 is deprecated; API versions through 2026-03-11 still default to v1, and setting markdown_version: "v2" lets integrations test before the next API version. Any typed SDK method now accepts a betas array to opt a single request into an API beta, and views.create and views.update accept typed filters, sorts, and quick filters.
Node 22+ now required; more types exported from root
This release2 featuresNew capabilities1 enhancementImprovements to existing featuresAI-tallied from the release notesSupport for all Node.js versions below 22 has been dropped, so the runtime must be upgraded before updating the SDK. Types including RichTextItemRequest, ClientOptions, PropertyFilter, and TimestampFilter can now be imported directly from @notionhq/client, and webhook signature verification uses globalThis.crypto.subtle with subtle.verify() instead of the Node crypto fallback.
Silent page writes; bare database links extract correct ID
This release6 featuresNew capabilities3 enhancementsImprovements to existing features1 fixBug fixesAI-tallied from the release notesPage create, update, and append-block-children accept notifications.mode to write without notifying anyone, and markdown_version v2 selects the Notion-flavored Markdown preview. extractNotionId and extractDatabaseId now return the database ID from the path for bare database links instead of the side-peek page ID, plus new comment and database response fields.
Status responses gain default_option; fixtures need the field
This release1 featureNew capabilitiesAI-tallied from the release notesStatus property configs in data source responses now include a read-only default_option that names the option shown when a page has no explicit Status value, or null when no default is configured. The field is required on the response type, so hand-built objects such as test fixtures must add it.
Agents get own browser, 24-hour runs; Auto router 90% cheaper
This release6 featuresNew capabilities1 enhancementImprovements to existing featuresAI-tallied from the release notesNotion Agents now have their own computer and browser, smarter context management, and a Review for me mode with safety checks, and can work on tasks for up to 24 hours. The upgraded Auto model router delivers results similar to Opus 5.5 and Astra at about 90% lower average cost, alongside BYOK support, an improved Notion MCP with memory sync, and a new credit system.
Cloudflare and Deno workers no longer treated as browsers
This release1 fixBug fixesAI-tallied from the release notesCloudflare Workers and Deno worker threads are no longer detected as browsers, restoring client creation with auth and the user-agent header after v5.27.0 threw BrowserTokenNotAllowedError. The dangerouslyAllowBrowser workaround can now be removed on server runtimes.
MCP connections for 150+ tools; column permissions land
This release7 featuresNew capabilities2 enhancementsImprovements to existing featuresAI-tallied from the release notesNotion 3.8 adds MCP connections so agents can read workspace context and act across 150+ external tools, a Skills API for syncing agent skills across ChatGPT and Claude, and column permissions that control which database properties each person or agent can view or edit. Also rebuilt synced databases for GitHub, Jira, and Salesforce, upgraded version history across pages and databases, and added support for using a ChatGPT Plus or Pro plan for AI usage in Notion.
Browser tokens blocked by default; Agent Skills API added
This release2 featuresNew capabilities6 enhancementsImprovements to existing featuresAI-tallied from the release notesConstructing a client with auth in a browser, web worker, or service worker now throws BrowserTokenNotAllowedError unless dangerouslyAllowBrowser: true is passed. Adds client.plugins and client.skills methods returning signed archive URLs, typed databases with a database_type field, and updates agent response types including the notion_ai personal agent ID.