-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Update controller packages to match core v42 #6125
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
7143e1d
to
125aa70
Compare
5b9530f
to
77c6815
Compare
47ca3b1
to
381bb42
Compare
77c6815
to
65fc728
Compare
a124353
to
120d8a7
Compare
65fc728
to
5ff5eac
Compare
5ff5eac
to
2d44482
Compare
5553673
to
fdade64
Compare
Most controller packages have been updated to the versions included in the core monorepo v42 release. The keyring controller was the only package held back, due to the BigInt incompatibility. The breaking change for most of these updates was related to the removal of the `isomorphic-fetch` package. That package would polyfill the `fetch` API if it wasn't present. It's not a breaking change for mobile because mobile already includes its own polyfill for the `fetch` API. The only other breaking change is to the gas fee controller, which has made a constructor parameter required rather than optional. This does not affect mobile because mobile already sets that parameter.. See here for the release notes for each updated controller: https://github.com/MetaMask/core/releases/tag/v42.0.0 This progresses MetaMask/mobile-planning#798
fdade64
to
33bb454
Compare
The Bitrise iOS e2e tests succeeded: https://app.bitrise.io/build/3abfec4a-1077-45c6-89c1-0a3872a319e9 |
@Gudahtt I sent over a few comments. Once you tracked down the results on the Android side let me know and I can review again. |
Got a successful Android e2e test run here (passing all tests except 2 that are failing on |
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
Development & PR Process
release-xx
label to identify the PR slated for a upcoming release (will be used in release discussion)needs-dev-review
label when work is completedneeds-qa
label when dev review is completedQA Passed
label when QA has signed offDescription
Most controller packages have been updated to the versions included in the core monorepo v42 release. The keyring controller was the only package held back, due to the BigInt incompatibility.
The breaking change for most of these updates was related to the removal of the
isomorphic-fetch
package. That package would polyfill thefetch
API if it wasn't present. It's not a breaking change for mobile because mobile already includes its own polyfill for thefetch
API.The only other breaking change is to the gas fee controller, which has made a constructor parameter required rather than optional. This does not affect mobile because mobile already sets that parameter..
See here for the release notes for each updated controller: https://github.com/MetaMask/core/releases/tag/v42.0.0
A number of packages had their ranges reduced from
^
to~
or were pinned so that the scope of this PR could be kept reasonably small. Two required resolutions to avoid bringing in unwanted updates. Here are the details:@metamask/controller-utils
range set to~3.0.0
with a resolutionLater versions of this package use the @metamask/utils package, which has introduced BigInt-related problems for mobile recently. We can remove this resolution in a future PR after carefully considering the impact, or after the React Native upgrade.
@metamask/approval-controller
range set to~2.0.0
with a resolutionThis was necessary to avoid dependencies upon later
@metamask/controller-utils
versions"@metamask/assets-controllers
pinned to5.0.0
Avoids dependency upon
@metamask/[email protected]
, which is required by@metamask/[email protected]
@metamask/gas-fee-controller
pinned to4.0.0
Avoids dependency upon
@metamask/[email protected]
, which is required by@metamask/[email protected]
@metamask/permission-controller
range reduced to~3.0.0
Avoids dependency upon later versions of
@metamask/approval-controller
@metamask/transaction-controller
pinned to4.0.0
Avoids dependency upon
@metamask/[email protected]
, which is required by@metamask//[email protected]
Issue
Progresses https://github.com/MetaMask/mobile-planning/issues/798
Checklist