Skip to content

Conversation

@Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Sep 19, 2025

Description

Update a variety of packages that are part of the core monorepo 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:

Changelog

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

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Note

Update @metamask/earn-controller to ^8.0.0 and align related peer/transitive dependencies.

  • Dependencies:
    • Upgrade @metamask/earn-controller to ^8.0.0 in package.json.
    • Align linked deps/peers in 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.

@Gudahtt Gudahtt added the No QA Needed Apply this label when your PR does not need any QA effort. label Sep 19, 2025
@Gudahtt Gudahtt force-pushed the resolve-pre-1.0-peer-dependency-warnings branch from 2b5fb75 to d262e94 Compare September 19, 2025 14:16
@metamaskbot metamaskbot added the team-core-platform Core Platform team label Sep 19, 2025
@socket-security
Copy link

socket-security bot commented Sep 19, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​@​metamask/​earn-controller@​7.0.0 ⏵ 8.0.0100 +3100100 +26100 +2100

View full report

@Gudahtt Gudahtt force-pushed the resolve-pre-1.0-peer-dependency-warnings branch from d262e94 to a4076f2 Compare September 22, 2025 12:11
Gudahtt added a commit to MetaMask/core that referenced this pull request Sep 22, 2025
## 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
@Gudahtt Gudahtt force-pushed the resolve-pre-1.0-peer-dependency-warnings branch from a4076f2 to 1020cdd Compare September 22, 2025 18:44
@github-actions github-actions bot added size-S and removed size-XS labels Sep 22, 2025
@Gudahtt Gudahtt marked this pull request as ready for review September 22, 2025 20:58
@Gudahtt Gudahtt requested a review from a team as a code owner September 22, 2025 20:58
@Gudahtt Gudahtt force-pushed the resolve-pre-1.0-peer-dependency-warnings branch from 1020cdd to 4fefbad Compare September 22, 2025 22:07
cursor[bot]

This comment was marked as outdated.

cryptodev-2s
cryptodev-2s previously approved these changes Sep 22, 2025
Copy link
Contributor

@cryptodev-2s cryptodev-2s left a comment

Choose a reason for hiding this comment

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

LGTM!

@Gudahtt Gudahtt force-pushed the resolve-pre-1.0-peer-dependency-warnings branch from 34197fe to 3dcd907 Compare September 22, 2025 22:35
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.55%. Comparing base (3da787a) to head (3dcd907).
⚠️ Report is 31 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Gudahtt Gudahtt marked this pull request as draft September 22, 2025 22:58
@Gudahtt
Copy link
Member Author

Gudahtt commented Sep 22, 2025

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
MarioAslau previously approved these changes Sep 23, 2025
Copy link
Contributor

@MarioAslau MarioAslau left a comment

Choose a reason for hiding this comment

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

LGTM

@Gudahtt Gudahtt marked this pull request as ready for review September 23, 2025 15:05
@Gudahtt Gudahtt force-pushed the resolve-pre-1.0-peer-dependency-warnings branch from fc7953a to d881d4b Compare September 23, 2025 15:05
@Gudahtt
Copy link
Member Author

Gudahtt commented Sep 23, 2025

I've discovered there may have been additional breaking changes included in the two bridge packages. Moving to draft until we can get clarification.

The unintended breaking changes have now been removed with the latest versions of the two bridge controller packages

cryptodev-2s
cryptodev-2s previously approved these changes Sep 23, 2025
Copy link
Contributor

@cryptodev-2s cryptodev-2s left a comment

Choose a reason for hiding this comment

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

LGTM!

@Gudahtt Gudahtt force-pushed the resolve-pre-1.0-peer-dependency-warnings branch from d881d4b to 7a632bd Compare September 24, 2025 12:06
@Gudahtt
Copy link
Member Author

Gudahtt commented Sep 24, 2025

Rebased to resolve conflicts

cryptodev-2s
cryptodev-2s previously approved these changes Sep 24, 2025
Copy link
Contributor

@cryptodev-2s cryptodev-2s left a comment

Choose a reason for hiding this comment

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

LGTM!

@Gudahtt Gudahtt force-pushed the resolve-pre-1.0-peer-dependency-warnings branch from b765f9b to 639fc9f Compare September 24, 2025 15:06
Copy link
Member Author

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

@Gudahtt Gudahtt force-pushed the resolve-pre-1.0-peer-dependency-warnings branch 2 times, most recently from f829a83 to 170def8 Compare September 24, 2025 18:29
@Gudahtt
Copy link
Member Author

Gudahtt commented Sep 24, 2025

Rebased to resolve conflicts again

weitingsun
weitingsun previously approved these changes Sep 24, 2025
@Gudahtt Gudahtt force-pushed the resolve-pre-1.0-peer-dependency-warnings branch from 170def8 to a42066a Compare October 3, 2025 14:53
@Gudahtt Gudahtt changed the title chore: Update packages to resolve peer dependency warnings chore: Update Earn controller to resolve peer dependency warnings Oct 3, 2025
@github-actions github-actions bot added size-XS and removed size-S labels Oct 3, 2025
Copy link
Contributor

@cryptodev-2s cryptodev-2s left a comment

Choose a reason for hiding this comment

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

LGTM!

@Gudahtt Gudahtt enabled auto-merge October 3, 2025 15:03
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 3, 2025

@Gudahtt Gudahtt added this pull request to the merge queue Oct 3, 2025
Merged via the queue into main with commit 08fbb86 Oct 3, 2025
116 checks passed
@Gudahtt Gudahtt deleted the resolve-pre-1.0-peer-dependency-warnings branch October 3, 2025 15:48
@github-actions github-actions bot locked and limited conversation to collaborators Oct 3, 2025
@metamaskbot metamaskbot added the release-7.58.0 Issue or pull request that will be included in release 7.58.0 label Oct 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

No QA Needed Apply this label when your PR does not need any QA effort. release-7.58.0 Issue or pull request that will be included in release 7.58.0 size-XS team-core-platform Core Platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants