quickjs-wasi
3.7.0 · 13 Nov 2026MIT14.3M / weekRepositoryHomepagenpmAtom feed
In short
1 new1 fixed
Release note
Minor Changes
Add Web Crypto API extension (
quickjs-wasi/crypto) backed by mbedTLS 4.0 PSA CryptoNew extension:
cryptoglobal withgetRandomValues(),randomUUID(), and fullSubtleCryptosupportDigest: SHA-1, SHA-256, SHA-384, SHA-512
Sign/verify: HMAC, ECDSA (P-256/P-384/P-521), Ed25519, RSASSA-PKCS1-v1_5, RSA-PSS
Encrypt/decrypt: AES-GCM, AES-CBC, AES-CTR, RSA-OAEP
Key generation: all above algorithms plus AES-KW, ECDH, X25519
Key import/export: raw, pkcs8, spki formats
Key derivation: HKDF, PBKDF2, ECDH, X25519
Key wrapping: wrapKey/unwrapKey via encrypt/decrypt
CryptoKey class with type, extractable, algorithm, usages properties
WASI override system: the
wasioption onQuickJSOptionsis now a factory function(memory: WebAssembly.Memory) => Record<string, Function>that can override anywasi_snapshot_preview1host function. Overrides apply to both the main module and all extensions. Extensions can also provide their own WASI implementations viaExtensionDescriptor.wasi. Three-layer precedence: built-in defaults < extension-provided < user overrides.Extension loader improvements:
Extensions that import
wasi_snapshot_preview1functions now receive the shared WASI shim (no more duplicated implementations)GOT.funcentries are now resolved by adding main-module functions to the indirect function table, enabling extensions that use function pointers to libc functions (e.g.memset)
Browser playground: added Crypto toggle to the extension toolbar
Breaking change:
WasiOptionsis now a factory function instead of an object with anow()method. Migration:{ now: () => timeNs }becomes(memory) => ({ clock_time_get(_clockId, _precision, resultPtr) { new DataView(memory.buffer).setBigUint64(resultPtr, timeNs, true); return 0; } })
Patch Changes
Fix
resolveModule()to usenew URL()pattern recognized by@vercel/nft, ensuringquickjs.wasmis included in traced file lists
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.