Skip to content

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

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.

1.2.0

08 Feb 08:05
Compare
Choose a tag to compare

It's been a while since we've pushed a release! 🎉

With v1.2.0, the documentation matches what the version published to npm supports.

Since it's been early days for OPA's Wasm support when this module had seen its major
version release 1.x.y, and things are just settling, please have a good look at the API
changes this release brings in: Update examples and README for newer OPA
versions (#21, @patrick-east ).

New features:

Thanks to all contributors! 👏

1.1.0

18 Nov 00:01
6c45e6a
Compare
Choose a tag to compare

Update to support OPA v0.15.1 Wasm functionality

  • Non-boolean results
  • Builtins
  • External data