quickjs-wasi
3.7.0 · 13 Nov 2026MIT14.3M / weekRepositoryHomepagenpmAtom feed
Upgrading quickjs-wasi From 3.6.3 to 3.7.0
2 releases in betweenevery note read
Reading releases, release notes and advisories…
Release by release
- New
Add
vm.getAllocatedSize(), a constant-time read of the bytes the runtime has allocated: the valuememoryLimitis enforced against. Unlikevm.getMemoryUsage(), which walks the whole heap, its cost doesn't grow with heap size, so it suits frequent sampling.getMemoryUsage()also reports the same value as a newallocatedSizefield. - New
Update QuickJS-NG from v0.17.0 to v0.18.0. Out-of-memory errors (
InternalError: out of memory) can no longer be caught by guest code: guestcatch/finallyblocks are skipped and the error propagates to the host as aJSException, leaving the VM usable. The release also includes fixes forString.prototype.repeat,Reflect.set, computed property assignment order, template literal conversion,Date.parsewith Unicode spaces, and several memory leaks.
- New
- Fixed
Preserve native exceptions instead of dispatching a host callback when callback-name encoding fails.
- Fixed
Surface native Deferred resolver failures and release both resolvers even when invocation fails, while preserving one-shot settlement.
- Fixed
Reject failed host-function construction without retaining callbacks, preserve earlier pending exceptions on success, and roll back incomplete Promise subscriptions.
- Fixed
Propagate guest allocation and property write exceptions from host data construction instead of returning exception handles or partially populated values. Release partial conversions and preserve native exceptions across host callbacks, module loaders, and handle-scope boundaries.
- Fixed
Throw on failed host Promise construction before publishing a Deferred, release partial resolver ownership, and preserve earlier pending exceptions on success.
- Fixed
Terminate the VM and reject its host Promise observers when automatic host-Promise settlement or draining fails. Preserve the original host failure, ignore late completions after disposal, and keep private resolver handles alive across scope exit. Ordinary guest rejection remains a resolved error result; synchronous failures and
interruptHandlerinterrupts remain recoverable.
- Fixed
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.