Recently shipped SDK support for inserting Markdown at anchored positions and importing Client as native ESM on Node.js 22.
Markdown inserts can land next to a specific block. pages.updateMarkdown accepts position: { type: "after_content", anchor } or before_content, placing content relative to the matched block. Anchored positions require markdown_version: "v2".
- The anchor must match exactly one place on the page and begin where a block begins.
insert_content.after is deprecated in favor of the new position shape. Existing calls still compile and work on current API versions; on the next API version, after is read as an after_content anchor.
Native ESM imports of Client work again on Node.js 22, fixing a regression in the v5.32.0 line.
Enhanced Markdown v1 is deprecated. It remains the default through API version 2026-03-11. Set markdown_version: "v2" on page and comment Markdown requests to test an integration before the next API version.
Beta APIs are opt-in per request: typed SDK methods take betas, and pagination helpers keep the flags on each page. Page create, page update, and append block children accept notifications.mode to write without notifying anyone.
Routine version bumps: v5.31.1 cut 1,712 bytes of TypeScript declarations by sharing page-property and list-result definitions. The iOS app shipped bug fixes through 1.7.356.