Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: biomejs/biome
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 80bb3d7d978ca2eb376190ac7cfdcd45902a6b75
Choose a base ref
...
head repository: biomejs/biome
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 906de83449b5066554cd8e97c78a1f8e43749016
Choose a head ref

Commits on Jan 15, 2024

  1. Verified

    This commit was signed with the committer’s verified signature.
    digitalresistor Delta Regeer
    Copy the full SHA
    3a279b6 View commit details
  2. Verified

    This commit was signed with the committer’s verified signature.
    digitalresistor Delta Regeer
    Copy the full SHA
    91caafe View commit details

Commits on Jan 16, 2024

  1. Verified

    This commit was signed with the committer’s verified signature.
    digitalresistor Delta Regeer
    Copy the full SHA
    3e5b994 View commit details
  2. Copy the full SHA
    5981f93 View commit details
  3. Copy the full SHA
    cd9623d View commit details
  4. fix(exhaustiveDeps): perform nested capture check in a correct way (#…

    …1327)
    
    Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
    XiNiHa and ematipico authored Jan 16, 2024
    Copy the full SHA
    1c91b03 View commit details

Commits on Jan 17, 2024

  1. Copy the full SHA
    a46230d View commit details
  2. feat(project): Deserializable derive macro (#1564)

    arendjr authored Jan 17, 2024
    Copy the full SHA
    09db855 View commit details
  3. Copy the full SHA
    66cafa1 View commit details
  4. Copy the full SHA
    fa5d034 View commit details

Commits on Jan 18, 2024

  1. Copy the full SHA
    4cefa72 View commit details
  2. Copy the full SHA
    935bf9d View commit details
  3. fix(lsp): register formatter dynamically if possible (#1590)

    Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
    nhedger and ematipico authored Jan 18, 2024
    Copy the full SHA
    3b3d2e6 View commit details
  4. Copy the full SHA
    d6b263a View commit details
  5. Copy the full SHA
    badc93f View commit details
  6. Copy the full SHA
    44ebe0c View commit details
  7. Copy the full SHA
    5cba273 View commit details
  8. Copy the full SHA
    91c7730 View commit details

Commits on Jan 19, 2024

  1. Copy the full SHA
    3fc4caa View commit details
  2. Copy the full SHA
    1abfb4f View commit details
  3. Copy the full SHA
    efa2911 View commit details

Commits on Jan 20, 2024

  1. Copy the full SHA
    d853402 View commit details
  2. Copy the full SHA
    2dfb142 View commit details
  3. Copy the full SHA
    a03bf85 View commit details
  4. Copy the full SHA
    8a62a91 View commit details
  5. Copy the full SHA
    9b77dc0 View commit details
  6. Copy the full SHA
    50d8a5b View commit details

Commits on Jan 21, 2024

  1. Update no_nodejs_modules.rs (#1621)

    Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
    huseeiin and ematipico authored Jan 21, 2024
    Copy the full SHA
    b6cf3ae View commit details
  2. Copy the full SHA
    f7fa774 View commit details
  3. Copy the full SHA
    d48b767 View commit details
  4. Copy the full SHA
    66de0a7 View commit details

Commits on Jan 22, 2024

  1. Copy the full SHA
    dece5de View commit details
  2. release: 1.5.3 (#1629)

    Conaclos authored Jan 22, 2024
    Copy the full SHA
    906de83 View commit details
Showing 383 changed files with 11,670 additions and 7,187 deletions.
122 changes: 109 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -8,6 +8,99 @@ Read our [guidelines to categorize a change](https://biomejs.dev/internals/versi
New entries must be placed in a section entitled `Unreleased`.
Read our [guidelines for writing a good changelog entry](https://github.com/biomejs/biome/blob/main/CONTRIBUTING.md#changelog).

## 1.5.3 (2024-01-22)

### LSP

#### Bug fixes

- Fix [#1584](https://github.com/biomejs/biome/issues/1584). Ensure the LSP only registers the formatter once. Contributed by @nhedger

- Fix [#1589](https://github.com/biomejs/biome/issues/1589). Fix invalid formatting of own line comments when they were at the end of an import/export list. Contributed by @spanishpear

### Configuration

#### Bug fixes

- Override correctly the recommended preset ([#1349](https://github.com/biomejs/biome/issues/1349)).

Previously, if unspecified, Biome turned on the recommended preset in overrides.
This resulted in reporting diagnostics with a severity level set to `off`.
This in turn caused Biome to fail.

Now Biome won't switch on the recommended preset in `overrides` unless told to do so.

Contributed by @Conaclos

- Don't format **ignored** files that are well-known JSONC files when `files.ignoreUnknown` is enabled ([#1607](https://github.com/biomejs/biome/issues/1607)).

Previously, Biome always formatted files that are known to be JSONC files (e.g. `.eslintrc`) when `files.ignoreUnknown` was enabled.

Contributed by @Conaclos

### Formatter

#### Bug fixes

- Fix [#1178](https://github.com/biomejs/biome/issues/1178), where the line ending option wasn't correctly applied. Contributed by @ematipico
- Fix [#1571](https://github.com/biomejs/biome/issues/1571). Fix invalid formatting of nested multiline comments. Contributed by @ah-yu

### Linter

#### Bug fixes

- Fix [#1575](https://github.com/biomejs/biome/issues/1575). [noArrayIndexKey](https://biomejs.dev/linter/rules/no-array-index-key/) now captures array index value inside template literals and with string concatination. Contributed by @vasucp1207

- Linter rules that inspect regexes now handle multibyte characters correctly ([#1522](https://github.com/biomejs/biome/issues/1522)).

Previously, [noMisleadingCharacterClass](https://biomejs.dev/linter/no-misleading-character-class), [noMultipleSpacesInRegularExpressionLiterals](https://biomejs.dev/linter/no-multiple-spaces-in-regular-expression-literals), and [noEmptyCharacterClassInRegex](https://biomejs.dev/linter/no-empty-character-class-in-regex) made Biome errors on multi-bytes characters.
Multibyte characters are now handled correctly.

The following code no longer raises an internal error:

```js
// Cyrillic characters
/[\u200E\u2066-\u2069]/gu;
```

Contributed by @Conaclos

- [useExhaustiveDependencies](https://biomejs.dev/linter/use-exhaustive-dependencies) no longer made Biome errors in code TypeScript import equal declarations ([#1194](https://github.com/biomejs/biome/issues/1194)). Contributed by @Conaclos

- Fix typo in the diagnostic of [noNodejsModules](https://biomejs.dev/linter/rules/no-nodejs-modules). Contributed by @huseeiin

### Parser

#### Bug fixes

- Accept the `const` modifier for type parameter in method type signature ([#1624](https://github.com/biomejs/biome/issues/1624)).

The following code is now correctly parsed:

```ts
type Foo = {
<const T>();
method<const T>();
};
```

Contributed by @magic-akari

### Website

#### New

- Add a [page that maps the Biome rule to its source](https://biomejs.dev/linter/rules-sources/). Contributed by @ematipico

#### Fixes

- Generate Open Graph images based on the linked page. Contributed by @ematipico

- Fix examples of the [git hook page](https://biomejs.dev/recipes/git-hooks/). Contributed by @9renpoto, @lmauromb, and @Conaclos

- Fix dead and erroneous hyperlinks. Contributed by @Sec-ant and Conaclos


## 1.5.2 (2024-01-15)

### CLI
@@ -19,7 +112,7 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom
- Correctly handle cascading `include` and `ignore`.

Previously Biome incorrectly included files that were included at tool level and ignored at global level.
In the following example, `file.js' was formatted when it should have been ignored.
In the following example, `file.js` was formatted when it should have been ignored.
Now, Biome correctly ignores the directory `./src/sub/`.

```shell
@@ -88,7 +181,9 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom
- [useArrowFunction](https://biomejs.dev/linter/rules/use-arrow-function) no longer reports function in `extends` clauses or in a `new` expression. Contributed by @Conaclos
This cases requires the presence of a prototype.
These cases require the presence of a prototype.
- Add dependency variable names on error message when useExhaustiveDependencies rule shows errors. Contributed by @mehm8128
#### Bug fixes
@@ -623,7 +718,7 @@ The following rules are promoted:
_TypeScript_ allows interface declarations and type aliases to have empty type parameter lists.
Previously Biome didn't handle this edge case.
Now, it correctly parse this syntax:
Now, it correctly parses this syntax:
```ts
interface Foo<> {}
@@ -845,7 +940,8 @@ The following rules are now deprecated:
#### Bug fixes
- Apply the correct layout when the right hand of an assignment expression is a await expression or a yield expression. Contributed by @ematipico
- Apply the correct layout when the right hand of an assignment expression is an `await` expression or a yield expression. Contributed by @ematipico
- Fix [#303](https://github.com/biomejs/biome/issues/303), where nested arrow functions didn't break. Contributed by @victor-teles
### Linter
@@ -862,7 +958,7 @@ The following rules are now deprecated:
- Fix [#576](https://github.com/biomejs/biome/issues/576) by removing some erroneous logic in [noSelfAssign](https://biomejs.dev/linter/rules/no-self-assign/). Contributed by @ematipico
- Fix [#861](https://github.com/biomejs/biome/issues/861) that made [noUnusedVariables](https://biomejs.dev/linter/rules/no-unused-variables) always reports the parameter of an non-parenthesize arrow function as unused.
- Fix [#861](https://github.com/biomejs/biome/issues/861) that made [noUnusedVariables](https://biomejs.dev/linter/rules/no-unused-variables) always reports the parameter of a non-parenthesize arrow function as unused.
- Fix [#595](https://github.com/biomejs/biome/issues/595) by updating unsafe-apply logic to avoid unexpected errors in [noUselessFragments](https://biomejs.dev/linter/rules/no-useless-fragments/). Contributed by @nissy-dev
@@ -1114,7 +1210,7 @@ The following rules are now recommended:
Contributed by @Conaclos
- Add [noUnusedImports](https://biomejs.dev/linter/rules/no-unused-imports) rule.
The rule reports unused imports and suggests to remove them.
The rule reports unused imports and suggests removing them.
Contributed by @Conaclos
[noUnusedVariables](https://biomejs.dev/linter/rules/no-unused-variables) reports also unused imports, but don't suggest their removal.
@@ -1189,15 +1285,15 @@ The following rules are now recommended:
- Fix [#104](https://github.com/biomejs/biome/issues/104). We now correctly handle types and values with the same name.
- Fix [#243](https://github.com/biomejs/biome/issues/243) a false positive case where the incorrect scope was defined for the `infer` type. in rule [noUndeclaredVariables](https://biomejs.dev/linter/rules/no-undeclared-variables/). Contributed by @denbezrukov
- Fix [#243](https://github.com/biomejs/biome/issues/243) a false positive case where the incorrect scope was defined for the `infer` type in rule [noUndeclaredVariables](https://biomejs.dev/linter/rules/no-undeclared-variables/). Contributed by @denbezrukov
- Fix [#322](ttps://github.com/biomejs/biome/issues/322), now [noSelfAssign](https://biomejs.dev/linter/rules/no-self-assign/) correctly handles literals inside call expressions.
- Changed how [noSelfAssign](https://biomejs.dev/linter/rules/no-self-assign/) behaves. The rule is not triggered anymore on function calls. Contributed by @ematipico
### Parser
- Enhance diagnostic for infer type handling in the parser. The 'infer' keyword can only be utilized within the 'extends' clause of a conditional type. Using it outside of this context will result in an error. Ensure that any type declarations using 'infer' are correctly placed within the conditional type structure to avoid parsing issues. Contributed by @denbezrukov
- Enhance diagnostic for infer type handling in the parser. The 'infer' keyword can only be utilized within the 'extends' clause of a conditional type. Using it outside this context will result in an error. Ensure that any type declarations using 'infer' are correctly placed within the conditional type structure to avoid parsing issues. Contributed by @denbezrukov
- Add support for parsing trailing commas inside JSON files:
```json
@@ -1304,7 +1400,7 @@ The following rules are promoted:
#### Enhancements
- [noFallthroughSwitchClause](https://biomejs.dev/linter/rules/no-fallthrough-switch-clause/) now relies on control flow analysis to report most of switch clause fallthrough. Contributed by @Conaclos
- [noFallthroughSwitchClause](https://biomejs.dev/linter/rules/no-fallthrough-switch-clause/) now relies on control flow analysis to report most of the switch clause fallthrough. Contributed by @Conaclos
- [noAssignInExpressions](https://biomejs.dev/linter/rules/no-assign-in-expressions/) no longer suggest code fixes. Most of the time the suggestion didn't match users' expectations. Contributed by @Conaclos
@@ -1562,7 +1658,7 @@ The following rules are promoted:
+ 1 /* inner comment */}+${2 //trailing comment}` // trailing comment
```
Now, the rule correctly handle this case:
Now, the rule correctly handles this case:
```diff
// leading comment
@@ -1677,7 +1773,7 @@ The following rules are promoted:
- Introduced a new command called `biome lint`, which will only run lint rules against the code base.
- Biome recognises known files as "JSON files with comments allowed":
- Biome recognizes known files as "JSON files with comments allowed":
- `typescript.json`;
- `tsconfig.json`;
@@ -1830,7 +1926,7 @@ The following rules are promoted:
- Add [noVoid](https://biomejs.dev/linter/rules/no-void/)
This rules disallow the use of `void`.
This rule disallows the use of `void`.
- Add [noNonoctalDecimalEscape](https://biomejs.dev/linter/rules/no-nonoctal-decimal-escape/)
@@ -2080,7 +2176,7 @@ The following rules are now recommended:
- when the first argument of hooks is a named function
- inside an export default function
- for React.use* hooks
- for `React.use` hooks
- Fix [noInvalidConstructorSuper](https://biomejs.dev/linter/rules/no-invalid-constructor-super/) that erroneously reported generic parents [#4624](https://github.com/rome/tools/issues/4624).
7 changes: 6 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -81,7 +81,7 @@ biome_css_formatter = { version = "0.4.0", path = "./crates/biome_css_f
biome_css_parser = { version = "0.4.0", path = "./crates/biome_css_parser" }
biome_css_syntax = { version = "0.4.0", path = "./crates/biome_css_syntax" }
biome_deserialize = { version = "0.4.0", path = "./crates/biome_deserialize" }
biome_deserialize_macros = { version = "0.3.1", path = "./crates/biome_deserialize_macros" }
biome_deserialize_macros = { version = "0.4.0", path = "./crates/biome_deserialize_macros" }
biome_diagnostics = { version = "0.4.0", path = "./crates/biome_diagnostics" }
biome_diagnostics_categories = { version = "0.4.0", path = "./crates/biome_diagnostics_categories" }
biome_diagnostics_macros = { version = "0.4.0", path = "./crates/biome_diagnostics_macros" }
@@ -124,6 +124,7 @@ tests_macros = { path = "./crates/tests_macros" }
# Crates needed in the workspace
bitflags = "2.3.1"
bpaf = { version = "0.9.5", features = ["derive"] }
convert_case = "0.6.0"
countme = "3.0.1"
dashmap = "5.4.0"
ignore = "0.4.21"
Loading