Zum Inhalt springen
Einträge
56
Quellen
1
Zuletzt aktualisiert

Folge Oxc, um die Release Notes in deinen Feed zu holen.

Oxc

oxc crates v0.148.0: Neue Minifier-Optimierungen, Allocator-Änderung

oxc crates v0.148.0 macht Allocator::cursor_ptr und data_end_ptr privat (Breaking Change), bringt neue Minifier-Optimierungen, hängt alle Kommentare im Parser an Knoten an und behebt viele Fehler.

💥 BREAKING CHANGES

  • a31567a allocator: [BREAKING] Make Allocator::cursor_ptr and data_end_ptr private (#26081) (overlookmotel)

🚀 Features

  • 115955d minifier: Drop cases whose condition is statically false (#26172) (Armano)
  • 784e9fa minifier: Invert !0 and !1 in place for boolean context to 1 and 0 (#26050) (Armano)
  • 1e902cc minifier: Expand fold leading assignments into the var decl (#26142) (Armano)
  • 3ed4f6a minifier: Expand de morgan's optimization to allow move of ! (#25930) (Armano)
  • 5672585 parser: Attach all comments to nodes (#25944) (camc314)

🐛 Bug Fixes

  • a3d33dd semantic: Skip body bindings in type parameters and this param (#26169) (Dunqing)
  • 4adfb4c semantic: Validate chained continue labels (#26157) (camc314)
  • b874f48 ecmascript: Math.round only exact half ties (#26150) (camc314)
  • a625378 minifier: Coerce omitted indexOf search argument (#26149) (camc314)
  • dc7398b ecmascript: Trim trailing whitespace in string to number (#26148) (camc314)
  • 243b685 transformer/object-rest: Lower multiple declarators correctly (#26147) (camc314)
  • dc09a3a parser: Avoid panic on escaped string export names (#26146) (camc314)
  • e412cf2 linter: Clamp invalid JS plugin locations (#26144) (camc314)
  • c3dedc9 semantic: Skip function body bindings in parameters (#26099) (Dunqing)
  • e74de61 transform-react: Match Babel diagnostic reporting (#26128) (Boshen) …

Originalquelle(öffnet in neuem Tab)Problem melden

Oxc

oxlint v1.81.0 & oxfmt v0.66.0: Vorschlag für nextjs/no-typos

oxlint v1.81.0 ergänzt einen Vorschlag für nextjs/no-typos und behebt zahlreiche Fehler in Linter-Regeln, LSP und JS-Plugins; oxfmt v0.66.0 ist mit aufgeführt.

Table of Contents

  • Oxlint v1.81.0
  • Oxfmt v0.66.0

Oxlint v1.81.0

🚀 Features

  • 60b945d linter/nextjs/no-typos: Implement suggestion (#26091) (Mikhail Baev)

🐛 Bug Fixes

  • 33ac4b0 linter/lsp: Prevent tsgolint from holding onto processes (#25570) (Adrian Schaedle)
  • baf4b1e linter/import/no-empty-named-blocks: Make empty value import removal a suggestion (#26155) (camc314)
  • 77cfaec linter/eslint/object-shorthand: Preserve __proto__ semantics (#26154) (camc314)
  • fa3c082 linter/unicorn/prefer-set-size: Ignore shadowed Set constructors (#26153) (camc314)
  • e412cf2 linter: Clamp invalid JS plugin locations (#26144) (camc314)
  • d86c113 linter: Normalize reversed JS plugin locations (#26138) (camc314)
  • 73c09b2 linter/eslint/no-use-before-define: Run on JS, JSX files (#26114) (camc314)
  • 03ef0f2 linter/unicorn/no-useless-spread: Treat typed arrays as a distinct value hint (#26067) (Aadharsh Pannirselvam)
  • bd15905 linter/react/no-unstable-nested-components: Check nested component object property names (#26101) (camc314)
  • 3910e2b linter/eslint/no-unassigned-vars: Skip Svelte and Vue files (#26042) (Hamody We)
  • 047f7ca linter/plugins: Fix interaction between JS plugins and Vue rules (#26080) (overlookmotel)
  • 8531b9b linter/plugins: Alter method for obtaining mutable Program when sending AST to JS plugins (#26077) (overlookmotel)
  • dc464ff linter/unicorn/prefer-math-min-max: Avoid unsafe autofix (#26060) (camc314) …

Originalquelle(öffnet in neuem Tab)Problem melden

Oxc

oxc crates v0.147.0: switch-Faltung im Minifier, schnellere Codegen-Pakete

oxc crates v0.147.0 faltet im Minifier switch-Anweisungen außerhalb von Blöcken, behebt Fehler in Codegen, Parser und Minifier und verbessert die Leistung der Codegen-Pakete.

🚀 Features

  • b6e9e5e minifier: Fold switch stmt whose parent is not block stmt (#25403) (Armano)

🐛 Bug Fixes

  • 8db1053 codegen: Require sourcemap for example (#26047) (camc314)
  • 8a9bdbd estree: Include decorators in FormalParameterRest spans (#26021) (camc314)
  • 6f0c7cf minifier: Avoid merging if to for in sloppy mode when containing function declaration (#25638) (sapphi-red)
  • 2cde1f6 rust: Address nightly deprecations (#25998) (Boshen)
  • 6c5ad1b codegen: Only add mapping names for PrivateIdentifiers which have changed (#25958) (overlookmotel)
  • 2dad1e0 parser: Track irregular line terminators in trivia (#25947) (camc314)
  • 58ba651 minifier: Avoid merging if to for when the body contains a function declaration (#25637) (sapphi-red)
  • a185ac3 codegen: Print # before private identifier in TS signature key (#25938) (overlookmotel)
  • af82a07 minifier: Keep unary + when the other operand has side effects (#25645) (Kotaro Chikuba)

⚡ Performance

  • 20711f4 packages/codegen: Remove node param from write and markMap functions in sourcemap builds (#25989) (overlookmotel)
  • 29a7749 packages/codegen: Pass start and end to write and mark functions (#25986) (overlookmotel)
  • 8ae741b packages/codegen: Replace write calls with writeIdent (#25984) (overlookmotel)
  • a78ed30 packages/codegen: Remove last param from writeWithMapNamed (#25983) (overlookmotel) …

Originalquelle(öffnet in neuem Tab)Problem melden

Oxc

oxlint v1.80.0 & oxfmt v0.65.0: Decorators bleiben vor export erhalten

oxlint v1.80.0 liefert einen Vorschlag für typescript/no-confusing-non-null-assertion und behebt mehrere Regelfehler, oxfmt v0.65.0 bewahrt Klassen-Decorators vor export bei unterdrückten Anweisungen.

Table of Contents

  • Oxlint v1.80.0
  • Oxfmt v0.65.0

Oxlint v1.80.0

🚀 Features

  • 70c3e35 linter/typescript/no-confusing-non-null-assertion: Implement suggestion (#26012) (Mikhail Baev)

🐛 Bug Fixes

  • 17ae11c linter/oxc/double-comparisons: Handle grouped logical expressions (#26044) (camc314)
  • 8a353a7 linter/eslint/no-control-regex: Refine help message text (#25996) (Rahul Mishra)
  • 8a9bdbd estree: Include decorators in FormalParameterRest spans (#26021) (camc314)
  • 8d94cd1 linter/eslint/no-useless-rename: Preserve type modifiers (#26020) (Cameron)
  • 2cde1f6 rust: Address nightly deprecations (#25998) (Boshen)
  • 51d36d7 linter/vue: Resolve vue imports via shared import helpers (#25903) (Connor Shea)
  • 83a68d2 linter/react/no-react-children: Resolve react imports by symbol (#25901) (Connor Shea)
  • 124e196 linter: Resolve globals by reference, not by name (#25905) (Connor Shea)
  • a701bcc linter: Remove invalid React compiler doc links (#25900) (Boshen)

📚 Documentation

  • 9b7e153 linter: Set version to 1.79.0 for rules shipped in 1.79.0 (#25902) (connorshea)

Oxfmt v0.65.0

🐛 Bug Fixes

  • bf37dd5 formatter: Preserve class decorators before export when the statement is suppressed (#26034) (leaysgur)

Originalquelle(öffnet in neuem Tab)Problem melden

Oxc

oxc crates v0.146.0: Bessere Negation im Minifier, Codegen-Fixes

oxc crates v0.146.0 verbessert die Negation von Ausdrücken im Minifier, behebt Codegen- und isolated-declarations-Fehler und steigert die Leistung der Codegen-Pakete.

🚀 Features

  • 83cb516 minifier: Improve negation of expressions in boolean context (#25755) (Armano)

🐛 Bug Fixes

  • 82a790d codegen: Narrow printSync input type (#25871) (camc314)
  • 134fb22 isolated-declarations: Preserve unresolved parameter types (#25909) (Dunqing)
  • 526c2b3 codegen: Remove deprecated test APIs (#25889) (camc314)
  • 344a9b2 codegen: Align enum template sourcemaps (#25872) (camc314)

⚡ Performance

  • 603b904 packages/codegen: Check sourceText only once (#25887) (overlookmotel)
  • 5ef0c93 minifier: Unwrap all unary exprs without creating dummy expressions (#25891) (Armano)
  • 8783524 packages/codegen: Remove loop from growMappingBuffer (#25886) (overlookmotel)
  • b6b14c0 packages/codegen: Remove redundant branch (#25885) (overlookmotel)
  • be6adf0 packages/sourcemap: Make location passed to recordSourceMapping always a number (#25884) (overlookmotel)
  • f720f15 packages/codegen: Take named-mapping only code off hot path in recordSourceMapping (#25883) (overlookmotel)
  • a734af5 packages/codegen: Remove redundant setting of last in printImportAttributes and printIf (#25882) (overlookmotel)
  • c6e44c6 packages/codegen: Combine 2 writes in printJSXElement (#25881) (overlookmotel)
  • 8801662 packages/codegen: Remove redundant mapping from printParams (#25880) (overlookmotel)

📚 Documentation

  • 5ad330e packages/codegen: Reformat comments (#25876) (overlookmotel)

Originalquelle(öffnet in neuem Tab)Problem melden

Oxc

oxc crates v0.145.0: printSync gibt Objekt zurück, neues oxc-codegen-Paket

oxc crates v0.145.0 lässt printSync im Codegen ein Objekt zurückgeben (Breaking Change), bringt ein oxc-codegen-Paket mit Source-Map-Unterstützung, Property-Name-Mangling im Minifier und ein Relay-Transform-Plugin.

💥 BREAKING CHANGES

  • 365274e packages/codegen: [BREAKING] printSync return an object (#25720) (overlookmotel)

🚀 Features

  • 6a7eb60 packages/codegen: Alter capitalization of sourceFilename option (#25854) (overlookmotel)
  • 300763f packages/codegen: Add full source map support (#25585) (camc314)
  • a169e4a napi/minify: Expose property name mangling options (#24741) (Dunqing)
  • 2f5cdb1 minifier: Add property name mangling (#24740) (Dunqing)
  • 4922141 mangler: Deduplicate private accessor names (#25601) (camc314)
  • 1c4f519 napi: Add Relay transform plugin (#25503) (Boshen)
  • a4478e9 codegen: Add oxc-codegen package (#25488) (overlookmotel)

🐛 Bug Fixes

  • 0fbcf64 codegen: Validate sourcemap options (#25860) (camc314)
  • 345f981 react_compiler: Skip node_modules by default (#25859) (Boshen)
  • ab81f3f minifier: Drop side-effect-free additions (#25639) (Dunqing)
  • 241c559 napi/minify: Accept RegExp for property filters (#25827) (Dunqing)
  • 4cc7ea4 codegen: Reject invalid indent options (#25807) (camc314)
  • 53f9295 isolated-declarations: Preserve undefined for defaulted any (#25292) (camc314)
  • 8ab883a codegen: Preserve property key annotations (#25766) (Dunqing)
  • b13fd48 minifier: Model uninitialized module vars as undefined (#25497) (Dunqing)
  • f6000ac ecmascript: Fold ** with Number::exponentiate, not IEEE pow (#25644) (Kotaro Chikuba)
  • b846abc isolated-declarations: Handle ambient expando properties (#25655) (camc314) …

Originalquelle(öffnet in neuem Tab)Problem melden

Oxc

oxlint v1.79.0 & oxfmt v0.64.0: react-compiler-Regel aufgeteilt

Oxlint v1.79.0 teilt die Regel react/react-compiler in Regeln pro Kategorie auf (Breaking Change), überspringt node_modules standardmäßig im React Compiler, ergänzt einen Vorschlag für no-empty-object-type und behebt mehrere Regelfehler; zudem erscheint oxfmt v0.64.0.

Table of Contents

  • Oxlint v1.79.0
  • Oxfmt v0.64.0

Oxlint v1.79.0

💥 BREAKING CHANGES

  • 8c4552d linter: [BREAKING] Split react/react-compiler into per-category rules (#25500) (Boshen)

See React Compiler Support for details.

🚀 Features

  • 9b7394e linter/typescript/no-empty-object-type: Implement suggestion (#25833) (Mikhail Baev)

🐛 Bug Fixes

  • 345f981 react_compiler: Skip node_modules by default (#25859) (Boshen)
  • 2f40afa linter/unicorn/no-array-callback-reference: Ignore effect library imports (#25857) (Michaël Bitard)
  • 7b565a0 linter: Align React Compiler rule categories (#25840) (Boshen)
  • 228e8e0 linter: Resolve inactive React compiler rules (#25830) (Boshen)
  • f8e4884 linter/eslint/no-useless-constructor: Allow parameter properties (#25811) (camc314)
  • e4b6993 linter: Report exhaustive effect dependencies (#25829) (Boshen)
  • 742e25f linter/eslint/no-return-assign: Anchor diagnostic on return stmt (#25803) (camc314)
  • b831ca8 react-compiler: Improve derived state diagnostic (#25804) (Boshen)
  • 5908c87 linter/jest/prefer-mock-return-shorthand: Preserve implementations using this (#25802) (camc314)
  • f6b2265 linter/eslint/no-redeclare: Run in ES modules, skipping only the globals check (#25691) (Hamody We)
  • ca9f553 linter/unicorn/prefer-default-parameters: Mark fixer as a suggestion (#25801) (camc314) …

Originalquelle(öffnet in neuem Tab)Problem melden

Oxc

oxc crates v0.144.0: AST-Breaking-Changes und ClassHeritage

Die oxc crates v0.144.0 bringen mehrere AST-Breaking-Changes wie die Gruppierung in ClassHeritage, neue React-Transform-Optionen in napi, ArenaVec::push_mut sowie Korrekturen in Codegen, Minifier und Parser.

💥 BREAKING CHANGES

  • a33788e ast: [BREAKING] Group class heritage into ClassHeritage (#25360) (camc314)
  • 5c5cdcd ast: [BREAKING] Narrow TSInterfaceHeritage::expression to TSTypeName (#24360) (camc314)
  • 6be314f ast: [BREAKING] Remove duplicated VariableDeclarator::kind (#25319) (camc314)
  • 44fd320 ast: [BREAKING] Split TS external modules & Namespace Declarations (#25284) (camc314)

🚀 Features

  • 9a37c41 napi: Restructure React transform options (#25326) (Boshen)
  • b3c1b30 allocator: Add ArenaVec::push_mut (#25338) (overlookmotel)

🐛 Bug Fixes

  • bbd6ed3 codegen: Wrap string literal in parens after directives (#25435) (overlookmotel)
  • d07a293 codegen: Preserve cast parentheses in conditional tests (#25115) (camc314)
  • 8b7d441 codegen: Preserve satisfies parentheses before bitwise operators (#25113) (camc314)
  • e0fb2d7 minifier: Avoid unsafe return removal in labeled blocks (#25406) (Armano)
  • c49f4ce parser: Preserve terminal license comments (#25400) (camc314)
  • 9d19ab3 transform_react: Downgrade nonfatal compiler diagnostics (#25418) (Boshen)
  • 937825c react_compiler: Disable exhaustive memo validation by default (#25417) (Boshen)
  • 12937b3 parser: Reject comma expressions in class fields (#25385) (Cameron)
  • 7d8a9b5 react_compiler: Preserve hook spans for React Refresh (#25393) (Boshen)
  • 9e93ba6 parser: Reset auto-accessor initializer context (#25384) (camc314) …

Originalquelle(öffnet in neuem Tab)Problem melden

Oxc

oxlint v1.78.0 & oxfmt v0.63.0: Neue Regeln jsdoc/no-blank-blocks, one-var

Oxlint v1.78.0 ergänzt die Regeln jsdoc/no-blank-blocks und eslint/one-var, erweitert jsx-a11y/anchor-has-content um Optionen und behebt zahlreiche Regelfehler; zudem erscheint oxfmt v0.63.0.

Table of Contents

  • Oxlint v1.78.0
  • Oxfmt v0.63.0

Oxlint v1.78.0

🚀 Features

  • ccb8fe8 linter/jsdoc: Implement no-blank-blocks rule (#25207) (Mikhail Baev)
  • d4a897c linter/eslint: Implement one-var rule (#24470) (Cole Ellison)
  • 5ab9340 linter/jsx-a11y/anchor-has-content: Add options to match eslint (#24571) (Cole Ellison)

🐛 Bug Fixes

  • b746e00 linter/eslint/no-implicit-coercion: Preserve template coercion whitespace (#25470) (camc314)
  • a92c541 linter: Preserve source text for JS plugin ignore fixes (#25280) (Norcleeh)
  • 675c840 linter/eslint/prefer-promise-reject-errors: Handle parenthesized calls (#25378) (camc314)
  • 1703739 linter/unicorn/new-for-builtins: Ignore optional chains (#25411) (tanakalucky)
  • 95ece63 linter/unicorn/prefer-code-point: Downgrade the auto-fix to dangerous (#25412) (leemr)
  • c451a0e linter/vitest: Validate consistent-test-filename regex patterns (#25408) (Mikhail Baev)
  • 937825c react_compiler: Disable exhaustive memo validation by default (#25417) (Boshen)
  • f0f7dae linter/eslint/no-unused-vars: Report invalid regex options (#25380) (Cameron)
  • 44e73fd linter/unicorn/prefer-array-flat: Fix concat.apply suggestions (#25373) (Cameron)
  • 6846a9a linter/react/rules-of-hooks: Detect constructor callbacks (#25377) (camc314)
  • b247a9d linter/unicorn/new-for-builtins: Support Float16Array (#25382) (tanakalucky) …

Originalquelle(öffnet in neuem Tab)Problem melden

Oxc

oxc crates v0.143.0: React-Compiler-Binding und neue Minifier-Optimierungen

Die oxc crates v0.143.0 enthalten mehrere AST- und Allocator-Breaking-Changes, ein neues React-Compiler-Transform-Binding in napi sowie neue Minifier-Optimierungen wie das Falten von Ganzzahl-Potenzen, -Division und -Rest.

💥 BREAKING CHANGES

  • 4120da0 semantic: [BREAKING] Return borrowed JSDoc so the parse cache works (#25186) (Connor Shea)
  • f0a41c8 allocator: [BREAKING] Remove ArenaBox::dangling method (#25236) (overlookmotel)
  • 067da8c ast: [BREAKING] Store single parameter in TSIndexSignature::parameter (#25154) (camc314)
  • a0c7788 ast: [BREAKING] Change TSIndexSignatureName::name to Ident (#25150) (camc314)
  • 1bdedd1 ast: [BREAKING] Introduce ExportDeclaration, ExportFromDeclaration (#25095) (camc314)
  • c917f20 ast: [BREAKING] Introduce ArrowFunctionBody enum (#24987) (camc314)
  • 7e1199c ast: [BREAKING] Remove conversion to Box from AST builder methods (#25038) (overlookmotel)

🚀 Features

  • 3c8312e allocator: Make Box Send + Sync when the type it contains is (#25242) (overlookmotel)
  • cb5bc08 ast: Derive GetSpan for Comment (#25147) (leaysgur)
  • 8541e18 ast_tools: Generate minifier scope collector (#25088) (camc314)
  • 5acdae2 ecmascript: Skip transparent TS expressions (#25072) (camc314)
  • 85d0f4d napi: Add React Compiler transform binding (#24934) (Boshen)
  • 70d6ece minifier: Fold safe integer exponentiation (#25009) (Dunqing)
  • 73fc747 minifier: Enable termination statement optimization for do while (#24921) (Armano)
  • 5eadfdb minifier: Fold safe integer division and remainder (#24981) (Dunqing)

🐛 Bug Fixes …

Originalquelle(öffnet in neuem Tab)Problem melden

Oxc

oxlint v1.77.0 & oxfmt v0.62.0: AST-Breaking-Changes, bessere GitHub-Annotationen

Oxlint v1.77.0 bringt AST-Breaking-Changes, erweitert bad-char-at-comparison, zeigt in GitHub-Annotationen Datei, Zeile und Spalte an und behebt viele Linter-Fehler; zudem erscheint oxfmt v0.62.0.

Table of Contents

  • Oxlint v1.77.0
  • Oxfmt v0.62.0

Oxlint v1.77.0

💥 BREAKING CHANGES

  • 4120da0 semantic: [BREAKING] Return borrowed JSDoc so the parse cache works (#25186) (Connor Shea)
  • 067da8c ast: [BREAKING] Store single parameter in TSIndexSignature::parameter (#25154) (camc314)
  • 1bdedd1 ast: [BREAKING] Introduce ExportDeclaration, ExportFromDeclaration (#25095) (camc314)
  • c917f20 ast: [BREAKING] Introduce ArrowFunctionBody enum (#24987) (camc314)

🚀 Features

  • 0b9f83c linter/oxc/bad-char-at-comparison: Expand coverage (#25001) (Mikhail Baev)
  • 1fb3d70 oxlint: Show file:line:col in github format annotation messages (#25020) (Faris Tristan Fabian)

🐛 Bug Fixes

  • a64b65d linter/unicorn/new-for-builtins: Detect parenthesized member expression object (#25249) (tanakalucky)
  • 9d4592c linter: Reject duplicate JS plugin names (#25243) (camc314)
  • 3213e7a linter: Ignore unsigned shifts in prefer-math-trunc (#25240) (camc314)
  • 06579da linter/eslint/prefer-promise-reject-errors: Handle ambient error variables (#25238) (camc314)
  • 6a7cd90 linter/oxc/no-async-await: Bound token lookup (#25222) (camc314)
  • d8e390a linter/oxc/bad-bitwise-operator: Bound token lookups (#25220) (camc314)
  • 351a777 linter/import/no-duplicates: Bound token lookup (#25219) (camc314)
  • 4f70fb6 linter/import/consistent-type-specifier-style: Bound token lookup (#25218) (camc314) …

Originalquelle(öffnet in neuem Tab)Problem melden

Oxc

oxc crates v0.142.0: AstBuild-Schranke verschärft, Visitor VisitJsMut

Die oxc crates v0.142.0 verschärfen die Schranke des AstBuild-Traits (Breaking Change), bringen viele neue Minifier-Optimierungen, den Visitor VisitJsMut und neue Parser-Fehlermeldungen sowie Minifier-Fehlerbehebungen.

💥 BREAKING CHANGES

  • 1ac5ac7 ast: [BREAKING] Tighten bound on AstBuild trait (#24925) (overlookmotel)

🚀 Features

  • c7c5696 minifier: Fold parenthesized boolean ternary tests (#24968) (Dunqing)
  • 82c5806 minifier: Fold sequence branches in boolean ternaries (#24943) (Dunqing)
  • cc623d9 ast_visit: Add VisitJsMut visitor (#24828) (Boshen)
  • b31713a minifier: Add new IsTerminated trait and use it in exit-point optimization (#24950) (Armano)
  • e9e0f24 minifier: Shorten integer zero comparisons (#24933) (Dunqing)
  • 34f5559 minifier: Convert switch with one case to if statement (#24611) (Armano)
  • 9107e74 str: Add static_str! macro (#24887) (overlookmotel)
  • 4d6f623 parser: Emit error for type args in JS files (#24896) (camc314)
  • ec08afc ast: Re-export Ident from oxc_ast crate (#24861) (overlookmotel)
  • 73cfdfa oxc: Re-export oxc_str types from oxc crate (#24860) (overlookmotel)
  • 11f5d1f ast_visit: Add Utf8ToUtf16::convert_program_and_comments (#24859) (overlookmotel)

🐛 Bug Fixes

  • cb5acfb minifier: Optimize termination statements in labeled statements (#24813) (Armano)
  • 4618300 minifier: Avoid longer numeric constant folds (#24875) (Dunqing)
  • f7971f1 minifier: Keep side effects in typeof comparisons (#24940) (sapphi-red)
  • 4597d6f minifier: Keep side effects when compressing == true to == 1 (#24939) (sapphi-red)
  • c3a48df minifier: Keep side effects values in template literals (#24938) (sapphi-red) …

Originalquelle(öffnet in neuem Tab)Problem melden

Oxc

oxlint v1.76.0 & oxfmt v0.61.0: Neue Regeln und Schema-Prüfungen

Oxlint v1.76.0 ergänzt neue Regeln wie bad-match-all-arg, exports-style und id-denylist sowie Konfigurationsschema-Prüfungen und behebt zahlreiche Fehler; zudem erscheint oxfmt v0.61.0.

Table of Contents

  • Oxlint v1.76.0
  • Oxfmt v0.61.0

Oxlint v1.76.0

🚀 Features

  • 8d31dfa linter: Verify eslint/no-restricted-globals config schema (#24598) (vigneshwar)
  • 7069621 linter: Verify jest/vitest prefer-lowercase-title config schema (#24724) (Bartok)
  • 016cf2a linter/oxc: Add bad-match-all-arg rule (#24900) (camc314)
  • cdc941e linter/n: Implement exports-style rule (#24087) (Mikhail Baev)
  • 1ad6f6c linter/eslint: Implement id-denylist rule (#24632) (Mikhail Baev)
  • 678bbb5 linter/typescript-eslint: Implement suggestion for class-literal-property-style rule (#24766) (Mikhail Baev)

🐛 Bug Fixes

  • a5f3a0e linter: Mark missing suggestions as pending (#24956) (Mikhail Baev)
  • a065946 oxlint: Absolutize explicit CLI paths even with --no-ignore (#24646) (Bez Sahara)
  • 17688bb linter/jsx-a11y/interactive-supports-focus: Match eslint behavior for custom components (#24780) (Cole Ellison)
  • 0aef19e linter/typescript/no-confusing-non-null-assertion: Report in and instanceof (#24825) (Mikhail Baev)
  • 361dce9 linter: Unicorn/no-array-reverse and no-array-sort replacements should be suggestions (#24848) (klem)
  • 9213560 config: Preserve defineConfig field JSDoc (#24326) (周星星同学)
  • 334d884 linter/node/no-top-level-await: Clarify diagnostic (#24803) (camc314)
  • b9fc6af linter/eslint/func-names: Ignore overloads (#24801) (camc314) …

Originalquelle(öffnet in neuem Tab)Problem melden

Oxc

oxc crates v0.141.0: MetaProperty aufgeteilt in ImportMeta und NewTarget

Die oxc crates v0.141.0 spalten MetaProperty in ImportMeta und NewTarget auf und verschieben IdentBuildHasher nach oxc_str (Breaking Changes), außerdem gibt es neue Minifier-Optimierungen sowie Verbesserungen bei Parser, Semantic und Allocator.

💥 BREAKING CHANGES

  • 5293431 str: [BREAKING] Move IdentBuildHasher to oxc_str crate (#24717) (overlookmotel)
  • 54cc121 ast: [BREAKING] Split MetaProperty into ImportMeta and NewTarget (#24557) (camc314)

🚀 Features

  • 87823d0 minifier: Merge combined assign expression in conditional expression (#24707) (sapphi-red)
  • 03a54c9 minifier: Merge assign expression against member expression in conditional expression (#24706) (sapphi-red)
  • effd3c8 allocator: Add Vec::from_raw_parts_in (#24732) (overlookmotel)
  • ddacf61 semantic: Add context notes for strict assignments (#24728) (camc314)
  • 7e9b84a data_structures: Add implements! macro (#24721) (overlookmotel)
  • 39e141b data_structures: Add const_str_eq function (#24720) (overlookmotel)
  • cc3d17f semantic: Add context notes for reserved keyword diagnostic (#24715) (camc314)
  • 4c71560 parser: More friendly error for spread element in dynamic imports (#24705) (sapphi-red)
  • 7b045cd minfier: Drop last break from last switch case (#24673) (Armano)
  • 7d3c178 minifier: Remove unreachable recursive functions (#24125) (Dunqing)
  • 94f99b3 ast: Allow NONE to be passed to AST builder methods where Option<ArenaVec> is expected (#24629) (overlookmotel)
  • 77230c5 ast: Accept arrays for ArenaVec params of AST builder methods (#24621) (overlookmotel)
  • f08b152 allocator: Implement FromIn for array to Vec conversion (#24620) (overlookmotel) …

Originalquelle(öffnet in neuem Tab)Problem melden

Oxc

oxlint v1.75.0 & oxfmt v0.60.0: Type-Aware Linting jetzt stabil

Oxlint v1.75.0 hebt Type-Aware Linting auf stabil, ergänzt die Regeln no-top-level-await und function-component-definition, meldet Fehler bei ungültigen Glob-Mustern und verbessert die Leistung von prefer-event-target; zudem erscheint oxfmt v0.60.0.

Table of Contents

  • Oxlint v1.75.0
  • Oxfmt v0.60.0

Oxlint v1.75.0

🏆 Highlights

🚀 Features

  • dd18383 linter/node: Implement no-top-level-await rule (#24634) (Connor Shea)
  • 16a65f2 linter/react: Implement function-component-definition rule (#24471) (Cole Ellison)
  • 7f1f585 linter: Reuse jest/padding-around-test-blocks for vitest/padding-around-test-blocks (#24519) (Mikhail Baev)
  • 99978a8 linter/import/consistent-type-specifier-style: Support prefer-top-level-if-only-type-imports option (#24502) (camc314)

🐛 Bug Fixes

  • e81b2ff oxlint,oxfmt: Report error for invalid glob patterns (#24744) (leaysgur)
  • 0184ad6 linter/unicorn/no-useless-undefined: Preserve valid parameter defaults (#24686) (camc314)
  • 8694167 linter/eslint/prefer-destructuring: Handle typed declarations (#24616) (camc314)
  • 477cf0f linter/eslint/no-throw-literal: Handle assigned errors (#24561) (Cole Ellison)
  • ac9200a linter: Detect React components from returned JSX (#24521) (camc314)
  • c0a6522 linter/eslint/no-useless-computed-key: Allow TS syntax in computed keys (#24524) (Cole Ellison)

⚡ Performance

  • 346eed1 linter/unicorn/prefer-event-target: Only run on Class and NewExpression nodes (#24685) (Mikhail Baev) …

Originalquelle(öffnet in neuem Tab)Problem melden

Oxc

Oxc crates Version 0.140.0 mit neuen Minifier-Optimierungen

Die oxc crates v0.140.0 bringen neue Minifier-Optimierungen wie das Entfernen unerreichbaren Codes, enableEmitHookGuards-Codegen im React Compiler und neue Semantic-Funktionen sowie mehrere Fehlerbehebungen.

🚀 Features

  • 5b20828 minifier: Extract sequence expression from expressions (#22003) (Armano)
  • 616bfa2 minifier: Remove unreachable code after terminating statements (#24441) (Dunqing)
  • ddab89a data_structures: Add likely and unlikely functions (#24368) (overlookmotel)
  • a3a39f9 react_compiler: Implement enableEmitHookGuards codegen (#24329) (Boshen)
  • b79eef7 minifier: Apply De Morgan's law to negated comparison chains in jump guards and loop tests (#24279) (Dunqing)
  • 34ff7b4 minifier: Drop write-only property assignments to unused local bindings by default (#24112) (Dunqing)
  • 1b829d8 semantic: Record const enums in EnumData (#24268) (Dunqing)
  • ba0944c semantic: Add Scoping::set_symbol_span (#24221) (camc314)

🐛 Bug Fixes

  • edf781d minifier: Keep reads of never-assigned uninitialized bindings (#24452) (Dunqing)
  • 7d33363 minifier: Preserve guaranteed throws from class heritage evaluation (#24349) (Dunqing)
  • 058a62f semantic: Track ambient contexts in SemanticBuilder (#24327) (camc314)
  • 721eb0b transformer/decorator: Scope accessor class binding (#24330) (camc314)
  • 1ebdce3 semantic: Allow reserved keywords in ambient declaration types (#24325) (camc314)
  • 460176a track-memory-allocations: Exclude arena chunks from Sys allocs (#24292) (Dunqing)
  • af4922b transformer: Clear lowered namespace redeclarations (#24300) (camc314)
  • ffd2765 semantic: Mark declared computed MethodDefinitions as type references (#24296) (camc314) …

Originalquelle(öffnet in neuem Tab)Problem melden