Skip to content

chore(deps): upgrade oxc to 0.146.0 - #10707

Merged
shulaoda merged 2 commits into
mainfrom
chore/upgrade-oxc-0.145.0
Aug 19, 2026
Merged

shulaoda merged 2 commits into
mainfrom
chore/upgrade-oxc-0.145.0

Conversation

@Boshen

@Boshen Boshen commented Aug 18, 2026 •

Copy link
Copy Markdown
Member

Rolldown needs Oxc 0.146.0 to pick up the isolated-declarations fix for unresolved parameter types while retaining the 0.145.0 property-mangler migration.

Regression fix

Oxc 0.146.0 includes oxc-project/oxc#25909, which preserves unresolved parameter types during isolated declaration generation. This removes the declaration-generation failure observed in Rolldown's Vite compatibility job.

The Rust workspace dependencies, Cargo.lock, and npm catalog packages (@oxc-project/runtime, @oxc-project/types, oxc-parser, and oxc-transform) now use 0.146.0.

Breaking changes

Both come from oxc's new property mangler:

  • oxc::minifier::MinifierOptions gained a required mangle_properties: Option<ManglePropertiesOptions> field. Set to None in all three initializers in minify_options.rs — the bundler does not plumb property mangling through.
  • oxc_minify_napi::MinifyOptions gained mangleProps, which leaked into rolldown's public MinifyOptions (Omit<BindingMinifyOptions, 'module' | 'sourcemap'>) and broke the IsSchemaSubType assertion in validator.ts. Added 'mangleProps' to the Omit, since normalize_binding_options only reads mangle/compress/codegen and would silently drop the option.

Snapshot churn

  • Class bindings are now preserved by DCE — (class { static { foo } }) becomes var A_keep = class { static { foo } };. This accounts for most of the changed snapshots.
  • @__KEY__ / #__KEY__ annotations are now emitted by codegen (mangle_props_key_comment*, preserve_key_comment) — groundwork for the new property mangler.
  • Better template-literal DCE — dce_template_literal drops var alsoKeep; and ${alsoKeep}, which is provably undefined and so has no ToString side effect.

The esbuild compatibility metric is unchanged: stats.md stays at 688 passed / 87.42%, and every summary/*.md regenerated byte-identical, so none of these codegen changes move a case across the pass/fail line.

Transitive updates

oxc-browserslist 3.0.11 → 5.0.1, oxc_sourcemap 8.1.0 → 8.1.2, oxc-miette 4.0.0 dropped, lazy-regex 3.6.1 added (pulled in by the property mangler).

Verified after rebasing onto current main: the full Rust workspace suite, parser and transformer package smoke tests, native Rolldown debug binding build, Vite monorepo build and declaration generation, plus 934 unit, 1,128 serve, 690 bundled-serve, and 923 build tests.

@netlify

netlify Bot commented Aug 18, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for rolldown-rs canceled.

Name Link
🔨 Latest commit e9732a2
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/6a859bf82212b400082b2610

@Boshen
Boshen marked this pull request as ready for review August 18, 2026 16:08
@codspeed

codspeed Bot commented Aug 18, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 7 untouched benchmarks
⏩ 10 skipped benchmarks1


Comparing chore/upgrade-oxc-0.145.0 (e9732a2) with main (44b1b69)2

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

  2. No successful run was found on main (fa6bd5c) during the generation of this report, so 44b1b69 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@Dunqing
Dunqing requested a review from sapphi-red August 19, 2026 02:48
@Dunqing

Dunqing commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

We need to wait for a new Oxc release to fix the failed CI job.

@Dunqing
Dunqing force-pushed the chore/upgrade-oxc-0.145.0 branch from a9ce5b3 to d53a356 Compare August 19, 2026 11:03
@Dunqing Dunqing changed the title chore(deps): upgrade oxc to 0.145.0 chore(deps): upgrade oxc crates to 0.146.0 Aug 19, 2026
@Dunqing
Dunqing force-pushed the chore/upgrade-oxc-0.145.0 branch from d53a356 to 4e601b2 Compare August 19, 2026 11:21
@Dunqing Dunqing changed the title chore(deps): upgrade oxc crates to 0.146.0 chore(deps): upgrade oxc to 0.146.0 Aug 19, 2026
@shulaoda
shulaoda merged commit 62281fb into main Aug 19, 2026
55 of 59 checks passed
@shulaoda
shulaoda deleted the chore/upgrade-oxc-0.145.0 branch August 19, 2026 12:25
@rolldown-guard rolldown-guard Bot mentioned this pull request Aug 19, 2026
shulaoda added a commit that referenced this pull request Aug 19, 2026
## [1.2.5] - 2026-08-19

### 🚀 Features

- bench: record per-suite peak memory in the node benchmark (#10704) by @IWANABETHATGUY
- binding: allocation-tracking global allocator behind the `tracking_allocator` feature (#10703) by @IWANABETHATGUY
- add armv7 android (armv7-linux-androideabi) support (#10691) by @shulaoda
- add `NAMESPACE_CONFLICT` warning for conflicting star re-exports (#7452) by @AliceLanniste

### 🐛 Bug Fixes

- rolldown_plugin_vite_reporter: avoid ANSI erase-line escape in non-TTY output (#10692) by @shulaoda
- rolldown_plugin_vite_resolve: preserve Yarn PnP virtual importer (#10591) by @Freakazo
- exclude hash placeholders from case-insensitive filename deconfliction (#10590) by @Nic-Polumeyv
- code-splitting: fold already-loaded side-effectful libraries into eager entries (#10645) by @JoviDeCroock
- dev: flush re-emitted assets when their content changes (#10637) by @btea
- renamer: rename nested `require`/`__filename`/`__dirname` bindings in CJS output (#10655) by @marcoroth
- silence two wasm-only warnings (#10668) by @IWANABETHATGUY

### 🚜 Refactor

- skip case folding for filenames with hash placeholders (#10689) by @hyfdev
- code-splitting: remove redundant synthetic statement owner (#10503) by @hyfdev
- renamer: move the cjs check into `rename_bindings_shadowing_cjs_ambient_names` (#10672) by @IWANABETHATGUY

### 📚 Documentation

- agents: point the never-edit list at the binding files that exist (#10719) by @melbinjp

### 🧪 Testing

- deconflict: pin renaming the external process binding away from the global (#10702) by @hyfdev
- dev: expect a hot update across a circular import (#10700) by @hyfdev

### ⚙️ Miscellaneous Tasks

- deps: upgrade oxc to 0.146.0 (#10707) by @Boshen
- deps: update rust crates (#10684) by @renovate[bot]
- deps: update npm packages (#10685) by @renovate[bot]
- build the benchmark comparison window from the JSON lines (#10701) by @IWANABETHATGUY
- wasi: retry the Node Test step to absorb the shared-dlmalloc flake (#10699) by @hyfdev
- append benchmark results to storage as JSON lines (#10682) by @IWANABETHATGUY
- deps: update github actions (#10683) by @renovate[bot]
- deps: update dependency rolldown-plugin-dts to v0.28.2 (#10679) by @renovate[bot]
- deps: update dependency rolldown-plugin-dts to v0.28.1 (#10674) by @renovate[bot]

### ❤️ New Contributors

* @melbinjp made their first contribution in [#10719](#10719)
* @Freakazo made their first contribution in [#10591](#10591)
* @marcoroth made their first contribution in [#10655](#10655)

Co-authored-by: shulaoda <[email protected]>
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.

5 participants