Opa-wasm

Latest version: v0.3.2

Safety actively analyzes 687918 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

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! (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)

New Contributors

* jorgecasar made their first contribution in https://github.com/open-policy-agent/npm-opa-wasm/pull/107

**Full Changelog**: https://github.com/open-policy-agent/npm-opa-wasm/compare/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` and `json.is_valid`, by aron ([100](https://github.com/open-policy-agent/npm-opa-wasm/pull/100) and [#103](https://github.com/open-policy-agent/npm-opa-wasm/pull/103))

* `loadPolicy`: This now accepts a `MemoryDescriptor` as second argument, and grows memory for input if needed ([92](https://github.com/open-policy-agent/npm-opa-wasm/pull/92)). With that argument, the maximum size the WebAssembly Memory is allowed to grow to can be specified, [see this for details](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory/Memory#parameters).

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](https://github.com/open-policy-agent/npm-opa-wasm/pull/98))

New Contributors
* aron made their first contribution in https://github.com/open-policy-agent/npm-opa-wasm/pull/100

**Full Changelog**: https://github.com/open-policy-agent/npm-opa-wasm/compare/1.4.0...1.5.0

1.4.0

🎊 Thanks to all contributors! 👏

New features and enhancements 🎉

* `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)
* Performance improvements from using TextEncoder instead of utf8 lib by gullerya (https://github.com/open-policy-agent/npm-opa-wasm/pull/76)
* Support OPA-Wasm ABI 1.2's one-call evaluation (https://github.com/open-policy-agent/npm-opa-wasm/pull/63)


Misc Changes 🔧

* CI: Run opa's wasm tests (https://github.com/open-policy-agent/npm-opa-wasm/pull/64), format and lint the code (https://github.com/open-policy-agent/npm-opa-wasm/pull/68)
* builtins: remove superfluous implementations (https://github.com/open-policy-agent/npm-opa-wasm/pull/61)
* Releng: use dependabot for all deps (https://github.com/open-policy-agent/npm-opa-wasm/pull/72)

New Contributors
* gullerya made their first contribution in https://github.com/open-policy-agent/npm-opa-wasm/pull/76, followed by 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

1.3.0

🎊 Thanks to all contributors! 👏

New features 🎉

* Support for multiple entrypoints (50, dowster)
* Configurable initial memory size (59, p0tr3c)

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

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.