Ir al contenido
verdict:

Biome 2.3.4

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 · 157 líneas
  1. ## 2.3.4
  2. ### Patch Changes
  3. - [#7989](https://github.com/biomejs/biome/pull/7989) [`4855c4a`](https://github.com/biomejs/biome/commit/4855c4a5c28d8381dd724449d43a9a60a860edaa) Thanks [@alissonlauffer](https://github.com/alissonlauffer)! - Fixed a regression in Astro frontmatter parsing where comments inside quoted strings were incorrectly detected as actual comments. This caused the parser to prematurely terminate frontmatter parsing when encountering strings like `const test = "//";`.
  4. For example, the following Astro frontmatter now parses correctly:
  5. ```astro
  6. ---
  7. const test = "// not a real comment";
  8. ---
  9. ```
  10. - [#7968](https://github.com/biomejs/biome/pull/7968) [`0b28f5f`](https://github.com/biomejs/biome/commit/0b28f5f47aa968bd2511224679ae1cfbcf708fd7) Thanks [@denbezrukov](https://github.com/denbezrukov)! - Refactored formatter to use strict `Token` element for better performance. The new `Token` variant is optimized for static, ASCII-only text (keywords, operators, punctuation) with the following constraints:
  11. - ASCII only (no Unicode characters)
  12. - No newlines (`\n`, `\r`)
  13. - No tab characters (`\t`)
  14. This enables faster printing and fitting logic by using bulk string operations (`push_str`, `len()`) instead of character-by-character iteration with Unicode width calculations.
  15. - [#7941](https://github.com/biomejs/biome/pull/7941) [`19b8280`](https://github.com/biomejs/biome/commit/19b82805e013d5befc644f85f272df19ed1264ae) Thanks [@Conaclos](https://github.com/Conaclos)! - Fixed [#7943](https://github.com/biomejs/biome/issues/7943). Rules' `options` are now properly merged with the inherited `options` from a shared configuration.
  16. This means that you can now override a specific option from a rule without resetting the other options to their default.
  17. Given the following shared configuration:
  18. ```json
  19. {
  20. "linter": {
  21. "rules": {
  22. "style": {
  23. "useNamingConvention": {
  24. "level": "on",
  25. "options": {
  26. "strictCase": false,
  27. "conventions": [
  28. {
  29. "selector": { "kind": "variable", "scope": "global" },
  30. "formats": ["CONSTANT_CASE"]
  31. }
  32. ]
  33. }
  34. }
  35. }
  36. }
  37. }
  38. }
  39. ```
  40. And the user configuration that extends this shared configuration:
  41. ```json
  42. {
  43. "extends": ["shared.json"],
  44. "linter": {
  45. "rules": {
  46. "style": {
  47. "useNamingConvention": {
  48. "level": "on",
  49. "options": { "strictCase": true }
  50. }
  51. }
  52. }
  53. }
  54. }
  55. ```
  56. The obtained merged configuration is now as follows:
  57. ```json
  58. {
  59. "extends": ["shared.json"],
  60. "linter": {
  61. "rules": {
  62. "style": {
  63. "useNamingConvention": {
  64. "level": "on",
  65. "options": {
  66. "strictCase": true,
  67. "conventions": [
  68. {
  69. "selector": { "kind": "variable", "scope": "global" },
  70. "formats": ["CONSTANT_CASE"]
  71. }
  72. ]
  73. }
  74. }
  75. }
  76. }
  77. }
  78. }
  79. ```
  80. - [#7969](https://github.com/biomejs/biome/pull/7969) [`425963d`](https://github.com/biomejs/biome/commit/425963d636620d852547322f3f029df2ca05318c) Thanks [@ematipico](https://github.com/ematipico)! - Added support for the Svelte syntax `{@debug}`. The Biome HTML parser is now able to parse and format the blocks:
  81. ```diff
  82. -{@debug foo,bar, something}
  83. +{@debug foo, bar, something}
  84. ```
  85. - [#7986](https://github.com/biomejs/biome/pull/7986) [`3256f82`](https://github.com/biomejs/biome/commit/3256f824a15dedf6ac23485cdef2bbc92bfc7fd9) Thanks [@lisiur](https://github.com/lisiur)! - Fixed [#7981](https://github.com/biomejs/biome/issues/7981). Now Biome correctly detects and parses `lang='tsx'` and `lang='jsx'` languages when used inside in `.vue` files, when `.experimentalFullSupportEnabled` is enabled.
  86. - [#7921](https://github.com/biomejs/biome/pull/7921) [`547c2da`](https://github.com/biomejs/biome/commit/547c2da02590832d4941f017541142c17d1734a9) Thanks [@dyc3](https://github.com/dyc3)! - Fixed [#7854](https://github.com/biomejs/biome/issues/7854): The CSS parser, with `tailwindDirectives` enabled, will now parse `@source inline("underline");`.
  87. - [#7856](https://github.com/biomejs/biome/pull/7856) [`c9e20c3`](https://github.com/biomejs/biome/commit/c9e20c3780b328ff59b63fa8917938d97b090148) Thanks [@Netail](https://github.com/Netail)! - Added the nursery rule [`noContinue`](https://biomejs.dev/linter/rules/no-continue/). Disallowing the usage of the `continue` statement, structured control flow statements such as `if` should be used instead.
  88. **Invalid:**
  89. ```js
  90. let sum = 0,
  91. i;
  92. for (i = 0; i < 10; i++) {
  93. if (i >= 5) {
  94. continue;
  95. }
  96. sum += i;
  97. }
  98. ```
  99. **Valid:**
  100. ```js
  101. let sum = 0,
  102. i;
  103. for (i = 0; i < 10; i++) {
  104. if (i < 5) {
  105. sum += i;
  106. }
  107. }
  108. ```
  109. ## What's Changed
  110. * fix(parse/css): parse tailwind `@source inline(...)` by @dyc3 in https://github.com/biomejs/biome/pull/7921
  111. * feat(html): implement `{@debug}` parsing by @ematipico in https://github.com/biomejs/biome/pull/7969
  112. * fix(parse/tailwind): fix lexing variants that start with numbers by @dyc3 in https://github.com/biomejs/biome/pull/7966
  113. * feat(lint): implement `noContinue` by @Netail in https://github.com/biomejs/biome/pull/7856
  114. * fix(config): implement Merge for rules' options by @Conaclos in https://github.com/biomejs/biome/pull/7941
  115. * chore: add graphite as bronze sponsor by @dyc3 in https://github.com/biomejs/biome/pull/7974
  116. * chore: graphql tests options by @Netail in https://github.com/biomejs/biome/pull/7979
  117. * refactor(formatter): introduce Token element by @denbezrukov in https://github.com/biomejs/biome/pull/7968
  118. * fix(ROME_CHANGELOG.md): grammar and typo error by @WuMingDao in https://github.com/biomejs/biome/pull/7992
  119. * chore(parser): increase size of SyntaxKindSet bitfield by @ryan-m-walker in https://github.com/biomejs/biome/pull/7994
  120. * fix(RELEASES.md): grammar and typo error by @WuMingDao in https://github.com/biomejs/biome/pull/7993
  121. * fix(html): fix comment detection in Astro frontmatter by @alissonlauffer in https://github.com/biomejs/biome/pull/7989
  122. * feat: support html.experimentalFullSupportEnabled for vue with jsx/tsx script by @lisiur in https://github.com/biomejs/biome/pull/7986
  123. * ci: release by @github-actions[bot] in https://github.com/biomejs/biome/pull/7965
  124. ## New Contributors
  125. * @WuMingDao made their first contribution in https://github.com/biomejs/biome/pull/7992
  126. * @lisiur made their first contribution in https://github.com/biomejs/biome/pull/7986
  127. **Full Changelog**: https://github.com/biomejs/biome/compare/@biomejs/biome@2.3.3...@biomejs/biome@2.3.4

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