github biomejs/biome cli/v1.9.3
CLI v1.9.3

latest release: js-api/v0.7.1
10 hours ago

CLI

New features

  • GritQL queries that match functions or methods will now match async functions or methods as well.

    If this is not what you want, you can capture the async keyword (or its absence) in a metavariable and assert its emptiness:

    $async function foo() {} where $async <: .
    

    Contributed by @arendjr

Bug fixes

  • Fix #4077: Grit queries no longer need to match the statement's trailing semicolon. Contributed by @arendjr

  • Fix #4102. Now the CLI command lint doesn't exit with an error code when using --write/--fix. Contributed by @ematipico

Configuration

Bug fixes

  • Fix #4125, where noLabelWithoutControl options where incorrectly marked as mandatory. Contributed by @ematipico

Editors

  • Fix a case where CSS files weren't correctly linted using the default configuration. Contributed by @ematipico

Formatter

Bug fixes

  • Fix #3924 where GraphQL formatter panics in block comments with empty line. Contributed by @vohoanglong0107

  • Fix a case where raw values inside url() functions weren't properly trimmed.

    .value {
    -  background: url(
    -   whitespace-around-string
    -  );
    + background: url(whitespace-around-string);
    }

    Contributed by @ematipico

  • Fixed #4076, where a media query wasn't correctly formatted:

    .class {
    -  @media (1024px <= width <=1280px) {
    +  @media (1024px <= width <= 1280px) {
       color: red;
       }
    }

    Contributed by @blaze-d83

JavaScript API

Bug fixes

  • Fix #3881, by updating the APIs to use the latest WASM changes. Contributed by @ematipico

Linter

New features

Bug fixes

Parser

Bug fixes

  • Forbid undefined as type name for typescript parser. Contributed by @fireairforce

What's Changed

Other changes

  • fix(bench): typo in .prettierignore by @Jayllyz in #4134
  • feat(formatter): implement formatting for GritQL root node by @arendjr in #4128
  • feat(useExhaustiveDependencies): add option to disable errors for unecessary dependencies by @simon-paris in #4135
  • perf(linter): remove unneeded memory allocation for str by @togami2864 in #4142
  • fix: add missing word by @lanker in #4150

New Contributors

Full Changelog: cli/v1.9.3-nightly.75b4387...cli/v1.9.3

Don't miss a new biome release

NewReleases is sending notifications on new releases.