Open Policy Agent WebAssembly NPM module (opa-wasm)
Full Changelog: https://github.com/open-policy-agent/npm-opa-wasm/compare/1.8.0...1.8.1
loadPolicySync
by @elliots in https://github.com/open-policy-agent/npm-opa-wasm/pull/255
🎉 Thank you for your contributions 👏
Full Changelog: https://github.com/open-policy-agent/npm-opa-wasm/compare/1.7.0...1.8.0
customBuiltins
parameter in loadPolicy by @abrgr in https://github.com/open-policy-agent/npm-opa-wasm/pull/165
Full Changelog: https://github.com/open-policy-agent/npm-opa-wasm/compare/1.6.1...1.7.0
This release fixed a memory leak in subsequent policy evaluations (using opa_eval
) -- Thanks to @imtiazmangerah for investigating and fixing this issue! 👏 🎉
Full Changelog: https://github.com/open-policy-agent/npm-opa-wasm/compare/1.6.0...1.6.1
🎊 Thanks to all contributors! 👏
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! (https://github.com/open-policy-agent/npm-opa-wasm/pull/107, https://github.com/open-policy-agent/npm-opa-wasm/pull/110)
Compatibility with Node 10 is restored, which also got inadvertently broken since 1.2.0. (@aron via https://github.com/open-policy-agent/npm-opa-wasm/pull/108)
Full Changelog: https://github.com/open-policy-agent/npm-opa-wasm/compare/1.5.0...1.6.0
🎊 Thanks to all contributors! 👏
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.
in
-operator related tests (#98)Full Changelog: https://github.com/open-policy-agent/npm-opa-wasm/compare/1.4.0...1.5.0
🎊 Thanks to all contributors! 👏
data
and input
that's already stringified can be passed as-is via ArrayBuffer
by @gullerya (https://github.com/open-policy-agent/npm-opa-wasm/pull/81)Full Changelog: https://github.com/open-policy-agent/npm-opa-wasm/compare/1.3.0...1.4.0
🎊 Thanks to all contributors! 👏
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 ).
Thanks to all contributors! 👏
Update to support OPA v0.15.1 Wasm functionality