Skip to content

fix(wasm): preserve WASM loading with emnapi 2 beta - #1536

Merged
mergify[bot] merged 3 commits into
masterfrom
renovate/napi-rs-emnapi-compatibility
Oct 21, 2026
Merged

mergify[bot] merged 3 commits into
masterfrom
renovate/napi-rs-emnapi-compatibility

Conversation

@renovate

@renovate renovate Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

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.

@renovate
renovate Bot force-pushed the renovate/napi-rs-emnapi-compatibility branch from f1cc400 to 1fd625d Compare October 19, 2026 07:07
@renovate renovate Bot changed the title chore(deps): update dependency @emnapi/core to v2.0.0-beta.1 chore(deps): update napi-rs and emnapi compatibility to v2.0.0-beta.1 Oct 19, 2026
@tignear tignear added the merge-ready Request merging through Mergify after required checks label Oct 19, 2026
@renovate
renovate Bot force-pushed the renovate/napi-rs-emnapi-compatibility branch from 1fd625d to 4de81e3 Compare October 20, 2026 09:34
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
@tignear tignear changed the title chore(deps): update napi-rs and emnapi compatibility to v2.0.0-beta.1 fix(wasm): preserve WASM loading with emnapi 2 beta Oct 20, 2026
@renovate

renovate Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate 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.

⚠️ Warning: custom changes will be lost.

@mergify mergify Bot added the queued Mergify queue entry label Oct 20, 2026
@mergify

mergify Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
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
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Lint & Format
    • check-neutral = @github-actions/Lint & Format
    • check-skipped = @github-actions/Lint & Format
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Windows)
    • check-neutral = @github-actions/NAPI Build (Windows)
    • check-skipped = @github-actions/NAPI Build (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Rust Test & NAPI Build
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Ubuntu)
    • check-neutral = @github-actions/JS Test (Ubuntu)
    • check-skipped = @github-actions/JS Test (Ubuntu)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Windows)
    • check-neutral = @github-actions/JS Test (Windows)
    • check-skipped = @github-actions/JS Test (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Conventional Commit title
    • check-neutral = @github-actions/Conventional Commit title
    • check-skipped = @github-actions/Conventional Commit title

@mergify
mergify Bot merged commit 3700476 into master Oct 21, 2026
30 of 31 checks passed
@mergify
mergify Bot deleted the renovate/napi-rs-emnapi-compatibility branch October 21, 2026 01:32
@mergify mergify Bot removed the queued Mergify queue entry label Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies merge-ready Request merging through Mergify after required checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant