Skip to content

Commit

Permalink
release: 1.8.1 (#572)
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico authored Jun 10, 2024
1 parent 0390b9f commit 6003968
Show file tree
Hide file tree
Showing 9 changed files with 3,692 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/content/docs/guides/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ After running the `init` command, you'll now have a new `biome.json` file in you

```json title="biome.json"
{
"$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
"$schema": "https://biomejs.dev/schemas/1.8.1/schema.json",
"organizeImports": {
"enabled": false
},
Expand Down
6 changes: 3 additions & 3 deletions src/content/docs/guides/how-biome-works.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Here's an example of how you might set up your `biome.json` to extend other conf

```json title="biome.json"
{
"$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
"$schema": "https://biomejs.dev/schemas/1.8.1/schema.json",
"extends": ["./formatter.json", "./linter.json"]
}
```
Expand All @@ -96,7 +96,7 @@ For instance, you could define formatter settings in `formatter.json`:

```json title="formatter.json"
{
"$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
"$schema": "https://biomejs.dev/schemas/1.8.1/schema.json",
"formatter": {
"indentSize": 2
},
Expand All @@ -112,7 +112,7 @@ And linter rules in `linter.json`:

```json title="linter.json"
{
"$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
"$schema": "https://biomejs.dev/schemas/1.8.1/schema.json",
"linter": {
"rules": {
"complexity": {
Expand Down
74 changes: 72 additions & 2 deletions src/content/docs/internals/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,77 @@ 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).

## v1.8.1 (2024-06-10)

### Analyzer

### CLI

#### Bug fixes

- Fix [#3069](https://github.com/biomejs/biome/issues/3069), prevent overwriting paths when using `--staged` or `--changed` options. Contributed by @unvalley
- Fix a case where the file link inside a diagnostic wasn't correctly displayed inside a terminal run by VSCode. Contributed by @uncenter

### Configuration

#### Bug fixes

- Fix [#3067](https://github.com/biomejs/biome/issues/3067), by assigning the correct default value to `indentWidth`. Contributed by @ematipico

### Editors

### Formatter

#### Bug fixes
- Fix the bug where whitespace after the & character in CSS nesting was incorrectly trimmed, ensuring proper targeting of child classes [#3061](https://github.com/biomejs/biome/issues/3061). Contributed by @denbezrukov
- Fix [#3068](https://github.com/biomejs/biome/issues/3068) where the CSS formatter was inadvertently converting variable declarations and function calls to lowercase. Contributed by @denbezrukov
- Fix the formatting of CSS grid layout properties. Contributed by @denbezrukov

### JavaScript APIs

### Linter

#### Bug fixes

- The `noEmptyBlock` css lint rule now treats empty blocks containing comments as valid ones. Contributed by @Sec-ant

- [useLiteralKeys](https://biomejs.dev/linter/rules/use-literal-keys/) no longer reports quoted member names ([#3085](https://github.com/biomejs/biome/issues/3085)).

Previously [useLiteralKeys](https://biomejs.dev/linter/rules/use-literal-keys/) reported quoted member names that can be unquoted.
For example, the rule suggested the following fix:

```diff
- const x = { "prop": 0 };
+ const x = { prop: 0 };
```

This conflicted with the option [quoteProperties](https://biomejs.dev/reference/configuration/#javascriptformatterquoteproperties) of our formatter.

The rule now ignores quoted member names.

Contributed by @Conaclos

- [noEmptyInterface](https://biomejs.dev/linter/rules/no-empty-interface/) now ignores empty interfaces in ambient modules ([#3110](https://github.com/biomejs/biome/issues/3110)). Contributed by @Conaclos

- [noUnusedVariables](https://biomejs.dev/linter/rules/no-unused-variables/) and [noUnusedFunctionParameters](https://biomejs.dev/linter/rules/no-unused-function-parameters/) no longer report the parameters of a constructor type ([#3135](https://github.com/biomejs/biome/issues/3135)).

Previously, `arg` was reported as unused in a constructor type like:

```ts
export type Classlike = new (arg: unknown) => string;
```

Contributed by @Conaclos

### Parser

#### New features
- Implemented CSS Unknown At-Rule parsing, allowing the parser to gracefully handle unsupported or unrecognized CSS at-rules. Contributed by @denbezrukov

#### Bug fixes
- Fix [#3055](https://github.com/biomejs/biome/issues/3055) CSS: Layout using named grid lines is now correctly parsed. Contributed by @denbezrukov
- Fix [#3091](https://github.com/biomejs/biome/issues/3091). Allows the parser to handle nested style rules and at-rules properly, enhancing the parser's compatibility with the CSS Nesting Module. Contributed by @denbezrukov

## 1.8.0 (2024-06-04)

### Analyzer
Expand Down Expand Up @@ -297,8 +368,6 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b
- Fix [#2782](https://github.com/biomejs/biome/issues/2782) by computing the enabled rules by taking the override settings into consideration. Contributed by @ematipico
- Fix [https://github.com/biomejs/biome/issues/2877] by correctly handling line terminators in JSX string. Contributed by @ah-yu

### JavaScript APIs

### Linter

#### Promoted rules
Expand Down Expand Up @@ -373,6 +442,7 @@ New rules are incubated in the nursery group. Once stable, we promote them to a
- Add [nursery/useGenericFontNames](https://biomejs.dev/linter/rules/use-generic-font-names). [#2573](https://github.com/biomejs/biome/pull/2573) Contributed by @togami2864
- Add [nursery/noYodaExpression](https://biomejs.dev/linter/rules/no-yoda-expression/). Contributed by @michellocana
- Add [nursery/noUnusedFunctionParameters](https://biomejs.dev/linter/rules/no-unused-function-parameters/) Contributed by @printfn
- Add [nursery/UseSemanticElements](https://biomejs.dev/linter/rules/use-semantic-elements/). Contributed by @fujiyamaorange

#### Enhancements

Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/ja/guides/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Biomeをインストールする際には、バージョン範囲演算子を使

```json title="biome.json"
{
"$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
"$schema": "https://biomejs.dev/schemas/1.8.1/schema.json",
"organizeImports": {
"enabled": false
},
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/pt-br/guides/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Após utilizar o comando, você terá um novo arquivo `biome.json` no seu diret

```json title="biome.json"
{
"$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
"$schema": "https://biomejs.dev/schemas/1.8.1/schema.json",
"organizeImports": {
"enabled": false
},
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/reference/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ If you have problems with resolving the physical file, you can use the one publi

```json title="biome.json"
{
"$schema": "https://biomejs.dev/schemas/1.8.0/schema.json"
"$schema": "https://biomejs.dev/schemas/1.8.1/schema.json"
}
```

Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/zh-cn/guides/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import PackageManagerCommand from "@/components/PackageManagerCommand.astro";

```json title="biome.json"
{
"$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
"$schema": "https://biomejs.dev/schemas/1.8.1/schema.json",
"organizeImports": {
"enabled": false
},
Expand Down
8 changes: 4 additions & 4 deletions src/content/docs/zh-cn/reference/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import LintGroups from "@/components/generated/Groups.astro";

```json title="biome.json"
{
"$schema": "https://biomejs.dev/schemas/1.8.0/schema.json"
"$schema": "https://biomejs.dev/schemas/1.8.1/schema.json"
}
```

Expand All @@ -37,14 +37,14 @@ import LintGroups from "@/components/generated/Groups.astro";

```json title="biome.json"
{
"$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
"$schema": "https://biomejs.dev/schemas/1.8.1/schema.json",
"extends": ["./formatter.json", "./linter.json"]
}
```

```json title="formatter.json"
{
"$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
"$schema": "https://biomejs.dev/schemas/1.8.1/schema.json",
"formatter": {
"indentSize": 2
},
Expand All @@ -58,7 +58,7 @@ import LintGroups from "@/components/generated/Groups.astro";

```json title="linter.json"
{
"$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
"$schema": "https://biomejs.dev/schemas/1.8.1/schema.json",
"linter": {
"rules": {
"complexity": {
Expand Down
Loading

0 comments on commit 6003968

Please sign in to comment.