Skip to content

feat(minifier): merge adjacent switch cases with identical bodies - #29316

Merged
graphite-app[bot] merged 1 commit into
mainfrom
codex/minifier-merge-identical-switch-cases
Nov 11, 2026
Merged

graphite-app[bot] merged 1 commit into
mainfrom
codex/minifier-merge-identical-switch-cases

Conversation

@camc314

@camc314 camc314 commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

When two adjacent cases have the same body and that body always exits the switch (return, throw, break or continue), the earlier body is emptied so it falls through to the later one.

// Input
export function isConstraint(node, parent) {
  switch (node.kind) {
    case 165: return node === parent.constraint;
    case 347: return node === parent.constraint;
    case 1: visit(node); break;
    case 2: visit(node); break;
    default: return false;
  }
}
export function minValue(kind) {
  switch (kind) {
    case 208:
    case 209: return -2147483648;
    default: return -2147483648;
  }
}

Before:

export function isConstraint(node, parent) {
	switch (node.kind) {
		case 165: return node === parent.constraint;
		case 347: return node === parent.constraint;
		case 1:
			visit(node);
			break;
		case 2:
			visit(node);
			break;
		default: return !1;
	}
}
export function minValue(kind) {
	switch (kind) {
		case 208:
		case 209: return -2147483648;
		default: return -2147483648;
	}
}

After:

export function isConstraint(node, parent) {
	switch (node.kind) {
		case 165:
		case 347: return node === parent.constraint;
		case 1:
		case 2:
			visit(node);
			break;
		default: return !1;
	}
}
export function minValue(kind) {
	return -2147483648;
}
  • When the later body is the last one in the switch, a trailing unlabeled break is ignored on both sides, because falling off the end also exits the switch. The merge runs before try_fold_switch removes that final break.
  • Bodies that declare top-level bindings (e.g. sloppy-mode duplicate functions) or contain a var are skipped. A dropped var declarator stays in the symbol's redeclarations, which makes the output non-idempotent.
  • Bodies containing a tagged template are skipped, because each call site has its own template object.

@camc314
camc314 requested a review from Dunqing as a code owner November 11, 2026 19:34
Copilot AI balanced review requested due to automatic review settings November 11, 2026 19:34

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. Try requesting a review at a lower effort level.

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 11, 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-11T19:38:32.075473Z 28806e6 PR opened
ℹ️ 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.

@github-actions github-actions Bot added the A-minifier Area - Minification, compression and name mangling, oxc_minifier / oxc_mangler label Nov 11, 2026
@github-actions github-actions Bot added A-linter Area - Linter (oxlint): rules, config, diagnostics, fixes. Add L-* labels for details A-parser Area - JS/TS parsing and syntax errors, oxc_parser A-cli Area - oxlint / oxfmt common CLI behavior: flags, ignore files, oxc_config L-js-plugins Linter > JS plugins (ESLint-compatible plugin API) labels Nov 11, 2026
@codspeed

codspeed Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 77 untouched benchmarks
⏩ 29 skipped benchmarks1


Comparing codex/minifier-merge-identical-switch-cases (6e2d2a7) with main (8cc6101)

Open in CodSpeed

Footnotes

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

@camc314 camc314 added the run-monitor-oxc Add to a PR to dispatch oxc-project/monitor-oxc CI against it label Nov 11, 2026
@oxc-guard

oxc-guard Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

@oxc-guard oxc-guard Bot removed the run-monitor-oxc Add to a PR to dispatch oxc-project/monitor-oxc CI against it label Nov 11, 2026
@oxc-guard

oxc-guard Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Minify Size

codex/minifier-merge-identical-switch-cases vs main

450 of 109,516 files changed.

files changed raw gzip -9 brotli q5
normal 108,351 434
434 smaller, 0 larger
-44,876 B (-0.009%)
501.89 MB → 501.85 MB
-3,596 B (-0.002%)
148.10 MB → 148.10 MB
-3,733 B (-0.003%)
136.17 MB → 136.17 MB
already minified (*.min.js) 1,165 16
16 smaller, 0 larger
-8,338 B (-0.015%)
54.32 MB → 54.31 MB
-701 B (-0.005%)
14.16 MB → 14.16 MB
-579 B (-0.004%)
13.23 MB → 13.23 MB

Full report (Test Minify Size summary): top files and packages each way, and before/after diffs of the files that changed most.

Output bytes of oxc's full minify pipeline (compress + mangle + whitespace) over monitor-oxc's node_modules corpus; gzip and brotli compress each file on its own and are summed. Sizes only: correctness is in the Monitor Oxc comment. Identical pnpm peer-variant copies were counted once (384 collapsed).

@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Nov 11, 2026

camc314 commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor Author

Merge activity

…9316)

When two adjacent cases have the same body and that body always exits the switch (`return`, `throw`, `break` or `continue`), the earlier body is emptied so it falls through to the later one.

```js
// Input
export function isConstraint(node, parent) {
  switch (node.kind) {
    case 165: return node === parent.constraint;
    case 347: return node === parent.constraint;
    case 1: visit(node); break;
    case 2: visit(node); break;
    default: return false;
  }
}
export function minValue(kind) {
  switch (kind) {
    case 208:
    case 209: return -2147483648;
    default: return -2147483648;
  }
}
```

Before:

```js
export function isConstraint(node, parent) {
	switch (node.kind) {
		case 165: return node === parent.constraint;
		case 347: return node === parent.constraint;
		case 1:
			visit(node);
			break;
		case 2:
			visit(node);
			break;
		default: return !1;
	}
}
export function minValue(kind) {
	switch (kind) {
		case 208:
		case 209: return -2147483648;
		default: return -2147483648;
	}
}
```

After:

```js
export function isConstraint(node, parent) {
	switch (node.kind) {
		case 165:
		case 347: return node === parent.constraint;
		case 1:
		case 2:
			visit(node);
			break;
		default: return !1;
	}
}
export function minValue(kind) {
	return -2147483648;
}
```

- When the later body is the last one in the switch, a trailing unlabeled `break` is ignored on both sides, because falling off the end also exits the switch. The merge runs before `try_fold_switch` removes that final `break`.
- Bodies that declare top-level bindings (e.g. sloppy-mode duplicate functions) or contain a `var` are skipped. A dropped `var` declarator stays in the symbol's redeclarations, which makes the output non-idempotent.
- Bodies containing a tagged template are skipped, because each call site has its own template object.
@graphite-app
graphite-app Bot force-pushed the codex/minifier-merge-identical-switch-cases branch from 6e2d2a7 to fa492d6 Compare November 11, 2026 19:50
@graphite-app
graphite-app Bot merged commit fa492d6 into main Nov 11, 2026
31 checks passed
@graphite-app graphite-app Bot removed the 0-merge Merge with Graphite Merge Queue label Nov 11, 2026
@graphite-app
graphite-app Bot deleted the codex/minifier-merge-identical-switch-cases branch November 11, 2026 19:55
graphite-app Bot pushed a commit that referenced this pull request Nov 16, 2026
### 💥 BREAKING CHANGES

- d742f8b ast: [**BREAKING**] Add `LabelId` to `LabelIdentifier` (#29611) (camc314)

### 🚀 Features

- 63b8158 minifier: Inline single use function declaration to assignment (#28917) (Aadharsh  Pannirselvam)
- eb1833e mangler: Mangle labels (#29614) (camc314)
- 702e734 codegen: Print label names from scoping (#29613) (camc314)
- 750033a semantic: Resolve labels to label IDs (#29612) (camc314)
- ccca379 minifier: Remove unused labels (#29607) (camc314)
- e375dff lexer: Complete NEON support for aarch64 (#29390) (Shanon Jackson)
- bfe9a81 data_structures: Add buffered vector batch reservations (#29365) (Boshen)
- fa492d6 minifier: Merge adjacent switch cases with identical bodies (#29316) (camc314)
- 8cc6101 minifier: Inline member reads into callees as indirect calls (#29305) (camc314)
- e3d7d91 minifier: Inline member reads into `new` expressions (#29304) (camc314)
- 57211d0 minifier: Inline member reads into call arguments (#29303) (camc314)
- 523a063 lexer: Publish lexer and SIMD crates (#29264) (Boshen)
- 2a5d710 data_structures: Add `unreachable_unchecked!` macro (#29131) (overlookmotel)
- 061becc react-compiler: Support logical assignment operators (#29137) (Yagiz Nizipli)

### 🐛 Bug Fixes

- d520358 transformer: Retain decorated fields with define semantics (#29444) (Dunqing)
- 83fb644 lexer: Combine surrogate pairs written with any escape form (#29658) (Shanon Jackson)
- f8e329c transformer: Preserve optional calls on private field chains (#29443) (Dunqing)
- 4b86eba react-compiler: Do not report hoisted function declaration initializer as access before declaration (#29641) (Boshen)
- 7e41638 parser: Keep whole parenthesized `TSInstantiationExpression` with `preserve_parens: false` (#29359) (leaysgur)
- 5aa6c17 napi/parser: Release native parse result eagerly (#29569) (Boshen)
- 1dc0ee9 semantic: Preserve catch and var binding identities (#28739) (Dunqing)
- 11dbaf4 ecmascript: Prefer hex integers when lengths tie (#29436) (camc314)
- e64155e transformer/react-refresh: Recognize TypeScript wrappers in HOC arguments (#29290) (camc314)
- 9085be1 react-compiler: Only report zero-argument new Date in render body (#29419) (Boshen)
- 9f465fd react-compiler: Preserve ref mutation hints (#28553) (Nash Aschenbath)
- 075b74f lexer: Do not drop UTF-8 validation errors in TSX type arguments (#29409) (overlookmotel)
- 59cbbbf lexer: Fix source length assertion (#29408) (overlookmotel)
- f37f271 react-compiler: Resolve computed dependencies in merged memo scopes (#29376) (camc314)
- ab73590 parser: Preserve re-exported default import names in raw transfer (#29234) (camc314)
- 6e6bd61 react-compiler: Avoid invariants for catch phis and ref-free callbacks (#29018) (camc314)
- 19b1691 isolated-declarations: Retain types used by exported ambient variables (#28996) (camc314)
- b372b04 transformer/optional-chaining: Preserve parenthesized chain boundaries (#29218) (camc314)
- efcdf06 transformer: Isolate logical assignment temporaries in parameters (#29182) (Dunqing)
- 177fdd7 parser: Classify re-exported namespaces as indirect exports (#29196) (Boshen)
- 053cc40 parser: Preserve type-only flags on re-exported imports (#29195) (Boshen)
- 34172e0 data_structures: Fix `assert_unchecked!` macro (#29130) (overlookmotel)
- b515929 transformer: Lower wrapped assignments and preserve computed receivers (#29113) (camc314)
- 59aed23 parser: Highlight invalid numeric separators (#29117) (camc314)
- 8f5e82c parser: Reject exponentiation operands hidden by assertions (#29115) (camc314)
- 42e790c parser: Require `declare` before `abstract` modifiers (#29111) (camc314)

### ⚡ Performance

- dd9af34 parser: Make parser and lexer checkpoints `Copy` (#29662) (Boshen)
- 4ebe523 parser: Keep the tokens read while classifying `()` and `(x)` arrows (#29560) (Boshen)
- 7a6b0a4 parser: Lex the token after `let` and `?.` once (#29559) (Boshen)
- bd9fa9b parser: Lex the token after a modifier keyword once (#29558) (Boshen)
- 2c6ee72 parser: Skip arrow speculation for array and object literals (#29557) (Boshen)
- 85c0269 parser: Rule out type arguments from tokens before speculating (#29556) (Boshen)
- b6edb78 parser: Avoid token loop restart after newlines (#29423) (Boshen)
- 762bbcf lexer: Cut NEON lexing cost in carve, coalesce and compress (#29414) (Shanon Jackson)
- f09af45 lexer: Keep source position in registers across byte handlers (#29401) (Boshen)
- ae1a375 lexer: Complete single-byte tokens without a byte handler (#29400) (Boshen)
- 11daf98 lexer: Build tokens once from pending state (#29399) (Boshen)
- c49e1bd str: Hash identifiers without branching on length (#29397) (Boshen)
- 8a6e0c1 lexer: Borrow contiguous escaped string values (#29372) (Boshen)
- 27baf0c lexer: Buffer more comments before arena allocation (#29371) (Boshen)
- baa84fc lexer: Size escaped strings before allocating (#29369) (Boshen)
- 4313dee parser: Buffer module record entries (#29368) (Boshen)
- 2df1f19 parser: Reduce regex, template, and comment allocations (#29361) (Boshen)
- f26d9d9 parser: Reduce arena allocations and reallocations (#29358) (Boshen)
- 846adbb mangler: Skip a liveness walk that never marks a scope (#29391) (Dunqing)
- 0d2e41a parser: Reduce identifier dispatch overhead (#29347) (Boshen)
- 1aaf3b0 parser: Reuse pure re-export storage (#29216) (Boshen)
- 9add80d parser: Buffer decorator and heritage lists (#29215) (Boshen)
- cb5cf55 parser: Collect prefixed import lists once (#29214) (Boshen)
- ec6b166 parser: Omit discarded recovered parentheses (#29213) (Boshen)
- 01e2b66 parser: Avoid discarded TypeScript instantiations (#29210) (Boshen)
- 727610a parser: Collect short named import lists (#29209) (Boshen)
- d1eaed0 parser: Collect short template literal lists (#29208) (Boshen)
- 0301b92 parser: Reserve module record batches (#29207) (Boshen)
- 9734804 parser: Collect short switch consequent lists (#29206) (Boshen)
- 6674b7a parser: Collect short JSX child lists (#29205) (Boshen)
- cc03246 parser: Collect short binding pattern lists (#29204) (Boshen)
- e36dd2d parser: Avoid discarded cover parameter allocations (#29203) (Boshen)
- 2d5864c parser: Collect short sequence expression lists (#29202) (Boshen)
- 6495e66 parser: Avoid discarded block allocations (#29199) (Boshen)
- 2601c45 parser: Collect short formal parameter lists (#29198) (Boshen)
- 10fddc3 parser: Collect short TypeScript type lists (#29197) (Boshen)
- 4140fb0 parser: Keep class heritage on the stack (#29190) (Boshen)
- e028d74 parser: Collect short statement lists before allocating (#29189) (Boshen)
- 69c7892 parser: Collect short declaration lists before allocating (#29188) (Boshen)
- aed0190 parser: Skip unused identifier hashes (#29168) (Boshen)
- 2c0a6c1 parser: Avoid allocating discarded directive statements (#29186) (Boshen)
- 48532bb parser: Buffer remaining parser lists (#29185) (Boshen)
- e59d413 parser: Reuse export entry storage (#29172) (Boshen)
- f815f54 parser: Reduce arena list reallocations (#29169) (Boshen)

### 📚 Documentation

- 9e5a2bb agents: Require runnable playground reproductions in PRs (#29450) (Dunqing)
- c4d1024 minifier: Require examples in fix and optimization PRs (#29439) (Dunqing)
- 43e0829 parser: Fix grammar context formatting (#29373) (camc314)
- 3e947d7 napi/parser: Correct TS-ESTree differences (#29268) (fisker Cheung)
- 521d194 transformer: Require reproductions in fix PR descriptions (#29224) (Dunqing)
- 24c4b78 simd: Improve comment (#29244) (overlookmotel)
- 306b96a lexer: Correct safety comment on `TokensView::new` (#29231) (overlookmotel)
- 44c65f0 lexer: Add comments (#29226) (overlookmotel)
- 796255d simd: Use consistent formatting for bullet points in doc comments (#29133) (overlookmotel)
- 794cf47 isolated-declarations: Add agent guide (#29125) (camc314)
- 768cc29 parser: Clarify syntax support and AST preservation (#29121) (camc314)
- 67ecd8c estree: Correct serialization capabilities (#29120) (camc314)
graphite-app Bot pushed a commit that referenced this pull request Nov 16, 2026
# Oxlint
### 🚀 Features

- db5bc6b linter: Output recommended flag in `--rules` JSON output (#29338) (Cam McHenry)
- acd8814 linter/typescript/no-misused-promises: Add `flagUnions` option (#29380) (camc314)
- fa492d6 minifier: Merge adjacent switch cases with identical bodies (#29316) (camc314)
- ca3b2cb linter/vue/no-shared-component-data: Implement fixer (#29291) (Mikhail Baev)
- bfe3498 linter: Mark oxc rules as recommended (#28091) (Cam McHenry)
- 5da83ae linter/eslint/no-unused-vars: Suggest removing unused type parameters (#28762) (YanYunCY)
- 6816662 linter/jsdoc/require-param-description: Implement suggestion (#29118) (Mikhail Baev)

### 🐛 Bug Fixes

- 97ed4b7 linter: Mark undefined argument removal as dangerous (#29266) (周星星同学)
- 58ef81d linter/typescript/prefer-function-type: Strip a trailing comma from the fixed signature (#28145) (NavpreetSSidhu)
- dcb465f linter/jsx-a11y/prefer-tag-over-role: Allow role="img" on svg (#29440) (Nadir Ali)
- 994ddc3 linter/eslint/no-div-regex: Offer regex rewrites as suggestions (#29493) (oxc-captain[bot])
- dc5add7 linter/jsx-a11y/lang: Don't report a missing lang attribute (#29441) (Nadir Ali)
- f010115 linter/jest/prefer-to-be,linter/vitest/prefer-to-be: Emit rewrites as suggestions (#29503) (oxc-captain[bot])
- b31fb57 linter/eslint/no-new-wrappers: Offer wrapper rewrites as suggestions (#29494) (oxc-captain[bot])
- 9abb941 linter/jsx-a11y/scope: Preserve effectful attribute values in safe fixes (#29507) (oxc-captain[bot])
- a1664a9 linter/jsx-a11y/no-redundant-roles: Use the first valid ARIA role token (#29497) (oxc-captain[bot])
- 64df21d linter/eslint/yoda: Skip safe fixes for relational regex comparisons (#29495) (oxc-captain[bot])
- df8887a linter/typescript/no-import-type-side-effects: Make the import rewrite a suggestion (#29502) (oxc-captain[bot])
- 2ce7f06 linter/jest/no-unneeded-async-expect-function,linter/vitest/no-unneeded-async-expect-function: Suggest unwrapping async callbacks (#29501) (oxc-captain[bot])
- 45c2159 linter/eslint/no-regex-spaces: Offer regex rewrites as suggestions (#29499) (oxc-captain[bot])
- 5167945 linter/vitest/prefer-import-in-mock: Preserve quotes and escapes in fixes (#29509) (oxc-captain[bot])
- 7127aa6 linter/jest/prefer-called-with,linter/vitest/prefer-called-with: Offer matcher rewrites as suggestions (#29498) (oxc-captain[bot])
- 5472a21 linter/typescript: Offer @ts-ignore rewrites as suggestions (#29511) (oxc-captain[bot])
- 523d59b linter/eslint/no-useless-escape: Demote useless escape fixes to suggestions (#29508) (oxc-captain[bot])
- 7ce5692 linter/jest/prefer-todo,linter/vitest/prefer-todo: Restrict safe fixes (#29512) (oxc-captain[bot])
- 0d3f45a linter/vitest/prefer-importing-vitest-globals: Avoid duplicate imports for type-only bindings (#29564) (Ahmed Alhaidary)
- d22f2c2 linter/vitest/prefer-strict-boolean-matchers: Offer rewrites as suggestions (#29500) (oxc-captain[bot])
- 2170319 linter/react/only-export-components: Classify export specifiers like declarations (#29520) (Rahul Kashyap)
- 79c0b73 linter/eslint/prefer-object-spread: Skip __proto__ sources and suggest unsafe rewrites (#29510) (oxc-captain[bot])
- 69be73e linter/jsx-a11y: Match event handler props case-insensitively (#29570) (Nadir Ali)
- 1ae09b9 linter/jsx-a11y/aria-unsupported-elements: Preserve effectful attribute values (#29506) (oxc-captain[bot])
- 4092e2f linter/jsx-a11y/no-aria-hidden-on-focusable: Suggest removing aria-hidden (#29505) (oxc-captain[bot])
- 4059ff7 linter/react/rules-of-hooks: Match namespaced additional effect hooks (#29517) (Boshen)
- 65659e6 linter/react/no-unstable-nested-components: Ignore prop callbacks that return an object holding JSX (#29605) (Nadir Ali)
- bff48d0 linter/unicorn/prefer-set-size: Keep a space after a keyword before `[` (#29597) (Jingbo Chai)
- 2bb4c72 linter/vitest/prefer-importing-vitest-globals: Skip value imports from non-Vitest sources (#29563) (Abdul karim mia)
- a087125 linter/oxc/no-accumulating-spread: Check reduce callbacks that take the index or array (#29573) (Nadir Ali)
- 1a6fa05 linter/eslint/no-useless-rename: Don't fix a parenthesized target with a default (#29602) (Jingbo Chai)
- 121b55c linter/typescript/prefer-function-type: Don't fix or double-report `export default interface` (#29593) (Jingbo Chai)
- 9a3d7a1 linter/unicorn/prefer-export-from: Don't offer a fix that drops other names from the export list (#29574) (Nadir Ali)
- b188db6 linter/unicorn/prefer-response-static-json: Fix the suggestion when a comment follows `new` (#29591) (Jingbo Chai)
- 915a851 linter/eslint/no-var: Don't fix when `let` or `const` changes behavior (#29590) (Jingbo Chai)
- 9674aec linter: Don't skip code between comments when checking for an ASI hazard (#29601) (Jingbo Chai)
- 5e74d21 linter/unicorn/prefer-at: Preserve grouping in slice pop and shift fixes (#29598) (Jingbo Chai)
- c39f4fc linter/oxc/only-used-in-recursion: Keep the line break after a line comment (#29606) (Jingbo Chai)
- 66d30ee linter/jest/no-untyped-mock-factory: Copy the module name as written (#29604) (Jingbo Chai)
- 1a0460a linter/unicorn/prefer-single-call: Skip comments when checking for a trailing comma (#29596) (Jingbo Chai)
- 42395f2 linter/import/no-duplicates: Handle comments after a trailing comma when merging (#29595) (Jingbo Chai)
- 22cfb3f linter/eslint/curly: Don't remove braces when the statement needs a semicolon (#29592) (Jingbo Chai)
- 40b81d2 linter/unicorn/no-useless-spread: Replace holes with `undefined` in spread arguments (#29600) (Jingbo Chai)
- 00704a6 linter: Print config: remove redundant extends in output (#29585) (Cam McHenry)
- fe779e8 linter/vitest/require-awaited-expect-poll: Allow implicit arrow-function returns (#29576) (oxc-captain[bot])
- 6da36f8 linter: Print config: validate CLI options before printing config (#29538) (Cam McHenry)
- dda4d11 linter: Print config: reflect CLI options like `--type-aware` in the printed config (#29537) (Cam McHenry)
- dadb64f linter: Print config: include JS plugin settings in output JSON (#29534) (Cam McHenry)
- 0b643b3 linter: Print config: use resolved config instead of config builder (#29533) (Cam McHenry)
- 0a557ae linter: Print config: flatten single-element options arrays (#29531) (Cam McHenry)
- 09ef22f linter: Print config: preserve original rule configuration when generating rule sets (#29530) (Cam McHenry)
- 9314042 linter/react: Exhaustive-deps misses ref.current method calls on custom refs (#29571) (Boshen)
- 1dc0ee9 semantic: Preserve catch and var binding identities (#28739) (Dunqing)
- bebe76c linter/unicorn/prefer-spread: Avoid stack overflow on cyclic initializers (#29433) (camc314)
- eefd253 linter/react/exhaustive-deps: Stop autofixing missing dependency arrays (#29430) (camc314)
- 2b4f13e linter/unicorn/prefer-date-now: Preserve negation and comments (#29352) (Guru 🦄)
- 2dc1839 linter/eslint/func-style: Report functions sharing type names (#29378) (Abdul karim mia)
- db80510 linter/jsx-a11y/no-redundant-roles: Preserve link roles without href (#29384) (oxc-captain[bot])
- 9c20c2a linter: Infer omitted RegExp flags from known patterns (#29428) (oxc-captain[bot])
- 95f1081 linter/unicorn/no-accessor-recursion: Distinguish private and public keys (#29429) (oxc-captain[bot])
- 9f465fd react-compiler: Preserve ref mutation hints (#28553) (Nash Aschenbath)
- e5fb59e linter/vitest/require-test-timeout: Avoid overflow when sorting configurations (#29299) (camc314)
- 9f72ce2 linter/unicorn/consistent-template-literal-escape: Avoid panics after CRLF (#29298) (camc314)
- a2bd61d linter/react/jsx-key: Only check direct JSX array elements (#29294) (camc314)
- ed4fb73 linter/oxc/no-accumulating-spread: Avoid panic on parenthesized optional chains (#29293) (camc314)
- 4a9d681 linter/jest/prefer-to-be,linter/vitest/prefer-to-be: Avoid Unicode whitespace panics (#29292) (camc314)
- d8c1333 linter/vitest/prefer-called-once: Avoid panics on escaped matcher names (#29289) (camc314)
- 4959267 linter/unicorn/prefer-includes: Avoid panic on parenthesized optional chains (#29286) (camc314)
- a5f7617 linter/unicorn/prefer-object-from-entries: Avoid panic on wrapped callees (#29285) (camc314)
- 925633b linter/unicorn/prefer-dom-node-remove: Avoid panic on parenthesized optional chains (#29279) (camc314)
- f991b20 linter/unicorn/no-length-as-slice-end: Avoid panic on wrapped callees (#29277) (camc314)
- d5385ca linter/unicorn/no-useless-spread: Avoid panics on Unicode whitespace (#29278) (camc314)
- 06d5e6d linter/typescript/consistent-type-imports: Avoid panic on quoted import names (#29274) (camc314)
- db58bd1 linter/unicorn/prefer-set-has: Avoid panics on Unicode whitespace (#29276) (camc314)
- a87cecd linter/unicorn/no-document-cookie: Stop resolving cyclic aliases (#29275) (camc314)
- 9c9ffb6 linter/unicorn/prefer-array-flat: Avoid panic on rest parameters (#29273) (camc314)
- d068722 linter/no-large-snapshots: Avoid panics on Unicode whitespace (#29272) (camc314)
- 411624a linter/eslint/no-empty: Use byte offsets for finally suggestions (#29271) (camc314)
- 84fd230 linter/import/no-duplicates: Ignore braces in module strings (#29270) (camc314)
- 5d669bb linter/vitest/no-standalone-expect: Support Vitest `.extend` test functions (#29243) (camchenry)
- d1bd197 linter/vitest/prefer-snapshot-hint: Recognize conditional test scopes (#29221) (camc314)
- 3b16ccf linter/vitest/require-awaited-expect-poll: Avoid duplicated reports (#29174) (sapphi-red)
- f0e3270 linter/prefer-mock-return-shorthand: Avoid mock return shorthand for mutations (#29136) (camc314)
- 8fe22b1 linter/eslint/no-useless-assignment: Handle instance field captures (#29135) (camc314)
- 3e1303e linter/eslint/no-use-before-defne: Fix numerous failing cases (#28861) (Cam McHenry)
- 50278cc linter/eslint/no-restricted-imports: Report invalid regex configuration (#29119) (camc314)
- dde6024 linter/eslint/arrow-body-style: Converge fixes for wrapped object returns (#29101) (camc314)
- 5a32ad0 linter/unicorn/prefer-negative-index: Avoid panic on non-ASCII whitespace (#28877) (YT)

### ⚡ Performance

- aed0190 parser: Skip unused identifier hashes (#29168) (Boshen)
- 0dfb188 oxlint: Build diagnostic output while linting runs (#28747) (YT)

### 📚 Documentation

- cdb5ac4 oxlint: Remove experimental label from `typeCheck` (#29175) (Yuji Sugiura)
- ae514b3 linter: Move rule creation guidance into crate AGENTS.md (#29122) (camc314)
# Oxfmt
### 🚀 Features

- 21e1fc1 formatter_graphql: Support empty selection sets and braced unicode escapes (#29345) (leaysgur)
- 292f216 oxfmt: Bump prettier to 3.10.1 (#29333) (leaysgur)

### 🐛 Bug Fixes

- 552732b formatter: Fix parenthesized `TSInstantiationExpression` issue (#29389) (leaysgur)
- 7e41638 parser: Keep whole parenthesized `TSInstantiationExpression` with `preserve_parens: false` (#29359) (leaysgur)
- d41ed14 formatter: Keep the `;` of a lone statement in a Vue event handler (#29354) (leaysgur)
- 58d7356 formatter: Break a conditional type alias with a generic constructor type after `=` (#29411) (leaysgur)
- 59b8eaa formatter: Print binaryish or `yield` args like `return` (#29407) (leaysgur)
- d6632f3 formatter: Keep a comment after `TSPropertySignature`'s `:` (#29393) (leaysgur)
- cf50f9b formatter: Keep a blank line between dangling comments (#29392) (leaysgur)
- e648de6 formatter: Print sequence in `yield` and unary like in `return` (#29353) (leaysgur)
- 547684d formatter: Keep parens around `<` on the left of `>` (#29351) (leaysgur)
- 16b84d3 formatter/htmlish: Print CDATA sections as nodes of their own (#29348) (leaysgur)
- f9f2385 formatter_css: Print `@supports selector()` like rule selector (#29343) (leaysgur)
- f31a8d1 formatter: Align union hug and conditional branch (#29261) (leaysgur)
- 79064df formatter_htmlish/angular: Keep block params, ignore whole block (#29258) (leaysgur)
- 4d50307 formatter_htmlish: Keep attrs holding character reference (#29257) (leaysgur)
- 3205e84 formatter: Break after `=` for hugged type alias (#29256) (leaysgur)
- bed54ab formatter_htmlish: Keep whitespace as written only between two CJ characters (#29171) (leaysgur)
- 1905d2b formatter_markdown: Keep whitespace as written only between two CJ characters (#29170) (leaysgur)
- a3660bb formatter_htmlish: Keep empty comment only element as-is (#29159) (leaysgur)
- 49b832a formatter_htmlish/vue: Preserve `v-for` alias holding `in|of` (#29156) (leaysgur)

### 📚 Documentation

- 63b9b38 formatter: Re-check divergences whose pins changed in Prettier 3.10 (#29412) (leaysgur)
- 0467739 formatter: Classify js/ts conformance failures for prettier 3.10 (#29336) (leaysgur)
- 9660ce4 oxfmt: Update htmlish and oxfmt divergences (#29334) (leaysgur)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Area - oxlint / oxfmt common CLI behavior: flags, ignore files, oxc_config A-linter Area - Linter (oxlint): rules, config, diagnostics, fixes. Add L-* labels for details A-minifier Area - Minification, compression and name mangling, oxc_minifier / oxc_mangler A-parser Area - JS/TS parsing and syntax errors, oxc_parser L-js-plugins Linter > JS plugins (ESLint-compatible plugin API)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants