quickjs-wasi
3.7.0 · 13 Nov 2026MIT14.3M / weekRepositoryHomepagenpmAtom feed
Summary· from the note as AI read it
Migration neededRead before upgrading: 1 change to make.
Before you upgrade
- Guest code can no longer catch out-of-memory errors; handle JSException on host.
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.
In short
1 breaking1 new
- Breaking
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.
Release note
Minor Changes
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.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.
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.