Repository navigation
Releases
Releases · oxc-project/oxc
oxlint v1.94.0
Immutable
release. Only release title and notes can be modified.
🚀 Features
- db5bc6b linter: Output recommended flag in
--rulesJSON output (#29338) (Cam McHenry) - acd8814 linter/typescript/no-misused-promises: Add
flagUnionsoption (#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
- 8d49552 linter/vitest/prefer-importing-vitest-globals: Insert imports after shebangs and directives (#29674) (camc314)
- 4526cae linter: Drop
## Exampleheadings from overrides config docs (#29670) (oxc-captain[bot]) - 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
letorconstchanges 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
undefinedin 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-awarein 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
.extendtest 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 lint...
oxfmt v0.79.0
Immutable
release. Only release title and notes can be modified.
🚀 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
TSInstantiationExpressionissue (#29389) (leaysgur) - 7e41638 parser: Keep whole parenthesized
TSInstantiationExpressionwithpreserve_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
yieldargs likereturn(#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
yieldand unary like inreturn(#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-foralias holdingin|of(#29156) (leaysgur)
📚 Documentation
oxc crates_v0.159.0
Immutable
release. Only release title and notes can be modified.
💥 BREAKING CHANGES
🚀 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
newexpressions (#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
- 8f09517 transformer/class-properties: Check static private field initialization (#29672) (camc314)
- 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
TSInstantiationExpressionwithpreserve_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
declarebeforeabstractmodifiers (#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
letand?.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)
oxlint v1.93.0
Immutable
release. Only release title and notes can be modified.
🚀 Features
- 6195265 linter/promise/prefer-catch: Implement suggestion (#28919) (Mikhail Baev)
🐛 Bug Fixes
- 866664e linter/unicorn/no-useless-undefined: Skip var initializers (#29007) (camc314)
- 30603cb linter/react/exhaustive-deps: Preserve comments in dependency removals (#29047) (camc314)
- 4630fe4 linter/unicorn/no-useless-undefined: Narrow return type exemptions (#29000) (camc314)
- b63870a linter/vitest/expect-expect: Recognize benchmark fixtures (#29044) (camc314)
- 9c62d2a linter/eslint/no-unreachable-loop: Ignore enclosing finalizers for continues (#29004) (camc314)
- 6303df1 jsdoc: Preserve param tags after unmatched description delimiters (#28923) (Vishal Punjabi)
- fe66fa7 linter/eslint/no-lone-blocks: Report redundant blocks in function bodies (#29043) (camc314)
- e1694bd linter/unicorn/no-useless-undefined: Preserve shadowed bindings (#29046) (camc314)
- 791b5f5 linter/unicorn/prefer-regexp-test: Restrict automatic argument swaps (#29045) (camc314)
- e7654f6 linter/react/display-name: Ignore unrelated memo and forwardRef calls (#29005) (camc314)
- 2487360 linter/unicorn/no-useless-undefined: Report guarded indexed access (#29014) (camc314)
- a791a5b cfg: Resolve continues through stacked loop labels (#29016) (camc314)
- 287ba19 linter/eslint/id-length: Ignore TypeScript qualified references (#29037) (camc314)
- b71234f cfg: Skip labeled contexts for unlabeled jumps (#29001) (camc314)
- bb21a3c linter/import/no-anonymous-default-export: Report parenthesized exports (#29002) (camc314)
- f38f738 linter/eslint/prefer-destructuring: Skip fixes that remove comments (#29003) (camc314)
- bf11006 linter/react/exhaustive-deps: Suggest dependency removals (#28925) (camc314)
- 6bbb92a linter: Remove unused
oxlint-disabledirectives with--fix(#27698) (Ryan Tsao) - 3b35cb6 linter/disable-directives: Preserve separators and disable spans (#28921) (camc314)
- 1253445 linter/eslint/no-restricted-imports: Report re-exported imports once (#28920) (Ramy Akin Saidi)
⚡ Performance
oxfmt v0.78.0
Immutable
release. Only release title and notes can be modified.
🐛 Bug Fixes
- ab78621 formatter_css/less: Print
~escape consistently (#29089) (Yuji Sugiura) - 91721d2 formatter_css/less: Print Less % selectors (#29088) (Yuji Sugiura)
- 449e91f oxfmt: Format ts-in-astro as TSX (#29080) (leaysgur)
- 8d8845e formatter/jsdoc: Strip
*prefixes from multiline default value (#28910) (leaysgur) - cdb1501 formatter/jsdoc: Handle every line terminator in multi-line JSDoc types (#28909) (leaysgur)
- fd51bff jsdoc: Handle every line terminators as newline (#28902) (leaysgur)
- 2f80765 formatter_toml: Format whitespace-only document to empty (#28899) (leaysgur)
- 5e1e02c formatter_graphql: Allow empty document (#28898) (leaysgur)
- 06e72c0 formatter/tailwind: Normalize CR in Tailwind template with
preserveWhitespace(#28896) (leaysgur)
⚡ Performance
- 934ca98 formatter: Use
Arcfor tailwind options across embedding (#29079) (leaysgur) - dde9c5c formatter_htmlish: Skip
</scriptescape if possible (#29078) (leaysgur) - dc4d918 formatter: Format embedded expr of one name without parsing (#29077) (leaysgur)
📚 Documentation
oxc crates_v0.158.0
Immutable
release. Only release title and notes can be modified.
🐛 Bug Fixes
- de6ac92 isolated-declarations: Preserve object accessor mutability (#29039) (camc314)
- 3729ce1 transformer/typescript: Merge exported enums across namespace blocks (#28999) (camc314)
- 7243594 minifier: Preserve throwing ArrayBuffer and URI calls (#29012) (camc314)
- 67ac6be isolated-declarations: Evaluate enum template literal initializers (#28997) (camc314)
- f05b30e isolated-declarations: Infer auto-accessor initializer types (#29038) (camc314)
- 030d410 isolated-declarations: Preserve computed ambient enum members (#29040) (camc314)
- 6303df1 jsdoc: Preserve param tags after unmatched description delimiters (#28923) (Vishal Punjabi)
- 99e67d3 transformer: Preserve static private brands with shadowed class names (#28894) (Dunqing)
- 595f3c2 minifier: Preserve left-hand side effects in instanceof checks (#29011) (camc314)
- a791a5b cfg: Resolve continues through stacked loop labels (#29016) (camc314)
- 9e3b3d1 ecmascript: Reject signs after nondecimal prefixes (#29034) (camc314)
- 43c5273 ecmascript: Round nondecimal strings to numbers once (#29026) (camc314)
- b71234f cfg: Skip labeled contexts for unlabeled jumps (#29001) (camc314)
- fd51bff jsdoc: Handle every line terminators as newline (#28902) (leaysgur)
- c00dc61 codegen: Keep one source map mapping per generated position (#28844) (YT)
- 52f3e3d jsdoc: Do not treat
@wordcontaining/as tag (#28834) (leaysgur) - 0b48483 minifier: Preserve UTF-16 boundaries in empty-search replaceAll folding (#28807) (huuya)
- 1e57a4e codegen: Print infinite numeric literals as
1e400instead ofInfinity(#28812) (Dominic Elm) - 28a44b7 transformer/class-properties: Preserve private accessor assignment receivers (#28790) (Dunqing)
- ea76490 transformer/class-properties: Preserve private method values in assignments (#28788) (Dunqing)
- 8432de6 transformer/class-properties: Apply a compound assignment to a static private field once (#28606) (YT)
- 3dbf140 parser: Treat escaped contextual keywords as names, not modifiers (#28748) (Dominic Elm)
- e3b1bb4 transformer/class-properties: Keep the value of a private accessor assignment (#28716) (YT)
- ae7474e minifier: Keep array concat chain reads before later side effects (#28261) (Dunqing)
- ec327aa semantic: Keep block type bindings separate from hoisted vars (#28601) (YT)
- 3fd78d7 codegen: Preserve names in duplicate source mappings (#26051) (camc314)
⚡ Performance
- 7761a39 codegen: Remove redundant sourcemap buffer shrinks (#28893) (Dunqing)
- bee25de regular_expression: Check only the latest group per name in duplicate prescan (#29083) (Yuji Sugiura)
- 4da1752 codegen: Use SWAR scanning and shared column tables (#28939) (Dunqing)
- cc84126 mangler: Inline candidate checks during slot assignment (#28881) (Dunqing)
- 6611cf9 parser: Specialize quoted string value access (#28965) (Boshen)
- 5038ba6 parser: Avoid repeated await-using lookahead (#28960) (Boshen)
- ecc807b parser: Skip discarded arrow diagnostics (#28940) (Boshen)
- c880368 parser: Fast-path absent TypeScript type lists (#28959) (Boshen)
- dee6cf4 parser: Skip repeated optional call lookahead (#28876) (Boshen)
- a524e17 parser: Reuse successful parenthesized arrow heads (#28862) (Boshen)
- 296b12a parser: Accelerate line comment scanning (#28878) (Boshen)
- c4fc21e parser: Accelerate escaped string scanning (#28907) (Boshen)
- f7726b6 parser: Accelerate regex literal scanning (#28911) (Boshen)
- a8aff38 parser: Scan whitespace in runs (#28953) (Boshen)
- b1c137c parser: Avoid lookahead for TypeScript keyword types (#28954) (Boshen)
- 6a8a2a7 parser: Fast-path plain identifiers (#28955) (Boshen)
- 00deb87 parser: Initialize declaration lists with their first item (#28956) (Boshen)
- 71dd877 parser: Specialize binary operator associativity (#28957) (Boshen)
- 732a8e4 codegen: Skip repeated word scans for sourcemap tails (#28869) (Dunqing)
- 6972243 codegen: Accelerate sourcemap line scanning (#28400) (codspeed)
- 027eb7e parser: Combine async arrow lookahead (#28431) (Boshen)
- 7b933d5 lexer: Directly dispatch common punctuation (#28792) (Boshen)
- 45d86c3 lexer: Combine per-token annotation resets (#28492) (Boshen)
- d497fbf lexer: Match keywords with byte patterns (#28494) (Boshen)
📚 Documentation
- 167e78a oxc-types: Correct TypeScript spelling in README (#29092) (camc314)
- 844c28c syntax: Correct crate capabilities and module records (#29075) (camc314)
- 8d30d9b traverse: Clarify ancestor access during traversal (#29074) (camc314)
- a74b7cd ecmascript: Clarify test locations (#29072) (camc314)
- 7acaa4e mangler: Correct naming strategy and pipeline order (#29073) (camc314)
- ed28291 ast: Clarify which AST nodes use arena allocation (#29070) (camc314)
- d5832ab oxc: Correct README APIs and feature requirements (#29068) (camc314)
- 261c4a2 allocator: Clarify arena storage and memory reclamation (#29066) (camc314)
- 6448a54 napi/parser: Correct parser options and usage guidance (#29065) (camc314)
- 157fc5a napi/minify: Correct minifier capabilities and caveats (#29064) (camc314)
- 6989796 parser: Update TS-ESTree import differences (#29061) (camc314)
oxlint v1.92.0
Immutable
release. Only release title and notes can be modified.
🚀 Features
- 4a52ba2 oxlint: Discover tsrs for type-aware linting (#28751) (camc314)
- b7d2c75 linter/eslint/no-redeclare: Add
ignoreDeclarationMergeoption (#28816) (Cam McHenry)
🐛 Bug Fixes
- fa66fde oxlint,oxfmt: Resolve Vite+ config root from the config file directory (#28801) (MK (fengmk2))
- 2091564 linter/jsdoc/require-param: Ignore enclosing function JSDoc (#28866) (camc314)
- c6ec50b linter/react/only-export-components: Classify JSX values as non-components (#28761) (camc314)
- 3c051ab linter/vitest/prefer-called-exactly-once-with: Preserve neighboring code in autofix (#28864) (camc314)
- 674b962 linter/eslint/no-misleading-character-class: Use lazy regex for combining marks (#28822) (Sysix)
- 838d339 linter/vitest/prefer-called-exactly-once-with: Avoid panic on non-ASCII text (#28850) (YT)
- 8d24c26 linter/jsx-a11y/aria-role: Allow role={undefined} (#28804) (Abhay Godavarthy)
- a7143bf linter/eslint/no-restricted-imports: Respect allowTypeImports correctly for empty patterns (#28842) (Cam McHenry)
- 3d3a6f4 react-compiler: Ignore callback-local reassignments (#28820) (camc314)
- 0cc6515 linter/unicorn/prefer-type-error: Report throws in unbraced if branches (#28819) (camc314)
- ae43c80 linter/unicorn/prefer-single-call: Remove duplicate fix status (#28763) (Mikhail Baev)
- a8a621a linter/eslint/no-fallthrough: Ignore unreachable exits from infinite loops (#28755) (camc314)
- 7a17a80 linter/eslint/prefer-spread: Report calls on non-member expressions (#28753) (camc314)
- 28442f7 oxlint: Prevent --init from overwriting existing configs (#28754) (camc314)
- 0ae350d linter/unicorn/no-zero-fractions: Preserve exponent case (#28752) (camc314)
- b5b3f3f linter/eslint/no-misleading-character-class: Detect more combining characters (#28733) (Sysix)
⚡ Performance
oxfmt v0.77.0
Immutable
release. Only release title and notes can be modified.
💥 BREAKING CHANGES
- 00d1a67 oxfmt: [BREAKING] Format
parser:vuefiles byoxc_formatter_htmlish(#28848) (leaysgur)
🚀 Features
- 9a81e58 formatter_htmlish: Format Vue templates (#28847) (leaysgur)
- 119d82f formatter: Format a template's expressions and handlers as
JsRoot(#28846) (leaysgur)
🐛 Bug Fixes
- fa66fde oxlint,oxfmt: Resolve Vite+ config root from the config file directory (#28801) (MK (fengmk2))
- 4d4104d formatter_htmlish: Preserve
doctypecase in embedded (#28797) (leaysgur) - ebfd40a formatter: Sort Tailwind calls printed as member chains (#28800) (Yuji Sugiura)
- e62e5cb formatter: Decide quotes of a Tailwind key printed as one class (#28798) (Yuji Sugiura)
- 959edc1 formatter: Don't sort templates in nested non-Tailwind calls (#28794) (Yuji Sugiura)
- 6ffbe32 formatter/jsdoc: Prevent
@tagfrom being moved to the line start (#28835) (leaysgur) - 94fbef5 formatter_css: Treat comments in
styleattr as fill items (#28832) (leaysgur) - e4a80f7 formatter_css: Normalize selectors inside
:deep,:slottedand:local(#28805) (leaysgur) - 255c5cc formatter: Measure Tailwind class argument after collapsing whitespace (#28745) (Lee Jaeha / Adam)
- e6c4fef formatter: Decide template and object key layouts from collapsed Tailwind classes (#28791) (Yuji Sugiura)
- 0b44164 formatter: Decide JSX opening element layout from collapsed Tailwind class string (#28744) (Lee Jaeha / Adam)
- b8ba9ae formatter: Print decorators on rest parameters (#28731) (YT)
⚡ Performance
oxlint v1.91.0
Immutable
release. Only release title and notes can be modified.
🚀 Features
- 004647a track_memory_allocs: Add allocation tracking for linter rules (#28470) (Cam McHenry)
- 419c1b0 linter: Add allow and allowPattern options to react/capitalized-calls (Christian Vuerings)
🐛 Bug Fixes
- a205cd3 linter/eslint/no-control-regex: Detect raw control characters (#28548) (camc314)
- 7c65777 linter/unicorn/prefer-global-this: Align typeof and worker API handling (#28549) (camc314)
- 987d5f1 linter/unicorn/no-invalid-fetch-options: Avoid treating unknown methods as GET (#28547) (camc314)
- e234dc8 linter/unicorn/no-useless-error-capture-stack-trace: Move to suspicious category (#28545) (camc314)
- b3dc411 linter/typescript/no-non-null-asserted-nullish-coalescing: Move to suspicious category (#28546) (camc314)
- cb64638 regular_expression: Reject incomplete Unicode atom escapes (#28448) (Boshen)
- c67167e linter: Only run React Compiler rules on files with top-level components or hooks (Boshen)
- 4c9d5aa linter: Treat Reanimated shared values as ref-like in React Compiler rules (Boshen)
- 61fe2af linter/react: Ignore impure calls in async components in react/purity (Rahul Kashyap)
- ed7df7d ast/estree: Include comments in TS Program span (#28326) (camc314)
- 31cbe37 linter: Make gitlab fingerprints unique per diagnostic (#28307) (camc314)
⚡ Performance
- 564559d linter/prefer-const: Avoid collecting resolved references (#28732) (Dunqing)
- bb947dc linter: Skip numeric separator formatting for short integers (#28485) (Cam McHenry)
- 1043dfa linter: Avoid collecting prefer-const binding identifiers (#28484) (Cam McHenry)
- 7c93eef linter: Reduce branches-sharing-code scratch allocations (#28483) (Cam McHenry)
- c0065fd linter: Allocate escape-case replacements only when needed (#28482) (Cam McHenry)
- d837414 linter: Lazily normalize capitalized-comments text (#28481) (Cam McHenry)
- 6baaad6 linter: Avoid no-var binding identifier allocations (#28480) (Cam McHenry)
- 882053b linter: Skip read-only parameters in no-param-reassign (#28479) (Cam McHenry)
- 92deebf linter: Reduce no-unmodified-loop-condition allocations (#28478) (Cam McHenry)
- f01d52d linter: Reduce no-duplicate-case allocations (#28477) (Cam McHenry)
- 6a72d84 linter: Reduce no-dupe-class-members allocations (#28476) (Cam McHenry)
- 77599ef linter: Reduce no-this-before-super allocations (#28475) (Cam McHenry)
- 2ea9f58 linter/no-dupe-else-if: Use smallvec to reduce allocs (#28474) (Cam McHenry)
- 69f0204 linter/react/rules-of-hooks: Reduce allocs (#28473) (Cam McHenry)
- b138c20 linter: Reduce allocs in no-dupe-keys (#28472) (Cam McHenry)
- 6f3e982 linter: Avoid operator allocations in no-useless-length-check (#28471) (Cam McHenry)
- fd68928 react-compiler: Skip passes lint does not need (Yagiz Nizipli)
- 224f4dd linter/eslint/sort-keys: Reserve initial capacity for string (#27624) (Cam McHenry)
- e4e01a3 linter/import/no-cycle: Compare visited modules by absolute resolved path (#27517) (Cam McHenry)
- 741b29b linter/import/no-cycle: Cache sorted module record snapshots (#27516) (Cam McHenry)
- 20022bb linter/import/no-cycle: Reuse traversal buffers between imports (#27481) (Cam McHenry)
- fd5edb7 linter/import/no-cycle: Reuse module records in diagnostic stack (#27480) (Cam McHenry)
- 73e877c linter/import/no-cycle: Don't allocate paths already seen (#27478) (Cam McHenry)
- 1515d53 linter/react/forward-ref-uses-ref: Narrow forward-ref-uses-ref dispatch (#28367) (Cam McHenry)
- ee51c01 linter/react/no-string-refs: Narrow AST dispatch (#28366) (Cam McHenry)
- bbfd692 linter/react/no-children-pop: Narrow AST dispatch (#28365) (Cam McHenry)
- a86158b linter/unicorn/prefer-set-size: Narrow AST dispatch (#28364) (Cam McHenry)
- a777fa6 linter/eslint/no-iterator: Narrow member dispatch (#28363) (Cam McHenry)
- bc5e94d linter/eslint/no-extra-boolean-cast: Narrow AST dispatch (#28362) (Cam McHenry)
- 93c6e6d linter/unicorn/no-useless-fallback-in-spread: Narrow AST dispatch (#28361) (Cam McHenry)
- 1a1f66e linter/typescript/no-this-alias: Narrow AST dispatch (#28360) (Cam McHenry)
- b102a91 linter/typescript/no-wrapper-object-types: Index references (#28359) (Cam McHenry)
- dbd8a0b linter/eslint/no-unassigned-vars: Batch by declaration (#28358) (Cam McHenry)
- 1108352 linter/typescript/prefer-as-const: Narrow AST dispatch (#28357) (Cam McHenry)
- d65531f linter/eslint/no-const-assign: Batch by declaration (#28356) (Cam McHenry)
- 1ec9991 linter/oxc/number-arg-out-of-range: Narrow AST dispatch (#28355) (Cam McHenry)
- 7a1243e linter/unicorn/no-invalid-fetch-options: Narrow AST dispatch (#28354) (Cam McHenry)
- 2ab73cc linter/unicorn/no-single-promise-in-promise-methods: Narrow AST dispatch (#28353) (Cam McHenry)
- 483c4c9 linter/eslint/no-compare-neg-zero: Narrow no-compare-neg-zero dispatch (#28352) (Cam McHenry)
- 56c99c6 linter/eslint/no-unsafe-negation: Narrow AST dispatch (#28351) (Cam McHenry)
- 84d974b linter/unicorn/prefer-string-starts-ends-with: Narrow AST dispatch (#28350) (Cam McHenry)
- 142ef4f unicorn: Narrow no-await-in-promise-methods dispatch (#28349) (Cam McHenry)
- a3dc7a2 linter/unicorn/no-await-expression-member: Optimize AST dispatch (#28348) (Cam McHenry)
- 481b638 linter/plugins: Create AST nodes with
Object.createinstead of__proto__literals (#27816) (Charles Wang)
oxfmt v0.76.0
Immutable
release. Only release title and notes can be modified.
💥 BREAKING CHANGES
🚀 Features
- 336b2c1 oxfmt: Support html-in-js templates closing a dynamic tag name (#28389) (Yuji Sugiura)
- 0a42af6 formatter_htmlish: Format end tags of omitted
html,headandbody(#28388) (Yuji Sugiura) - 44d8c2b formatter_htmlish: Implement HTML-ish formatter
Htmlvariant (#28272) (Yuji Sugiura) - 36e5ddb oxfmt: Add debug span for reading files (#28204) (leaysgur)
🐛 Bug Fixes
- dbcc358 formatter: Keep arrow conditional body parens before a leading
function/class(#28710) (Yuji Sugiura) - fef809a formatter_htmlish: Handle XHTML (#28703) (leaysgur)
- f3dd201 formatter_htmlish: Keep SVG text under
xml:space="preserve"as written (#28382) (Yuji Sugiura) - fb3aefa formatter: Keep source parens around html-in-js placeholders past comments (#28381) (Yuji Sugiura)
- e738dae formatter: Quote keys added in an HTML event handler with single quotes (#28380) (Yuji Sugiura)
- 2e7a629 oxfmt: Format HTML in a
<script>body as an embedded part (#28379) (Yuji Sugiura) - f00862b formatter: Keep parens around a generic function type in a type assertion (#28173) (vidigoat)
- 9ead5c4 formatter: Handle
this.bandsuper.blikefoo.b(#28200) (leaysgur) - 72a54cf formatter: Break parens of
(a + b)[c]like(a + b).c(#28199) (leaysgur) - b8f4f34 formatter: Print
x.bandx.#bsamely (#28193) (leaysgur) - 9ddccb7 formatter: Keep parens for private field (#28188) (leaysgur)
⚡ Performance
- b6f1ac9 formatter_markdown: Bump parser to 0.0.4 and skip unread work (#28713) (leaysgur)
- 633ee96 formatter_css: Use
u32spans (#28708) (leaysgur) - f680ee1 formatter_yaml: Use
multilineflag for flow scalars (#28707) (leaysgur) - ff7c203 formatter_css: Avoid repeated scans and allocations in values (#28706) (leaysgur)
- 7cd46cb formatter_htmlish: Search script end tags by
<in embedded (#28704) (leaysgur) - 46f8efd formatter_graphql: Print block string lines borrowed from the source (#28701) (leaysgur)
- dce1485 formatter_htmlish: Skip escaping attr values without the chosen quote (#28700) (leaysgur)
- e9392c8 formatter_core: Search line terminators with memchr (#28699) (leaysgur)
- ceb26be formatter_htmlish: Use
charto escape attr quotes (#28697) (leaysgur) - 8239dac parser: Replace dragonbox_ecma with zmij_ecma (#28282) (Boshen)
📚 Documentation
- 303d9e8 formatter: Strengthen
start-token-no-double-parensrationale (#28711) (Yuji Sugiura) - a82ce83 oxfmt: Update unclassified divergence (#28685) (Yuji Sugiura)
- 7f18c20 formatter_htmlish: Note
classandsrcsetare formatted withembeddedLanguageFormatting: off(#28465) (Yuji Sugiura) - 01ed68a oxfmt,formatter_htmlish,formatter: Clean up behavior comments (#28384) (Yuji Sugiura)
- a363c27 formatter_css,formatter_yaml: Point parser citations at AGENTS.md (#28466) (Yuji Sugiura)
- 6586050 formatter_core: Document tab width in text width policy (#28393) (leaysgur)
- 49fbffb formatter_core: Tighten FORMATTER_POLICY (#28206) (leaysgur)