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
authin Cloudflare Workers or a Deno worker thread threwBrowserTokenNotAllowedError, and the client stopped sending itsuser-agentheader there. Both work again. - A worker now counts as a browser only when its global object is an instance of
WorkerGlobalScopeand it has animportScriptsfunction. Browser pages, web workers, shared workers, and service workers are still blocked. - If you added
dangerouslyAllowBrowser: trueas a workaround on a server runtime, you can remove it.
- Since v5.27.0, creating a client with
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
- Full Changelog: v5.27.0...v5.27.1
- NPM Package: https://www.npmjs.com/package/@notionhq/client/v/5.27.1