quickjs-wasi
3.7.0 · 13 Nov 2026MIT14.3M / weekRepositoryHomepagenpmAtom feed
1.3.0 is the newest release of 1.x.
In short
4 new
Release note
Minor Changes
Add
quickjs-wasi/base64sub-export with WHATWG-compliant atob and btoaNative WASM extension implementing the HTML Standard's Base64 utility methods
btoa(data): encode binary string to base64, throws for characters > U+00FFatob(data): forgiving-base64 decode (strips whitespace, allows missing padding)Throws
InvalidCharacterErrorDOMException (built into QuickJS-ng)~85x faster than core-js-pure polyfill, +41 bytes snapshot vs +512KB
Add
quickjs-wasi/encodingsub-export with WHATWG-compliant TextEncoder and TextDecoderNative WASM extension implementing the Encoding Standard (pure C, no C++ dependencies)
TextEncoder:
encode(),encodeInto(), USVString semantics (lone surrogates → U+FFFD)TextDecoder: UTF-8, UTF-16LE, UTF-16BE decoding with streaming, BOM handling, fatal mode
Accepts ArrayBuffer, TypedArray, and DataView inputs
quickjs-wasi/encodingpackage sub-export for ergonomic opt-in231 tests passing (67 unit + 164 WPT-based compliance tests)
~20x faster than fast-text-encoding JS polyfill, +45 bytes snapshot overhead vs +64KB
Add
quickjs-wasi/structured-clonesub-export with WHATWG-compliant structuredCloneNative WASM extension implementing the Structured Clone algorithm
Deep clones: primitives, Date, RegExp, ArrayBuffer, TypedArrays, DataView, Map, Set, Array, Error, plain objects
Circular reference detection and preservation of shared references
Throws DataCloneError for non-cloneable types (functions, symbols, proxies, promises)
Add
quickjs-wasi/urlsub-export with WHATWG-compliant URL and URLSearchParams backed by ada-urlReplace hand-written URL parser with ada-url v3.4.3 for full WHATWG URL Standard compliance
Add
quickjs-wasi/urlpackage sub-export for ergonomic opt-in:import { urlExtension } from 'quickjs-wasi/url'URL class: constructor with base URL support, all property getters/setters,
toString(),toJSON(), staticURL.canParse()URLSearchParams class:
get(),getAll(),set(),has(),delete(),append(),sort(),toString(),forEach(),entries(),keys(),values(),sizeExtension loader: support C++ shared library self-resolution and graceful handling of unresolved symbols
100% pass rate on 877 Web Platform Tests (urltestdata.json)
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.