Skip to content

JavaScript APIs v0.7.1

Compare
Choose a tag to compare
@github-actions github-actions released this 01 Oct 16:17
· 185 commits to main since this release
2670095

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

Full Changelog: cli/v1.9.3...js-api/v0.7.1