Packages

quickjs-wasi

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

Your version

3.3.0

31 Jul 2026Where it was published

3.7.0 is the newest release of 3.x.

In short

7 new1 fixed

Release note

Minor Changes

  • Add handle.disposed: whether dispose() 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 with new from 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 with newFunction() or registerHostCallback(), freeing the name for reuse.

  • Add vm.withScope(fn): batch handle disposal for every handle created during the call, with scope.escape(handle) to keep specific handles alive.

Patch Changes

  • resolvePromise() now subscribes via a captured Promise.prototype.then instead of reading .then off 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.