Skip to content

chore(deps): update oxc to 0.156.0 - #11326

Merged
shulaoda merged 5 commits into
mainfrom
chore/oxc-main-20261026
Oct 28, 2026
Merged

shulaoda merged 5 commits into
mainfrom
chore/oxc-main-20261026

Conversation

@Dunqing

@Dunqing Dunqing commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Update the Oxc Rust crates and npm packages from 0.155.0 to 0.156.0, removing the temporary Git patches.

Adapt constant evaluation to JSStr by borrowing stored strings for the constant-storage lifetime. Rolldown keeps owned UTF-8 constants and declines lone-surrogate values. A regression test checks that repeated lookups do not allocate in the AST arena. Regenerate the embedded runtime helpers from @oxc-project/runtime 0.156.0.

Fix the WebContainer failure exposed during validation: runtime helpers could merge into a declaration chunk, where rolldown-plugin-dts removed their definitions and left JavaScript importing a .d.mts file. A controlled build of the PR base with Oxc 0.155.0 reproduces the same invalid import, so this predates the upgrade. Reject declaration chunks as runtime hosts, with six regression cases covering .d.ts, .d.mts, and .d.cts under sole and multiple runtime consumers.

Validation on macOS arm64:

  • just update-generated-code passed for the upgrade.
  • The just roll build/test and Rust lint stages passed. After formatting the new test, just lint-node lint-repo update-esbuild-diff passed.
  • Rust: 2,616 passed, 0 failed, 70 ignored.
  • Node: 1,396 passed, 20 skipped; watcher: 44 passed; Rollup compatibility: 1,262 passed, 0 failures.
  • All six new declaration-host cases failed before the fix and passed afterward.
  • just test-webcontainer passed both packed-package scenarios; just test-browser test-webcontainer-fallback also passed.
  • The upgrade's 14 runtime probes passed. No test snapshot or generated-binding changes.

The full WASI test suite, Windows, and Linux were not run locally.

AI assistance was used to prepare and review this change.

@netlify

netlify Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for rolldown-rs ready!

Name Link
🔨 Latest commit f572c4d
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/6ae219876ce648f13f0b68b1
😎 Deploy Preview https://deploy-preview-11326--rolldown-rs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://chore-oxc-main-20261026-rolldown-rs.voidzero-docs.workers.dev (commit f572c4d)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://e744908b-rolldown-rs.voidzero-docs.workers.dev f572c4d 2026-10-28T15:55:32.347Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://ba46c056-rolldown-rs.voidzero-docs.workers.dev 545e895 2026-10-28T06:22:46.379Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://c39d18e8-rolldown-rs.voidzero-docs.workers.dev 5941f80 2026-10-28T05:51:31.754Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://305518cc-rolldown-rs.voidzero-docs.workers.dev f34b665 2026-10-27T06:32:35.585Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://82400e17-rolldown-rs.voidzero-docs.workers.dev b12f4e7 2026-10-27T05:41:04.882Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://fd4a5a14-rolldown-rs.voidzero-docs.workers.dev db13eed 2026-10-26T16:17:15.560Z Visit the dashboard ↗

Use the released Oxc Rust and npm packages and remove the temporary Git
patches. Adapt constant evaluation to JSStr by borrowing stored strings
for the constant-storage lifetime and declining lone-surrogate values
that Rolldown's UTF-8 constant representation cannot preserve.

Keep the repeated-lookup allocation regression test and regenerate the
embedded runtime helpers from @oxc-project/runtime 0.156.0.
@Dunqing
Dunqing force-pushed the chore/oxc-main-20261026 branch from db13eed to b12f4e7 Compare October 27, 2026 05:38
@Dunqing Dunqing changed the title chore(deps): test unreleased oxc main chore(deps): update oxc to 0.156.0 Oct 27, 2026
Declaration plugins rebuild types from fake JavaScript and discard
unrecognized generated statements. Merging the runtime into a declaration
chunk removes its helper definitions and can make JavaScript consumers
import a .d.mts file.

Reject declaration hosts before moving the runtime, including the
sole-consumer merge after order lowering. Cover all three declaration
suffixes with sole and multiple runtime consumers.
@Dunqing
Dunqing marked this pull request as ready for review October 28, 2026 02:56
@codspeed

codspeed Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

1 warning

⚠️ 4 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 7 untouched benchmarks
⏩ 10 skipped benchmarks1


Comparing chore/oxc-main-20261026 (f572c4d) with main (ce12e5d)

Open in CodSpeed

Footnotes

  1. 10 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@shulaoda
shulaoda enabled auto-merge (squash) October 28, 2026 06:20
@shulaoda
shulaoda merged commit b1c2508 into main Oct 28, 2026
36 of 37 checks passed
@shulaoda
shulaoda deleted the chore/oxc-main-20261026 branch October 28, 2026 16:04
This was referenced Oct 29, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants