Repository navigation
fix(wasm): preserve WASM loading with emnapi 2 beta - #1536
Merged
Merged
Conversation
renovate
Bot
force-pushed
the
renovate/napi-rs-emnapi-compatibility
branch
from
October 19, 2026 07:07
f1cc400 to
1fd625d
Compare
renovate
Bot
force-pushed
the
renovate/napi-rs-emnapi-compatibility
branch
from
October 20, 2026 09:34
1fd625d to
4de81e3
Compare
emnapi beta.1 renamed the internal module field, but wasm-runtime 1.2.5 bundles alpha-era plugins that still access napiModule and fail during WASM initialization. Patch both runtime entry points to use the installed core's own plugins, and exercise plugin initialization through import and require. Validation: WASM build and 16 tests, native build and 422 tests, browser build and 6 Playwright tests, 268 repository script tests, typecheck, lint, frozen-lockfile installation, and peer checks passed. Browser validation used port 44173 and a locally unpacked libasound library on WSL. Change-Id: I0c6767d090fa6e4787fd175c555fe607f2059b8e
Scope Mergify push and history rules to Mergify-managed stacks. Permit fixes on existing ordinary PR branches, including Renovate branches, without a separate workflow exception. Change-Id: Id34d3e25649a166862703e13b2736c3cbeee8664
Contributor
Author
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
Contributor
Merge Queue Status
This pull request spent 2 hours 7 minutes 47 seconds in the queue, including 1 hour 29 minutes 20 seconds running CI. Required conditions to merge
|
39 of 67 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update @emnapi/core, @emnapi/runtime, and emnapi from 2.0.0-alpha.6 to 2.0.0-beta.1 while preserving WASM addon initialization. wasm-runtime 1.2.5 bundles alpha-era plugins that access the renamed internal napiModule field and throw
Cannot set properties of undefined (setting 'initWorker')with beta.1. A pnpm patch makes both CommonJS and ESM entry points load plugins from the pinned core package instead. Regression tests exercise both entry points.AGENTS.md now permits direct pushes to existing ordinary PR branches, including Renovate branches, while retaining Mergify commands for managed stacks.
Validation: native and WASM NAPI builds, 16 WASM tests, 422 native runtime tests, 6 browser tests, 268 repository script tests, TypeScript checks, lint, frozen-lockfile installation, and peer checks passed locally. Browser validation used port 44173 and a locally unpacked libasound on WSL. The pre-push hook also passed workspace cargo check and formatting.
The PR title uses fix to match the patch release impact of the WASM compatibility fix.