Skip to content

chore(deps): upgrade oxc to 0.160.0 - #11885

Merged
hyfdev merged 11 commits into
rolldown:mainfrom
camc314:codex/oxc-main
Nov 23, 2026
Merged

hyfdev merged 11 commits into
rolldown:mainfrom
camc314:codex/oxc-main

Conversation

@camc314

@camc314 camc314 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Upgrade Oxc Rust dependencies to 0.160.0.
  • Upgrade @oxc-project/runtime, @oxc-project/types, oxc-parser, and oxc-transform to 0.160.0.
  • Update the Rust url dependency to 2.5.9 for the security check. RUSTSEC-2026-0592

Root causes

oxc-project/oxc#29748

Oxc keeps class elements together when standard decorators or auto-accessors are preserved. The snapshots show decorated fields retaining their decorators and static field initialization staying inside the class.

oxc-project/oxc#29415

Oxc clears stale redeclaration records when it drops declarations. The minified catch_var_self_import snapshot now omits three unused catch parameters and retains the bindings still used by the fixture.

oxc-project/oxc#29919

Oxc removes the numeric and BigInt literal base fields. Rolldown updates the affected AST constructors while preserving literal values, raw text, and spans.

oxc-project/oxc#29907

Oxc encodes whether a property key is computed in the PropertyKey variant. Rolldown updates key construction and inspection, preserves quoted and computed options in Vite import glob, and uses computed keys for own __proto__ properties in JSON and namespace objects. The minified JSON snapshot now prints the computed strings with backticks.

oxc-project/oxc#29930

Oxc restores TypeScript assignment semantics for public static fields in classes with preserved accessors. The auto-accessor fixtures emit in-place static blocks so assignments call inherited setters and preserve initializer order.

oxc-project/oxc#29994

Oxc folds 3 / 6 to .5 in the JavaScript constant and TypeScript enum entries of the cross-module constant-folding snapshot. Both outputs evaluate to the same values.

oxc-project/oxc#29753

Oxc shares the class binding between static field lowering and legacy decoration for anonymous default exports. Two classes gain explicit names in the snapshot, and a decorator can read initialized static fields when targeting ES2015.

oxc-project/oxc#29447

Oxc adds six standard decorator helpers to its runtime package. Regenerate the embedded ESM and CommonJS modules so Rolldown’s runtime plugin can load the helpers in standalone bundles.

@camc314 camc314 changed the title Codex/oxc main chore(deps): track oxc main Nov 23, 2026
@camc314 camc314 changed the title chore(deps): track oxc main chore(deps): upgrade oxc to 0.160.0 Nov 23, 2026
Oxc keeps class elements together when decorators or auto-accessors are
preserved for a downstream transform. Regenerate the three auto-accessor
snapshots for ES2021, ES2022 and ESNext, and the standard-decorator fixture
with legacy decorators disabled. Static fields stay in the class and
decorated fields retain their decorators.

The immediate parent passes all four original snapshots. Executing both
sets of outputs after TypeScript lowering confirms the same auto-accessor
values and initializer order. The standard-decorator output runs the
decorators on the four retained public fields.

First-bad-Oxc-Commit: a7ea78b405740bd69c3a472ddffccb9b35feb7c5
Oxc-Revision: a7ea78b405740bd69c3a472ddffccb9b35feb7c5
Oxc now removes stale redeclaration records after dropping declarations.
Regenerate the minified catch_var_self_import output, where three unused
catch parameters disappear. The fixture's execution assertions pass
before and after and the catch bindings still used by the program remain.

First-bad-Oxc-Commit: c58900246158b0986888c8bd3f03661206703a78
Oxc-Revision: c58900246158b0986888c8bd3f03661206703a78
Oxc removed the numeric and BigInt literal base fields and the matching
AST constructor arguments. Keep each synthesized literal's value, raw
text and span while updating the JSON, constant folding, interop and
finalizer call sites.

The immediate parent builds the old call sites. The first bad revision
rejects their former arguments. The final pin includes Oxc #29920, which
removes the unused base types after the AST change.

First-bad-Oxc-Commit: b90b3aac83bff96b00293d1a8c073ad3e691e0e3
Oxc-Revision: f573c939503915c2952a998623c687ef9661d372
Oxc encodes computedness in PropertyKey variants. Read computed keys as
expressions and use literal names for dynamic import attributes. Update
the object, class, and destructuring constructors to encode the same
syntax in their keys.

Preserve own JSON and namespace __proto__ properties with computed
string keys. Preserve both quoted and computed string options in Vite
import glob and keep profiler wrapper names as quoted keys.

Regenerate the JSON prototype fixture. Oxc now prints computed string
keys as expressions, so its minified output uses backticks for
__proto__ keys. Both outputs pass the fixture's prototype assertions.

The immediate Oxc parent passes the rebased workspace check and Rust
gate. This revision rejects the former computed fields and constructor
arguments.

First-bad-Oxc-Commit: 44f34d2e5fcc0df0939a66cd913eb90e0692bdef
Oxc-Revision: 44f34d2e5fcc0df0939a66cd913eb90e0692bdef
Regenerate the ES2021, ES2022, and ESNext auto-accessor snapshots.
Oxc preserves the accessors and emits static blocks for public fields
when TypeScript uses assignment semantics. Define-mode output is unchanged.

The three original snapshots pass on the immediate Oxc parent and
fail at this revision. Running the old and new output after accessor
lowering verifies that assignments now invoke inherited setters while
accessor values and initializer order are preserved.

First-bad-Oxc-Commit: 08023adc7028411f2ffad6d88ff892503d61431d
Oxc-Revision: 08023adc7028411f2ffad6d88ff892503d61431d
Regenerate the cross-module numeric constant-folding fixture. Oxc now
folds 3 / 6 to .5 in the JavaScript constant and TypeScript enum
entries. Running both versions yields the same logged values.

The original snapshot passes on the immediate Oxc parent and changes
at this revision. The regenerated fixture also passes on the final
Oxc main pin.

First-bad-Oxc-Commit: 5f51bd31decb53bba2fde8193e4b3f1afc7225a7
Oxc-Revision: 1a19370f13e9bb431a53eae4e4a1f8d9d3794adb
Regenerate the legacy decorator snapshot. Two anonymous default
exports now get explicit class names as Oxc shares their declaration
bindings between class field lowering and decoration.

The original fixture passes on the immediate Oxc parent and differs
at the merge commit. Both outputs construct the exported classes and
call their decorators in the same order. A separate ES2015 bundle
now lets the decorator read the initialized static field, where the
previous Oxc pin threw a ReferenceError.

First-bad-Oxc-Commit: abb35935a80b7f8f2204b1379840bc138ff5d87b
Oxc-Revision: 158fcf54fff767f2f4f76419cf2eab46bf970946
Embed the six standard decorator helpers from the 0.160.0 runtime package in both ESM and CommonJS. The 248 existing embedded helper files are byte-identical.

First-bad-Oxc-Commit: 22e4d0b36737679255c03fda39f127eda021f219
Oxc-Revision: 87e38f3270b00341695e02e8aaf681e9e985e4a3
Require the patched url release to address RUSTSEC-2026-0592. Update its form_urlencoded dependency as required by url 2.5.9.
@camc314
camc314 marked this pull request as ready for review November 23, 2026 14:24
Copilot AI balanced review requested due to automatic review settings November 23, 2026 14:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T14:28:10.683336Z 2632a93 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@codspeed

codspeed Bot commented Nov 23, 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 camc314:codex/oxc-main (2632a93) with main (f1d45c0)

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

@hyfdev
hyfdev merged commit 6867895 into rolldown:main Nov 23, 2026
35 checks passed
@rolldown-guard rolldown-guard Bot mentioned this pull request Nov 26, 2026
shulaoda added a commit that referenced this pull request Nov 26, 2026
## [1.3.4] - 2026-11-26

### 🚀 Features

- add builtin `injectPlugin` with `include`/`exclude` (#11290) by @onmax
- magic-string: support explicit sourcemap locations (#11884) by @IWANABETHATGUY
- introduce `declaredModuleSize` to allow plugins to declare a module's real size (#11844) by @hyfdev
- binding: add dropInner() to 12 binding classes and extract release_arc helper (#11855) by @Brooooooklyn
- inline-common-chunks: add `maxDuplicatedSize` to keep widely copied chunks as files (#11845) by @mattlewis92
- cli: report when a watch round finishes (#11820) by @hyfdev
- rolldown_plugin_vite_build_import_analysis: avoid stripping import attributes when `experimental.importAttributes` is enabled (#11802) by @sapphi-red
- import-attributes: warn when a non-ESM output drops the import attributes of an external (#11797) by @shulaoda
- warn when the `watch` option is passed to `build()` (#11781) by @shulaoda

### 🐛 Bug Fixes

- keep_names: restore hoisted function names before the chunk's modules run (#11962) by @hyfdev
- external: don't drop `_/` from relative external imports (#11968) by @hyfdev
- external: don't panic on empty output filename with relative externals (#11963) by @hyfdev
- use the same path as direct imports for externals re-exported with `export *` (#11964) by @hyfdev
- sourcemap: don't panic on empty output filename (#11966) by @hyfdev
- sourcemap: treat empty `sourcemapFileNames` as unset (#11967) by @hyfdev
- rename clashing names in execution order with `chunkModulesOrder: 'module-id'` (#11943) by @hyfdev
- code-splitting: stop counting JSON modules as 0 bytes (#11939) by @hyfdev
- fetch changed modules from their creating resolution in incremental rebuilds (#11837) by @h-a-n-a
- code-splitting: keep import order through entry re-exports (#11906) by @hyfdev
- cjs: keep CommonJS named exports in `export *` of a dynamically imported module (#11835) by @hyfdev
- plugin: remove internal keys from plugin and code splitting group contexts (#11914) by @hyfdev
- remove the leftover `watch.notify` from the option validator (#11918) by @shulaoda
- return the group chunk file from `getFileName()` for a merged emitted entry (#11858) by @IWANABETHATGUY
- dev: let `this.load` of an unchanged module finish during a rebuild (#11911) by @hyfdev
- code-splitting: avoid an extra shared chunk when an entry only re-exports another entry (#11847) by @hyfdev
- treeshake: remove unused objects containing identity function calls (#11852) by @hyfdev
- cjs: avoid `ReferenceError` when re-exporting from an external `export *` in another chunk (#11848) by @hyfdev
- binding: remove stale WASI workaround in to_binding_error (#11890) by @Brooooooklyn
- inline-const: respect `inlineConst` options for default exports (#11851) by @hyfdev
- magic-string: keep trailing lines in decoded maps (#11882) by @IWANABETHATGUY
- magic-string: preserve column mappings through trim (#11881) by @IWANABETHATGUY
- magic-string: map each line of multiline replacements (#11880) by @IWANABETHATGUY
- follow Rollup for module meta and moduleSideEffects set by plugins (#11792) by @h-a-n-a
- code-splitting: import the bindings a CommonJS entry re-exports from an ES module (#11839) by @hyfdev
- cjs: stop overwriting `module.exports` of a CommonJS entry that re-exports an ES module (#11846) by @hyfdev
- sourcemap: accept undefined source entries from plugins (#11850) by @fengmk2
- code-splitting: unblock top-level awaited dynamic imports in manual groups (#11819) by @hyfdev
- runtime: resolve `require()` from the calling chunk in Node ESM output (#11834) by @hyfdev
- plugin: throw instead of panicking when a saved transform context calls `getCombinedSourcemap` (#11838) by @hyfdev
- code-splitting: only code-less entries keep side-effect-free static import edges (#11199) by @mattlewis92
- make `getCombinedSourcemap` work with `experimental.nativeMagicString` (#11107) by @IWANABETHATGUY
- plugin: avoid hangs when resolveId awaits this.load() (#11824) by @shulaoda
- keep template chunk names from overwriting explicit file names (#11831) by @hyfdev
- code-splitting: skip redundant re-export chunks (#11817) by @hyfdev
- preserve build errors when `buildEnd` fails (#11828) by @sapphi-red
- preserve top-level using with topLevelVar (#11804) by @akshathayadav378-boop
- treeshake: keep array destructuring that calls an unknown iterator (#11812) by @IWANABETHATGUY
- preserve `export` names starting with `*` in ModuleInfo.exports (#11825) by @sapphi-red
- treeshake: keep calls to functions that direct `eval` can replace (#11811) by @IWANABETHATGUY
- keep each source's content in a multi-source transform sourcemap (#11246) by @IWANABETHATGUY
- treeshake: keep calls to empty functions with a rest parameter default (#11810) by @IWANABETHATGUY
- plugin: allow this.load() while resolving entries (#11816) by @hyfdev
- cli: avoid a WASI hang when watch mode exits normally (#11815) by @shulaoda
- report effective moduleSideEffects in getModuleInfo and this.resolve (#11422) by @cestercian
- code-splitting: avoid an import cycle through an entry's re-exports (#11803) by @hyfdev
- treeshake: apply @__NO_SIDE_EFFECTS__ to functions exported after declaration (#11222) by @araishi
- code-splitting: keep unused entry re-exports from loading lazy chunks (#11753) by @hyfdev
- code-splitting: keep re-exported bindings out of dynamic import namespaces (#11799) by @hyfdev
- perf-kit: Node mode times out under the inspector with `--ready exit` or an anchored `stdout:` pattern (#11416) by @IWANABETHATGUY
- treeshaking: drop dead dynamic imports that form a cycle (#11768) by @hyfdev
- binding: release the WASI runtime when a callable builtin plugin hook rejects (#11786) by @shulaoda
- perf-kit: print real imports in the why chain (#11500) by @IWANABETHATGUY
- chunk: name emitted chunks before shared chunks (#11790) by @hyfdev
- cjs: forward exports from duplicate CommonJS entries (#11756) by @hyfdev
- code-splitting: keep chained emitted entries from becoming empty facades (#11090) by @Huzaifa-Asif

### 💼 Other

- wasi: bundle self-contained WASI loaders, staging script, and reactor checks (#11843) by @Brooooooklyn

### 🚜 Refactor

- scan: remove an unreachable branch when collecting dynamic import entries (#11919) by @shulaoda
- cli: replace the unreachable prototype pollution guard with a test (#11925) by @shulaoda
- remove the unused `DeterminedSideEffects::to_module_side_effects` (#11926) by @shulaoda
- remove more unused types, functions and re-exports (#11922) by @shulaoda
- link_stage: handle required modules only in the pre-pass (#11920) by @shulaoda
- cli: remove the leftover `inject` from the CLI options type (#11924) by @shulaoda
- rolldown_plugin_vite_build_import_analysis: remove the unused `optimizeModulePreloadRelativePaths` option (#11923) by @shulaoda
- remove experimental `freeExternalMemory` (#11886) by @shulaoda
- rust: drop direct tokio dependencies from core library crates (#11841) by @Brooooooklyn
- rolldown_plugin: move `normalize_transform_sourcemap` to utils (#11247) by @IWANABETHATGUY
- remove the unused `plugins_are_slow` method (#11800) by @shulaoda
- remove parallel plugin support (#11789) by @h-a-n-a
- remove the unused `is_css` sourcemap flag (#11782) by @shulaoda

### 📚 Documentation

- rename javascript to JavaScript (#11958) by @mdong1909
- say that resolveId fails the build when the same id is external and not external (#11910) by @h-a-n-a
- explain which resolution sets meta and moduleSideEffects in resolveId (#11907) by @h-a-n-a
- resolve the import in the `moduleSideEffects` plugin example (#11860) by @hyfdev
- clarify side-effect-free module behavior (#11856) by @IWANABETHATGUY
- clarify the behavior when `buildEnd` / `renderError` itself errors (#11829) by @sapphi-red
- add docs for `code` / `plugin` / `pluginCode` of `RolldownLog` (#11827) by @sapphi-red
- explain that a module in an entry chunk runs after the common chunks it imports (#11822) by @hyfdev
- magic-string: document `generateDecodedMap` and the segments of `hires: false` maps (#11791) by @IWANABETHATGUY

### ⚡ Performance

- binding: return memory to the OS once rolldown is idle (#11655) by @shulaoda
- scan: reserve symbol capacity for each module's facade symbols (#11854) by @magurotuna
- runtime: stop using bound functions as `__copyProps` getters (#11826) by @magurotuna
- replace `IndexVec<ModuleIdx, bool>` with `IndexBitSet` (#11805) by @IWANABETHATGUY
- rolldown_plugin_vite_manifest: look up chunk names by file name once per build (#11697) by @Boshen
- drop module sourcemaps after the chunk is joined (#11773) by @shulaoda

### 🧪 Testing

- magic-string: re-enable two passing compatibility tests (#11879) by @IWANABETHATGUY
- node: add standalone runtime/proxy/retained-context tests and vitest binding staging (#11842) by @Brooooooklyn
- cli: stop watch CLI tests from hanging on Windows (#11821) by @shulaoda

### ⚙️ Miscellaneous Tasks

- delete cancelled pkg.pr.new runs on main and debounce for 15 mins (#11928) by @shulaoda
- remove the unused `serde` features of rolldown, rolldown_plugin and rolldown_common (#11927) by @shulaoda
- deps: update vite-plus to v1.8.0 in the workspace and CI (#11896) by @camc314
- deps: update rollup submodule for tests to v4.68.8 (#11901) by @rolldown-guard[bot]
- deps: update test262 submodule for tests (#11902) by @rolldown-guard[bot]
- remove the graphite merge-when-ready label check (#11904) by @shulaoda
- deps: pin walkdir to 2.5.0 (#11897) by @hyfdev
- deps: remove remove-unused-vars (#11895) by @camc314
- deps: update rust crate testing_macros to v3 (#11876) by @renovate[bot]
- deps: update rust crates (#11873) by @renovate[bot]
- deps: update npm packages (#11872) by @renovate[bot]
- deps: upgrade oxc to 0.160.0 (#11885) by @camc314
- deps: update github actions (#11874) by @renovate[bot]
- rust: standalone runtime prep (devtools sync writer, TestDir, 1ms debounce, Wasm sourcemap inline, parking_lot_core patch) (#11840) by @Brooooooklyn
- run setup steps one by one on Windows (#11849) by @shulaoda

### ◀️ Revert

- "feat(binding): add dropInner() to 12 binding classes and extract release_arc helper (#11855)" (#11898) by @shulaoda
- "fix(code-splitting): keep chained emitted entries from becoming empty facades (#11090)" (#11891) by @hyfdev

### ❤️ New Contributors

* @fengmk2 made their first contribution in [#11850](#11850)
* @akshathayadav378-boop made their first contribution in [#11804](#11804)
* @araishi made their first contribution in [#11222](#11222)
* @Huzaifa-Asif made their first contribution in [#11090](#11090)

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.

4 participants