Skip to content
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

chore: Update @metamask/gas-fee-controller and peer deps #28745

Merged
merged 4 commits into from
Nov 26, 2024

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Nov 26, 2024

Description

Update the @metamask/gas-fee-controller package to v21 to satisfy the peer dependency on @metamask/network-controller@^21.0.0, and update the @metamask/user-operation-controller to satisfy its peer dependency upon @metamask/gas-fee-controller.

Note that an older version of @metamask/gas-fee-controller (v18) remains in the dependency tree, but only because it's imported by @metamask/smart-transaction-controller for type reasons. It has no runtime impact on the application, so the associated peer dependency warnings from this older release can be ignored. This will be eliminated soon, in an upcoming PR.

The updated @metamask/user-operation-controller still does not have its peer dependencies satisfied, but the problems are pre-existing. The @metamask/keyring-controller and @metamask/transaction-controller packages are head of where this package expects them to be. This is not made worse by this PR though, and will be addressed in a future PR.

Changelogs:

Open in GitHub Codespaces

Related issues

Related to https://github.com/MetaMask/MetaMask-planning/issues/3568

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.

@Gudahtt Gudahtt added the team-confirmations Push issues to confirmations team label Nov 26, 2024
@@ -241,7 +241,6 @@
"@expo/config-plugins/glob": "^10.3.10",
"@solana/web3.js/rpc-websockets": "^8.0.1",
"@metamask/message-manager": "^10.1.0",
"@metamask/gas-fee-controller@npm:^15.1.1": "patch:@metamask/gas-fee-controller@npm%3A15.1.2#~/.yarn/patches/@metamask-gas-fee-controller-npm-15.1.2-db4d2976aa.patch",
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 resolution was already unused. Not directly related to the bump here, but couldn't hurt to remove it.

Update the `@metamask/gas-fee-controller` package to v21 to satisfy the
peer dependency on `@metamask/network-controller@^21.0.0`, and update
the `@metamask/user-operation-controller` to satisfy its peer
dependency upon `@metamask/gas-fee-controller`.

Note that an older version of `@metamask/gas-fee-controller` (v18)
remains in the dependency tree, but only because it's imported by
`@metamask/smart-transaction-controller` for type reasons. It has no
runtime impact on the application, so the associated peer dependency
warnings from this older release can be ignored. This will be
eliminated soon, in an upcoming PR.

The updated `@metamask/user-operation-controller` still does not have
its peer dependencies satisfied, but the problems are pre-existing. The
`@metamask/keyring-controller` and `@metamask/transaction-controller`
packages are head of where this package expects them to be. This is not
made worse by this PR though, and will be addressed in a future PR.
@Gudahtt Gudahtt force-pushed the update-gas-fee-controller branch from eeb0bf4 to aa8e265 Compare November 26, 2024 21:10
@Gudahtt
Copy link
Member Author

Gudahtt commented Nov 26, 2024

@metamaskbot update-policies

Copy link

socket-security bot commented Nov 26, 2024

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

Package New capabilities Transitives Size Publisher
npm/@metamask/[email protected] None 0 220 kB metamaskbot
npm/@metamask/[email protected] None 0 104 kB metamaskbot
npm/@metamask/[email protected] network 0 483 kB metamaskbot

🚮 Removed packages: npm/@metamask/[email protected]

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

@Gudahtt Gudahtt marked this pull request as ready for review November 26, 2024 22:10
@Gudahtt Gudahtt requested review from a team as code owners November 26, 2024 22:10
@metamaskbot
Copy link
Collaborator

Builds ready [243ee18]
Page Load Metrics (1696 ± 80 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint23322211626359172
domContentLoaded15162206166516077
load15372223169616680
domInteractive188235168
backgroundConnect893322512
firstReactRender1876442411
getState56220199
initialActions01000
loadScripts10901655122813062
setupStore75215157
uiStartup17312515190320498
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -63.78 KiB (-1.08%)
  • ui: 0 Bytes (0.00%)
  • common: -9.73 KiB (-0.12%)

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.

Makes sense, looks good.

@Gudahtt Gudahtt enabled auto-merge November 26, 2024 23:03
Copy link
Contributor

@cryptotavares cryptotavares 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 🚀

@Gudahtt Gudahtt added this pull request to the merge queue Nov 26, 2024
Merged via the queue into develop with commit 27763f5 Nov 26, 2024
75 checks passed
@Gudahtt Gudahtt deleted the update-gas-fee-controller branch November 26, 2024 23:32
@github-actions github-actions bot locked and limited conversation to collaborators Nov 26, 2024
@metamaskbot metamaskbot added the release-12.9.0 Issue or pull request that will be included in release 12.9.0 label Nov 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.9.0 Issue or pull request that will be included in release 12.9.0 team-confirmations Push issues to confirmations team team-wallet-framework
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants