Repository navigation
fix(deps): update emnapi to 2.0.0-beta.2 and pin @napi-rs/wasm-runtime to 1.2.6 - #11292
Merged
Merged
Conversation
1.2.6 needs `@emnapi/core` 2.0.0-beta.2, but the wasm32-wasi binding ships 2.0.0-alpha.5, so a fresh install fails with "Cannot set properties of undefined (setting 'initWorker')". `napi create-npm-dirs` writes `~<latest>` into the binding and ignores the catalog, so a script rewrites it after each `create-npm-dirs` call.
✅ Deploy Preview for rolldown-rs canceled.
|
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://fix-pin-napi-wasm-runtime-rolldown-rs.voidzero-docs.workers.dev (commit ad704fc)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
Member
|
Can we also upgrade emnapi deps? |
@napi-rs/wasm-runtime to 1.2.5@napi-rs/wasm-runtime to 1.2.6
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Member
Author
Done |
shulaoda
approved these changes
Oct 26, 2026
IWANABETHATGUY
added a commit
that referenced
this pull request
Oct 27, 2026
A chunk imported other chunks in the global `exec_order`, so an entry could run them in a different order than its source imports them (`code_splitting/chunk_import_source_order`). #11293 depends on this, because it moves the runtime out of the chunk that used to sort first only by accident. **Merge this together with #11293.** Without it, the new order can run the chunk that hosts the runtime before a side effect that this chunk reads. requires #11292 refs #11293
shulaoda
added a commit
that referenced
this pull request
Oct 29, 2026
## [1.2.16] - 2026-10-29 ### 🚀 Features - perf-kit: check rendered output against the original build (#11140) by @IWANABETHATGUY - perf-kit: node/deno server startup mode (#10601) by @IWANABETHATGUY - perf-kit: browser page-load perf harness for coding agents (#10365) by @IWANABETHATGUY - devtools: report mode - agent-readable build metrics report (#10364) by @IWANABETHATGUY - inline-common-chunks: print record factories parenthesized so they compile eagerly (#11282) by @mattlewis92 - fold `'key' in ns` on namespace imports with statically known exports (#11333) by @danielroe - inline-common-chunks: inline chunks using `import.meta.hot` in dev mode (#11339) by @hyfdev - support `experimentalInlineCommonChunks` in dev mode (#11335) by @hyfdev - use `INVALID_TLA_FORMAT` error for Rollup compatibility (#11266) by @sapphi-red ### 🐛 Bug Fixes - await bundle.close() in loadConfig and clean up every generated config file (#10347) by @Brooooooklyn - deps: update mimalloc-safe to 0.1.69 (#11376) by @shulaoda - transform: don't crash when the working directory has been deleted (#11352) by @shulaoda - import-glob: follow directory symlinks on the wasm binding (#10624) by @hyfdev - tree-shaking: preserve exported rest bindings from dynamic imports (#11365) by @shuvroroy - transform: report `tsconfigFilePaths` for a tsconfig resolved through `TsconfigCache` (#11346) by @cainrus - tsconfig: don't apply tsconfig when resolving imports from virtual modules (#11089) by @rubas - code-splitting: handle emitted entries the same as `input` entries when placing the runtime (#11353) by @IWANABETHATGUY - error: make Diagnostic::add_file idempotent (#10610) by @Nic-Polumeyv - avoid retaining callable builtin callback owners (#10961) by @IWANABETHATGUY - code-splitting: only host the runtime in a chunk that every consumer's entries load (#11293) by @IWANABETHATGUY - code-splitting: keep the source order of chunk imports (#11298) by @IWANABETHATGUY - dev: don't treat a wrapped module's init as a no-op in dev mode (#11334) by @hyfdev - treat `cwd` as a literal path in relative glob filters (#11291) by @onmax - deps: update emnapi to 2.0.0-beta.2 and pin `@napi-rs/wasm-runtime` to 1.2.6 (#11292) by @IWANABETHATGUY - chunk-import-map: hash stable module ids so keys don't depend on the build folder (#11277) by @mandyheg - respect CPU limits when sizing native runtime workers (#11280) by @Brooooooklyn - deconflict the namespace of a module without module syntax (#11256) by @IWANABETHATGUY - code-splitting: rebuild an absorbed dynamic entry's namespace from what its imports read (#11200) by @mattlewis92 - escape line terminators in debug-info comments (#11258) by @IWANABETHATGUY ### 🚜 Refactor - extract callable builtin hook wrapper (#10964) by @IWANABETHATGUY ### 📚 Documentation - add an in-depth explanation for inline common chunks (#11239) by @hyfdev ### ⚡ Performance - incremental cycle check for `avoidRedundantChunkLoads` (#11320) by @IWANABETHATGUY - avoid copying module code for `renderedLength` and share `chunk.code` across plugins (#11342) by @IWANABETHATGUY - count UTF-16 lengths with `simd-utf16-len` (#11259) by @IWANABETHATGUY - don't load consola when importing rolldown (#11257) by @magurotuna ### 🧪 Testing - dev: cover hot updates that need modules the tab never received (#9647) by @matthewdavis-oai - dev: add dynamic import rebuild test (#7123) by @sapphi-red - code-splitting: import file URLs in fresh-process runtime host tests on Windows (#11354) by @shulaoda - esbuild: mark loader_data_url_base64_invalid_utf8 as an intentional difference (#10790) by @CoderSerio - watch: fix flaky `watch buildDelay` (#11175) by @Brooooooklyn ### ⚙️ Miscellaneous Tasks - install `cmake-core` instead of the `cmake` metapackage on FreeBSD (#11361) by @shulaoda - deps: update oxc to 0.156.0 (#11326) by @Dunqing - stop the Discord notification when the metric workflow fails (#11357) by @IWANABETHATGUY - connect to the Void platform before the docs deploy (#11350) by @shulaoda - deps: update rust crates (#11297) by @renovate[bot] - deps: update dependency vite-plus to v1.4.0 (#11288) by @renovate[bot] - deps: update npm packages (#11296) by @renovate[bot] - deps: update napi (#11287) by @renovate[bot] - deps: update rollup submodule for tests to v4.65.1 (#11331) by @rolldown-guard[bot] - deps: update test262 submodule for tests (#11332) by @rolldown-guard[bot] - deps: update dependency rolldown-plugin-dts to v0.28.8 (#11286) by @renovate[bot] - deps: bump tokio to 1.53.3 (#11317) by @Brooooooklyn ### ❤️ New Contributors * @mattlewis92 made their first contribution in [#11282](#11282) * @shuvroroy made their first contribution in [#11365](#11365) * @cainrus made their first contribution in [#11346](#11346) * @matthewdavis-oai made their first contribution in [#9647](#9647) * @rubas made their first contribution in [#11089](#11089) * @danielroe made their first contribution in [#11333](#11333) * @onmax made their first contribution in [#11291](#11291) * @mandyheg made their first contribution in [#11277](#11277) * @magurotuna made their first contribution in [#11257](#11257) Co-authored-by: shulaoda <[email protected]>
felixonmars
added a commit
to felixonmars/archriscv-packages
that referenced
this pull request
Oct 29, 2026
Use matching Rolldown and Lightning CSS WASM bindings where native riscv64 binaries are unavailable. Exclude sv39 builders for parallel WASM. Pin wasm-runtime separately for each locked Rolldown binding's emnapi prerelease. Resolving 1.2.6 with the older emnapi fails with "Cannot set properties of undefined (setting 'initWorker')"; upstream documents the incompatibility and pins the runtime alongside emnapi. rolldown/rolldown#11292 rolldown/rolldown#7605 (comment) parcel-bundler/lightningcss#1267
This was referenced Nov 6, 2026
shulaoda
added a commit
that referenced
this pull request
Nov 6, 2026
Backport the pin step of #11292 to `v1.0`, without its emnapi update. `napi create-npm-dirs` gives `@rolldown/binding-wasm32-wasi` the range of the latest `@napi-rs/wasm-runtime`, now `^1.2.7`. `@rolldown/browser` on this branch resolves 1.1.4, so "Check wasm32-wasi binding deps match @rolldown/browser" fails in both Publish to NPM and Publish to pkg.pr.new, for example on #11529. - Add `scripts/misc/pin-wasi-binding-deps.mjs` from `main`. It writes the catalog version of `@napi-rs/wasm-runtime` into the generated binding. - Run it right after `napi create-npm-dirs` in both workflows. With it, the binding declares `@napi-rs/wasm-runtime` `^1.1.4` and `@emnapi/*` 1.10.0, the same as the published 1.0.3. Checked locally by running `napi create-npm-dirs`, the pin and the check in that order. Related to #9758.
shulaoda
added a commit
that referenced
this pull request
Nov 6, 2026
Backport the pin step of #11292 to `v1.1`, without its emnapi update. `napi create-npm-dirs` gives `@rolldown/binding-wasm32-wasi` the range of the latest `@napi-rs/wasm-runtime`, now `^1.2.7`. `@rolldown/browser` on this branch resolves 1.1.6, so "Check wasm32-wasi binding deps match @rolldown/browser" fails in both Publish to NPM and Publish to pkg.pr.new, for example on #11534. - Add `scripts/misc/pin-wasi-binding-deps.mjs` from `main`. It writes the catalog version of `@napi-rs/wasm-runtime` into the generated binding. - Run it right after `napi create-npm-dirs` in both workflows. With it, the binding declares `@napi-rs/wasm-runtime` `^1.1.6` and `@emnapi/*` 1.11.1, the same as the published 1.1.5. Checked locally by running `napi create-npm-dirs`, the pin and the check in that order. Related to #9758.
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.
@napi-rs/wasm-runtime1.2.6 setsaddonModule.initWorker, which only@emnapi/core2.0.0-beta.2 has. The wasm32-wasi binding shipped 2.0.0-alpha.5, so a fresh install failed withCannot set properties of undefined (setting 'initWorker'). This is thewebcontainer-fallbackfailure in the Browser job, and the published@rolldown/[email protected]has the same problem.This updates
emnapi,@emnapi/coreand@emnapi/runtimeto 2.0.0-beta.2 and@napi-rs/wasm-runtimeto 1.2.6. Each wasm-runtime release works with only one emnapi prerelease (1.2.5 with beta.2 fails the same way), andnapi create-npm-dirswrites~<latest>into the binding, soscripts/misc/pin-wasi-binding-deps.mjswrites the exact catalog version after eachcreate-npm-dirscall.The WebContainer test still fails here because of the runtime host bug that #11293 fixes.