Skip to content

fix(inference): improve overload selection - #10970

Merged
ematipico merged 2 commits into
mainfrom
07-overload-expected-argument-inference
Jul 18, 2026
Merged

ematipico merged 2 commits into
mainfrom
07-overload-expected-argument-inference

Conversation

@ematipico

@ematipico ematipico commented Jul 17, 2026 •

Copy link
Copy Markdown
Member

Summary

Improves overload selection for calls and constructors with callbacks, rest parameters, union arguments, and generic constraints. noMisusedPromises no longer selects incompatible signatures.

Test Plan

Extended module graph tests and noMisusedPromises specs for overloaded calls and expected callback arguments.

Docs

N/A

This PR was created with AI assistance (OpenCode).

@changeset-bot

changeset-bot Bot commented Jul 17, 2026 •

Copy link
Copy Markdown

πŸ¦‹ Changeset detected

Latest commit: fd511ec

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages
Name Type
@biomejs/biome Patch
@biomejs/cli-win32-x64 Patch
@biomejs/cli-win32-arm64 Patch
@biomejs/cli-darwin-x64 Patch
@biomejs/cli-darwin-arm64 Patch
@biomejs/cli-linux-x64 Patch
@biomejs/cli-linux-arm64 Patch
@biomejs/cli-linux-x64-musl Patch
@biomejs/cli-linux-arm64-musl Patch
@biomejs/wasm-web Patch
@biomejs/wasm-bundler Patch
@biomejs/wasm-nodejs Patch
@biomejs/backend-jsonrpc Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

Copy link
Copy Markdown
Contributor

βœ… Organic activity

No automation signals detected in the analyzed events.

View full analysis β†’

This is an automated analysis by AgentScan

@ematipico
ematipico changed the base branch from 06-retire-module-resolver to graphite-base/10970 July 17, 2026 11:29
@github-actions github-actions Bot added A-Project Area: project A-Linter Area: linter L-JavaScript Language: JavaScript and super languages A-Type-Inference Area: type inference labels Jul 17, 2026
@ematipico
ematipico force-pushed the graphite-base/10970 branch from 04e777a to 1784ba5 Compare July 17, 2026 13:13
@ematipico
ematipico force-pushed the 07-overload-expected-argument-inference branch from 9d9f35a to 2c81541 Compare July 17, 2026 13:13
@ematipico
ematipico changed the base branch from graphite-base/10970 to 06-retire-module-resolver July 17, 2026 13:13
@ematipico
ematipico changed the base branch from 06-retire-module-resolver to graphite-base/10970 July 17, 2026 13:13
@ematipico
ematipico force-pushed the 07-overload-expected-argument-inference branch from 2c81541 to 6e59183 Compare July 17, 2026 14:05
@ematipico
ematipico force-pushed the graphite-base/10970 branch from 1784ba5 to fd112f1 Compare July 17, 2026 14:05
@ematipico
ematipico changed the base branch from graphite-base/10970 to 06-retire-module-resolver July 17, 2026 14:05
@ematipico
ematipico changed the base branch from 06-retire-module-resolver to graphite-base/10970 July 17, 2026 14:06
@ematipico
ematipico force-pushed the 07-overload-expected-argument-inference branch from 6e59183 to dd1cc2c Compare July 18, 2026 09:55
@ematipico
ematipico force-pushed the graphite-base/10970 branch from fd112f1 to 7df46f5 Compare July 18, 2026 09:55
@ematipico
ematipico changed the base branch from graphite-base/10970 to main July 18, 2026 09:55
@ematipico
ematipico marked this pull request as ready for review July 18, 2026 09:58
@ematipico ematipico closed this Jul 18, 2026
@ematipico ematipico reopened this Jul 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

βœ… Organic activity

No automation signals detected in the analyzed events.

View full analysis β†’

This is an automated analysis by AgentScan

@coderabbitai

coderabbitai Bot commented Jul 18, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. πŸŽ‰

ℹ️ Recent review info
βš™οΈ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 9e5c070f-e00a-4a7a-97a1-5744cb9dea64

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between 3e0b12a and fd511ec.

πŸ“’ Files selected for processing (1)
  • crates/biome_module_graph/src/db/queries.rs
🚧 Files skipped from review as they are similar to previous changes (1)
  • crates/biome_module_graph/src/db/queries.rs

Walkthrough

Adds overload-aware call and constructor argument inference to the module graph and typed service. Updates noMisusedPromises to use complete argument lists when determining callback expectations. Extends constructor-signature inference, adds coverage for overloads, spreads, rest parameters, constructors, and generic promise returns, and separates CSS queries into dedicated modules.

Possibly related PRs

Suggested reviewers: dyc3

πŸš₯ Pre-merge checks | βœ… 4
βœ… Passed checks (4 passed)
Check name Status Explanation
Title check βœ… Passed It accurately summarises the main change: improved overload selection in inference.
Description check βœ… Passed It directly describes the overload-selection and noMisusedPromises changes in the patch.
Linked Issues check βœ… Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check βœ… Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
πŸ§ͺ Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch 07-overload-expected-argument-inference

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

πŸ€– Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@crates/biome_module_graph/src/db/queries.rs`:
- Around line 416-445: Update overload matching used by
infer_function_argument_type and the corresponding call/constructor paths to
preserve the parameter mapping selected for spread arguments, returning the
matched parameter type or index rather than reusing argument_index directly. Use
that mapping when evaluating callback expectations, including viable union
mappings where overloads permit multiple matches. Add a regression test covering
a spread before a callback argument.
πŸͺ„ Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
βš™οΈ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: ac5e4a62-9342-4c89-a2d1-5d636f55fc89

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between 7df46f5 and dd1cc2c.

β›” Files ignored due to path filters (3)
  • crates/biome_js_analyze/tests/specs/nursery/noMisusedPromises/checksVoidReturnInvalid.ts.snap is excluded by !**/*.snap and included by **
  • crates/biome_js_analyze/tests/specs/nursery/noMisusedPromises/checksVoidReturnValid.ts.snap is excluded by !**/*.snap and included by **
  • crates/biome_module_graph/tests/snapshots/test_infer_call_expression_type_substitutes_generic_from_callback_promise_union_return_type.snap is excluded by !**/*.snap and included by **
πŸ“’ Files selected for processing (8)
  • .changeset/slimy-berries-march.md
  • crates/biome_js_analyze/src/lint/nursery/no_misused_promises.rs
  • crates/biome_js_analyze/src/services/typed.rs
  • crates/biome_js_analyze/tests/specs/nursery/noMisusedPromises/checksVoidReturnInvalid.ts
  • crates/biome_js_analyze/tests/specs/nursery/noMisusedPromises/checksVoidReturnValid.ts
  • crates/biome_js_type_info/src/local_inference.rs
  • crates/biome_module_graph/src/db/queries.rs
  • crates/biome_module_graph/tests/spec_tests_v2.rs

Comment on lines +416 to +445
fn infer_function_argument_type<'db>(
db: &'db dyn ModuleDb,
callee: InferredTypeData<'db>,
args: &[ResolvedCallArgument<'db>],
argument_index: usize,
) -> Option<InferredTypeData<'db>> {
match callee {
InferredTypeData::Function(function) => {
parameter_for_argument(function.parameters(db), argument_index)
.map(|parameter| parameter_argument_type(db, parameter))
}
InferredTypeData::InstanceOf(instance) => {
let target = instance.ty(db);
let substitutions =
substitutions_for_instance(db, target, instance.type_parameters(db), &[]);
let target = apply_substitutions_to_root_body(db, target, &substitutions);
infer_function_argument_type(db, target, args, argument_index)
}
InferredTypeData::Interface(interface) => {
let function =
select_call_signature(db, interface.members(db), args, Some(argument_index))?;
parameter_for_argument(function.parameters(db), argument_index)
.map(|parameter| parameter_argument_type(db, parameter))
}
InferredTypeData::Object(object) => {
let function =
select_call_signature(db, object.members(db), args, Some(argument_index))?;
parameter_for_argument(function.parameters(db), argument_index)
.map(|parameter| parameter_argument_type(db, parameter))
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | πŸ—οΈ Heavy lift

Preserve the parameter position selected through spreads.

These paths ultimately use argument_index as the parameter index. After a preceding spread consumes multiple parameters, those indices part company, so noMisusedPromises can inspect the wrong expected type. Have overload matching return the matched parameter type/indexβ€”possibly a union of viable mappingsβ€”and use it for both calls and constructors. Please add a spread-before-callback regression test.

Also applies to: 493-510, 568-590

πŸ€– Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@crates/biome_module_graph/src/db/queries.rs` around lines 416 - 445, Update
overload matching used by infer_function_argument_type and the corresponding
call/constructor paths to preserve the parameter mapping selected for spread
arguments, returning the matched parameter type or index rather than reusing
argument_index directly. Use that mapping when evaluating callback expectations,
including viable union mappings where overloads permit multiple matches. Add a
regression test covering a spread before a callback argument.

@ematipico
ematipico force-pushed the 07-overload-expected-argument-inference branch from dd1cc2c to cb77297 Compare July 18, 2026 11:49

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 5

πŸ€– Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@crates/biome_module_graph/src/db/queries/css.rs`:
- Around line 314-318: Update the CSS import collection in
traverse_import_tree_for_html_classes to include dynamic CSS imports alongside
imported_stylesheets and static_import_paths. Match the dynamic-import source
and handling already used by build_parent_nodes, while preserving the existing
filtering and diagnostic tree construction.

In `@crates/biome_module_graph/src/db/queries/type_inference.rs`:
- Around line 783-790: Update the callback compatibility logic around
callable_function in the overload matching path to use full callable
assignability between parameter_function and argument_function, including
parameter and return types and the existing void-return exception, rather than
comparing only returns_promise booleans. Apply the same change to the
corresponding logic in the additional overload path noted by the comment, while
preserving the fallback behavior for non-callable types.
- Around line 378-397: Update push_resolved_tuple_spread_arguments and the
related formal-rest argument resolution so tuple rest elements expand into their
individual sequence elements rather than one optional argument. Track the
current offset when spreading and select the corresponding tuple element for
each later callback argument, preserving optionality and variadic semantics for
both inferred spreads and formal rest tuples.
- Around line 472-491: Update infer_constructor_argument_type_leaf to handle
construct signatures represented by interface and object-type callees, not only
InferredTypeData::Class and Constructor. Extract their construct-signature
parameters and pass them through infer_single_signature_parameter_type so
callback arguments are inferred for expressions such as { new (callback: () =>
void): Result }.

In `@crates/biome_module_graph/tests/spec_tests_v2.rs`:
- Around line 5097-5101: Accept the new Insta snapshot for
assert_inferred_type_snapshot
test_infer_call_expression_type_substitutes_generic_from_callback_promise_union_return_type
using cargo insta accept or cargo insta review, then commit the generated .snap
file alongside the test change.
πŸͺ„ Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
βš™οΈ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 0acea8e7-5f83-4fc7-8439-fa24e6bab8b6

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between dd1cc2c and cb77297.

β›” Files ignored due to path filters (3)
  • crates/biome_js_analyze/tests/specs/nursery/noMisusedPromises/checksVoidReturnInvalid.ts.snap is excluded by !**/*.snap and included by **
  • crates/biome_js_analyze/tests/specs/nursery/noMisusedPromises/checksVoidReturnValid.ts.snap is excluded by !**/*.snap and included by **
  • crates/biome_module_graph/tests/snapshots/test_infer_call_expression_type_substitutes_generic_from_callback_promise_union_return_type.snap is excluded by !**/*.snap and included by **
πŸ“’ Files selected for processing (10)
  • .changeset/slimy-berries-march.md
  • crates/biome_js_analyze/src/lint/nursery/no_misused_promises.rs
  • crates/biome_js_analyze/src/services/typed.rs
  • crates/biome_js_analyze/tests/specs/nursery/noMisusedPromises/checksVoidReturnInvalid.ts
  • crates/biome_js_analyze/tests/specs/nursery/noMisusedPromises/checksVoidReturnValid.ts
  • crates/biome_js_type_info/src/local_inference.rs
  • crates/biome_module_graph/src/db/queries.rs
  • crates/biome_module_graph/src/db/queries/css.rs
  • crates/biome_module_graph/src/db/queries/type_inference.rs
  • crates/biome_module_graph/tests/spec_tests_v2.rs
🚧 Files skipped from review as they are similar to previous changes (6)
  • crates/biome_js_type_info/src/local_inference.rs
  • crates/biome_js_analyze/src/lint/nursery/no_misused_promises.rs
  • crates/biome_js_analyze/tests/specs/nursery/noMisusedPromises/checksVoidReturnInvalid.ts
  • .changeset/slimy-berries-march.md
  • crates/biome_js_analyze/tests/specs/nursery/noMisusedPromises/checksVoidReturnValid.ts
  • crates/biome_js_analyze/src/services/typed.rs

Comment on lines +378 to +397
fn push_resolved_tuple_spread_arguments<'db>(
db: &'db dyn ModuleDb,
tuple: &InferredTuple<'db>,
resolved: &mut Vec<ResolvedCallArgument<'db>>,
) {
for element in tuple.elements(db) {
let ty = if element.is_optional || element.is_rest {
InferredTypeData::union_from_types(
db,
Vec::from([element.ty, InferredTypeData::Undefined]),
)
} else {
element.ty
};
if element.is_optional || element.is_rest {
resolved.push(ResolvedCallArgument::Optional(ty));
} else {
resolved.push(ResolvedCallArgument::Argument(ty));
}
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | πŸ—οΈ Heavy lift

Preserve variadic tuple-rest semantics.

A tuple rest element is collapsed into one optional argument, while a formal rest tuple such as (...args: [number, () => void]) yields the whole tuple for every position. Both cases mis-map later callback arguments. Expand tuple rests as sequences/spreads and select the corresponding tuple element by offset.

Also applies to: 804-828

πŸ€– Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@crates/biome_module_graph/src/db/queries/type_inference.rs` around lines 378
- 397, Update push_resolved_tuple_spread_arguments and the related formal-rest
argument resolution so tuple rest elements expand into their individual sequence
elements rather than one optional argument. Track the current offset when
spreading and select the corresponding tuple element for each later callback
argument, preserving optionality and variadic semantics for both inferred
spreads and formal rest tuples.

Comment on lines +472 to +491
fn infer_constructor_argument_type_leaf<'db>(
db: &'db dyn ModuleDb,
callee: InferredTypeData<'db>,
args: &[ResolvedCallArgument<'db>],
argument_index: usize,
) -> Option<InferredTypeData<'db>> {
match callee {
InferredTypeData::Class(class) => {
select_constructor_argument_type(db, class.members(db), args, argument_index)
}
InferredTypeData::Constructor(constructor) => {
let parameters = constructor
.parameters(db)
.iter()
.map(|parameter| parameter.parameter.clone())
.collect::<Vec<_>>();
infer_single_signature_parameter_type(db, &parameters, args, argument_index)
}
_ => None,
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚑ Quick win

Support construct signatures declared on interfaces and object types.

new on an interface such as { new (callback: () => void): Result } currently returns None, skipping callback inference entirely.

Proposed fix
         InferredTypeData::Class(class) => {
             select_constructor_argument_type(db, class.members(db), args, argument_index)
         }
+        InferredTypeData::Interface(interface) => {
+            select_constructor_argument_type(db, interface.members(db), args, argument_index)
+        }
+        InferredTypeData::Object(object) => {
+            select_constructor_argument_type(db, object.members(db), args, argument_index)
+        }
πŸ“ Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
fn infer_constructor_argument_type_leaf<'db>(
db: &'db dyn ModuleDb,
callee: InferredTypeData<'db>,
args: &[ResolvedCallArgument<'db>],
argument_index: usize,
) -> Option<InferredTypeData<'db>> {
match callee {
InferredTypeData::Class(class) => {
select_constructor_argument_type(db, class.members(db), args, argument_index)
}
InferredTypeData::Constructor(constructor) => {
let parameters = constructor
.parameters(db)
.iter()
.map(|parameter| parameter.parameter.clone())
.collect::<Vec<_>>();
infer_single_signature_parameter_type(db, &parameters, args, argument_index)
}
_ => None,
}
fn infer_constructor_argument_type_leaf<'db>(
db: &'db dyn ModuleDb,
callee: InferredTypeData<'db>,
args: &[ResolvedCallArgument<'db>],
argument_index: usize,
) -> Option<InferredTypeData<'db>> {
match callee {
InferredTypeData::Class(class) => {
select_constructor_argument_type(db, class.members(db), args, argument_index)
}
InferredTypeData::Interface(interface) => {
select_constructor_argument_type(db, interface.members(db), args, argument_index)
}
InferredTypeData::Object(object) => {
select_constructor_argument_type(db, object.members(db), args, argument_index)
}
InferredTypeData::Constructor(constructor) => {
let parameters = constructor
.parameters(db)
.iter()
.map(|parameter| parameter.parameter.clone())
.collect::<Vec<_>>();
infer_single_signature_parameter_type(db, &parameters, args, argument_index)
}
_ => None,
}
}
πŸ€– Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@crates/biome_module_graph/src/db/queries/type_inference.rs` around lines 472
- 491, Update infer_constructor_argument_type_leaf to handle construct
signatures represented by interface and object-type callees, not only
InferredTypeData::Class and Constructor. Extract their construct-signature
parameters and pass them through infer_single_signature_parameter_type so
callback arguments are inferred for expressions such as { new (callback: () =>
void): Result }.

Comment on lines +783 to +790
match (
parameter_ty.callable_function(db),
arg_ty.callable_function(db),
) {
(Some(parameter_function), Some(argument_function)) => {
parameter_function.returns_promise(db) == argument_function.returns_promise(db)
}
_ => true,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | πŸ—οΈ Heavy lift

Compare callback signatures, not only Promise parity.

() => string and () => number both report false here, so the first overload wins despite an incompatible return type. Use callable assignabilityβ€”including parameters and return types, with the void exceptionβ€”instead of this Boolean comparison.

Also applies to: 1045-1061

πŸ€– Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@crates/biome_module_graph/src/db/queries/type_inference.rs` around lines 783
- 790, Update the callback compatibility logic around callable_function in the
overload matching path to use full callable assignability between
parameter_function and argument_function, including parameter and return types
and the existing void-return exception, rather than comparing only
returns_promise booleans. Apply the same change to the corresponding logic in
the additional overload path noted by the comment, while preserving the fallback
behavior for non-callable types.

@ematipico
ematipico force-pushed the 07-overload-expected-argument-inference branch from cb77297 to 3e0b12a Compare July 18, 2026 12:04

Copy link
Copy Markdown
Member Author

I will address coderabbit comments in a separate PR, this one diverge a lot from the initial design because it spreads salsa queries onto different files and regions

@codspeed

codspeed Bot commented Jul 18, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

βœ… 76 untouched benchmarks
⏩ 192 skipped benchmarks1


Comparing 07-overload-expected-argument-inference (fd511ec) with main (8ebafe1)

Open in CodSpeed

Footnotes

  1. 192 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@ematipico
ematipico merged commit bd1038b into main Jul 18, 2026
32 checks passed
@ematipico
ematipico deleted the 07-overload-expected-argument-inference branch July 18, 2026 17:37
@github-actions github-actions Bot mentioned this pull request Jul 18, 2026
OIRNOIR pushed a commit to OIRNOIR/YouTube-Helper-Client that referenced this pull request Jul 28, 2026
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@biomejs/biome](https://biomejs.dev) ([source](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome)) | imports | patch | [`2.5.4` -> `2.5.5`](https://renovatebot.com/diffs/npm/@biomejs%2fbiome/2.5.4/2.5.5) |

---

### Release Notes

<details>
<summary>biomejs/biome (@&#8203;biomejs/biome)</summary>

### [`v2.5.5`](https://github.com/biomejs/biome/blob/HEAD/packages/@&#8203;biomejs/biome/CHANGELOG.md#255)

[Compare Source](https://github.com/biomejs/biome/compare/@biomejs/biome@2.5.4...@biomejs/biome@2.5.5)

##### Patch Changes

- [#&#8203;10972](biomejs/biome#10972) [`ab8c21b`](biomejs/biome@ab8c21b) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed [`useExhaustiveSwitchCases`](https://biomejs.dev/linter/rules/use-exhaustive-switch-cases/) for unions of bigint literals. The rule now reports missing bigint cases and compares bigint literals by value, including binary, octal, hexadecimal, and separator-containing spellings. For example, this switch now reports the missing `2n` case:

  ```ts
  declare const value: 1n | 2n;
  switch (value) {
    case 1n:
      break;
  }
  ```

- [#&#8203;10972](biomejs/biome#10972) [`ab8c21b`](biomejs/biome@ab8c21b) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed false positives in [`noBaseToString`](https://biomejs.dev/linter/rules/no-base-to-string/) and [`useNullishCoalescing`](https://biomejs.dev/linter/rules/use-nullish-coalescing/) when member, stringification, or nullish inference cannot complete. These rules now suppress diagnostics instead of reporting from partial type information. For example, neither expression is reported when a recursive type cannot be fully resolved:

  ```ts
  type Recursive = Recursive;
  declare const value: Recursive;

  String(value);
  value || "fallback";
  ```

- [#&#8203;10977](biomejs/biome#10977) [`0bf7486`](biomejs/biome@0bf7486) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed [#&#8203;10922](biomejs/biome#10922): the action [`useSortedAttributes`](https://biomejs.dev/assist/actions/use-sorted-attributes/) no longer triggers for HTML instructions.

- [#&#8203;10957](biomejs/biome#10957) [`cf263c4`](biomejs/biome@cf263c4) Thanks [@&#8203;dyc3](https://github.com/dyc3)! - Fixed [`noThenProperty`](https://biomejs.dev/linter/rules/no-then-property/) failing to detect `Object.fromEntries`, `Object.defineProperty`, and `Reflect.defineProperty` calls with comments between their tokens.

- [#&#8203;10983](biomejs/biome#10983) [`edc0ed7`](biomejs/biome@edc0ed7) Thanks [@&#8203;ayaangazali](https://github.com/ayaangazali)! - Fixed [#&#8203;10980](biomejs/biome#10980): [`useAriaPropsSupportedByRole`](https://biomejs.dev/linter/rules/use-aria-props-supported-by-role/) no longer reports false positives when the attribute that determines an element's implicit ARIA role is written as a shorthand attribute, such as `<a {href} aria-label="...">` in Astro and Svelte files.

  Shorthand attributes are now taken into account when computing the implicit role, so the anchor above correctly resolves to the `link` role instead of `generic`.

- [#&#8203;10889](biomejs/biome#10889) [`89526e3`](biomejs/biome@89526e3) Thanks [@&#8203;denbezrukov](https://github.com/denbezrukov)! - Fixed CSS formatter casing for syntax-owned names while preserving author-defined names, including scoped keyframes and container scroll-state queries.

  ```diff
  - A:HOVER { COLOR: INITIAL; }
  + A:hover { color: initial; }
  - @&#8203;KEYFRAMES :GLOBAL KeepFrames { FROM { COLOR: RED; } }
  + @&#8203;keyframes :GLOBAL KeepFrames { from { color: RED; } }
  - @&#8203;CONTAINER scroll-state((SCROLLED: TOP) AND (STUCK)) { A:HOVER { COLOR: RED; } }
  + @&#8203;container scroll-state((SCROLLED: TOP) AND (STUCK)) { A:hover { color: RED; } }
  ```

- [#&#8203;10964](biomejs/biome#10964) [`794ccd0`](biomejs/biome@794ccd0) Thanks [@&#8203;denbezrukov](https://github.com/denbezrukov)! - Fixed CSS formatting for comments between declaration values and `!important`.

  ```diff
  -a { color: /* before */ /* after */ red !important; }
  +a { color: /* before */ red /* after */ !important; }
  ```

- [#&#8203;10993](biomejs/biome#10993) [`b7a9694`](biomejs/biome@b7a9694) Thanks [@&#8203;denbezrukov](https://github.com/denbezrukov)! - Fixed the CSS formatter to preserve comments on the correct side of selector combinators and before declaration blocks.

  ```diff
  -.before > /* comment */ .after {}
  +.before /* comment */ > .after {}
  ```

  It now also keeps selectors with escaped newlines in attribute values inline when they fit.

  ```diff
  -div
  -  span[foo="bar\
  +div span[foo="bar\
   value"] {}
  ```

- [#&#8203;10978](biomejs/biome#10978) [`8ebafe1`](biomejs/biome@8ebafe1) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed [#&#8203;10870](biomejs/biome#10870): [`noUnresolvedImports`](https://biomejs.dev/linter/rules/no-unresolved-imports/) no longer reports false positives such as `import type { NextRequest } from "next/server"`.

- [#&#8203;10901](biomejs/biome#10901) [`68c10e6`](biomejs/biome@68c10e6) Thanks [@&#8203;Socialpranker](https://github.com/Socialpranker)! - Fixed [#&#8203;10622](biomejs/biome#10622): the HTML/Vue parser no longer panics on the argument-less `v-bind` shorthand (`:="props"`).

  This syntax is valid Vue and equivalent to `v-bind="props"`, so the parser now accepts it (along with the longhand `v-bind:="props"`) instead of crashing while building a diagnostic for a missing argument.

- [#&#8203;10936](biomejs/biome#10936) [`7df46f5`](biomejs/biome@7df46f5) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Improved generic tuple inference for [`useIncludes`](https://biomejs.dev/linter/rules/use-includes/). The rule now recognizes specialised tuple element types returned through generic aliases.

- [#&#8203;10941](biomejs/biome#10941) [`f787725`](biomejs/biome@f787725) Thanks [@&#8203;siketyan](https://github.com/siketyan)! - Fixed [`#10855`](biomejs/biome#10855): Biome now supports parsing and formatting CSS custom media queries declared with [`@custom-media`](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@&#8203;custom-media).

- [#&#8203;10969](biomejs/biome#10969) [`72d309b`](biomejs/biome@72d309b) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed an issue where Biome logs became too verbose, dumping information not relevant to user's operations.

- [`e62f6b6`](biomejs/biome@e62f6b6) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed [#&#8203;10963](biomejs/biome#10963): Biome no longer panics when a type-aware rule such as [`noFloatingPromises`](https://biomejs.dev/linter/rules/no-floating-promises/) checks a call to a function with multiple call signatures imported from another module.

- [#&#8203;10931](biomejs/biome#10931) [`899c60d`](biomejs/biome@899c60d) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed `check --write` command. Now the command reports code frame of the formatted code, if the formatter is enabled.

- [#&#8203;10904](biomejs/biome#10904) [`ceee4f4`](biomejs/biome@ceee4f4) Thanks [@&#8203;qzwxsaedc](https://github.com/qzwxsaedc)! - Fixed [#&#8203;10892](biomejs/biome#10892): [`noUnnecessaryConditions`](https://biomejs.dev/linter/rules/no-unnecessary-conditions/) no longer reports a false positive when checking a member of a discriminated union that is accessed through a default type-only namespace import. The following code is no longer flagged:

  ```ts
  import type Types from "./types";

  declare function parse(): Types.Result<string>;
  const result = parse();
  if (!result.success) {
  }
  ```

- [#&#8203;10962](biomejs/biome#10962) [`f0a67f2`](biomejs/biome@f0a67f2) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Biome no longer removes embedded styles and scripts in HTML files.

- [#&#8203;11000](biomejs/biome#11000) [`5039a1e`](biomejs/biome@5039a1e) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed a bug where closing one editor stopped a shared Biome daemon used by other editors. LSP proxy processes now exit when either the editor or daemon disconnects.

- [#&#8203;10957](biomejs/biome#10957) [`cf263c4`](biomejs/biome@cf263c4) Thanks [@&#8203;dyc3](https://github.com/dyc3)! - Improved the performance of the [`noThenProperty`](https://biomejs.dev/linter/rules/no-then-property/) lint rule by about 50%.

- [#&#8203;10992](biomejs/biome#10992) [`4bf9b21`](biomejs/biome@4bf9b21) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed [`noMisusedPromises`](https://biomejs.dev/linter/rules/no-misused-promises/): The rule now reports Promise-returning callbacks where a synchronous callback is expected when calls use tuple spreads or tuple rest parameters, including generic and deeply nested tuples, and when constructor signatures come from interface or object types. Recursive or excessively nested tuple spreads use a conservative fallback so analysis terminates.

  For example, the following callback is now reported.

  ```ts
  declare function consume(...args: [number, () => void]): void;
  const prefix: [number] = [1];

  consume(...prefix, async () => {});
  ```

- [#&#8203;10915](biomejs/biome#10915) [`b3b12b3`](biomejs/biome@b3b12b3) Thanks [@&#8203;Functionhx](https://github.com/Functionhx)! - Added the rule [`noNegationInEqualityCheck`](https://biomejs.dev/linter/rules/no-negation-in-equality-check/). The rule flags negated expressions on the left side of strict equality checks like `!foo === bar` β€” due to operator precedence this evaluates as `(!foo) === bar` which is almost always a mistake for `foo !== bar`.

  The rule provides an unsafe fix that flips the operator.

  ```js
  // Invalid
  !foo === bar;
  !foo !== bar;

  // Valid
  foo !== bar;
  foo === bar;
  ```

- [#&#8203;10970](biomejs/biome#10970) [`bd1038b`](biomejs/biome@bd1038b) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Improved overload selection for [`noMisusedPromises`](https://biomejs.dev/linter/rules/no-misused-promises/). Biome now handles overloaded calls, overloaded constructors, rest parameters, union arguments, and generic constraints without selecting an incompatible signature. For example, `noMisusedPromises` now reports the async callback passed to the synchronous overload:

  ```ts
  declare function consume(kind: "async", callback: () => Promise<void>): void;
  declare function consume(kind: "sync", callback: () => void): void;
  consume("sync", async () => {});
  ```

- [#&#8203;10933](biomejs/biome#10933) [`48a4abb`](biomejs/biome@48a4abb) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed [`useArrayFind`](https://biomejs.dev/linter/rules/use-array-find/) to recognize bigint zero indexes.

- [#&#8203;10931](biomejs/biome#10931) [`899c60d`](biomejs/biome@899c60d) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed an orchestration issue that could lead to deadlocks when type-aware rules are enabled.

- [#&#8203;10969](biomejs/biome#10969) [`72d309b`](biomejs/biome@72d309b) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Hardened the Biome Language Server by improving its synchronisation logic.

- [#&#8203;10972](biomejs/biome#10972) [`ab8c21b`](biomejs/biome@ab8c21b) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed false positives in [`noMisusedPromises`](https://biomejs.dev/linter/rules/no-misused-promises/) and [`useAwaitThenable`](https://biomejs.dev/linter/rules/use-await-thenable/) when Promise or thenable inference cannot complete. These rules now suppress diagnostics instead of treating incomplete type information as a definite result. For example, `useAwaitThenable` no longer reports `await value` when the value's thenability is unknown:

  ```ts
  declare const value: unknown;

  async function consume() {
    await value;
  }
  ```

</details>

---

### Configuration

πŸ“… **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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.

πŸ”• **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 has been generated by [Mend Renovate](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNzIuNCIsInVwZGF0ZWRJblZlciI6IjQzLjI3Mi40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Reviewed-on: https://git.oirnoir.dev/OIRNOIR/YouTube-Helper-Client/pulls/14
OIRNOIR pushed a commit to OIRNOIR/YouTube-Helper-Server that referenced this pull request Jul 28, 2026
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@biomejs/biome](https://biomejs.dev) ([source](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome)) | imports | patch | [`2.5.4` -> `2.5.5`](https://renovatebot.com/diffs/npm/@biomejs%2fbiome/2.5.4/2.5.5) |

---

### Release Notes

<details>
<summary>biomejs/biome (@&#8203;biomejs/biome)</summary>

### [`v2.5.5`](https://github.com/biomejs/biome/blob/HEAD/packages/@&#8203;biomejs/biome/CHANGELOG.md#255)

[Compare Source](https://github.com/biomejs/biome/compare/@biomejs/biome@2.5.4...@biomejs/biome@2.5.5)

##### Patch Changes

- [#&#8203;10972](biomejs/biome#10972) [`ab8c21b`](biomejs/biome@ab8c21b) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed [`useExhaustiveSwitchCases`](https://biomejs.dev/linter/rules/use-exhaustive-switch-cases/) for unions of bigint literals. The rule now reports missing bigint cases and compares bigint literals by value, including binary, octal, hexadecimal, and separator-containing spellings. For example, this switch now reports the missing `2n` case:

  ```ts
  declare const value: 1n | 2n;
  switch (value) {
    case 1n:
      break;
  }
  ```

- [#&#8203;10972](biomejs/biome#10972) [`ab8c21b`](biomejs/biome@ab8c21b) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed false positives in [`noBaseToString`](https://biomejs.dev/linter/rules/no-base-to-string/) and [`useNullishCoalescing`](https://biomejs.dev/linter/rules/use-nullish-coalescing/) when member, stringification, or nullish inference cannot complete. These rules now suppress diagnostics instead of reporting from partial type information. For example, neither expression is reported when a recursive type cannot be fully resolved:

  ```ts
  type Recursive = Recursive;
  declare const value: Recursive;

  String(value);
  value || "fallback";
  ```

- [#&#8203;10977](biomejs/biome#10977) [`0bf7486`](biomejs/biome@0bf7486) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed [#&#8203;10922](biomejs/biome#10922): the action [`useSortedAttributes`](https://biomejs.dev/assist/actions/use-sorted-attributes/) no longer triggers for HTML instructions.

- [#&#8203;10957](biomejs/biome#10957) [`cf263c4`](biomejs/biome@cf263c4) Thanks [@&#8203;dyc3](https://github.com/dyc3)! - Fixed [`noThenProperty`](https://biomejs.dev/linter/rules/no-then-property/) failing to detect `Object.fromEntries`, `Object.defineProperty`, and `Reflect.defineProperty` calls with comments between their tokens.

- [#&#8203;10983](biomejs/biome#10983) [`edc0ed7`](biomejs/biome@edc0ed7) Thanks [@&#8203;ayaangazali](https://github.com/ayaangazali)! - Fixed [#&#8203;10980](biomejs/biome#10980): [`useAriaPropsSupportedByRole`](https://biomejs.dev/linter/rules/use-aria-props-supported-by-role/) no longer reports false positives when the attribute that determines an element's implicit ARIA role is written as a shorthand attribute, such as `<a {href} aria-label="...">` in Astro and Svelte files.

  Shorthand attributes are now taken into account when computing the implicit role, so the anchor above correctly resolves to the `link` role instead of `generic`.

- [#&#8203;10889](biomejs/biome#10889) [`89526e3`](biomejs/biome@89526e3) Thanks [@&#8203;denbezrukov](https://github.com/denbezrukov)! - Fixed CSS formatter casing for syntax-owned names while preserving author-defined names, including scoped keyframes and container scroll-state queries.

  ```diff
  - A:HOVER { COLOR: INITIAL; }
  + A:hover { color: initial; }
  - @&#8203;KEYFRAMES :GLOBAL KeepFrames { FROM { COLOR: RED; } }
  + @&#8203;keyframes :GLOBAL KeepFrames { from { color: RED; } }
  - @&#8203;CONTAINER scroll-state((SCROLLED: TOP) AND (STUCK)) { A:HOVER { COLOR: RED; } }
  + @&#8203;container scroll-state((SCROLLED: TOP) AND (STUCK)) { A:hover { color: RED; } }
  ```

- [#&#8203;10964](biomejs/biome#10964) [`794ccd0`](biomejs/biome@794ccd0) Thanks [@&#8203;denbezrukov](https://github.com/denbezrukov)! - Fixed CSS formatting for comments between declaration values and `!important`.

  ```diff
  -a { color: /* before */ /* after */ red !important; }
  +a { color: /* before */ red /* after */ !important; }
  ```

- [#&#8203;10993](biomejs/biome#10993) [`b7a9694`](biomejs/biome@b7a9694) Thanks [@&#8203;denbezrukov](https://github.com/denbezrukov)! - Fixed the CSS formatter to preserve comments on the correct side of selector combinators and before declaration blocks.

  ```diff
  -.before > /* comment */ .after {}
  +.before /* comment */ > .after {}
  ```

  It now also keeps selectors with escaped newlines in attribute values inline when they fit.

  ```diff
  -div
  -  span[foo="bar\
  +div span[foo="bar\
   value"] {}
  ```

- [#&#8203;10978](biomejs/biome#10978) [`8ebafe1`](biomejs/biome@8ebafe1) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed [#&#8203;10870](biomejs/biome#10870): [`noUnresolvedImports`](https://biomejs.dev/linter/rules/no-unresolved-imports/) no longer reports false positives such as `import type { NextRequest } from "next/server"`.

- [#&#8203;10901](biomejs/biome#10901) [`68c10e6`](biomejs/biome@68c10e6) Thanks [@&#8203;Socialpranker](https://github.com/Socialpranker)! - Fixed [#&#8203;10622](biomejs/biome#10622): the HTML/Vue parser no longer panics on the argument-less `v-bind` shorthand (`:="props"`).

  This syntax is valid Vue and equivalent to `v-bind="props"`, so the parser now accepts it (along with the longhand `v-bind:="props"`) instead of crashing while building a diagnostic for a missing argument.

- [#&#8203;10936](biomejs/biome#10936) [`7df46f5`](biomejs/biome@7df46f5) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Improved generic tuple inference for [`useIncludes`](https://biomejs.dev/linter/rules/use-includes/). The rule now recognizes specialised tuple element types returned through generic aliases.

- [#&#8203;10941](biomejs/biome#10941) [`f787725`](biomejs/biome@f787725) Thanks [@&#8203;siketyan](https://github.com/siketyan)! - Fixed [`#10855`](biomejs/biome#10855): Biome now supports parsing and formatting CSS custom media queries declared with [`@custom-media`](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@&#8203;custom-media).

- [#&#8203;10969](biomejs/biome#10969) [`72d309b`](biomejs/biome@72d309b) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed an issue where Biome logs became too verbose, dumping information not relevant to user's operations.

- [`e62f6b6`](biomejs/biome@e62f6b6) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed [#&#8203;10963](biomejs/biome#10963): Biome no longer panics when a type-aware rule such as [`noFloatingPromises`](https://biomejs.dev/linter/rules/no-floating-promises/) checks a call to a function with multiple call signatures imported from another module.

- [#&#8203;10931](biomejs/biome#10931) [`899c60d`](biomejs/biome@899c60d) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed `check --write` command. Now the command reports code frame of the formatted code, if the formatter is enabled.

- [#&#8203;10904](biomejs/biome#10904) [`ceee4f4`](biomejs/biome@ceee4f4) Thanks [@&#8203;qzwxsaedc](https://github.com/qzwxsaedc)! - Fixed [#&#8203;10892](biomejs/biome#10892): [`noUnnecessaryConditions`](https://biomejs.dev/linter/rules/no-unnecessary-conditions/) no longer reports a false positive when checking a member of a discriminated union that is accessed through a default type-only namespace import. The following code is no longer flagged:

  ```ts
  import type Types from "./types";

  declare function parse(): Types.Result<string>;
  const result = parse();
  if (!result.success) {
  }
  ```

- [#&#8203;10962](biomejs/biome#10962) [`f0a67f2`](biomejs/biome@f0a67f2) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Biome no longer removes embedded styles and scripts in HTML files.

- [#&#8203;11000](biomejs/biome#11000) [`5039a1e`](biomejs/biome@5039a1e) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed a bug where closing one editor stopped a shared Biome daemon used by other editors. LSP proxy processes now exit when either the editor or daemon disconnects.

- [#&#8203;10957](biomejs/biome#10957) [`cf263c4`](biomejs/biome@cf263c4) Thanks [@&#8203;dyc3](https://github.com/dyc3)! - Improved the performance of the [`noThenProperty`](https://biomejs.dev/linter/rules/no-then-property/) lint rule by about 50%.

- [#&#8203;10992](biomejs/biome#10992) [`4bf9b21`](biomejs/biome@4bf9b21) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed [`noMisusedPromises`](https://biomejs.dev/linter/rules/no-misused-promises/): The rule now reports Promise-returning callbacks where a synchronous callback is expected when calls use tuple spreads or tuple rest parameters, including generic and deeply nested tuples, and when constructor signatures come from interface or object types. Recursive or excessively nested tuple spreads use a conservative fallback so analysis terminates.

  For example, the following callback is now reported.

  ```ts
  declare function consume(...args: [number, () => void]): void;
  const prefix: [number] = [1];

  consume(...prefix, async () => {});
  ```

- [#&#8203;10915](biomejs/biome#10915) [`b3b12b3`](biomejs/biome@b3b12b3) Thanks [@&#8203;Functionhx](https://github.com/Functionhx)! - Added the rule [`noNegationInEqualityCheck`](https://biomejs.dev/linter/rules/no-negation-in-equality-check/). The rule flags negated expressions on the left side of strict equality checks like `!foo === bar` β€” due to operator precedence this evaluates as `(!foo) === bar` which is almost always a mistake for `foo !== bar`.

  The rule provides an unsafe fix that flips the operator.

  ```js
  // Invalid
  !foo === bar;
  !foo !== bar;

  // Valid
  foo !== bar;
  foo === bar;
  ```

- [#&#8203;10970](biomejs/biome#10970) [`bd1038b`](biomejs/biome@bd1038b) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Improved overload selection for [`noMisusedPromises`](https://biomejs.dev/linter/rules/no-misused-promises/). Biome now handles overloaded calls, overloaded constructors, rest parameters, union arguments, and generic constraints without selecting an incompatible signature. For example, `noMisusedPromises` now reports the async callback passed to the synchronous overload:

  ```ts
  declare function consume(kind: "async", callback: () => Promise<void>): void;
  declare function consume(kind: "sync", callback: () => void): void;
  consume("sync", async () => {});
  ```

- [#&#8203;10933](biomejs/biome#10933) [`48a4abb`](biomejs/biome@48a4abb) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed [`useArrayFind`](https://biomejs.dev/linter/rules/use-array-find/) to recognize bigint zero indexes.

- [#&#8203;10931](biomejs/biome#10931) [`899c60d`](biomejs/biome@899c60d) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed an orchestration issue that could lead to deadlocks when type-aware rules are enabled.

- [#&#8203;10969](biomejs/biome#10969) [`72d309b`](biomejs/biome@72d309b) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Hardened the Biome Language Server by improving its synchronisation logic.

- [#&#8203;10972](biomejs/biome#10972) [`ab8c21b`](biomejs/biome@ab8c21b) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed false positives in [`noMisusedPromises`](https://biomejs.dev/linter/rules/no-misused-promises/) and [`useAwaitThenable`](https://biomejs.dev/linter/rules/use-await-thenable/) when Promise or thenable inference cannot complete. These rules now suppress diagnostics instead of treating incomplete type information as a definite result. For example, `useAwaitThenable` no longer reports `await value` when the value's thenability is unknown:

  ```ts
  declare const value: unknown;

  async function consume() {
    await value;
  }
  ```

</details>

---

### Configuration

πŸ“… **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- 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.

πŸ”• **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 has been generated by [Mend Renovate](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNzIuNCIsInVwZGF0ZWRJblZlciI6IjQzLjI3Mi40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Reviewed-on: https://git.oirnoir.dev/OIRNOIR/YouTube-Helper-Server/pulls/31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Linter Area: linter A-Project Area: project A-Type-Inference Area: type inference L-JavaScript Language: JavaScript and super languages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant