Skip to content

chore(deps): upgrade oxc to 0.151.0 - #10939

Merged
shulaoda merged 4 commits into
rolldown:mainfrom
camc314:codex/oxc-main
Sep 22, 2026
Merged

shulaoda merged 4 commits into
rolldown:mainfrom
camc314:codex/oxc-main

Conversation

@camc314

@camc314 camc314 commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Upgrade Oxc Rust dependencies to 0.151.0.
  • Upgrade @oxc-project/runtime, @oxc-project/types, oxc-parser, and oxc-transform JavaScript packages to 0.151.0.
  • Regenerate the embedded Oxc runtime helper metadata for @oxc-project/runtime 0.151.0.

Root causes

oxc-project/oxc#26724

oxc-project/oxc#26724

Oxc now classifies syntactically string TypeScript enum initializers before emitting reverse mappings. String literals, template expressions, and string-valued additions are emitted as forward assignments only, matching TypeScript and preventing bogus reverse keys from overwriting real enum members.

The enum_rules_from_type_script_5_0 snapshot drops reverse assignments for the NULL, TRUE, FALSE, and BIGINT template-expression members. Their evaluated values are strings ("null", "true", "false", and "123"), so the new forward-only output is expected.

Commit: 32305e20e518959bede5e4c8f2d7e7584fbc319d

oxc-project/oxc#26724

Oxc now classifies syntactically string TypeScript enum initializers before emitting reverse mappings. String literals, template expressions, and string-valued additions are emitted as forward assignments only, matching TypeScript and preventing bogus reverse keys from overwriting real enum members.

The enum_rules_from_type_script_5_0 snapshot drops reverse assignments for the NULL, TRUE, FALSE, and BIGINT template-expression members. Their evaluated values are strings ("null", "true", "false", and "123"), so the new forward-only output is expected.

First-Bad-Oxc-Commit: 32305e20e518959bede5e4c8f2d7e7584fbc319d

Oxc-Revision: 32305e20e518959bede5e4c8f2d7e7584fbc319d
Regenerate the embedded Oxc runtime helpers for @oxc-project/runtime 0.151.0. Helper bodies are unchanged; only the generated version marker and virtual helper prefix advance to the published package version.
@camc314
camc314 marked this pull request as ready for review September 21, 2026 14:28
Copilot AI lite review requested due to automatic review settings September 21, 2026 14:28

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 reached their quota limit.

@codspeed

codspeed Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 7 untouched benchmarks
⏩ 10 skipped benchmarks1


Comparing camc314:codex/oxc-main (d8d7341) with main (1551cf8)

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 merged commit 5c676e5 into rolldown:main Sep 22, 2026
32 checks passed
@rolldown-guard rolldown-guard Bot mentioned this pull request Sep 23, 2026
shulaoda added a commit that referenced this pull request Sep 23, 2026
## [1.2.10] - 2026-09-23

### 🚀 Features

- rolldown_plugin_esm_external_require: prefer 'module.exports' over a namespace spread (#10901) by @isker
- watch: support directories in addWatchFile (#10944) by @shulaoda
- label code-splitting timing rows (#10896) by @IWANABETHATGUY
- separate code-splitting group timing rows (#10892) by @IWANABETHATGUY
- clarify callback owners in the timing report (#10890) by @IWANABETHATGUY
- add checks.bundlerTimings with deprecated pluginTimings alias (#10883) by @IWANABETHATGUY

### 🐛 Bug Fixes

- code-splitting: initialize leaves behind a re-exported namespace import (#10694) by @hyfdev
- node: record the WASI target on the WebContainer binding fallback (#10952) by @shulaoda
- dev: force incremental build on in DevEngine::new (#10958) by @o-alexandrov
- tree-shaking: propagate side effects through cycles (#10893) by @IWANABETHATGUY
- deconflict CJS locals that shadow a renamed require wrapper (#10793) by @logaretm
- include group indexes in labeled `codeSplitting` timing rows (#10916) by @IWANABETHATGUY
- docs: type-check Algolia `indices` option (#10934) by @shulaoda
- docs: restore Algolia search (#10929) by @isker
- tell code-splitting timing rows apart by position (#10903) by @IWANABETHATGUY

### 🚜 Refactor

- rolldown_fs_watcher: remove the single-path API (#10950) by @shulaoda
- dev: register watch files through FsWatcher (#10949) by @shulaoda
- watch: let FsWatcher own the watched paths (#10948) by @shulaoda
- watch: identify watch files by normalized absolute path (#10943) by @shulaoda
- plugin: build a plugin-resolved `ResolvedId` in one place (#10921) by @IWANABETHATGUY

### 📚 Documentation

- dev: add HMR design, align dev docs and engine comments (#10271) by @h-a-n-a

### ⚡ Performance

- batch `sourcemapPathTransform` calls (#10763) by @IWANABETHATGUY
- batch `sourcemapIgnoreList` calls (#10762) by @IWANABETHATGUY
- hmr: drop the unused kind argument from registerFactory (#10915) by @h-a-n-a

### 🧪 Testing

- handle Windows paths in sourcemap callback tests (#10942) by @IWANABETHATGUY

### ⚙️ Miscellaneous Tasks

- replace custom `ban-expect-assertions` JS lint with builtin `no-restricted-properties` (#10933) by @isker
- deps: update napi (#10959) by @renovate[bot]
- deps: upgrade oxc to 0.151.0 (#10939) by @camc314
- deps: update test262 submodule for tests (#10941) by @rolldown-guard[bot]
- deps: update npm packages (#10931) by @renovate[bot]
- deps: update napi (#10928) by @renovate[bot]
- deps: update dependency vite-plus to v0.3.3 (#10914) by @renovate[bot]
- deps: update rust crates (#10932) by @renovate[bot]
- deps: update github actions (#10930) by @renovate[bot]
- deps: update dependency rolldown-plugin-dts to v0.28.6 (#10924) by @renovate[bot]
- deps: update crate-ci/typos action to v1.50.2 (#10917) by @renovate[bot]
- deps: update dependency @napi-rs/cli to v3.10.4 (#10913) by @renovate[bot]
- deps: update napi (#10897) by @renovate[bot]

### ❤️ New Contributors

* @o-alexandrov made their first contribution in [#10958](#10958)

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.

3 participants