github biomejs/biome @biomejs/biome@2.4.6
Biome CLI v2.4.6

5 hours ago

2.4.6

Patch Changes

  • #9305 40869b5 Thanks @ematipico! - Fixed #4946: noUnreachable no longer reports code inside finally blocks as unreachable when there is a break, continue, or return in the corresponding try body.

  • #9303 464910c Thanks @ematipico! - Fixed #2786: The formatter no longer produces different output on subsequent runs when a case clause has a trailing line comment followed by a single block statement.

  • #9324 6294aa2 Thanks @arendjr! - Fixed #7730: useAnchorContent now recognises SolidJS's innerHTML the same way as React's dangerouslySetInnerHTML.

  • #9298 1003229 Thanks @Netail! - Fixed #9296, so comments are moved along with the attributes in the useSortedAttributes assist rule code fix.

  • #9329 855b451 Thanks @dyc3! - Improved performance of noEmptyBlockStatements. The rule is now smarter about short-circuiting its logic.

  • #9326 85dfe9b Thanks @dyc3! - Improved performance for noImportCycles by explicitly excluding node_modules from the cycle detection. The performance improvement is directly proportional to how big your dependency tree is.

  • #9323 d5ee469 Thanks @ematipico! - Fixed #9217 and biomejs/biome-vscode#959, where the Biome language server didn't correctly resolve the editor setting configurationPath when the provided value is a relative path.

  • #9302 86fbc70 Thanks @sepagian! - Fixed #9300: Lowercase component member expressions like <form.Field> in Svelte and Astro files are now correctly formatted.

    -<form .Field></form.Field>
    +<form.Field></form.Field>

What's Changed

  • fix(js_analyze): move comments with useSortedAttributes action by @Netail in #9298
  • fix(formatter): switch case comments by @ematipico in #9303
  • refactor(markdown-parser): promote list structural tokens from skipped trivia to explicit CST nodes by @jfmcdowell in #9274
  • fix(noUnreachable): handle dead implicit jumps in finally by @ematipico in #9305
  • refactor(markdown-parser): align newline/prescan paragraph-break checks by @jfmcdowell in #9197
  • refactor(markdown-parser): promote blank lines between list items to MdNewline nodes by @jfmcdowell in #9313
  • fix(linter): support SolidJS's innerHTML in useAnchorContent by @arendjr in #9324
  • fix(lsp): correctly resolve configurationPath by @ematipico in #9323
  • perf(noImportCycles): exclude node_modules from cycle detection by @dyc3 in #9326
  • refactor(css_parser): split function parser into modules by @denbezrukov in #9325
  • refactor(markdown-parser): promote fenced code block skipped trivia to explicit CST nodes by @jfmcdowell in #9321
  • refactor(css): rename operator_token field to operator by @denbezrukov in #9327
  • perf: add .skip(1) to .ancestors() calls in a bunch of places by @dyc3 in #9330
  • perf(noEmptyBlockStatements): short circuit to avoid traversing descendants for comments by @dyc3 in #9329
  • fix: lowercase component member expressions in Astro/Svelte by @sepagian in #9302
  • chore: align parser options struct name by @Netail in #9332
  • feat(css): use ScssExpression in ScssNestingDeclaration and CssGenericProperty by @denbezrukov in #9328
  • refactor(css): align scss expression node variants by @denbezrukov in #9340
  • feat(css): use expression in page by @denbezrukov in #9342
  • ci: release by @github-actions[bot] in #9301

New Contributors

Full Changelog: https://github.com/biomejs/biome/compare/@biomejs/biome@2.4.5...@biomejs/biome@2.4.6

Don't miss a new biome release

NewReleases is sending notifications on new releases.