@open-policy-agent/opa-wasm
1.10.0 · 8 Nov 2024Apache-2.0133.3k / weekRepositoryHomepagenpmAtom feed
17 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 1.x · latest line
1.10.0
8 Nov 2024Use WASM_BUILD_ONLY in CI
Fix importing types on Node 16 module resolution
What's Changed
This release fixes a bug with "node16" module resolution in TypeScript.
All changes
Use WASM_BUILD_ONLY in CI
Fix importing types on Node 16 module resolution
1.9.0
17 Jun 2024Support webassembly instantiate streaming
⏩ Various dependency bumps
1.8.1
12 Jan 2024Expose LoadedPolicy class, update node-ts example
LoadedPolicy is public now!
Expose LoadedPolicy class, update node-ts example
1.8.0
2 Sep 2022- Removed
Dropped support for Node 12
Change reference to wasm instance
Add
loadPolicySync
What's Changed
Change reference to wasm instance
Add
loadPolicySync
Miscellaneous
- Removed
Dropped support for Node 12
1.7.0
18 May 2022Support
customBuiltinsparameter in loadPolicySimplifying exports to enable broader usage
Less stumbling blocks for PowerShell users: Remove single quotes around entrypoints in package.json commands
What's Changed
Support
customBuiltinsparameter in loadPolicySimplifying exports to enable broader usage
Less stumbling blocks for PowerShell users: Remove single quotes around entrypoints in package.json commands
1.6.1
11 Feb 2022Memory leak during fastpath evaluation
Add deno example, separate build steps, update deno version
workflow: Use open-policy-agent/setup-opa
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
Memory leak during fastpath evaluation
Add deno example, separate build steps, update deno version
workflow: Use open-policy-agent/setup-opa
Various deps-dev and CI version bumps
1.6.0
4 Jan 2022npm-opa-wasmis now compatible with in-browser usage! ✨In a previous version, this was already possible, but got inadvertently hindered by using the
utilmodule.
👏 Thanks a lot to @jorgecasar and @aron for making this happen! (#107, #110)
🎊 Thanks to all contributors! 👏
Enhancements
npm-opa-wasmis now compatible with in-browser usage! ✨In a previous version, this was already possible, but got inadvertently hindered by using the
utilmodule.
👏 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)
1.5.0
15 Dec 2021New SDK-provided built-in functions:
yaml.unmarshal,yaml.marshal,yaml.is_validandjson.is_valid,loadPolicy: This now accepts aMemoryDescriptoras 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.
🎊 Thanks to all contributors! 👏
New Features
New SDK-provided built-in functions:
yaml.unmarshal,yaml.marshal,yaml.is_validandjson.is_valid,loadPolicy: This now accepts aMemoryDescriptoras 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.
1.4.0
21 Oct 2021dataandinputthat's already stringified can be passed as-is viaArrayBufferPerformance improvements from using TextEncoder instead of utf8 lib
Support OPA-Wasm ABI 1.2's one-call evaluation (#63)
🎊 Thanks to all contributors! 👏
New features and enhancements
dataandinputthat's already stringified can be passed as-is viaArrayBufferPerformance improvements from using TextEncoder instead of utf8 lib
Support OPA-Wasm ABI 1.2's one-call evaluation (#63)
1.2.0
8 Feb 2021Force JSON encoding to use utf-8 (#35, @theMagicalKarp)
Typescript bindings! (#17, @RichiCoder1)
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
Force JSON encoding to use utf-8 (#35, @theMagicalKarp)
Typescript bindings! (#17, @RichiCoder1)
Thanks to all contributors! 👏
1.1.0
18 Nov 2019Non-boolean results
Builtins
External data
Update to support OPA v0.15.1 Wasm functionality
Non-boolean results
Builtins
External data
- 0.0.x
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.