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…
- 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
- Breaking
HostFunctiontype now uses TypeScript'sthisparameter instead of a leading_thisargument. Thethisvalue from QuickJS is bound as the nativethisof the callback. - New
Add
QuickJS.serializeSnapshot()andQuickJS.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 hostSymbol.for(description)for global symbols - New
hostToHandle()converts hostSymbol.for()values to QuickJS global symbols - New
Local (anonymous) symbols dump as the string
"Symbol(description)"and throw if passed tohostToHandle()
- Breaking
- New
Add ArrayBuffer and typed array marshalling:
vm.newArrayBuffer(),vm.newUint8Array(),handle.toArrayBuffer(),handle.toUint8Array().dump()returns properArrayBuffer/Uint8Array/ typed array types.hostToHandle()convertsArrayBuffer,Uint8Array, and other typed arrays. - New
Add
Promisesupport tohostToHandle(). Host Promises are automatically bridged to QuickJS promises viaDeferred, withexecutePendingJobs()called on resolution/rejection. - New
Add
interruptHandleroption toQuickJSOptions. Called periodically during JS execution — returntrueto 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
memoryLimitoption toQuickJSOptions. Restricts how much memory the QuickJS runtime can allocate — when exceeded, allocations fail and surface as JS exceptions. The limit is re-applied afterQuickJS.restore().
- New
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.