Packages

quickjs-wasi

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

Upgrading quickjs-wasi From 0.0.0 to 0.2.0

3 releases in betweennotes for 2

Reading releases, release notes and advisories…

Other targets from 0.0.0Latest3.7.0
  1. 0.0.0yours
  2. 0.0.1
  3. 0.1.0major
  4. 0.2.0target
1+
change to make
0
advisories fixed
11+
new
5+
fixes

Counted from 2 of 3 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking0.2.0

Release by release

  1. 0.2.0

    Migration needed7 Mar 20266 new
    • Breaking

      HostFunction type now uses TypeScript's this parameter instead of a leading _this argument. The this value from QuickJS is bound as the native this of the callback.

    • New

      Add QuickJS.serializeSnapshot() and QuickJS.deserializeSnapshot() for converting snapshots to/from a versioned binary format suitable for persistent storage (S3, databases, etc.). The format includes a magic header and version number for forward compatibility. Apply your own compression (gzip, zstd) on top for best results.

    • New

      vm.newSymbolFor(description) — create global symbols (Symbol.for())

    • New

      vm.setProp(obj, symbolHandle, value) / vm.getProp(obj, symbolHandle) — get/set properties using symbol keys

    • New

      dump() returns real host Symbol.for(description) for global symbols

    • New

      hostToHandle() converts host Symbol.for() values to QuickJS global symbols

    • New

      Local (anonymous) symbols dump as the string "Symbol(description)" and throw if passed to hostToHandle()

  2. 0.1.0

    7 Mar 20265 new · 5 fixes
    • New

      Add ArrayBuffer and typed array marshalling: vm.newArrayBuffer(), vm.newUint8Array(), handle.toArrayBuffer(), handle.toUint8Array(). dump() returns proper ArrayBuffer / Uint8Array / typed array types. hostToHandle() converts ArrayBuffer, Uint8Array, and other typed arrays.

    • New

      Add Promise support to hostToHandle(). Host Promises are automatically bridged to QuickJS promises via Deferred, with executePendingJobs() called on resolution/rejection.

    • New

      Add interruptHandler option to QuickJSOptions. Called periodically during JS execution — return true to interrupt with an exception. Useful for implementing execution timeouts or step limits to prevent infinite loops. The VM remains usable after an interrupt.

    • New

      Add memoryLimit option to QuickJSOptions. Restricts how much memory the QuickJS runtime can allocate — when exceeded, allocations fail and surface as JS exceptions. The limit is re-applied after QuickJS.restore().

  3. 0.0.1no release note

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.