Skip to content

Commit

Permalink
release: 1.4.0 (#820)
Browse files Browse the repository at this point in the history
Co-authored-by: Superchupu <[email protected]>
Co-authored-by: Nicolas Hedger <[email protected]>
Co-authored-by: Victorien Elvinger <[email protected]>
Co-authored-by: Keita Nonaka <[email protected]>
Co-authored-by: Yuiki <[email protected]>
Co-authored-by: chansuke <[email protected]>
Co-authored-by: Jon <[email protected]>
Co-authored-by: ty <[email protected]>
Co-authored-by: chansuke <[email protected]>
Co-authored-by: yoshi2no <[email protected]>
Co-authored-by: Daiki Nishikawa <[email protected]>
  • Loading branch information
12 people committed Nov 27, 2023
1 parent b8a94e3 commit 889593e
Show file tree
Hide file tree
Showing 161 changed files with 4,982 additions and 2,176 deletions.
80 changes: 67 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,51 +8,96 @@ 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).

## Unreleased

### Analyzer
## 1.4.0 (2023-11-27)

### CLI

- Remove the CLI options from the `lsp-proxy`, as they were never meant to be passed to that command. Contributed by @ematipico

- Add option `--config-path` to `lsp-proxy` and `start` commands. It's now possible to tell the Daemon server to load `biome.json` from a custom path. Contributed by @ematipico

- Add new `--diagnostic-level` option to let users control the level of diagnostics printed by the CLI. Possible values are: `"info"`, `"warn"`, `"hint"`. Contributed by @simonxabris
- Add option `--line-feed` to the `format` command. Contributed by @SuperchupuDev
- Add option `--bracket-same-line` to the `format` command. Contributed by @faultyserve
- Add option `--bracket-spacing` to the `format` command. Contributed by @faultyserve

#### Bug fixes

- Fix the command `format`, now it returns a non-zero exit code when if there pending diffs. Contributed by @ematipico

### Configuration

### Editors
- Add option `formatter.lineFeed`. Contributed by @SuperchupuDev
- Add option `javascript.formatter.bracketSameLine`. Contributed by @faultyserve
- Add option `javascript.formatter.bracketSpacing`. Contributed by @faultyserve

### Formatter

#### New features

- Add a new option [`--line-ending`](https://biomejs.dev/reference/configuration/#formatterlineending). This option allows changing the type of line endings. Contributed by @SuperchupuDev
- Added a new option called `--bracket-spacing` to the formatter. This option allows you to control whether spaces are inserted around the brackets of object literals. [#627](https://github.com/biomejs/biome/issues/627). Contributed by @faultyserver
- Added a new option called `--bracket-same-line` to the formatter. This option allows you to control whether spaces are inserted around the brackets of object literals. [#627](https://github.com/biomejs/biome/issues/627). Contributed by @faultyserver

#### Bug fixes

- Fix [#832](https://github.com/biomejs/biome/issues/832), the formatter no longer keeps an unnecessary trailing comma in type parameter lists. Contributed by @Conaclos

- Fix [#301](https://github.com/biomejs/biome/issues/301), the formatter should not break before the `in` keyword. Contributed by @ematipico

### JavaScript APIs

### Linter

#### Promoted rules

- [a11y/noInteractiveElementToNoninteractiveRole](https://biomejs.dev/linter/rules/no-interactive-element-to-noninteractive-role)
- [complexity/noThisInStatic](https://biomejs.dev/linter/rules/no-this-in-static)
- [complexity/useArrowFunction](https://biomejs.dev/linter/rules/use-arrow-function)
- [correctness/noEmptyCharacterClassInRegex](https://biomejs.dev/linter/rules/no-empty-character-class-in-regex)
- [correctness/noInvalidNewBuiltin](https://biomejs.dev/linter/rules/no-invalid-new-builtin)
- [style/noUselessElse](https://biomejs.dev/linter/rules/no-useless-else)
- [style/useAsConstAssertion](https://biomejs.dev/linter/rules/use-as-const-assertion)
- [style/useShorthandAssign](https://biomejs.dev/linter/rules/use-shorthand-assign)
- [suspicious/noApproximativeNumericConstant](https://biomejs.dev/linter/rules/no-approximative-numeric-constant)
- [suspicious/noMisleadingInstantiator](https://biomejs.dev/linter/rules/no-misleading-instantiator)
- [suspicious/noMisrefactoredShorthandAssign](https://biomejs.dev/linter/rules/no-misrefactored-shorthand-assign)

The following rules are now recommended:

- [a11y/noAccessKey](https://biomejs.dev/linter/rules/no-access-key)
- [a11y/useHeadingContent](https://biomejs.dev/linter/rules/use-heading-content)
- [complexity/useSimpleNumberKeys](https://biomejs.dev/linter/use-simple-number-keys)

The following rules are now deprecated:

- [correctness/noNewSymbol](https://biomejs.dev/linter/rules/no-new-symbol)
The rule is replaced by [correctness/noInvalidNewBuiltin](https://biomejs.dev/linter/rules/no-invalid-new-builtin)

#### New features

- Add [noDefaultExport](https://biomejs.dev/linter/rules/no-default-export) which disallows `export default`. Contributed by @Conaclos

- Add [noAriaHiddenOnFocusable](https://biomejs.dev/linter/rules/no-aria-hidden-on-focusable) which reports hidden and focusable elements. Contributed by @vasucp1207

- Add [noImplicitAnyLet](https://biomejs.dev/linter/rules/no-implicit-any-let) that reports variables declared with `let` and without initialization and type annotation. Contributed by @TaKO8Ki and @b4s36t4

- Add [useAwait](https://biomejs.dev/linter/rules/use-await) that reports `async` functions that don't use an `await` expression.

- Add [useValidAriaRole](https://biomejs.dev/linter/rules/use-valid-aria-role). Contributed by @vasucp1207

- Add [useRegexLiterals](https://biomejs.dev/linter/use-regex-literals) that suggests turning call to the regex constructor into regex literals. COntributed by @Yuiki

#### Enhancements

- Add an unsafe code fix for [a11y/useAriaActivedescendantWithTabindex](https://biomejs.dev/linter/rules/use-aria-activedescendant-with-tabindex)

#### Bug fixes

- Fix [#639](https://github.com/biomejs/biome/issues/639) by ignoring unused TypeScript's mapped key. Contributed by @Conaclos

- Fix [#565](https://github.com/biomejs/biome/issues/565) by handling several `infer` with the same name in extends clauses of TypeScript's conditional types. Contributed by @Conaclos

- Fix [#653](https://github.com/biomejs/biome/issues/653). [noUnusedImports](https://biomejs.dev/linter/rules/no-unused-imports) now correctly removes the entire line where the unused `import` is. Contributed by @Conaclos

- Fix [#607](https://github.com/biomejs/biome/issues/609) `useExhaustiveDependencies`, ignore optional chaining, Contributed by @msdlisper

- Fix [#676](https://github.com/biomejs/biome/issues/676), by using the correct node for the `"noreferrer"` when applying the code action. Contributed by @ematipico
Expand All @@ -63,6 +108,16 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom

- Fix [#784](https://github.com/biomejs/biome/issues/784), [noSvgWithoutTitle](https://biomejs.dev/linter/rules/no-svg-without-title) fixes false-positives to `aria-label` and reports svg's role attribute is implicit. Contributed by @unvalley

- Fix [#834](https://github.com/biomejs/biome/issues/834) that made [noUselessLoneBlockStatements](https://biomejs.dev/linter/rules/no-useless-lone-block-statements) reports block statements of switch clauses. Contributed by @vasucp1207

- Fix [#783](https://github.com/biomejs/biome/issues/834) that made [noUselessLoneBlockStatements](https://biomejs.dev/linter/rules/no-useless-lone-block-statements) reports block statements of `try-catch` structures. Contributed by @hougesen

- Fix [#69](https://github.com/biomejs/biome/issues/69) that made [correctness/noUnnecessaryContinue](https://biomejs.dev/linter/rules/no-unnecessary-continue) incorrectly reports a `continue` used to break a switch clause. Contributed by @TaKO8Ki

- Fix [#664](https://github.com/biomejs/biome/issues/664) by improving the diagnostic of [style/useNamingConvention](https://biomejs.dev/linter/use-naming-convention) when double capital are detected in strict camel case mode. Contributed by @vasucp1207

- Fix [#643](https://github.com/biomejs/biome/issues/643) that erroneously parsed the option of [complexity/useExhaustiveDependencies](https://biomejs.dev/linter/use-naming-convention). Contributed by @arendjr

### Parser

#### Bug fixes
Expand Down Expand Up @@ -103,6 +158,12 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom

### Linter

#### New features

- Add [noUnusedPrivateClassMembers](https://biomejs.dev/linter/rules/no-unused-private-class-members) rule.
The rule disallow unused private class members.
Contributed by @victor-teles

#### Bug fixes

- Fix [#175](https://github.com/biomejs/biome/issues/175) which made [noRedeclare](https://biomejs.dev/linter/rules/no-redeclare) report index signatures using the name of a variable in the parent scope.
Expand All @@ -120,12 +181,6 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom
- Fix [#609](https://github.com/biomejs/biome/issues/609) `useExhaustiveDependencies`, by removing `useContext`, `useId` and `useSyncExternalStore` from the known hooks. Contributed by @msdlisper
- Fix `useExhaustiveDependencies`, by removing `useContext`, `useId` and `useSyncExternalStore` from the known hooks. Contributed by @msdlisper

#### New features

- Add [noUnusedPrivateClassMembers](https://biomejs.dev/linter/rules/no-unused-private-class-members) rule.
The rule disallow unused private class members.
Contributed by @victor-teles

### Parser

#### Enhancements
Expand All @@ -141,7 +196,6 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom

- Fix `rage` command, now it doesn't print info about running servers. Contributed by @ematipico


### Editors

#### Bug fixes
Expand Down
5 changes: 3 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,14 +402,15 @@ Members are listed in alphabetical order. Members are free to use the full name,

### Core Contributors team

- [Hiroki Ihoriya @unvalley](https://github.com/unvalley)
- [Daiki Nishikawa @nissy-dev](https://github.com/nissy-dev)
- [Denis Bezrukov @denbezrukov](https://github.com/denbezrukov)
- [Hiroki Ihoriya @unvalley](https://github.com/unvalley)

### Maintainers team

- [Jon Egeland @faultyserver](https://github.com/faultyserver)
- [Madeline Gurriarán @SuperchupuDev](https://github.com/SuperchupuDev)
- [Nicolas Hedger @nhedger](https://github.com/nhedger)
- [Victor Teles @victor-teles](https://github.com/victor-teles)
- [Madeline Gurriarán @SuperchupuDev](https://github.com/SuperchupuDev)
- [Takayuki Maeda @TaKO8Ki](https://github.com/TaKO8Ki)
- [Jon Egeland @faultyserver](https://github.com/faultyserver)
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,15 @@ check ━━━━━━━━━━━━━━━━━━━━━━━━
# Emitted Messages

```block
check.js:1:1 lint/correctness/noNewSymbol FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
check.js:1:1 lint/correctness/noInvalidNewBuiltin FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× Symbol cannot be called as a constructor.
> 1 │ new Symbol("");
│ ^^^^^^^^^^^^^^
i Calling Symbol with the new operator throws a TypeError.
i Unsafe fix: Remove new.
1 │ new·Symbol("");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,15 @@ lint ━━━━━━━━━━━━━━━━━━━━━━━━━
# Emitted Messages

```block
check.js:1:1 lint/correctness/noNewSymbol FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
check.js:1:1 lint/correctness/noInvalidNewBuiltin FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× Symbol cannot be called as a constructor.
> 1 │ new Symbol("");
│ ^^^^^^^^^^^^^^
i Calling Symbol with the new operator throws a TypeError.
i Unsafe fix: Remove new.
1 │ new·Symbol("");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,12 @@ biome.json:6:13 deserialize ━━━━━━━━━━━━━━━━━
- noConstAssign
- noConstantCondition
- noConstructorReturn
- noEmptyCharacterClassInRegex
- noEmptyPattern
- noGlobalObjectCalls
- noInnerDeclarations
- noInvalidConstructorSuper
- noInvalidNewBuiltin
- noNewSymbol
- noNonoctalDecimalEscape
- noPrecisionLoss
Expand Down Expand Up @@ -112,7 +114,9 @@ biome.json:9:13 deserialize ━━━━━━━━━━━━━━━━━
- noRestrictedGlobals
- noShoutyConstants
- noUnusedTemplateLiteral
- noUselessElse
- noVar
- useAsConstAssertion
- useBlockStatements
- useCollapsedElseIf
- useConst
Expand All @@ -125,6 +129,7 @@ biome.json:9:13 deserialize ━━━━━━━━━━━━━━━━━
- useNumericLiterals
- useSelfClosingElements
- useShorthandArrayType
- useShorthandAssign
- useSingleCaseStatement
- useSingleVarDeclarator
- useTemplate
Expand Down
Loading

0 comments on commit 889593e

Please sign in to comment.