Skip to content

chore: bump @metamask/base-controller to ^8.0.0 #30251

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
merged 5 commits into from
Feb 12, 2025

Conversation

cryptodev-2s
Copy link
Contributor

@cryptodev-2s cryptodev-2s commented Feb 11, 2025

Description

This PR bumps @metamask/base-controller from ^7.0.0 to ^8.0.0.
Major changes on version v8 is removal of BaseControllerV1 and old messenger aliases. CHANGELOG

Other minor bumps to align with @metamask/base-controller version (mostly package version updates).

  • @metamask/accounts-controller from ^23.0.0 to ^23.0.1 CHANGELOG
  • @metamask/address-book-controller from ^6.0.0 to ^6.0.3 CHANGELOG
  • @metamask/announcement-controller from ^7.0.0 to ^7.0.3 CHANGELOG
  • @metamask/ens-controller from ^15.0.0 to ^15.0.2 CHANGELOG
  • @metamask/gas-fee-controller from ^22.0.1 to ^22.0.3 CHANGELOG
  • @metamask/keyring-controller from ^19.0.6 to ^19.0.7 CHANGELOG
  • @metamask/logging-controller from ^6.0.0 to ^6.0.4 CHANGELOG
  • @metamask/message-manager from ^12.0.0 to ^12.0.1 CHANGELOG
  • @metamask/multichain-transactions-controller from ^0.2.0 to ^0.3.0 CHANGELOG
  • @metamask/name-controller from ^8.0.0 to ^8.0.3 CHANGELOG
  • @metamask/notification-services-controller from ^0.19.0 to ^0.20.1 CHANGELOG
  • @metamask/permission-controller from ^11.0.0 to ^11.0.6 CHANGELOG
  • @metamask/permission-log-controller from ^3.0.1 to ^3.0.1 CHANGELOG
  • @metamask/phishing-controller from ^12.3.0 to ^12.3.2 CHANGELOG
  • @metamask/polling-controller from ^12.0.1 to ^12.0.3 CHANGELOG
  • @metamask/profile-sync-controller from ^6.0.0 to ^7.0.1 CHANGELOG
  • @metamask/rate-limit-controller from ^6.0.2 to ^6.0.3 CHANGELOG
  • @metamask/user-operation-controller from ^24.0.0 to ^24.0.1 CHANGELOG
  • @metamask/preferences-controller from ^15.0.1 to ^15.0.2 CHANGELOG

Open in GitHub Codespaces

Related issues

Fixes: #30248, #30155

Manual testing steps

Screenshots/Recordings

Before

After

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.

@cryptodev-2s cryptodev-2s self-assigned this Feb 11, 2025
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@cryptodev-2s cryptodev-2s marked this pull request as draft February 11, 2025 16:30
@cryptodev-2s cryptodev-2s force-pushed the cryptodev2s/bump-base-controller-v8 branch from 0f1ad33 to bc03b12 Compare February 11, 2025 21:27
@cryptodev-2s cryptodev-2s marked this pull request as ready for review February 11, 2025 21:27
@cryptodev-2s cryptodev-2s requested review from a team as code owners February 11, 2025 21:27
@cryptodev-2s
Copy link
Contributor Author

@metamaskbot update-policies

Copy link

socket-security bot commented Feb 11, 2025

Updated and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@metamask/[email protected] 🔁 npm/@metamask/[email protected] None 0 288 kB metamaskbot
npm/@metamask/[email protected] 🔁 npm/@metamask/[email protected] None 0 61.1 kB metamaskbot
npm/@metamask/[email protected] 🔁 npm/@metamask/[email protected] None 0 40.8 kB metamaskbot
npm/@metamask/[email protected] 🔁 npm/@metamask/[email protected] None 0 89.7 kB metamaskbot
npm/@metamask/[email protected] 🔁 npm/@metamask/[email protected] None +1 229 kB metamaskbot
npm/@metamask/[email protected] 🔁 npm/@metamask/[email protected] None 0 535 kB metamaskbot
npm/@metamask/[email protected] 🔁 npm/@metamask/[email protected] None 0 53 kB metamaskbot
npm/@metamask/[email protected] 🔁 npm/@metamask/[email protected] None +1 308 kB metamaskbot
npm/@metamask/[email protected] 🔁 npm/@metamask/[email protected] None +2 690 kB metamaskbot
npm/@metamask/[email protected] 🔁 npm/@metamask/[email protected] None 0 282 kB metamaskbot
npm/@metamask/[email protected] 🔁 npm/@metamask/[email protected] None 0 1.37 MB metamaskbot
npm/@metamask/[email protected] 🔁 npm/@metamask/[email protected] None 0 915 kB metamaskbot
npm/@metamask/[email protected] 🔁 npm/@metamask/[email protected] None 0 94.2 kB metamaskbot
npm/@metamask/[email protected] 🔁 npm/@metamask/[email protected] None +1 612 kB metamaskbot
npm/@metamask/[email protected] 🔁 npm/@metamask/[email protected] None 0 98.8 kB metamaskbot
npm/@metamask/[email protected] 🔁 npm/@metamask/[email protected] None 0 140 kB metamaskbot
npm/@metamask/[email protected] 🔁 npm/@metamask/[email protected] Transitive: environment +1 2.27 MB metamaskbot
npm/@metamask/[email protected] 🔁 npm/@metamask/[email protected] None 0 63 kB metamaskbot
npm/@metamask/[email protected] 🔁 npm/@metamask/[email protected] None 0 490 kB metamaskbot

View full report↗︎

@metamaskbot
Copy link
Collaborator

Policies updated.
👀 Please review the diff for suspicious new powers.

🧠 Learn how: https://lavamoat.github.io/guides/policy-diff/#what-to-look-for-when-reviewing-a-policy-diff

@metamaskbot metamaskbot requested review from a team as code owners February 11, 2025 22:18
@metamaskbot
Copy link
Collaborator

Builds ready [9a6f95b]
Page Load Metrics (1788 ± 62 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint16142066179613364
domContentLoaded15961996176012258
load16142052178812862
domInteractive26105402110
backgroundConnect1075312010
firstReactRender1893412613
getState56219189
initialActions01000
loadScripts11341476126610651
setupStore883202110
uiStartup18342509207918388
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 148.73 KiB (2.53%)
  • ui: 13 Bytes (0.00%)
  • common: 43.47 KiB (0.47%)

@@ -19,6 +19,7 @@ export const CronjobControllerInit: ControllerInitFunction<
// with the expected type.
// TODO: Look into the type mismatch.
state: persistedState.CronjobController,
// @ts-expect-error TODO: Resolve mismatch between base-controller versions.
Copy link
Member

Choose a reason for hiding this comment

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

What is the error here?

Copy link
Contributor Author

@cryptodev-2s cryptodev-2s Feb 12, 2025

Choose a reason for hiding this comment

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


Property '#private' in type 'RestrictedMessenger' refers to a different member that cannot be accessed from within type 'RestrictedMessenger'.

This error often occurs when there’s a major version mismatch in base-controller. It will be resolved once we upgrade the controller. In the meantime, we’re using the @ts-ignore rule to accommodate the new base-controller version.

@cryptodev-2s cryptodev-2s requested a review from Mrtenz February 12, 2025 09:43
Copy link
Member

@Mrtenz Mrtenz left a comment

Choose a reason for hiding this comment

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

Looks good to me, assuming you will follow up with other controller bumps and remove the @ts-expect-error comments.

Copy link
Contributor

@ccharly ccharly left a comment

Choose a reason for hiding this comment

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

LGTM, also assuming there'll be a follow-up to re-align the base-controller on every controllers 👍

@cryptodev-2s cryptodev-2s added this pull request to the merge queue Feb 12, 2025
Merged via the queue into main with commit 584c13d Feb 12, 2025
79 checks passed
@cryptodev-2s cryptodev-2s deleted the cryptodev2s/bump-base-controller-v8 branch February 12, 2025 12:06
@github-actions github-actions bot locked and limited conversation to collaborators Feb 12, 2025
@metamaskbot metamaskbot added the release-12.13.0 Issue or pull request that will be included in release 12.13.0 label Feb 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.13.0 Issue or pull request that will be included in release 12.13.0 team-wallet-framework
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Update metamask/base-controller to version 8.0.0
5 participants