Skip to content

Releases: open-policy-agent/npm-opa-wasm

1.10.0

08 Nov 11:17
596f8e9
Compare
Choose a tag to compare

What's Changed

This release fixes a bug with "node16" module resolution in TypeScript.

Thanks to @JavaScriptBach!

All changes

Dependency bumps

  • build(deps-dev): bump @types/node from 20.14.2 to 20.14.5 by @dependabot in #438
  • build(deps): bump ws and puppeteer by @dependabot in #439
  • build(deps-dev): bump @types/node from 20.14.5 to 20.14.6 by @dependabot in #440
  • build(deps-dev): bump typescript from 5.4.5 to 5.5.2 by @dependabot in #443
  • build(deps-dev): bump puppeteer from 22.11.2 to 22.12.0 by @dependabot in #441
  • build(deps-dev): bump @types/node from 20.14.6 to 20.14.7 by @dependabot in #442
  • build(deps-dev): bump @types/node from 20.14.7 to 20.14.8 by @dependabot in #444
  • build(deps-dev): bump @types/node from 20.14.8 to 22.9.0 by @dependabot in #488
  • build(deps-dev): bump esbuild from 0.21.5 to 0.24.0 by @dependabot in #486
  • build(deps-dev): bump puppeteer from 22.12.0 to 23.4.0 by @dependabot in #485
  • build(deps-dev): bump typescript from 5.5.2 to 5.6.2 by @dependabot in #482

New Contributors

Full Changelog: 1.9.0...1.10.0

1.9.0

17 Jun 09:15
3fc91d9
Compare
Choose a tag to compare

What's Changed

  • Support webassembly instantiate streaming by @Tucker-Eric in #431
  • ⏩ Various dependency bumps

New Contributors

Full Changelog: 1.8.1...1.9.0

1.8.1

12 Jan 14:07
1fe110a
Compare
Choose a tag to compare

LoadedPolicy is public now!

  • expose LoadedPolicy class, update node-ts example by @jdgo-mars in #331

Dependency and CI updates:

New Contributors

Full Changelog: 1.8.0...1.8.1

1.8.0

02 Sep 07:29
021070c
Compare
Choose a tag to compare

What's Changed

Miscellaneous

  • Dependency bumps
  • Dropped support for Node 12

New Contributors

🎉 Thank you for your contributions 👏

Full Changelog: 1.7.0...1.8.0

1.7.0

18 May 18:26
f4cac2c
Compare
Choose a tag to compare

What's Changed

  • Support customBuiltins parameter in loadPolicy by @abrgr in #165
  • Simplifying exports to enable broader usage by @maucaro in #190
  • Less stumbling blocks for PowerShell users: Remove single quotes around entrypoints in package.json commands by @maucaro in #173

Misc

  • CI: use NodeJS 12, 14, 16, 18 by @srenatus in #187
  • Various dependency bumps.

New Contributors

Full Changelog: 1.6.1...1.7.0

1.6.1

11 Feb 16:28
3e618c8
Compare
Choose a tag to compare

Bugfixes

This release fixed a memory leak in subsequent policy evaluations (using opa_eval) -- Thanks to @imtiazmangerah for investigating and fixing this issue! 👏 🎉

What's Changed

  • Fix: memory leak during fastpath evaluation by @imtiazmangerah in #145
  • Add deno example, separate build steps, update deno version in #122
  • workflow: use open-policy-agent/setup-opa in #127
  • Various deps-dev and CI version bumps

New Contributors

Full Changelog: 1.6.0...1.6.1

1.6.0

04 Jan 10:37
Compare
Choose a tag to compare

🎊 Thanks to all contributors! 👏

Enhancements 🚀

  • npm-opa-wasm is now compatible with in-browser usage! ✨

    In a previous version, this was already possible, but got inadvertently hindered by using the util module.
    👏 Thanks a lot to @jorgecasar and @aron for making this happen! (#107, #110)

  • Compatibility with Node 10 is restored, which also got inadvertently broken since 1.2.0. (@aron via #108)

New Contributors

Full Changelog: 1.5.0...1.6.0

1.5.0

15 Dec 08:56
Compare
Choose a tag to compare

🎊 Thanks to all contributors! 👏

New Features ✨

  • New SDK-provided built-in functions: yaml.unmarshal, yaml.marshal, yaml.is_valid and json.is_valid, by @aron (#100 and #103)

  • loadPolicy: This now accepts a MemoryDescriptor as second argument, and grows memory for input if needed (#92). With that argument, the maximum size the WebAssembly Memory is allowed to grow to can be specified, see this for details.

    A number-argument is still accepted and used as initial memory size (pages) as before.

Misc changes

  • CI: the latest OPA version is used (0.35.0)
  • various dependency bumps
  • CI: enable in-operator related tests (#98)

New Contributors

  • @aron made their first contribution in #100

Full Changelog: 1.4.0...1.5.0

1.4.0

21 Oct 09:41
7623457
Compare
Choose a tag to compare

🎊 Thanks to all contributors! 👏

New features and enhancements 🎉

  • data and input that's already stringified can be passed as-is via ArrayBuffer by @gullerya (#81)
  • Performance improvements from using TextEncoder instead of utf8 lib by @gullerya (#76)
  • Support OPA-Wasm ABI 1.2's one-call evaluation (#63)

Misc Changes 🔧

  • CI: Run opa's wasm tests (#64), format and lint the code (#68)
  • builtins: remove superfluous implementations (#61)
  • Releng: use dependabot for all deps (#72)

New Contributors

Full Changelog: 1.3.0...1.4.0

1.3.0

13 Sep 08:44
5add24d
Compare
Choose a tag to compare

🎊 Thanks to all contributors! 👏

New features 🎉

Misc Changes 🔧

  • The Wasm module's ABI version is now checked when loading a policy. Only ABI 1.x is supported at the moment.
  • Updates to dependencies.
  • We're running more tests in CI now.