Ir al contenido
verdict:

Biome 2.3.5

digest

note: la síntesis y las notas de la versión están en inglés

note: sin síntesis para esta release digest

Las releases digest se listan sin síntesis. Las notas de la versión originales de esta versión están aquí abajo.

release-notesgithub.com/biomejs/biome · 168 líneas
  1. ## 2.3.5
  2. ### Patch Changes
  3. - [#8023](https://github.com/biomejs/biome/pull/8023) [`96f3e77`](https://github.com/biomejs/biome/commit/96f3e778a38aa5f48e67eb44b545cba6330dc192) Thanks [@ematipico](https://github.com/ematipico)! - Added support Svelte syntax `{@html}`. Biome now is able to parse and format the Svelte syntax [`{@html}`](https://svelte.dev/docs/svelte/@html):
  4. ```diff
  5. -{@html 'div'}
  6. +{@html 'div'}
  7. ```
  8. The contents of the expressions inside the `{@html <expression>}` aren't formatted yet.
  9. - [#8058](https://github.com/biomejs/biome/pull/8058) [`5f68bcc`](https://github.com/biomejs/biome/commit/5f68bcc9ae9208366bf5aed932b3ae3082ba21b1) Thanks [@ematipico](https://github.com/ematipico)! - Fixed a bug where the Biome Language Server would enable its project file watcher even when no project rules were enabled.
  10. Now the watching of nested configuration files and nested ignore files is delegated to the editor, if their LSP spec supports it.
  11. - [#8023](https://github.com/biomejs/biome/pull/8023) [`96f3e77`](https://github.com/biomejs/biome/commit/96f3e778a38aa5f48e67eb44b545cba6330dc192) Thanks [@ematipico](https://github.com/ematipico)! - Added support Svelte syntax `{@render}`. Biome now is able to parse and format the Svelte syntax [`{@render}`](https://svelte.dev/docs/svelte/@render):
  12. ```diff
  13. -{@render sum(1, 2) }
  14. +{@render sum(1, 2)}
  15. ```
  16. The contents of the expressions inside the `{@render <expression>}` aren't formatted yet.
  17. - [#8006](https://github.com/biomejs/biome/pull/8006) [`f0612a5`](https://github.com/biomejs/biome/commit/f0612a511449944cacfe01f6884ca52b4f50e768) Thanks [@Bertie690](https://github.com/Bertie690)! - Updated documentation and diagnostic for `lint/complexity/noBannedTypes`. The rule should have a more detailed description and diagnostic error message.
  18. - [#8039](https://github.com/biomejs/biome/pull/8039) [`da70d8b`](https://github.com/biomejs/biome/commit/da70d8be5d8288397a60cdea52d2a6e5f976cace) Thanks [@PFiS1737](https://github.com/PFiS1737)! - Biome now keeps a blank line after the frontmatter section in Astro files.
  19. - [#8042](https://github.com/biomejs/biome/pull/8042) [`b7efa6f`](https://github.com/biomejs/biome/commit/b7efa6f783adc42864b15b7ff2cb2ed6803190e2) Thanks [@dyc3](https://github.com/dyc3)! - The CSS Parser, with `tailwindDirectives` enabled, will now accept at rules like `@media` and `@supports` in `@custom-variant` shorthand syntax.
  20. - [#8064](https://github.com/biomejs/biome/pull/8064) [`3ff9d45`](https://github.com/biomejs/biome/commit/3ff9d45df031b811333d40fe62b1b24a3c5d5f43) Thanks [@dibashthapa](https://github.com/dibashthapa)! - Fixed [#7967](https://github.com/biomejs/biome/issues/7967): Fixed the issue with support for advanced SVG props
  21. - [#8023](https://github.com/biomejs/biome/pull/8023) [`96f3e77`](https://github.com/biomejs/biome/commit/96f3e778a38aa5f48e67eb44b545cba6330dc192) Thanks [@ematipico](https://github.com/ematipico)! - Added support Svelte syntax `{@attach}`. Biome now is able to parse and format the Svelte syntax [`{@attach}`](https://svelte.dev/docs/svelte/@attach):
  22. ```diff
  23. -<div {@attach myAttachment }>...</div>
  24. +<div {@attach myAttachment}>...</div>
  25. ```
  26. The contents of the expressions inside the `{@attach <expression>}` aren't formatted yet.
  27. - [#8001](https://github.com/biomejs/biome/pull/8001) [`6e8a50e`](https://github.com/biomejs/biome/commit/6e8a50e720135012832e04728d6c0e38b8bb74a1) Thanks [@ematipico](https://github.com/ematipico)! - Added support Svelte syntax `{#key}`. Biome now is able to parse and format the Svelte syntax [`{#key}`](https://svelte.dev/docs/svelte/key):
  28. ```diff
  29. -{#key expression} <div></div> {/key}
  30. +{#key expression}
  31. + <div></div>
  32. +{/key}
  33. ```
  34. The contents of the expressions inside the `{#key <expression>}` aren't formatted yet.
  35. - [#8023](https://github.com/biomejs/biome/pull/8023) [`96f3e77`](https://github.com/biomejs/biome/commit/96f3e778a38aa5f48e67eb44b545cba6330dc192) Thanks [@ematipico](https://github.com/ematipico)! - Added support Svelte syntax `{@const}`. Biome now is able to parse and format the Svelte syntax [`{@const}`](https://svelte.dev/docs/svelte/@const):
  36. ```diff
  37. -{@const name = value}
  38. +{@const name = value}
  39. ```
  40. The contents of the expressions inside the `{@const <expression>}` aren't formatted yet.
  41. - [#8044](https://github.com/biomejs/biome/pull/8044) [`8f77d4a`](https://github.com/biomejs/biome/commit/8f77d4a33ceb2c85867b09c0ffe589d1e66c8db7) Thanks [@Netail](https://github.com/Netail)! - Corrected rule source references. `biome migrate eslint` should do a bit better detecting rules in your eslint configurations.
  42. - [#8065](https://github.com/biomejs/biome/pull/8065) [`1a2d1af`](https://github.com/biomejs/biome/commit/1a2d1af3604f36703da298017fd3cacf14e118a5) Thanks [@Netail](https://github.com/Netail)! - Added the nursery rule [`useArraySortCompare`](https://biomejs.dev/linter/rules/use-array-sort-compare/). Require Array#sort and Array#toSorted calls to always provide a compareFunction.
  43. **Invalid:**
  44. ```js
  45. const array = [];
  46. array.sort();
  47. ```
  48. **Valid:**
  49. ```js
  50. const array = [];
  51. array.sort((a, b) => a - b);
  52. ```
  53. - [#7673](https://github.com/biomejs/biome/pull/7673) [`a3a713d`](https://github.com/biomejs/biome/commit/a3a713d5760821d58e065280d54e9826d18be7c3) Thanks [@dyc3](https://github.com/dyc3)! - The HTML parser is now able to parse vue directives. This enables us to write/port Vue lint rules that require inspecting the `<template>` section. However, this more complex parsing may result in parsing errors where there was none before. For those of you that have opted in to the experimental support (aka `experimentalFullSupportEnabled`), we greatly appreciate your help testing this out, and your bug reports.
  54. - [#8031](https://github.com/biomejs/biome/pull/8031) [`fa6798a`](https://github.com/biomejs/biome/commit/fa6798a62a2c13464bdb3eb61dfe6fd5e61c320e) Thanks [@ematipico](https://github.com/ematipico)! - Added support for the Svelte syntax `{#if}{/if}`. The Biome HTML parser is now able to parse and format the [`{#if}{/if} blocks`](https://svelte.dev/docs/svelte/if):
  55. ```diff
  56. <!-- if / else-if / else -->
  57. {#if porridge.temperature > 100}
  58. -<p>too hot!</p>
  59. + <p>too hot!</p>
  60. {:else if 80 > porridge.temperature}
  61. -<p>too cold!</p>
  62. + <p>too cold!</p>
  63. {:else if 100 > porridge.temperature}
  64. -<p>too too cold!</p>
  65. + <p>too too cold!</p>
  66. {:else}
  67. -<p>just right!</p>
  68. + <p>just right!</p>
  69. {/if}
  70. ```
  71. - [#8041](https://github.com/biomejs/biome/pull/8041) [`beeb7bb`](https://github.com/biomejs/biome/commit/beeb7bba7cce26e932b2b4047566c4762990caf3) Thanks [@dyc3](https://github.com/dyc3)! - The CSS parser, with `tailwindDirectives` enabled, will now accept lists of selectors in `@custom-variant` shorthand syntax.
  72. ```css
  73. @custom-variant cell (th:has(&), td:has(&));
  74. ```
  75. - [#8028](https://github.com/biomejs/biome/pull/8028) [`c09e45c`](https://github.com/biomejs/biome/commit/c09e45c8670c9be0305f76cd4e443a4760daedec) Thanks [@fmajestic](https://github.com/fmajestic)! - The GitLab reporter now outputs format errors.
  76. - [#8037](https://github.com/biomejs/biome/pull/8037) [`78011b1`](https://github.com/biomejs/biome/commit/78011b16f9b698f65413b934df1672970505e640) Thanks [@PFiS1737](https://github.com/PFiS1737)! - `indentScriptAndStyle` no longer indents the frontmatter in Astro files.
  77. - [#8009](https://github.com/biomejs/biome/pull/8009) [`6374b1f`](https://github.com/biomejs/biome/commit/6374b1f6da778a132adefa17e37e9857bba7091c) Thanks [@tmcw](https://github.com/tmcw)! - Fixed an edge case in the [`useArrowFunction`](https://biomejs.dev/linter/rules/use-arrow-function/) rule.
  78. The rule no longer emits diagnostics for or offers to fix functions that reference
  79. the [arguments object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments),
  80. because that object is undefined for arrow functions.
  81. **Valid example:**
  82. ```ts
  83. // Valid: this function cannot be transformed into an arrow function because
  84. // arguments is not defined for arrow functions.
  85. const getFirstArg = function () {
  86. return arguments[0];
  87. };
  88. ```
  89. ## What's Changed
  90. * feat(html/svelte): key blocks by @ematipico in https://github.com/biomejs/biome/pull/8001
  91. * chore(parser): increase size of TokenSet by @ryan-m-walker in https://github.com/biomejs/biome/pull/7997
  92. * feat(html/svelte): parsing of new blocks by @ematipico in https://github.com/biomejs/biome/pull/8023
  93. * fix(useArrowFunction): make useArrowFunction rule fixer safer by @tmcw in https://github.com/biomejs/biome/pull/8009
  94. * fix(deps): update rust crates by @renovate[bot] in https://github.com/biomejs/biome/pull/7889
  95. * feat(cli): add format errors to GitLab reporter by @fmajestic in https://github.com/biomejs/biome/pull/8028
  96. * fix(html/astro): don't indent Astro frontmatter by @PFiS1737 in https://github.com/biomejs/biome/pull/8037
  97. * fix(html/astro): keep a blank after the frontmatter by @PFiS1737 in https://github.com/biomejs/biome/pull/8039
  98. * fix(parse/tailwind): fix lexing `inset-x`, `border-slate-500`, and others by @dyc3 in https://github.com/biomejs/biome/pull/7975
  99. * fix(parse/css/tailwind): make `@custom-variant` accept selector lists by @dyc3 in https://github.com/biomejs/biome/pull/8041
  100. * docs: rules.rs cleanup by @Netail in https://github.com/biomejs/biome/pull/8044
  101. * docs: update documentation + diagnostic for `noBannedTypes` description by @Bertie690 in https://github.com/biomejs/biome/pull/8006
  102. * refactor(deserialize): exact allocation for arrays and maps by @Conaclos in https://github.com/biomejs/biome/pull/8040
  103. * feat(parse/tailwind): add benchmark by @dyc3 in https://github.com/biomejs/biome/pull/7976
  104. * feat(html/svelte): `if/else` syntax by @ematipico in https://github.com/biomejs/biome/pull/8031
  105. * fix(parse/css/tailwind): make `@custom-variant` accept at-rules like `@media` by @dyc3 in https://github.com/biomejs/biome/pull/8042
  106. * chore: enable more rustc lints by @Conaclos in https://github.com/biomejs/biome/pull/8047
  107. * ci: trigger benches when formatter changes by @ematipico in https://github.com/biomejs/biome/pull/8046
  108. * chore(deps): update github-actions by @renovate[bot] in https://github.com/biomejs/biome/pull/8048
  109. * chore(deps): update dependency eslint to v9.39.1 by @renovate[bot] in https://github.com/biomejs/biome/pull/8049
  110. * chore(deps): update rust crate jiff to 0.2.16 by @renovate[bot] in https://github.com/biomejs/biome/pull/8050
  111. * chore(deps): update rust crate quote to 1.0.42 by @renovate[bot] in https://github.com/biomejs/biome/pull/8051
  112. * chore(deps): update rust crate ureq to 3.1.4 by @renovate[bot] in https://github.com/biomejs/biome/pull/8052
  113. * chore(deps): update rust docker tag to v1.91.0 by @renovate[bot] in https://github.com/biomejs/biome/pull/8056
  114. * chore(deps): update typescript-eslint monorepo to v8.46.3 by @renovate[bot] in https://github.com/biomejs/biome/pull/8057
  115. * feat(parse/html): support vue directive syntax by @dyc3 in https://github.com/biomejs/biome/pull/7673
  116. * fix(lsp): biome project watcher by @ematipico in https://github.com/biomejs/biome/pull/8058
  117. * fix(no_unknown_attribute): added support for new dom attributes by @dibashthapa in https://github.com/biomejs/biome/pull/8064
  118. * feat(biome_js_analyze): implement useArraySortCompare by @Netail in https://github.com/biomejs/biome/pull/8065
  119. * ci: release by @github-actions[bot] in https://github.com/biomejs/biome/pull/8003
  120. ## New Contributors
  121. * @tmcw made their first contribution in https://github.com/biomejs/biome/pull/8009
  122. * @fmajestic made their first contribution in https://github.com/biomejs/biome/pull/8028
  123. * @PFiS1737 made their first contribution in https://github.com/biomejs/biome/pull/8037
  124. **Full Changelog**: https://github.com/biomejs/biome/compare/@biomejs/biome@2.3.4...@biomejs/biome@2.3.5

ver en githubimported 2026-09-28 vía npm