-
Notifications
You must be signed in to change notification settings - Fork 344
fix(deps): Resolve immutable to 4.3.8 #4465
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
Closed
Closed
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 |
|---|---|---|
|
|
@@ -358,6 +358,7 @@ | |
| "uuid": "^8.3.2" | ||
| }, | ||
| "resolutions": { | ||
| "immutable": "^4.3.0", | ||
| "qs": "^6.14.1", | ||
| "tar": "^7.5.8" | ||
| }, | ||
|
|
||
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:
Repository: box/box-ui-elements
Length of output: 1325
Tighten the immutable version floor to
^4.3.8for consistency.Line 361 sets
immutableto^4.3.0. While the lockfile currently resolves to4.3.8, the semver range allows 4.3.1–4.3.7 in fresh installs. To match the stated target and prevent accidental downgrades, change the lower bound to^4.3.8.Suggested change
📝 Committable suggestion
🤖 Prompt for AI Agents
🧩 Analysis chain
🏁 Script executed:
Repository: box/box-ui-elements
Length of output: 50376
🏁 Script executed:
Repository: box/box-ui-elements
Length of output: 1597
🏁 Script executed:
Repository: box/box-ui-elements
Length of output: 110
🏁 Script executed:
Repository: box/box-ui-elements
Length of output: 1584
🏁 Script executed:
Repository: box/box-ui-elements
Length of output: 2141
🏁 Script executed:
Repository: box/box-ui-elements
Length of output: 479
🏁 Script executed:
Repository: box/box-ui-elements
Length of output: 1089
🏁 Script executed:
Repository: box/box-ui-elements
Length of output: 653
🏁 Script executed:
Repository: box/box-ui-elements
Length of output: 126
Resolve the immutable version contract mismatch between declared v3 and overridden v4 resolutions.
Lines 227 and 326 declare
immutable: ^3.7.4(in devDependencies and peerDependencies respectively), while line 361's resolutions override forcesimmutable: ^4.3.0globally. This creates a version contract conflict: yarn's lockfile consolidates to v4.3.8 via the override, but the declared specifications remain at v3, causing a mismatch between declared contracts and actual resolution. The codebase actively uses immutable APIs (Record, Set, Range, List, OrderedMap, OrderedSet), making this inconsistency problematic for type safety and peer dependency expectations.Either update lines 227 and 326 to
^4.3.0to align with the resolution override, or remove the override and address v4 incompatibilities if remaining on v3 is required.🤖 Prompt for AI Agents