Skip to content

Commit

Permalink
chore: release v1.9.2 (#1176)
Browse files Browse the repository at this point in the history
  • Loading branch information
Conaclos committed Sep 19, 2024
1 parent 3ff5f15 commit 0d8617e
Show file tree
Hide file tree
Showing 4 changed files with 4,392 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/components/generated/DefaultConfiguration.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

```json title="biome.json"
{
"$schema": "https://biomejs.dev/schemas/1.9.1/schema.json",
"$schema": "https://biomejs.dev/schemas/1.9.2/schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
Expand Down
74 changes: 63 additions & 11 deletions src/content/docs/internals/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,81 @@ 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).

## Unreleased
## v1.9.2 (2024-09-19)

## v1.9.1 (2024-09-15)
### CLI

### Analyzer
#### New features

### CLI
- Added support for custom GritQL definitions, including:
- Pattern and predicate definitions: https://docs.grit.io/guides/patterns
- Function definitions: https://docs.grit.io/language/functions#function-definitions

Contributed by @arendjr

#### Bug fixes

- `useEditorConfig` now loads the editorconfig when running `biome ci` [#3864](https://github.com/biomejs/biome/issues/3864). Contributed by @dyc3
- Fix [#3917](https://github.com/biomejs/biome/issues/3917), where the fixed files were incorrectly computed. Contributed by @ematipico
- Fixed an issue that caused GritQL `contains` queries to report false positives when the matched
node appeared inside a sibling node. Contributed by @arendjr

- Revert [#3731](https://github.com/biomejs/biome/pull/3731) to fix broken quick fixes and code actions. Contributed by @nhedger
### Editors

### Configuration
#### Bug fixes

- Fix [#3923](https://github.com/biomejs/biome/issues/3923). Now the `.editorconfig` is correctly parsed by the LSP, and the options are correctly applied to files when formatting is triggered.
Plus, the Biome LSP now watches for any change to the `.editorconfig`, and updates the formatting settings.
- Reduced the number of log files generated by the LSP server. Now the maximum number of logs saved on disk is **seven**. Contributed by @ematipico
- Fix the code actions capabilities available in the LSP Biome server. Before, the LSP was using the default capabilities, which resulted in pulling code actions even when they were disabled by the editor.

This means that the code actions are pulled by the client **only** when the editor enables `quickfix.biome`, `source.organizeImports.biome` and `source.fixAll.biome`.

Now, if you enable `organizeImports.enabled: true` in the `biome.json`, and then you configure your editor with the following code action `source.organizeImports.biome: false`, the editor **won't** sort the imports.

Contributed by @ematipico

### Linter

#### New features

- Add [nursery/noMissingVarFunction](https://biomejs.dev/linter/rules/no-missing-var-function). Contributed by @michellocana
- Add [nursery/useComponentExportOnlyModules]((https://biomejs.dev/linter/rules/use-component-export-only-modules). Use this rule in React projects to enforce a code styling that fits React Refresh. Contributed by @GunseiKPaseri

#### Bug fixes

- [noLabelWithoutControl](https://biomejs.dev/linter/rules/no-label-without-control/) now accept JSX expression as label value ([#3875](https://github.com/biomejs/biome/issues/3875)). Contributed by @Conaclos

- [useFilenamingConvention](https://biomejs.dev/linter/rules/use-filenaming-convention) no longer suggests names with a disallowed case ([#3952](https://github.com/biomejs/biome/issues/3952)). Contributed by @Conaclos

- [useFilenamingConvention](https://biomejs.dev/linter/rules/use-filenaming-convention) now recognizes file names starting with ASCII digits as lowercase ([#3952](https://github.com/biomejs/biome/issues/3952)).

Thus, `2024-09-17-filename`, `2024_09_17_filename` and `20240917FileName` are in `kebab-case`, `snake_case`, and `camelCase` respectively.

Contributed by @Conaclos

- [useFilenamingConvention](https://biomejs.dev/linter/rules/use-filenaming-convention) now applies the configured formats to the file extensions ([#3650](https://github.com/biomejs/biome/discussions/3650)). Contributed by @Conaclos

### Parser

#### Bug fixes

- [useStrictMode](https://biomejs.dev/linter/rules/use-strict-mode/) now reports Script files with some directives, but without the `use strict` directive. Contributed by @Conaclos

- The CSS parser now accepts the characters U+FFDCF and U+FFFD in identifiers. Contributed by @Conaclos

## v1.9.1 (2024-09-15)

### CLI

#### Bug fixes

- `useEditorConfig` now loads the editorconfig when running `biome ci` [#3864](https://github.com/biomejs/biome/issues/3864). Contributed by @dyc3

### Editors

### Formatter
#### Bug fixes

### JavaScript APIs
- Revert [#3731](https://github.com/biomejs/biome/pull/3731) to fix broken quick fixes and code actions. Contributed by @nhedger

### Linter

Expand All @@ -49,8 +103,6 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b

- [noUndeclaredDependencies](https://biomejs.dev/linter/rules/no-undeclared-dependencies/) now ignores `@/` imports and recognizes type imports from Definitely Typed and `bun` imports. Contributed by @Conaclos

### Parser

## v1.9.0 (2024-09-12)

### Analyzer
Expand Down
4 changes: 2 additions & 2 deletions src/content/docs/linter/rules/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ New rules that are still under development.<br /><br />Nursery rules require exp
| [noDynamicNamespaceImportAccess](/linter/rules/no-dynamic-namespace-import-access) | Disallow accessing namespace imports dynamically. | <span class='inline-icon' title="JavaScript and super languages rule."><Icon name="seti:javascript" label="JavaScript and super languages rule." size="1.2rem"/></span> |
| [noEnum](/linter/rules/no-enum) | Disallow TypeScript enum. | <span class='inline-icon' title="TypeScript rule."><Icon name="seti:typescript" label="TypeScript rule" size="1.2rem"/></span> |
| [noExportedImports](/linter/rules/no-exported-imports) | Disallow exporting an imported variable. | <span class='inline-icon' title="JavaScript and super languages rule."><Icon name="seti:javascript" label="JavaScript and super languages rule." size="1.2rem"/></span> |
| [noIrregularWhitespace](/linter/rules/no-irregular-whitespace) | Disallows the use of irregular whitespace characters. | <span class='inline-icon' title="JavaScript and super languages rule."><Icon name="seti:javascript" label="JavaScript and super languages rule." size="1.2rem"/></span> |
| [noIrregularWhitespace](/linter/rules/no-irregular-whitespace) | Disallows the use of irregular whitespace characters. | <span class='inline-icon' title="CSS rule."><Icon name="seti:css" label="CSS rule" size="1.2rem"/></span> |
| [noIrregularWhitespace](/linter/rules/no-irregular-whitespace) | Disallows the use of irregular whitespace characters. | <span class='inline-icon' title="JavaScript and super languages rule."><Icon name="seti:javascript" label="JavaScript and super languages rule." size="1.2rem"/></span> |
| [noProcessEnv](/linter/rules/no-process-env) | Disallow the use of `process.env`. | <span class='inline-icon' title="JavaScript and super languages rule."><Icon name="seti:javascript" label="JavaScript and super languages rule." size="1.2rem"/></span> |
| [noRestrictedImports](/linter/rules/no-restricted-imports) | Disallow specified modules when loaded by import or require. | <span class='inline-icon' title="JavaScript and super languages rule."><Icon name="seti:javascript" label="JavaScript and super languages rule." size="1.2rem"/></span> |
| [noRestrictedTypes](/linter/rules/no-restricted-types) | Disallow user defined types. | <span class='inline-icon' title='The rule has a safe fix.'><Icon name="seti:config" label="The rule has a safe fix" size="1.2rem" /></span><span class='inline-icon' title="TypeScript rule."><Icon name="seti:typescript" label="TypeScript rule" size="1.2rem"/></span> |
Expand Down Expand Up @@ -294,8 +294,8 @@ Rules that detect code that is likely to be incorrect or useless.
| [noDuplicateClassMembers](/linter/rules/no-duplicate-class-members) | Disallow duplicate class members. | <span class='inline-icon' title="This rule is recommended" ><Icon name="approve-check-circle" size="1.2rem" label="This rule is recommended" /></span><span class='inline-icon' title="JavaScript and super languages rule."><Icon name="seti:javascript" label="JavaScript and super languages rule." size="1.2rem"/></span> |
| [noDuplicateFontNames](/linter/rules/no-duplicate-font-names) | Disallow duplicate names within font families. | <span class='inline-icon' title="This rule is recommended" ><Icon name="approve-check-circle" size="1.2rem" label="This rule is recommended" /></span><span class='inline-icon' title="CSS rule."><Icon name="seti:css" label="CSS rule" size="1.2rem"/></span> |
| [noDuplicateJsxProps](/linter/rules/no-duplicate-jsx-props) | Prevents JSX properties to be assigned multiple times. | <span class='inline-icon' title="This rule is recommended" ><Icon name="approve-check-circle" size="1.2rem" label="This rule is recommended" /></span><span class='inline-icon' title="JSX rule."><Icon name="seti:javascript" label="JSX rule" size="1.2rem"/></span> |
| [noDuplicateObjectKeys](/linter/rules/no-duplicate-object-keys) | Disallow two keys with the same name inside objects. | <span class='inline-icon' title="This rule is recommended" ><Icon name="approve-check-circle" size="1.2rem" label="This rule is recommended" /></span><span class='inline-icon' title="The rule has an unsafe fix" ><Icon name="warning" label="The rule has an unsafe fix" size="1.2rem" /></span><span class='inline-icon' title="JavaScript and super languages rule."><Icon name="seti:javascript" label="JavaScript and super languages rule." size="1.2rem"/></span> |
| [noDuplicateObjectKeys](/linter/rules/no-duplicate-object-keys) | Disallow two keys with the same name inside objects. | <span class='inline-icon' title="This rule is recommended" ><Icon name="approve-check-circle" size="1.2rem" label="This rule is recommended" /></span><span class='inline-icon' title="JSON rule."><Icon name="seti:json" label="JSON rule" size="1.2rem"/></span> |
| [noDuplicateObjectKeys](/linter/rules/no-duplicate-object-keys) | Disallow two keys with the same name inside objects. | <span class='inline-icon' title="This rule is recommended" ><Icon name="approve-check-circle" size="1.2rem" label="This rule is recommended" /></span><span class='inline-icon' title="The rule has an unsafe fix" ><Icon name="warning" label="The rule has an unsafe fix" size="1.2rem" /></span><span class='inline-icon' title="JavaScript and super languages rule."><Icon name="seti:javascript" label="JavaScript and super languages rule." size="1.2rem"/></span> |
| [noDuplicateParameters](/linter/rules/no-duplicate-parameters) | Disallow duplicate function parameter name. | <span class='inline-icon' title="This rule is recommended" ><Icon name="approve-check-circle" size="1.2rem" label="This rule is recommended" /></span><span class='inline-icon' title="JavaScript and super languages rule."><Icon name="seti:javascript" label="JavaScript and super languages rule." size="1.2rem"/></span> |
| [noDuplicateSelectorsKeyframeBlock](/linter/rules/no-duplicate-selectors-keyframe-block) | Disallow duplicate selectors within keyframe blocks. | <span class='inline-icon' title="This rule is recommended" ><Icon name="approve-check-circle" size="1.2rem" label="This rule is recommended" /></span><span class='inline-icon' title="CSS rule."><Icon name="seti:css" label="CSS rule" size="1.2rem"/></span> |
| [noDuplicateTestHooks](/linter/rules/no-duplicate-test-hooks) | A `describe` block should not contain duplicate hooks. | <span class='inline-icon' title="This rule is recommended" ><Icon name="approve-check-circle" size="1.2rem" label="This rule is recommended" /></span><span class='inline-icon' title="JavaScript and super languages rule."><Icon name="seti:javascript" label="JavaScript and super languages rule." size="1.2rem"/></span> |
Expand Down
Loading

0 comments on commit 0d8617e

Please sign in to comment.