-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
chore: Update Earn controller to resolve peer dependency warnings #20044
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
Conversation
2b5fb75 to
d262e94
Compare
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
d262e94 to
a4076f2
Compare
## Explanation Our constraints for `peerDependencies` previously only required the major version to match. However, this was problematic for pre-1.0 packages because it allowed for situations where we cannot update a package without introducing a peer dependency error, since pre-1.0 packages can have breaking changes in minor or patch releases. The constraint has been updated to require the most significant part of the version to be synchronized for peer dependencies, and all resulting constraint errors have been auto-fixed. ## References N/A ## Checklist - [x] I've updated the test suite for new or updated code as appropriate - [x] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate - [x] I've communicated my changes to consumers by [updating changelogs for packages I've changed](https://github.com/MetaMask/core/tree/main/docs/contributing.md#updating-changelogs), highlighting breaking changes as necessary - [x] I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes - Extension: MetaMask/metamask-extension#36093 - Mobile: MetaMask/metamask-mobile#20044
a4076f2 to
1020cdd
Compare
1020cdd to
4fefbad
Compare
cryptodev-2s
left a comment
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.
LGTM!
34197fe to
3dcd907
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #20044 +/- ##
==========================================
+ Coverage 76.54% 76.55% +0.01%
==========================================
Files 3316 3318 +2
Lines 80628 80728 +100
Branches 14716 14742 +26
==========================================
+ Hits 61714 61804 +90
+ Misses 14864 14863 -1
- Partials 4050 4061 +11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I've discovered there may have been additional breaking changes included in the two bridge packages. Moving to draft until we can get clarification. |
MarioAslau
left a comment
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.
LGTM
fc7953a to
d881d4b
Compare
The unintended breaking changes have now been removed with the latest versions of the two bridge controller packages |
cryptodev-2s
left a comment
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.
LGTM!
d881d4b to
7a632bd
Compare
|
Rebased to resolve conflicts |
cryptodev-2s
left a comment
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.
LGTM!
b765f9b to
639fc9f
Compare
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.
This change is included in v44.1.0, which we're updating to here
f829a83 to
170def8
Compare
|
Rebased to resolve conflicts again |
170def8 to
a42066a
Compare
cryptodev-2s
left a comment
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.
LGTM!
|



Description
Update a variety of packages that are part of the
coremonorepo which had peer dependency warnings. The only breaking changes here are the peer dependencies, which should now be aligned.Edit: Other packages were updated in separate PRs, this now only updates the EarnController.
Package changelog:
earn-controller: 8.0.0Changelog
CHANGELOG entry: null
Related issues
Here is the corresponding core PR: MetaMask/core#6652
Manual testing steps
N/A
Screenshots/Recordings
N/A
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Update @metamask/earn-controller to ^8.0.0 and align related peer/transitive dependencies.
@metamask/earn-controllerto^8.0.0inpackage.json.yarn.lock:@metamask/base-controller@^8.4.0,@metamask/controller-utils@^11.14.0,@metamask/keyring-api@^21.0.0, peer@metamask/account-tree-controller@^1.0.0.Written by Cursor Bugbot for commit a42066a. This will update automatically on new commits. Configure here.