Packages

quickjs-wasi

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

Your version

3.7.0

Latest13 Nov 2026Where it was published

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 value memoryLimit is enforced against. Unlike vm.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 new allocatedSize field.

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: guest catch/finally blocks are skipped and the error propagates to the host as a JSException, leaving the VM usable. The release also includes fixes for String.prototype.repeat, Reflect.set, computed property assignment order, template literal conversion, Date.parse with 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 value memoryLimit is enforced against. Unlike vm.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 new allocatedSize field.

  • 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: guest catch/finally blocks are skipped and the error propagates to the host as a JSException, leaving the VM usable. The release also includes fixes for String.prototype.repeat, Reflect.set, computed property assignment order, template literal conversion, Date.parse with 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.