Releases: open-policy-agent/npm-opa-wasm
1.8.1
LoadedPolicy is public now!
- expose LoadedPolicy class, update node-ts example by @jdgo-mars in #331
Dependency and CI updates:
- build(deps-dev): bump typescript from 4.8.2 to 4.8.3 by @dependabot in #265
- build(deps-dev): bump jest from 29.0.1 to 29.0.3 by @dependabot in #267
- build(deps-dev): bump esbuild from 0.15.6 to 0.15.8 by @dependabot in #268
- build(deps-dev): bump puppeteer from 17.0.0 to 18.0.5 by @dependabot in #271
- build(deps-dev): bump typescript from 4.8.3 to 4.8.4 by @dependabot in #274
- build(deps-dev): bump esbuild from 0.15.8 to 0.15.10 by @dependabot in #275
- build(deps-dev): bump jest from 29.0.3 to 29.1.2 by @dependabot in #276
- build(deps-dev): bump semver from 7.3.7 to 7.3.8 by @dependabot in #280
- build(deps-dev): bump jest from 29.1.2 to 29.2.0 by @dependabot in #283
- build(deps-dev): bump esbuild from 0.15.10 to 0.15.11 by @dependabot in #285
- build(deps-dev): bump jest from 29.2.0 to 29.2.1 by @dependabot in #286
- build(deps-dev): bump esbuild from 0.15.11 to 0.15.12 by @dependabot in #287
- build(deps-dev): bump esbuild from 0.15.12 to 0.15.13 by @dependabot in #294
- build(deps-dev): bump esbuild from 0.15.13 to 0.15.14 by @dependabot in #296
- build(deps): bump open-policy-agent/setup-opa from 1 to 2 by @dependabot in #299
- Update README.md to fix typo and add "else" by @cch0 in #326
- ci: fix node-18 build by @jdgo-mars in #330
- build(deps): bump minimatch from 3.0.4 to 3.1.2 by @dependabot in #297
- build(deps): bump json5 from 2.2.1 to 2.2.3 by @dependabot in #308
- build(deps-dev): bump @babel/traverse from 7.19.4 to 7.23.7 by @dependabot in #333
- build(deps): bump actions/checkout from 3 to 4 by @dependabot in #335
- build(deps): bump actions/setup-node from 3 to 4 by @dependabot in #336
- build(deps-dev): bump jest from 29.2.1 to 29.7.0 by @dependabot in #338
- build(deps-dev): bump esbuild from 0.15.14 to 0.19.11 by @dependabot in #342
- build(deps-dev): bump semver from 7.3.8 to 7.5.4 by @dependabot in #340
- build(deps): bump sprintf-js from 1.1.2 to 1.1.3 by @dependabot in #341
- build(deps-dev): bump typescript from 4.8.4 to 5.3.3 by @dependabot in #334
- ci: bump deno/node in all places by @srenatus in #343
- build(deps-dev): bump puppeteer from 18.0.5 to 21.7.0 by @dependabot in #339
New Contributors
- @cch0 made their first contribution in #326
- @jdgo-mars made their first contribution in #330
Full Changelog: 1.8.0...1.8.1
1.8.0
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
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
New Contributors
Full Changelog: 1.6.1...1.7.0
1.6.1
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
- @imtiazmangerah made their first contribution in #145
Full Changelog: 1.6.0...1.6.1
1.6.0
🎊 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
- @jorgecasar made their first contribution in #107
Full Changelog: 1.5.0...1.6.0
1.5.0
🎊 Thanks to all contributors! 👏
New Features ✨
-
New SDK-provided built-in functions:
yaml.unmarshal
,yaml.marshal
,yaml.is_valid
andjson.is_valid
, by @aron (#100 and #103) -
loadPolicy
: This now accepts aMemoryDescriptor
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
Full Changelog: 1.4.0...1.5.0
1.4.0
🎊 Thanks to all contributors! 👏
New features and enhancements 🎉
data
andinput
that's already stringified can be passed as-is viaArrayBuffer
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
🎊 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
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:
- sprintf implementation (#34, @garethr)
- Force JSON encoding to use utf-8 (#35, @theMagicalKarp)
- Typescript bindings! (#17, @RichiCoder1)
Thanks to all contributors! 👏
1.1.0
Update to support OPA v0.15.1 Wasm functionality
- Non-boolean results
- Builtins
- External data