Packages

quickjs-wasi

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

Upgrading quickjs-wasi From 2.0.0 to 2.2.0

3 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 2.0.0Latest3.7.0
0
changes to make
0
advisories fixed
15
new
4
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).

  2. 2.1.0

    30 Mar 20263 new
    • New

      Add EvalFlags constants export and an optional flags parameter to evalCode(). The EvalFlags.ASYNC flag enables native top-level await support in evaluated scripts — the result is a Promise that resolves to the script's completion value. This is cleaner than wrapping code in an async IIFE, as it preserves last-expression-value semantics and avoids regex-based await detection.

    • New

      Add Uint8Array base64/hex methods to the base64 extension per the TC39 proposal-arraybuffer-base64 (Stage 4): Uint8Array.prototype.toBase64(), Uint8Array.prototype.toHex(), Uint8Array.fromBase64(), Uint8Array.fromHex(), Uint8Array.prototype.setFromBase64(), and Uint8Array.prototype.setFromHex().

    • New

      Update QuickJS-ng from v0.12.1 to v0.13.0. Includes bug fixes for FinalizationRegistry, async generators, regex engine, Iterator, and TypedArray, as well as performance improvements for String.prototype.concat, Promise creation, regexp operations, and context creation.

  3. 2.0.1

    19 Mar 20261 new · 1 fix
    • New

      Add ./package.json sub-export to the exports map

    • Fixed

      Replace - with _ in extension name when deriving the default initFn, since hyphens are not valid in C function names

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.