Packages

quickjs-wasi

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

Your version

1.1.0

11 Mar 2026Where it was published

1.3.0 is the newest release of 1.x.

In short

4 new

Release note

Minor Changes

  • Add quickjs-wasi/base64 sub-export with WHATWG-compliant atob and btoa

    • Native WASM extension implementing the HTML Standard's Base64 utility methods

    • btoa(data): encode binary string to base64, throws for characters > U+00FF

    • atob(data): forgiving-base64 decode (strips whitespace, allows missing padding)

    • Throws InvalidCharacterError DOMException (built into QuickJS-ng)

    • ~85x faster than core-js-pure polyfill, +41 bytes snapshot vs +512KB

  • Add quickjs-wasi/encoding sub-export with WHATWG-compliant TextEncoder and TextDecoder

    • Native 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/encoding package sub-export for ergonomic opt-in

    • 231 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-clone sub-export with WHATWG-compliant structuredClone

    • Native 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/url sub-export with WHATWG-compliant URL and URLSearchParams backed by ada-url

    • Replace hand-written URL parser with ada-url v3.4.3 for full WHATWG URL Standard compliance

    • Add quickjs-wasi/url package 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(), static URL.canParse()

    • URLSearchParams class: get(), getAll(), set(), has(), delete(), append(), sort(), toString(), forEach(), entries(), keys(), values(), size

    • Extension 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.