Packages

quickjs-wasi

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

Upgrading quickjs-wasi From 0.0.1 to 0.2.0

2 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 0.0.1Latest3.7.0
  1. 0.0.1yours
  2. 0.1.0major
  3. 0.2.0target

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

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.