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…
- 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
- Breaking
evalCode()andcallFunction()now throw aJSExceptiondirectly when the evaluated code or called function throws, matching standard JavaScript semantics. TheunwrapResult()method andisExceptionproperty have been removed — exceptions propagate naturally via try/catch. - New
Add
JSExceptionclass that extendsErrorand is thrown byunwrapResult(). It exposes ahandleproperty — a liveJSValueHandleto 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.
- Breaking
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.