-
-
Notifications
You must be signed in to change notification settings - Fork 958
fix(linter): useExhaustiveDependencies revert object method call behavior change, fixes #8958
#9017
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ematipico
merged 1 commit into
biomejs:main
from
mdevils:fix/use-exhaustive-dependencies-revert-behavior-change
Feb 10, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@biomejs/biome": patch | ||
| --- | ||
|
|
||
| Reverted a behavior change in [`useExhaustiveDependencies`](https://biomejs.dev/linter/rules/use-exhaustive-dependencies/) that was accidentally included as part of the [#8802](https://github.com/biomejs/biome/issues/8802) fix. The change made method calls on objects (e.g., `props.data.forEach(...)`) report only the object (`props.data`) as a missing dependency instead of the full member expression. This behavior change will be reconsidered separately. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
# First, let's look at the actual test file to see what was there cat crates/biome_js_analyze/tests/specs/correctness/useExhaustiveDependencies/issue8802.tsRepository: biomejs/biome
Length of output: 611
🏁 Script executed:
Repository: biomejs/biome
Length of output: 39
🏁 Script executed:
Repository: biomejs/biome
Length of output: 39
🏁 Script executed:
Repository: biomejs/biome
Length of output: 39
🏁 Script executed:
Repository: biomejs/biome
Length of output: 39
🏁 Script executed:
Repository: biomejs/biome
Length of output: 161
🏁 Script executed:
# Check the specific commit to see what Component2 was and why it was removed git show c2fa48f1:crates/biome_js_analyze/tests/specs/correctness/useExhaustiveDependencies/issue8802.tsRepository: biomejs/biome
Length of output: 611
🏁 Script executed:
# Check the current commit to see if there are multiple components or just one git log --oneline -n 5 crates/biome_js_analyze/tests/specs/correctness/useExhaustiveDependencies/issue8802.tsRepository: biomejs/biome
Length of output: 161
🏁 Script executed:
Repository: biomejs/biome
Length of output: 89
🏁 Script executed:
Repository: biomejs/biome
Length of output: 270
🏁 Script executed:
# Check the previous commit f788cff2 to see what Component2 contained git show f788cff2:crates/biome_js_analyze/tests/specs/correctness/useExhaustiveDependencies/issue8802.tsRepository: biomejs/biome
Length of output: 955
🏁 Script executed:
# Check the diff between the two commits to see exactly what was removed git diff f788cff2 c2fa48f1 -- crates/biome_js_analyze/tests/specs/correctness/useExhaustiveDependencies/issue8802.tsRepository: biomejs/biome
Length of output: 1294
🏁 Script executed:
Repository: biomejs/biome
Length of output: 39
🏁 Script executed:
Repository: biomejs/biome
Length of output: 39
🏁 Script executed:
Repository: biomejs/biome
Length of output: 1780
🏁 Script executed:
Repository: biomejs/biome
Length of output: 1141
🏁 Script executed:
Repository: biomejs/biome
Length of output: 39
🏁 Script executed:
Repository: biomejs/biome
Length of output: 307
🏁 Script executed:
# Look at the expected test output files to understand what the test validates cat crates/biome_js_analyze/tests/specs/correctness/useExhaustiveDependencies/issue8802.ts.snapRepository: biomejs/biome
Length of output: 1987
Add a test for the
forEachmethod call pattern from issue#8958.The removed
Component2tested the specificprops.data.forEach(...)pattern that triggered the original regression. Without it, that scenario no longer has regression test coverage. Worth re-adding to prevent re-introducing the same issue.🤖 Prompt for AI Agents