What’s New

Biome 2.5.4

2.5.4

Biome CLI v2.5.4

Added 2
  • Basic block properties support for YAML formatting
  • Inference engine via salsa
Changed 3
  • Improved the performance of the HTML parser slightly in synthetic benchmarks
  • useSortedClasses now sorts important-suffix classes in sort_v4
  • HTML/SVG tag names now use keywords for better performance
Fixed 11
  • On-type formatting no longer moves comments before an if statement into its body
  • noLabelWithoutControl now correctly detects text interpolation in Astro, Svelte & Vue as valid accessible content
  • Svelte directives no longer throw an accidental debug log
  • biome check --write --unsafe no longer hangs forever when applying the noCommentText code fix
  • Prevented a module-inference regression introduced by a housekeeping change
  • Biome now breaks the arguments of curried test.each, it.each, describe.each, and test.for calls when they exceed the configured line width
2.5.4
Patch Changes
  • #10665 55ff995 Thanks @dyc3! - Improved the performance of the HTML parser slightly in our synthetic benchmarks.

  • #10894 f4fb10e Thanks @ematipico! - Fixed #6392: On-type formatting no longer moves comments before an if statement into its body.

  • #10939 f2799db Thanks @Netail! - Fixed #10930: noLabelWithoutControl now correctly detects text interpolation in Astro, Svelte & Vue as valid accessible content.

  • #10945 ae15d98 Thanks @Netail! - Fixed #10942: Svelte directives don't throw an accidental debug log anymore.

  • #10842 5e1abfe Thanks @JamBalaya56562! - Fixed #9196: biome check --write --unsafe no longer hangs forever when applying the noCommentText code fix.

    The rule's fix now wraps the comment in a real JSX expression container ({/* comment */}) instead of re-inserting the braces as plain JSX text, so the fixed code is no longer reported again by the same rule.

  • #10891 ecca79e Thanks @ematipico! - Fixed #10885: prevented a module-inference regression introduced by a housekeeping change.

  • #10886 60c8043 Thanks @dyc3! - Fixed #10727: Biome now breaks the arguments of curried test.each, it.each, describe.each, and test.for calls when they exceed the configured line width.

    - test.each([[1, 2]])("a description that is long enough to push the hugged opening line beyond the print width", (a, b) => {
    -   expect(a).toBe(b);
    - });
    + test.each([[1, 2]])(
    +   "a description that is long enough to push the hugged opening line beyond the print width",
    +   (a, b) => {
    +     expect(a).toBe(b);
    +   },
    + );
    
  • #10895 01a85f0 Thanks @ematipico! - Biome will now remove stale Unix daemon sockets from older Biome versions when starting a newer daemon.

What's Changed

Full Changelog: https://github.com/biomejs/biome/compare/@biomejs/biome@2.5.3...@biomejs/biome@2.5.4

View original

Discussion