Skip to content

fix: threadless wasm - #543

Merged
stefan-gorules merged 5 commits into
masterfrom
feat/threadless-wasm
Oct 13, 2026
Merged

stefan-gorules merged 5 commits into
masterfrom
feat/threadless-wasm

Conversation

@stefan-gorules

Copy link
Copy Markdown
Contributor

No description provided.

…wasip1

The browser binding no longer needs SharedArrayBuffer or cross-origin isolation. napi moves to 3.14 / cli 3.10.8 with emnapi 2.0.0-alpha.6; the wasm build registers napi-async-runtime's current-thread backend and spawns each evaluation as a runtime task. console.sleep goes through a sleep provider so the wasm build waits on the host timer instead of tokio. CI and the Makefile build and publish @gorules/zen-engine-wasm32-wasip1 in place of the threaded package.
…place

cli 3.10 rejects napi artifacts when any configured target is missing, so test jobs download their binary next to index.js instead of building npm dirs. A wasm test job runs the suite against the threadless binding and gates the release.
napi build writes them alongside the wasm and CI ships them through the wasm artifact, like index.d.ts.
cli 3.10 runs cargo metadata with the requested target, which rejects the zigbuild glibc suffix. Matches the go and uniffi workflows.
@octokit/request 10.0.16 (via @napi-rs/cli) pulls content-type 3, which requires node 22; pin the cli's copy to 10.0.14.
@stefan-gorules stefan-gorules changed the title feat: threadless wasm fix: threadless wasm Oct 13, 2026
@stefan-gorules
stefan-gorules merged commit c8692c4 into master Oct 13, 2026
60 checks passed
@stefan-gorules
stefan-gorules deleted the feat/threadless-wasm branch October 13, 2026 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants