Skip to content

Releases: tegmentum/wasi-polyfill

Release list

v0.1.0

Choose a tag to compare

@zacharywhitley zacharywhitley released this 30 May 01:42

Initial release of @tegmentum/wasi-polyfill — a multi-version WASI polyfill for browser and JavaScript environments.

Subsystems

  • wasip1 — standalone WASI Preview 1 implementation for core modules (/wasip1)
  • wasip2 — capability-based plugin framework for WASI Preview 2 components (/wasip2)
  • wasip3 — async-native primitives (streams, futures, tasks) targeting WASI Preview 3 (/wasip3)
  • browser — host imports exposing Web Platform APIs (DOM, canvas, fetch, WebGPU, …) to guests (/browser)

Notable in this build

  • ws-gateway sockets interface aligned to the 0.2.6 bump (test(ws-gateway)).
  • createJcoPolyfill accepts a caller-supplied policy (feat(jco)).
  • Component imports parsed against section 10 with the discriminator byte (fix(runtime)).
  • Closed wasi:cli/exit and wasi:io/poll method gaps for the 0.2.6 surface (feat(plugins)).
  • Upstream-patch register established (docs/upstream-patches.md, patches/jco/). The jco #1574 browser file-read BigInt patch is carrying-record-only — the Fiji browser path no longer loads preview2-shim, so it applies only to downstream consumers still using preview2-shim directly.

Notes

  • The bare @tegmentum/wasi-polyfill import re-exports wasip2 as a back-compat alias and is deprecated — prefer the explicit /wasip2 subpath.
  • Licensed under MIT.