unstale

npm / @notionhq/client

@notionhq/client

What changed in @notionhq/client 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.

3 breaking11 new APIs and options1 behavior and defaults1 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@notionhq/client 516 changes

Breaking changes 3

  • In browsers, constructing a client with auth, passing per-request auth, or using OAuth client credentials throws BrowserTokenNotAllowedError before sending anything.

    5.27.0release notes

  • The stream.end event no longer has last_sequence; resume with event IDs.

    5.27.0release notes

  • A personal agent's name is now typed as string because owners can rename it.

    5.27.0release notes

New APIs and options 11

  • Insights responses now allow notion_ai for agent_type.

    5.27.0release notes

  • Insights responses now allow notion_ai for id.

    5.27.0release notes

  • Adds an API to list plugins.

    5.27.0release notes

  • Adds an API to retrieve a plugin; the method returns a signed archive URL and does not download or extract files.

    5.27.0release notes

  • Adds an API to retrieve a skill; the method returns a signed archive URL and does not download or extract files.

    5.27.0release notes

  • Pass this option to opt out of the browser token restriction, for example in jsdom tests.

    5.27.0release notes

  • Database creation accepts tasks, projects, or skills, and database and data source responses include a read-only database_type.

    5.27.0release notes

  • Adds methods to retrieve, query, delete, and batch agents, read insights, and update status or credit limits.

    5.26.0release notes

  • Adds methods to retrieve, update, cancel, and query sessions, query session events, and stream responses.

    5.26.0release notes

  • Returns an async iterable of server-sent events and retries eligible HTTP failures before a stream opens, without replaying events after streaming begins.

    5.26.0release notes

  • Adds typed committed and provisional session events, including user messages with text or file content; status events can include token usage and artifact metadata, and tool events expose lifecycle metadata.

    5.26.0release notes

Behavior and default changes 1

  • The personal agent ID is now notion_ai instead of the previous UUID; requests still accept the old UUID.

    5.27.0release notes

Fixes and other changes 1

  • Cloudflare Workers and Deno workers can again create authenticated clients and send the user-agent header; server runtimes no longer need dangerouslyAllowBrowser as a workaround.

    5.27.1release notes