Packages

quickjs-wasi

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

Upgrading quickjs-wasi From 0.2.0 to 1.0.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 0.2.0Latest3.7.0
  1. 0.2.0yours
  2. 1.0.0target
1
change to make
0
advisories fixed
2
new
1
fix

Before you upgrade

Tick each one off as you go
  • Breaking1.0.0

Release by release

  1. 1.0.0

    Migration needed9 Mar 20262 new · 1 fix
    • Breaking

      evalCode() and callFunction() now throw a JSException directly when the evaluated code or called function throws, matching standard JavaScript semantics. The unwrapResult() method and isException property have been removed — exceptions propagate naturally via try/catch.

    • New

      Add JSException class that extends Error and is thrown by unwrapResult(). It exposes a handle property — a live JSValueHandle to the QuickJS exception value — allowing direct inspection of custom properties on the thrown error. Also fixes a bug where errors thrown from host callbacks were returned as regular values instead of being propagated as QuickJS exceptions.

    • New

      Add native WASM extension support via dynamic linking. Extensions are C-based WASM shared libraries that link directly against the QuickJS C API with zero marshalling overhead. Extensions are fully compatible with snapshot/restore. Includes a proof-of-concept URL and URLSearchParams extension.

    • Fixed

      Increase WASM stack size to 1MB to prevent stack overflow traps. The default wasi-sdk stack (~173KB) was too small for QuickJS, causing hard WASM traps instead of catchable JS exceptions during recursive operations like JSON.stringify or devalue serialization at moderate depths.

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.