Packages

quickjs-wasi

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

Upgrading quickjs-wasi From 3.3.0 to 3.3.1

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 3.3.0Newest 3.x, Latest3.7.0
  1. 3.3.0yours
  2. 3.3.1target
0
changes to make
0
advisories fixed
0
new
3
fixes

Release by release

  1. 3.3.1

    4 Aug 20263 fixes
    • Fixed

      Host-callback this/argument handles are now "borrowed": exempt from withScope() tracking and dispose() is a no-op. Their pointers are owned by the C trampoline (which frees them after the call returns), so a scope active around guest execution — or an explicit dispose inside a callback — previously double-freed the guest values and corrupted the heap. Callbacks retain arguments past their invocation via dup(), which takes an owned reference and behaves normally.

    • Fixed

      Calling a guest function whose host callback is not registered now throws inside the guest (catchable, or surfaced as a host exception when uncaught), as the newEphemeralFunction and unregisterHostCallback docs already promised — previously it silently returned undefined, masking bugs like un-re-registered callbacks after a snapshot restore.

    • Fixed

      memoryLimit now actually bounds retained memory: the runtime is created with malloc functions that use wasi-libc's malloc_usable_size, replacing quickjs-ng's default usable-size which returns 0 on wasm32-wasi. Previously every allocation was accounted as overhead only, so retained ArrayBuffers/TypedArrays (and all other allocations) grew real memory without bound under any limit — reaching GiB under an 8 MiB memoryLimit — and getMemoryUsage().mallocSize stayed near zero. Workloads near their configured limit may now throw where they silently over-allocated before; raise memoryLimit to match actual usage.

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.