biomejs/biome (@biomejs/biome)
### [`v1.9.3`](https://redirect.github.com/biomejs/biome/blob/HEAD/CHANGELOG.md#v193-2024-10-01)
[Compare Source](https://redirect.github.com/biomejs/biome/compare/5f2287e005eadb261a4c78e4ec0fdc0d46068551...3d498ed6399dc642d045f9bb9e9782a88c6bd4c9)
##### 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:
```grit
$async function foo() {} where $async <: .
```
Contributed by [@arendjr](https://redirect.github.com/arendjr)
##### Bug fixes
- Fix [#4077](https://redirect.github.com/biomejs/biome/issues/4077): Grit queries no longer need to match the statement's trailing semicolon. Contributed by [@arendjr](https://redirect.github.com/arendjr)
- Fix [#4102](https://redirect.github.com/biomejs/biome/issues/4102). Now the CLI command `lint` doesn't exit with an error code when using `--write`/`--fix`. Contributed by [@ematipico](https://redirect.github.com/ematipico)
##### Configuration
##### Bug fixes
- Fix [#4125](https://redirect.github.com/biomejs/biome/issues/4125), where `noLabelWithoutControl` options where incorrectly marked as mandatory. Contributed by [@ematipico](https://redirect.github.com/ematipico)
##### Editors
- Fix a case where CSS files weren't correctly linted using the default configuration. Contributed by [@ematipico](https://redirect.github.com/ematipico)
##### Formatter
##### Bug fixes
- Fix [#3924](https://redirect.github.com/biomejs/biome/issues/3924) where GraphQL formatter panics in block comments with empty line. Contributed by [@vohoanglong0107](https://redirect.github.com/vohoanglong0107)
- Fix a case where raw values inside `url()` functions weren't properly trimmed.
```diff
.value {
- background: url(
- whitespace-around-string
- );
+ background: url(whitespace-around-string);
}
```
Contributed by [@ematipico](https://redirect.github.com/ematipico)
- Fixed [#4076](https://redirect.github.com/biomejs/biome/issues/4076), where a media query wasn't correctly formatted:
```diff
.class {
- @media (1024px <= width <=1280px) {
+ @media (1024px <= width <= 1280px) {
color: red;
}
}
```
Contributed by [@blaze-d83](https://redirect.github.com/blaze-d83)
##### JavaScript API
##### Bug fixes
- Fix [#3881](https://redirect.github.com/biomejs/biome/issues/3881), by updating the APIs to use the latest WASM changes. Contributed by [@ematipico](https://redirect.github.com/ematipico)
##### Linter
##### New features
- Add [noDescendingSpecificity](https://biomejs.dev/linter/rules/no-descending-specificity/). Contributed by [@tunamaguro](https://redirect.github.com/tunamaguro)
- Add [noNestedTernary](https://biomejs.dev/linter/rules/no-nested-ternary/). Contributed by [@kaykdm](https://redirect.github.com/kaykdm)
- Add [noTemplateCurlyInString](https://biomejs.dev/linter/rules/no-template-curly-in-string/). Contributed by [@fireairforce](https://redirect.github.com/fireairforce)
- Add [noOctalEscape](https://biomejs.dev/linter/rules/no-octal-escape/). Contributed by [@fireairforce](https://redirect.github.com/fireairforce)
##### Enhancements
- Add an option `reportUnnecessaryDependencies` to [useExhaustiveDependencies](https://biomejs.dev/linter/rules/use-exhaustive-dependencies/).
Defaults to true. When set to false, errors will be suppressed for React hooks that declare dependencies but do not use them.
Contributed by [@simon-paris](https://redirect.github.com/simon-paris)
- Add an option `reportMissingDependenciesArray` to [useExhaustiveDependencies](https://biomejs.dev/linter/rules/use-exhaustive-dependencies/). Contributed by [@simon-paris](https://redirect.github.com/simon-paris)
##### Bug fixes
- [noControlCharactersInRegex](https://www.biomejs.dev/linter/rules/no-control-characters-in-regex) no longer panics on regexes with incomplete escape sequences. Contributed by [@Conaclos](https://redirect.github.com/Conaclos)
- [noMisleadingCharacterClass](https://biomejs.dev/linter/rules/no-misleading-character-class/) no longer reports issues outside of character classes.
The following code is no longer reported:
```js
/[a-z]👍/;
```
Contributed by [@Conaclos](https://redirect.github.com/Conaclos)
- [noUndeclaredDependencies](https://biomejs.dev/linter/rules/no-undeclared-dependencies/) no longer reports Node.js builtin modules as undeclared dependencies.
The rule no longer reports the following code:
```js
import * as fs from "fs";
```
Contributed by [@Conaclos](https://redirect.github.com/Conaclos)
- [noUnusedVariables](https://biomejs.dev/linter/rules/no-unused-variables/) no longer panics when suggesting the renaming of a variable at the start of a file ([#4114](https://redirect.github.com/biomejs/biome/issues/4114)). Contributed by [@Conaclos](https://redirect.github.com/Conaclos)
- [noUselessEscapeInRegex](https://biomejs.dev/linter/rules/no-useless-escape-in-regex/) no longer panics on regexes that start with an empty character class. Contributed by [@Conaclos](https://redirect.github.com/Conaclos)
- [noUselessStringConcat](https://biomejs.dev/linter/rules/no-useless-string-concat/) no longer panics when it encounters malformed code. Contributed by [@Conaclos](https://redirect.github.com/Conaclos)
- [noUnusedFunctionParameters](https://biomejs.dev/linter/rules/no-unused-function-parameters/) no longer reports unused parameters inside an object pattern with a rest parameter.
In the following code, the rule no longer reports `a` as unused.
```js
function f({ a, ...rest }) {
return rest;
}
```
This matches the behavior of [noUnusedVariables](https://biomejs.dev/linter/rules/no-unused-variables/).
Contributed by [@Conaclos](https://redirect.github.com/Conaclos)
- [useButtonType](https://biomejs.dev/linter/rules/use-button-type/) no longer reports dynamically created button with a valid type ([#4072](https://redirect.github.com/biomejs/biome/issues/4072)).
The following code is no longer reported:
```js
React.createElement("button", { type: "button" }, "foo")
```
Contributed by [@Conaclos](https://redirect.github.com/Conaclos)
- [useSemanticElements](https://biomejs.dev/linter/rules/use-semantic-elements/) now ignores elements with the `img` role ([#3994](https://redirect.github.com/biomejs/biome/issues/3994)).
[MDN recommends](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/img_role) using `role="img"` for grouping images or creating an image from other elements.
The following code is no longer reported:
```jsx
🐈 😂
```
Contributed by [@Conaclos](https://redirect.github.com/Conaclos)
- [useSemanticElements](https://biomejs.dev/linter/rules/use-semantic-elements/) now ignores `alert` and `alertdialog` roles ([#3858](https://redirect.github.com/biomejs/biome/issues/3858)). Contributed by [@Conaclos](https://redirect.github.com/Conaclos)
- [noUselessFragments](https://biomejs.dev/linter/rules/no-useless-fragments/) don't create invaild JSX code when Fragments children contains JSX Expression and in a LogicalExpression. Contributed by [@fireairforce](https://redirect.github.com/fireairforce)
##### Parser
##### Bug fixes
- Forbid undefined as type name for typescript parser. Contributed by [@fireairforce](https://redirect.github.com/fireairforce)
actions/checkout (actions/checkout)
### [`v4.2.1`](https://redirect.github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v421)
[Compare Source](https://redirect.github.com/actions/checkout/compare/v4.2.0...v4.2.1)
- Check out other refs/\* by commit if provided, fall back to ref by [@orhantoy](https://redirect.github.com/orhantoy) in [https://github.com/actions/checkout/pull/1924](https://redirect.github.com/actions/checkout/pull/1924)
pnpm/pnpm (pnpm)
### [`v9.12.1`](https://redirect.github.com/pnpm/pnpm/releases/tag/v9.12.1): pnpm 9.12.1
[Compare Source](https://redirect.github.com/pnpm/pnpm/compare/v9.12.0...v9.12.1)
#### Patch Changes
- `pnpm update --latest` should not update the automatically installed peer dependencies [#6657](https://redirect.github.com/pnpm/pnpm/issues/6657).
- `pnpm publish` should be able to publish from a local tarball [#7950](https://redirect.github.com/pnpm/pnpm/issues/7950).
- The pnpx command should work correctly on Windows, when pnpm is installed via the standalone installation script [#8608](https://redirect.github.com/pnpm/pnpm/pull/8608).
- Prevent `EBUSY` errors caused by creating symlinks in parallel `dlx` processes [#8604](https://redirect.github.com/pnpm/pnpm/pull/8604).
- Fix maximum call stack size exceeded error related to circular workspace dependencies [#8599](https://redirect.github.com/pnpm/pnpm/pull/8599).
#### Platinum Sponsors
#### Gold Sponsors
#### Our Silver Sponsors
### [`v9.12.0`](https://redirect.github.com/pnpm/pnpm/releases/tag/v9.12.0): pnpm 9.12
[Compare Source](https://redirect.github.com/pnpm/pnpm/compare/v9.11.0...v9.12.0)
##### Minor Changes
- Fix peer dependency resolution dead lock [#8570](https://redirect.github.com/pnpm/pnpm/issues/8570). This change might change some of the keys in the `snapshots` field inside `pnpm-lock.yaml` but it should happen very rarely.
- `pnpm outdated` command supports now a `--sort-by=name` option for sorting outdated dependencies by package name [#8523](https://redirect.github.com/pnpm/pnpm/pull/8523).
- Added the ability for `overrides` to remove dependencies by specifying `"-"` as the field value [#8572](https://redirect.github.com/pnpm/pnpm/issues/8572). For example, to remove `lodash` from the dependencies, use this configuration in `package.json`:
```json
{
"pnpm": {
"overrides": {
"lodash": "-"
}
}
}
```
##### Patch Changes
- Fixed an issue where `pnpm list --json pkg` showed `"private": false` for a private package [#8519](https://redirect.github.com/pnpm/pnpm/issues/8519).
- Packages with `libc` that differ from `pnpm.supportedArchitectures.libc` are not downloaded [#7362](https://redirect.github.com/pnpm/pnpm/issues/7362).
- Prevent `ENOENT` errors caused by running `store prune` in parallel [#8586](https://redirect.github.com/pnpm/pnpm/pull/8586).
- Add issues alias to `pnpm bugs` [#8596](https://redirect.github.com/pnpm/pnpm/pull/8596).
##### Platinum Sponsors
##### Gold Sponsors
##### Our Silver Sponsors
Configuration
📅 Schedule: Branch creation - "after 2pm on sunday" in timezone Europe/Madrid, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
1.9.2
->1.9.3
^1.9.2
->^1.9.3
^22.7.4
->^22.7.5
v4.2.0
->v4.2.1
9.11.0
->9.12.1
Release Notes
biomejs/biome (@biomejs/biome)
### [`v1.9.3`](https://redirect.github.com/biomejs/biome/blob/HEAD/CHANGELOG.md#v193-2024-10-01) [Compare Source](https://redirect.github.com/biomejs/biome/compare/5f2287e005eadb261a4c78e4ec0fdc0d46068551...3d498ed6399dc642d045f9bb9e9782a88c6bd4c9) ##### 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: ```grit $async function foo() {} where $async <: . ``` Contributed by [@arendjr](https://redirect.github.com/arendjr) ##### Bug fixes - Fix [#4077](https://redirect.github.com/biomejs/biome/issues/4077): Grit queries no longer need to match the statement's trailing semicolon. Contributed by [@arendjr](https://redirect.github.com/arendjr) - Fix [#4102](https://redirect.github.com/biomejs/biome/issues/4102). Now the CLI command `lint` doesn't exit with an error code when using `--write`/`--fix`. Contributed by [@ematipico](https://redirect.github.com/ematipico) ##### Configuration ##### Bug fixes - Fix [#4125](https://redirect.github.com/biomejs/biome/issues/4125), where `noLabelWithoutControl` options where incorrectly marked as mandatory. Contributed by [@ematipico](https://redirect.github.com/ematipico) ##### Editors - Fix a case where CSS files weren't correctly linted using the default configuration. Contributed by [@ematipico](https://redirect.github.com/ematipico) ##### Formatter ##### Bug fixes - Fix [#3924](https://redirect.github.com/biomejs/biome/issues/3924) where GraphQL formatter panics in block comments with empty line. Contributed by [@vohoanglong0107](https://redirect.github.com/vohoanglong0107) - Fix a case where raw values inside `url()` functions weren't properly trimmed. ```diff .value { - background: url( - whitespace-around-string - ); + background: url(whitespace-around-string); } ``` Contributed by [@ematipico](https://redirect.github.com/ematipico) - Fixed [#4076](https://redirect.github.com/biomejs/biome/issues/4076), where a media query wasn't correctly formatted: ```diff .class { - @media (1024px <= width <=1280px) { + @media (1024px <= width <= 1280px) { color: red; } } ``` Contributed by [@blaze-d83](https://redirect.github.com/blaze-d83) ##### JavaScript API ##### Bug fixes - Fix [#3881](https://redirect.github.com/biomejs/biome/issues/3881), by updating the APIs to use the latest WASM changes. Contributed by [@ematipico](https://redirect.github.com/ematipico) ##### Linter ##### New features - Add [noDescendingSpecificity](https://biomejs.dev/linter/rules/no-descending-specificity/). Contributed by [@tunamaguro](https://redirect.github.com/tunamaguro) - Add [noNestedTernary](https://biomejs.dev/linter/rules/no-nested-ternary/). Contributed by [@kaykdm](https://redirect.github.com/kaykdm) - Add [noTemplateCurlyInString](https://biomejs.dev/linter/rules/no-template-curly-in-string/). Contributed by [@fireairforce](https://redirect.github.com/fireairforce) - Add [noOctalEscape](https://biomejs.dev/linter/rules/no-octal-escape/). Contributed by [@fireairforce](https://redirect.github.com/fireairforce) ##### Enhancements - Add an option `reportUnnecessaryDependencies` to [useExhaustiveDependencies](https://biomejs.dev/linter/rules/use-exhaustive-dependencies/). Defaults to true. When set to false, errors will be suppressed for React hooks that declare dependencies but do not use them. Contributed by [@simon-paris](https://redirect.github.com/simon-paris) - Add an option `reportMissingDependenciesArray` to [useExhaustiveDependencies](https://biomejs.dev/linter/rules/use-exhaustive-dependencies/). Contributed by [@simon-paris](https://redirect.github.com/simon-paris) ##### Bug fixes - [noControlCharactersInRegex](https://www.biomejs.dev/linter/rules/no-control-characters-in-regex) no longer panics on regexes with incomplete escape sequences. Contributed by [@Conaclos](https://redirect.github.com/Conaclos) - [noMisleadingCharacterClass](https://biomejs.dev/linter/rules/no-misleading-character-class/) no longer reports issues outside of character classes. The following code is no longer reported: ```js /[a-z]👍/; ``` Contributed by [@Conaclos](https://redirect.github.com/Conaclos) - [noUndeclaredDependencies](https://biomejs.dev/linter/rules/no-undeclared-dependencies/) no longer reports Node.js builtin modules as undeclared dependencies. The rule no longer reports the following code: ```js import * as fs from "fs"; ``` Contributed by [@Conaclos](https://redirect.github.com/Conaclos) - [noUnusedVariables](https://biomejs.dev/linter/rules/no-unused-variables/) no longer panics when suggesting the renaming of a variable at the start of a file ([#4114](https://redirect.github.com/biomejs/biome/issues/4114)). Contributed by [@Conaclos](https://redirect.github.com/Conaclos) - [noUselessEscapeInRegex](https://biomejs.dev/linter/rules/no-useless-escape-in-regex/) no longer panics on regexes that start with an empty character class. Contributed by [@Conaclos](https://redirect.github.com/Conaclos) - [noUselessStringConcat](https://biomejs.dev/linter/rules/no-useless-string-concat/) no longer panics when it encounters malformed code. Contributed by [@Conaclos](https://redirect.github.com/Conaclos) - [noUnusedFunctionParameters](https://biomejs.dev/linter/rules/no-unused-function-parameters/) no longer reports unused parameters inside an object pattern with a rest parameter. In the following code, the rule no longer reports `a` as unused. ```js function f({ a, ...rest }) { return rest; } ``` This matches the behavior of [noUnusedVariables](https://biomejs.dev/linter/rules/no-unused-variables/). Contributed by [@Conaclos](https://redirect.github.com/Conaclos) - [useButtonType](https://biomejs.dev/linter/rules/use-button-type/) no longer reports dynamically created button with a valid type ([#4072](https://redirect.github.com/biomejs/biome/issues/4072)). The following code is no longer reported: ```js React.createElement("button", { type: "button" }, "foo") ``` Contributed by [@Conaclos](https://redirect.github.com/Conaclos) - [useSemanticElements](https://biomejs.dev/linter/rules/use-semantic-elements/) now ignores elements with the `img` role ([#3994](https://redirect.github.com/biomejs/biome/issues/3994)). [MDN recommends](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/img_role) using `role="img"` for grouping images or creating an image from other elements. The following code is no longer reported: ```jsx🐈 😂
actions/checkout (actions/checkout)
### [`v4.2.1`](https://redirect.github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v421) [Compare Source](https://redirect.github.com/actions/checkout/compare/v4.2.0...v4.2.1) - Check out other refs/\* by commit if provided, fall back to ref by [@orhantoy](https://redirect.github.com/orhantoy) in [https://github.com/actions/checkout/pull/1924](https://redirect.github.com/actions/checkout/pull/1924)pnpm/pnpm (pnpm)
### [`v9.12.1`](https://redirect.github.com/pnpm/pnpm/releases/tag/v9.12.1): pnpm 9.12.1 [Compare Source](https://redirect.github.com/pnpm/pnpm/compare/v9.12.0...v9.12.1) #### Patch Changes - `pnpm update --latest` should not update the automatically installed peer dependencies [#6657](https://redirect.github.com/pnpm/pnpm/issues/6657). - `pnpm publish` should be able to publish from a local tarball [#7950](https://redirect.github.com/pnpm/pnpm/issues/7950). - The pnpx command should work correctly on Windows, when pnpm is installed via the standalone installation script [#8608](https://redirect.github.com/pnpm/pnpm/pull/8608). - Prevent `EBUSY` errors caused by creating symlinks in parallel `dlx` processes [#8604](https://redirect.github.com/pnpm/pnpm/pull/8604). - Fix maximum call stack size exceeded error related to circular workspace dependencies [#8599](https://redirect.github.com/pnpm/pnpm/pull/8599). #### Platinum SponsorsConfiguration
📅 Schedule: Branch creation - "after 2pm on sunday" in timezone Europe/Madrid, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.