v0.4.1
Patch Changes
Verified and documented that the package runs unchanged on Node.js 22+, Deno, Bun, Cloudflare Workers and other edge hosts, and in browsers wherever the provider sends permissive CORS headers.
No runtime API changed and no capability was added — the SDK already used only web-standard APIs. The previous README claim that browser support was not guaranteed was simply inaccurate, and this release corrects it.
- Distribution targets ES2022 on esbuild's neutral platform rather than
node22. The ESM output is byte-identical and the CommonJS output is marginally smaller. exportsgains a trailingdefaultcondition, so resolvers matching neitherimportnorrequirestill reach the ESM build. This can only widen resolution.pnpm check:portability(part ofpnpm verify) scans the built bundles for any Node built-in reference and exercises the request, cache, validation, error and cancellation paths against an object implementing only the standardResponsesurface.- CI now builds the package and executes it on real Deno 2 and Bun runtimes on every change.
Host runtimes must supply a spec-compliant fetch, structuredClone and a full-ICU Intl for Europe/Oslo dates and Norwegian locale casing. See the new Runtime support section in the README.
Full changelog: v0.4.0...v0.4.1