Packages

quickjs-wasi

3.7.0 · 13 Nov 2026MIT14.3M / weekRepositoryHomepagenpmAtom feed

Upgrading quickjs-wasi From 2.1.0 to 2.2.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 2.1.0Latest3.7.0
  1. 2.1.0yours
  2. 2.2.0target
0
changes to make
0
advisories fixed
11
new
3
fixes

Security

  • Add intrinsics option to QuickJS.create() for controlling which built-in JavaScript features are available in the VM. Pass a bitmask of Intrinsics.* flags to create a minimal sandbox — for example, omit Intrinsics.PROXY to disallow Proxy, or omit Intrinsics.DATE to remove Date. Useful for security hardening or reducing memory usage. Note: Intrinsics.EVAL must be included for vm.evalCode() to work; without it, only pre-compiled bytecode via vm.evalBytecode() can be executed.

    2.2.0

Release by release

  1. 2.2.0

    Security fix6 Apr 202611 new · 3 fixes
    • Security

      Add intrinsics option to QuickJS.create() for controlling which built-in JavaScript features are available in the VM. Pass a bitmask of Intrinsics.* flags to create a minimal sandbox — for example, omit Intrinsics.PROXY to disallow Proxy, or omit Intrinsics.DATE to remove Date. Useful for security hardening or reducing memory usage. Note: Intrinsics.EVAL must be included for vm.evalCode() to work; without it, only pre-compiled bytecode via vm.evalBytecode() can be executed.

    • New

      Add vm.compile() and vm.evalBytecode() for bytecode compilation. Compile JavaScript source to a portable Uint8Array bytecode without executing it, then execute it later — even in a different VM instance. Also adds CompileFlags.STRIP_SOURCE and CompileFlags.STRIP_DEBUG for smaller bytecode output.

    • New

      Add timezoneOffset option to QuickJS.create() for configuring the timezone used by Date inside the sandbox. Defaults to 'host' which mirrors the host environment's timezone. Can also be set to a fixed offset in minutes or a callback for DST-aware logic.

    • New

      Expose Crypto and SubtleCrypto as global constructors in the crypto extension, matching the Web Crypto API spec. All three crypto constructors (Crypto, SubtleCrypto, CryptoKey) now throw TypeError: Illegal constructor when called with new, and support instanceof checks (e.g. crypto instanceof Crypto).

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.