Skip to content

v0.4.1

Choose a tag to compare

@iamkm1 iamkm1 released this 23 Jul 01:09

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.
  • exports gains a trailing default condition, so resolvers matching neither import nor require still reach the ESM build. This can only widen resolution.
  • pnpm check:portability (part of pnpm 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 standard Response surface.
  • 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

npm: norway-open-data-sdk@0.4.1