-
Notifications
You must be signed in to change notification settings - Fork 0
Commit c5099f6
authored
chore(deps): update dependency @biomejs/biome to v2.1.2 (#260)
This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| [@biomejs/biome](https://biomejs.dev)
([source](https://redirect.github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome))
| [`2.1.1` ->
`2.1.2`](https://renovatebot.com/diffs/npm/@biomejs%2fbiome/2.1.1/2.1.2)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
<details>
<summary>biomejs/biome (@​biomejs/biome)</summary>
###
[`v2.1.2`](https://redirect.github.com/biomejs/biome/blob/HEAD/packages/@​biomejs/biome/CHANGELOG.md#212)
[Compare
Source](https://redirect.github.com/biomejs/biome/compare/@biomejs/[email protected]...@biomejs/[email protected])
##### Patch Changes
- [#​6908](https://redirect.github.com/biomejs/biome/pull/6908)
[`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! - Fix
[#​6485](https://redirect.github.com/biomejs/biome/issues/6485):
Handle multiple semicolons correctly in blocks
([#​6485](https://redirect.github.com/biomejs/biome/issues/6485))
```css
div {
box-sizing: border-box;
color: red;
}
```
- [#​6908](https://redirect.github.com/biomejs/biome/pull/6908)
[`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Fixed
[#​6762](https://redirect.github.com/biomejs/biome/issues/6762),
Biome now knows that `~/.config/zed/settings.json` and
`~/.config/Code/User/settings.json` allows comments by default.
- [#​6908](https://redirect.github.com/biomejs/biome/pull/6908)
[`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Refactor: remove one level of indirection for CSS declarations with
semicolon
Previously, accessing a declaration from a list required an extra step:
```rust
item
.as_any_css_declaration_with_semicolon()
.as_css_declaration_with_semicolon()
```
Now, it can be done directly with:
```rust
item.as_css_declaration_with_semicolon()
```
- [#​6908](https://redirect.github.com/biomejs/biome/pull/6908)
[`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Fixed a bug where the Biome Language Server didn't correctly ignore
specific files when `vcs.useIgnoreFile` is set to `true`.
- [#​6908](https://redirect.github.com/biomejs/biome/pull/6908)
[`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Improved the performance of `noImportCycles` by ~30%.
- [#​6908](https://redirect.github.com/biomejs/biome/pull/6908)
[`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Fixed
[#​6829](https://redirect.github.com/biomejs/biome/issues/6829):
Fixed a false positive reported by `useImportExtensions` when importing
a `.js` file that had a matching `.d.ts` file in the same folder.
- [#​6908](https://redirect.github.com/biomejs/biome/pull/6908)
[`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Fixed an issue where biome was using the wrong string quotes when the
classes string has quotes, resulting in invalid code after applying the
fix.
- [#​6908](https://redirect.github.com/biomejs/biome/pull/6908)
[`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Improved
[#​6172](https://redirect.github.com/biomejs/biome/issues/6172):
Optimised the way function arguments are stored in Biome's type
inference. This led to about 10% performance improvement in
`RedisCommander.d.ts` and about 2% on `@next/font` type definitions.
- [#​6908](https://redirect.github.com/biomejs/biome/pull/6908)
[`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Fixed a bug where the Biome Language Server would apply an unsafe fix
when using the code action `quickfix.biome`.
Now Biome no longer applies an unsafe code fix when using the code
action `quickfix.biome`.
- [#​6908](https://redirect.github.com/biomejs/biome/pull/6908)
[`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Fixed
[#​6719](https://redirect.github.com/biomejs/biome/issues/6719):
The `noInvalidUseBeforeDeclaration` rule covers additional use cases.
Examples:
```ts
type Bar = { [BAR]: true };
const BAR = "bar";
```
```ts
interface Bar {
child: { grandChild: { [BAR]: typeof BAR; enumFoo: EnumFoo } };
}
const BAR = "bar";
enum EnumFoo {
BAR = "bar",
}
```
- [#​6908](https://redirect.github.com/biomejs/biome/pull/6908)
[`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Biome now considers whether the linter is enabled when figuring out how
the project should be scanned. Resolves
[#​6815](https://redirect.github.com/biomejs/biome/issues/6815).
- [#​6908](https://redirect.github.com/biomejs/biome/pull/6908)
[`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Fixed
[#​6165](https://redirect.github.com/biomejs/biome/issues/6165):
Fixed false negative in
[`noUnusedPrivateClassMembers`](https://biomejs.dev/linter/rules/no-unused-private-class-members/)
rule when checking member usage in classes
- [#​6908](https://redirect.github.com/biomejs/biome/pull/6908)
[`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Fixed a bug where the root ignore file wasn't correctly loaded during
the scanning phase, causing false positives and incorrect expectations
among users.
Now, when using `vcs.useIgnoreFile`, the **the globs specified in the
ignore file from the project root** will have the same semantics as the
`files.includes` setting of the root configuration.
Refer to the [relative web
page](https://biomejs.dev/internals/architecture/#configuring-the-scanner)
to understand how they work.
- [#​6908](https://redirect.github.com/biomejs/biome/pull/6908)
[`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Fixed
[#​6891](https://redirect.github.com/biomejs/biome/issues/6891):
Improved type inference for array indices.
**Example:**
```ts
const numbers: number[];
numbers[42]; // This now infers to `number | undefined`.
```
- [#​6908](https://redirect.github.com/biomejs/biome/pull/6908)
[`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Fixed
[#​6796](https://redirect.github.com/biomejs/biome/issues/6796):
Fixed a false positive that happened in `noFloatingPromises` when
calling functions that were declared as part of `for ... of` syntax
inside `async` functions.
Instead, the variables declared inside `for ... of` loops are now
correctly
inferred if the expression being iterated evaluates to an `Array`
(support for other iterables will follow later).
**Invalid example**
```tsx
const txStatements: Array<(tx) => Promise<any>> = [];
db.transaction((tx: any) => {
for (const stmt of txStatements) {
// We correctly flag this resolves to a `Promise`:
stmt(tx);
}
});
```
**Valid example**
```tsx
async function valid(db) {
const txStatements: Array<(tx: any) => void> = [(tx) =>
tx.insert().run()];
db.transaction((tx: any) => {
for (const stmt of txStatements) {
// We don't flag a false positive here anymore:
stmt(tx);
}
});
}
```
- [#​6908](https://redirect.github.com/biomejs/biome/pull/6908)
[`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Added the rule
[`noVueReservedProps`](https://biomejs.dev/linter/rules/no-vue-reserved-props/),
resolves
[#​6309](https://redirect.github.com/biomejs/biome/issues/6309).
It prevents the use of reserved Vue prop names such as `key` and `ref`
which can cause conflicts and unexpected behavior in Vue components.
##### Invalid example
```js
import { defineComponent } from "vue";
export default defineComponent({
props: ["ref", "key", "foo"],
});
```
```vue
<script setup>
defineProps({
ref: String,
key: String,
foo: String,
});
</script>
```
##### Valid examples
```js
import { defineComponent } from "vue";
export default defineComponent({
props: ["foo"],
});
```
```vue
<script setup>
defineProps({ foo: String });
</script>
```
- [#​6912](https://redirect.github.com/biomejs/biome/pull/6912)
[`af7c6c0`](https://redirect.github.com/biomejs/biome/commit/af7c6c03e93984a7757e4d891b72393ffb105bfa)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Fixed
[#​6904](https://redirect.github.com/biomejs/biome/issues/6904).
Now Biome correctly applies the argument `--assist-enabled=false` when
running the command `ci` and the command `check`.
- [#​6908](https://redirect.github.com/biomejs/biome/pull/6908)
[`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Allow multiple identifiers in ::part() pseudo-element selector.
```css
::part(first second) {
}
```
- [#​6908](https://redirect.github.com/biomejs/biome/pull/6908)
[`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Fixed
[#​6510](https://redirect.github.com/biomejs/biome/issues/6510):
The scanner no longer shows diagnostics on inaccessible files unless
`--verbose` is used.
- [#​6908](https://redirect.github.com/biomejs/biome/pull/6908)
[`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Fixed
[#​6837](https://redirect.github.com/biomejs/biome/issues/6837):
Fixed regression with multiple consecutive line suppression comments
using instances (like `// biome-ignore
lint/correctness/useExhaustiveDependencies(depName): reason`).
- [#​6908](https://redirect.github.com/biomejs/biome/pull/6908)
[`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Fixed an issue where `textDocument/codeAction` in the LSP could respond
with outdated text edits after the workspace watcher observed outdated
changes to the file.
- [#​6908](https://redirect.github.com/biomejs/biome/pull/6908)
[`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
`noFloatingPromises` will no longer suggest to add `await` keyword
inside synchronous callbacks nested inside `async` functions.
- [#​6908](https://redirect.github.com/biomejs/biome/pull/6908)
[`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Fixed
[#​6777](https://redirect.github.com/biomejs/biome/issues/6777):
Fixed type inference handling of `this` to avoid infinite recursion.
Thanks to [@​sterliakov](https://redirect.github.com/sterliakov)
for the thorough investigation!
- [#​6908](https://redirect.github.com/biomejs/biome/pull/6908)
[`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Fixed
[#​6775](https://redirect.github.com/biomejs/biome/issues/6775):
`useReadonlyClassProperties` now also captures mutations inside function
arguments.
Example:
```ts
class Counter {
private counter: number;
count() {
console.log(this.counter++);
const counterString = `${this.counter++}`;
}
}
```
- [#​6723](https://redirect.github.com/biomejs/biome/pull/6723)
[`c434f01`](https://redirect.github.com/biomejs/biome/commit/c434f010a78c38f9a4c223545fb424ad478bd82f)
Thanks [@​sterliakov](https://redirect.github.com/sterliakov)! -
`useUniqueElementIds` now has an `excludedComponents` option to support
elements using `id` prop for reasons not related to DOM element id.
Fixed
[#​6722](https://redirect.github.com/biomejs/biome/issues/6722).
- [#​6908](https://redirect.github.com/biomejs/biome/pull/6908)
[`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Fixed a bug where Biome didn't throw any error when `vcs.useIgnoreFile`
is set to `true`, and there wasn't any ignore file read. Now Biome
correctly throws an error if no ignore files are found.
- [#​6911](https://redirect.github.com/biomejs/biome/pull/6911)
[`6d68074`](https://redirect.github.com/biomejs/biome/commit/6d68074bf2a2ca4bc514398a180524394690fafe)
Thanks [@​arendjr](https://redirect.github.com/arendjr)! - Fixed
[#​6838](https://redirect.github.com/biomejs/biome/issues/6838):
Reduce resource consumption in the Biome Language Server by using
non-recursive filesystem watchers instead of recursive ones.
Watchers are responsible for notifying Biome of changes to files in the
filesystem. We used to set up a single recursive watcher, but that meant
that Biome would receive filesystem notifications for *all* files in
your project, even for ignored folders such as `build/` or `dist/`
folders.
With this patch, we set up non-recursive watchers only for the folders
that are relevant to a project.
Related to this, we also solved an issue where incoming notifications
were incorrectly filtered, causing ignored files to be processed and
stored in our module graph anyway.
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "every weekend" in timezone
America/New_York, Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/dylang/source-map-diff).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4yMy4yIiwidXBkYXRlZEluVmVyIjoiNDEuMjMuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>1 parent e17a5a7 commit c5099f6Copy full SHA for c5099f6
File tree
Expand file treeCollapse file tree
2 files changed
+39
-39
lines changedFilter options
Expand file treeCollapse file tree
2 files changed
+39
-39
lines changed+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
41 |
| - | |
| 41 | + | |
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
|
+38-38Lines changed: 38 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments