2.4.6
Patch Changes
-
#9305
40869b5Thanks @ematipico! - Fixed #4946:noUnreachableno longer reports code insidefinallyblocks as unreachable when there is abreak,continue, orreturnin the correspondingtrybody. -
#9303
464910cThanks @ematipico! - Fixed #2786: The formatter no longer produces different output on subsequent runs when acaseclause has a trailing line comment followed by a single block statement. -
#9324
6294aa2Thanks @arendjr! - Fixed#7730:useAnchorContentnow recognises SolidJS'sinnerHTMLthe same way as React'sdangerouslySetInnerHTML. -
#9298
1003229Thanks @Netail! - Fixed#9296, so comments are moved along with the attributes in the useSortedAttributes assist rule code fix. -
#9329
855b451Thanks @dyc3! - Improved performance ofnoEmptyBlockStatements. The rule is now smarter about short-circuiting its logic. -
#9326
85dfe9bThanks @dyc3! - Improved performance fornoImportCyclesby explicitly excluding node_modules from the cycle detection. The performance improvement is directly proportional to how big your dependency tree is. -
#9323
d5ee469Thanks @ematipico! - Fixed #9217 and biomejs/biome-vscode#959, where the Biome language server didn't correctly resolve the editor settingconfigurationPathwhen the provided value is a relative path. -
#9302
86fbc70Thanks @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
innerHTMLinuseAnchorContentby @arendjr in #9324 - fix(lsp): correctly resolve
configurationPathby @ematipico in #9323 - perf(noImportCycles): exclude
node_modulesfrom 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