Skip to content

Conversation

@Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Sep 18, 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

@socket-security
Copy link

socket-security bot commented Sep 18, 2025

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

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​metamask/​account-tree-controller@​0.12.1 ⏵ 0.18.1100 +2100100 +27100 +3100

View full report

@Gudahtt Gudahtt marked this pull request as ready for review September 18, 2025 15:37
@Gudahtt Gudahtt requested review from a team as code owners September 18, 2025 15:37
@Gudahtt

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@Gudahtt Gudahtt force-pushed the ensure-peer-dependencies-have-latest-breaking-changes branch from 33665a7 to f93b0b9 Compare September 18, 2025 16:43
@Gudahtt
Copy link
Member Author

Gudahtt commented Sep 18, 2025

Rebased to resolve changelog conflicts in account-tree-controller

@Gudahtt

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

mcmire
mcmire previously approved these changes Sep 18, 2025
Copy link
Contributor

@mcmire mcmire left a comment

Choose a reason for hiding this comment

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

LGTM! This does seem better than the behavior that was in place before #6274 was merged.

cryptodev-2s
cryptodev-2s previously approved these changes Sep 18, 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 dismissed stale reviews from cryptodev-2s and mcmire via 8792126 September 19, 2025 12:15
@Gudahtt Gudahtt force-pushed the ensure-peer-dependencies-have-latest-breaking-changes branch from f93b0b9 to 8792126 Compare September 19, 2025 12:15
cursor[bot]

This comment was marked as outdated.

@Gudahtt Gudahtt force-pushed the ensure-peer-dependencies-have-latest-breaking-changes branch from 8792126 to 8c52fbb Compare September 19, 2025 13:35
@Gudahtt

This comment was marked as outdated.

@Gudahtt
Copy link
Member Author

Gudahtt commented Sep 19, 2025

Rebased to resolve conflicts again

@Gudahtt Gudahtt force-pushed the ensure-peer-dependencies-have-latest-breaking-changes branch from 8c52fbb to a7d366c Compare September 19, 2025 13:39
@Gudahtt
Copy link
Member Author

Gudahtt commented Sep 19, 2025

@metamaskbot publish-preview

cryptodev-2s
cryptodev-2s previously approved these changes Sep 19, 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!

@github-actions
Copy link
Contributor

Preview builds have been published. See these instructions for more information about preview builds.

Expand for full list of packages and versions.
{
  "@metamask-previews/account-tree-controller": "0.18.0-preview-a7d366c",
  "@metamask-previews/accounts-controller": "33.1.0-preview-a7d366c",
  "@metamask-previews/address-book-controller": "6.1.1-preview-a7d366c",
  "@metamask-previews/announcement-controller": "7.0.3-preview-a7d366c",
  "@metamask-previews/app-metadata-controller": "1.0.0-preview-a7d366c",
  "@metamask-previews/approval-controller": "7.1.3-preview-a7d366c",
  "@metamask-previews/assets-controllers": "75.2.0-preview-a7d366c",
  "@metamask-previews/base-controller": "8.4.0-preview-a7d366c",
  "@metamask-previews/bridge-controller": "43.1.0-preview-a7d366c",
  "@metamask-previews/bridge-status-controller": "43.1.0-preview-a7d366c",
  "@metamask-previews/build-utils": "3.0.3-preview-a7d366c",
  "@metamask-previews/chain-agnostic-permission": "1.1.1-preview-a7d366c",
  "@metamask-previews/composable-controller": "11.0.0-preview-a7d366c",
  "@metamask-previews/controller-utils": "11.14.0-preview-a7d366c",
  "@metamask-previews/delegation-controller": "0.7.0-preview-a7d366c",
  "@metamask-previews/earn-controller": "7.0.0-preview-a7d366c",
  "@metamask-previews/eip-5792-middleware": "1.2.0-preview-a7d366c",
  "@metamask-previews/eip1193-permission-middleware": "1.0.0-preview-a7d366c",
  "@metamask-previews/ens-controller": "17.0.1-preview-a7d366c",
  "@metamask-previews/error-reporting-service": "2.0.0-preview-a7d366c",
  "@metamask-previews/eth-json-rpc-provider": "4.1.8-preview-a7d366c",
  "@metamask-previews/foundryup": "1.0.1-preview-a7d366c",
  "@metamask-previews/gas-fee-controller": "24.0.0-preview-a7d366c",
  "@metamask-previews/gator-permissions-controller": "0.2.0-preview-a7d366c",
  "@metamask-previews/json-rpc-engine": "10.0.3-preview-a7d366c",
  "@metamask-previews/json-rpc-middleware-stream": "8.0.7-preview-a7d366c",
  "@metamask-previews/keyring-controller": "23.1.0-preview-a7d366c",
  "@metamask-previews/logging-controller": "6.0.4-preview-a7d366c",
  "@metamask-previews/message-manager": "12.0.2-preview-a7d366c",
  "@metamask-previews/messenger": "0.3.0-preview-a7d366c",
  "@metamask-previews/multichain-account-service": "0.11.0-preview-a7d366c",
  "@metamask-previews/multichain-api-middleware": "1.0.0-preview-a7d366c",
  "@metamask-previews/multichain-network-controller": "0.12.0-preview-a7d366c",
  "@metamask-previews/multichain-transactions-controller": "5.0.0-preview-a7d366c",
  "@metamask-previews/name-controller": "8.0.3-preview-a7d366c",
  "@metamask-previews/network-controller": "24.1.0-preview-a7d366c",
  "@metamask-previews/network-enablement-controller": "1.2.0-preview-a7d366c",
  "@metamask-previews/notification-services-controller": "18.1.0-preview-a7d366c",
  "@metamask-previews/permission-controller": "11.0.6-preview-a7d366c",
  "@metamask-previews/permission-log-controller": "4.0.0-preview-a7d366c",
  "@metamask-previews/phishing-controller": "13.1.0-preview-a7d366c",
  "@metamask-previews/polling-controller": "14.0.0-preview-a7d366c",
  "@metamask-previews/preferences-controller": "19.0.0-preview-a7d366c",
  "@metamask-previews/profile-sync-controller": "25.0.0-preview-a7d366c",
  "@metamask-previews/rate-limit-controller": "6.0.3-preview-a7d366c",
  "@metamask-previews/remote-feature-flag-controller": "1.7.0-preview-a7d366c",
  "@metamask-previews/sample-controllers": "1.0.0-preview-a7d366c",
  "@metamask-previews/seedless-onboarding-controller": "4.0.0-preview-a7d366c",
  "@metamask-previews/selected-network-controller": "24.0.0-preview-a7d366c",
  "@metamask-previews/shield-controller": "0.1.2-preview-a7d366c",
  "@metamask-previews/signature-controller": "33.0.0-preview-a7d366c",
  "@metamask-previews/subscription-controller": "0.1.0-preview-a7d366c",
  "@metamask-previews/token-search-discovery-controller": "3.3.0-preview-a7d366c",
  "@metamask-previews/transaction-controller": "60.4.0-preview-a7d366c",
  "@metamask-previews/user-operation-controller": "39.0.0-preview-a7d366c"
}

@Gudahtt Gudahtt force-pushed the ensure-peer-dependencies-have-latest-breaking-changes branch from a7d366c to b351b45 Compare September 19, 2025 15:07
georgewrmarshall added a commit to MetaMask/metamask-design-system that referenced this pull request Sep 19, 2025
…-1.0 packages (#836)

## **Description**

Fixes peer dependency constraints for pre-1.0 packages in the monorepo.
The previous implementation only used major version ranges (`^0.0.0` for
all pre-1.0 packages), which was too permissive and could allow
incompatible older versions. This update ensures peer dependencies
correctly reflect the most significant version digit for breaking
changes, following semantic versioning best practices for pre-1.0
packages.

[Same PR in
core](https://github.com/MetaMask/core/pull/6652/files#diff-594447fef9feecf11f1839e337c464b7b857fdb73fde7e18940eaa9cdf5b819d)

## **Related issues**

Fixes: <!-- Based on MetaMask/core#6652 pattern -->

## **Manual testing steps**

1. Run `yarn constraints` to verify no constraint violations
2. Check that the updated logic handles various version scenarios:
   - `0.4.1` → generates `^0.4.0` peer dependency range
   - `0.2.1` → generates `^0.2.0` peer dependency range
   - `8.1.1` → generates `^8.0.0` peer dependency range (unchanged)
   - `0.0.5` → generates `^0.0.5` peer dependency range
3. Verify existing peer dependencies in package.json files remain valid
4. Test that the constraint logic properly prevents version mismatches

## **Screenshots/Recordings**

Not applicable - this is a build configuration improvement with no
visual changes.

### **Before**

Pre-1.0 packages generated overly permissive `^0.0.0` peer dependency
ranges.

### **After**

Pre-1.0 packages generate appropriate ranges: `^0.minor.0` for
minor-based versions, `^0.0.patch` for patch-only versions.

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs)
- [x] I've completed the PR template to the best of my ability
- [x] I've included tests if applicable
- [x] I've documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I've applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **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.
@Gudahtt Gudahtt force-pushed the ensure-peer-dependencies-have-latest-breaking-changes branch from b351b45 to ac3d7ea Compare September 22, 2025 12:16
@Gudahtt Gudahtt force-pushed the ensure-peer-dependencies-have-latest-breaking-changes branch from ac3d7ea to ce4adab Compare September 22, 2025 14:02
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!

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.
@Gudahtt Gudahtt force-pushed the ensure-peer-dependencies-have-latest-breaking-changes branch from ce4adab to 1dbff7b Compare September 22, 2025 14:18
@Gudahtt Gudahtt enabled auto-merge (squash) September 22, 2025 14:19
@Gudahtt Gudahtt merged commit 784fdf9 into main Sep 22, 2025
239 checks passed
@Gudahtt Gudahtt deleted the ensure-peer-dependencies-have-latest-breaking-changes branch September 22, 2025 14:25
@Gudahtt Gudahtt mentioned this pull request Sep 22, 2025
Gudahtt added a commit that referenced this pull request Sep 22, 2025
## Explanation

This release includes a number of breaking changes and "stabilization"
1.0 releases, intended to resolve a variety of peer dependency warnings
caused by misaligned dependencies on pre-1.0 packages.

## References

See #6652

## Checklist

N/A
github-merge-queue bot pushed a commit to MetaMask/metamask-extension that referenced this pull request Sep 22, 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.


Individual package changelogs:

- `account-tree-controller`:
[1.0.0](https://github.com/MetaMask/core/blob/main/packages/account-tree-controller/CHANGELOG.md#100)
- `assets-controllers`:
[76.0.0](https://github.com/MetaMask/core/blob/main/packages/assets-controllers/CHANGELOG.md#7600)
- `bridge-controller`:
[44.0.0](https://github.com/MetaMask/core/blob/main/packages/bridge-controller/CHANGELOG.md#4400)
- `bridge-status-controller`:
[44.0.0](https://github.com/MetaMask/core/blob/main/packages/bridge-status-controller/CHANGELOG.md#4400)
- `multichain-account-service`:
[1.0.0](https://github.com/MetaMask/core/blob/main/packages/multichain-account-service/CHANGELOG.md#100)
- `multichain-network-controller`:
[1.0.0](https://github.com/MetaMask/core/blob/main/packages/multichain-network-controller/CHANGELOG.md#100)

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/36093?quickstart=1)

## **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**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **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.

---------

Co-authored-by: MetaMask Bot <[email protected]>
github-merge-queue bot pushed a commit to MetaMask/metamask-extension that referenced this pull request Sep 24, 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.


Individual package changelogs:

- `account-tree-controller`:
[1.0.0](https://github.com/MetaMask/core/blob/main/packages/account-tree-controller/CHANGELOG.md#100)
- `assets-controllers`:
[76.0.0](https://github.com/MetaMask/core/blob/main/packages/assets-controllers/CHANGELOG.md#7600)
- `bridge-controller`:
[44.0.0](https://github.com/MetaMask/core/blob/main/packages/bridge-controller/CHANGELOG.md#4400)
- `bridge-status-controller`:
[44.0.0](https://github.com/MetaMask/core/blob/main/packages/bridge-status-controller/CHANGELOG.md#4400)
- `multichain-account-service`:
[1.0.0](https://github.com/MetaMask/core/blob/main/packages/multichain-account-service/CHANGELOG.md#100)
- `multichain-network-controller`:
[1.0.0](https://github.com/MetaMask/core/blob/main/packages/multichain-network-controller/CHANGELOG.md#100)
- 

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/36093?quickstart=1)

## **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**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **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.

---------

Co-authored-by: MetaMask Bot <[email protected]>
github-merge-queue bot pushed a commit to MetaMask/metamask-extension that referenced this pull request Sep 24, 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.


Individual package changelogs:

- `account-tree-controller`:
[1.0.0](https://github.com/MetaMask/core/blob/main/packages/account-tree-controller/CHANGELOG.md#100)
- `assets-controllers`:
[76.0.0](https://github.com/MetaMask/core/blob/main/packages/assets-controllers/CHANGELOG.md#7600)
- `bridge-controller`:
[44.0.0](https://github.com/MetaMask/core/blob/main/packages/bridge-controller/CHANGELOG.md#4400)
- `bridge-status-controller`:
[44.0.0](https://github.com/MetaMask/core/blob/main/packages/bridge-status-controller/CHANGELOG.md#4400)
- `multichain-account-service`:
[1.0.0](https://github.com/MetaMask/core/blob/main/packages/multichain-account-service/CHANGELOG.md#100)
- `multichain-network-controller`:
[1.0.0](https://github.com/MetaMask/core/blob/main/packages/multichain-network-controller/CHANGELOG.md#100)
- 

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/36093?quickstart=1)

## **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**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **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.

---------

Co-authored-by: MetaMask Bot <[email protected]>
github-merge-queue bot pushed a commit to MetaMask/metamask-mobile that referenced this pull request Oct 3, 2025
…0044)

## **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:

- `earn-controller`:
[8.0.0](https://github.com/MetaMask/core/blob/main/packages/earn-controller/CHANGELOG.md#800)


## **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**

- [x] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **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.

<!-- CURSOR_SUMMARY -->
---

> [!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`.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
a42066a. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
infiniteflower pushed a commit to MetaMask/metamask-mobile that referenced this pull request Oct 7, 2025
…0044)

## **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:

- `earn-controller`:
[8.0.0](https://github.com/MetaMask/core/blob/main/packages/earn-controller/CHANGELOG.md#800)


## **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**

- [x] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **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.

<!-- CURSOR_SUMMARY -->
---

> [!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`.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
a42066a. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
weitingsun pushed a commit to MetaMask/metamask-mobile that referenced this pull request Oct 15, 2025
…0044)

## **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:

- `earn-controller`:
[8.0.0](https://github.com/MetaMask/core/blob/main/packages/earn-controller/CHANGELOG.md#800)


## **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**

- [x] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **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.

<!-- CURSOR_SUMMARY -->
---

> [!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`.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
a42066a. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants