quickjs-wasi
3.7.0 · 13 Nov 2026MIT14.3M / weekRepositoryHomepagenpmAtom feed
3.7.0 is the newest release of 3.x.
In short
7 new1 fixed
Release note
Minor Changes
Add
handle.disposed: whetherdispose()has been called on a handle.Add
handle.identity: a numeric identity for the underlying heap value, for deduplication and cycle detection across handles.Add
handle.toBoolean(): extract a value as a boolean, applying JavaScript truthiness.Add
vm.construct(ctor, ...args): invoke a QuickJS constructor withnewfrom the host.Add
vm.newEphemeralFunction(fn): a host-backed function whose callback registration is unregistered when the handle is disposed, for short-lived callbacks.Add
vm.unregisterHostCallback(name): remove a host callback registered withnewFunction()orregisterHostCallback(), freeing the name for reuse.Add
vm.withScope(fn): batch handle disposal for every handle created during the call, withscope.escape(handle)to keep specific handles alive.
Patch Changes
resolvePromise()now subscribes via a capturedPromise.prototype.theninstead of reading.thenoff the value, so a proxy trap or shadowed accessor can no longer intercept it.
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.