Releases: open-policy-agent/npm-opa-wasm
1.10.0
What's Changed
This release fixes a bug with "node16" module resolution in TypeScript.
Thanks to @JavaScriptBach!
All changes
- use WASM_BUILD_ONLY in CI by @andreaTP in #475
- Fix importing types on Node 16 module resolution by @JavaScriptBach in #424
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
- @andreaTP made their first contribution in #475
- @JavaScriptBach made their first contribution in #424
Full Changelog: 1.9.0...1.10.0
1.9.0
What's Changed
- Support webassembly instantiate streaming by @Tucker-Eric in #431
- ⏩ Various dependency bumps
New Contributors
- @Tucker-Eric made their first contribution in #431
Full Changelog: 1.8.1...1.9.0
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.