npm @notionhq/client 5.27.1
v5.27.1

4 hours ago

What’s changed

Bug fixes

  • Cloudflare Workers and Deno workers are no longer treated as browsers (#809)
    • Since v5.27.0, creating a client with auth in Cloudflare Workers or a Deno worker thread threw BrowserTokenNotAllowedError, and the client stopped sending its user-agent header there. Both work again.
    • A worker now counts as a browser only when its global object is an instance of WorkerGlobalScope and it has an importScripts function. Browser pages, web workers, shared workers, and service workers are still blocked.
    • If you added dangerouslyAllowBrowser: true as a workaround on a server runtime, you can remove it.

Internals

  • The version bump workflow checks contract changes against the last release tag, so a reviewed type change can merge before its minor release without landing in a patch (#807).

Links

Don't miss a new client release

NewReleases is sending notifications on new releases.