Uh oh!
There was an error while loading. Please reload this page.
chore: Remove BaseControllerV1 - #5018
Merged
cryptodev-2s merged 13 commits intoFeb 5, 2025
Merged
Conversation
MajorLiftforce-pushed
the
jongsun/perf/composable-controller/241124-remove-expensive-reduce
branch
from
December 3, 2024 15:04
a0b32c1 to
244f6c8CompareMajorLiftforce-pushed
the
jongsun/refactor/base-controller/241203-remove-BaseControllerV1
branch
3 times, most recently
from
December 3, 2024 15:36
5f12a92 to
7800e9bCompare
Base automatically changed from
jongsun/perf/composable-controller/241124-remove-expensive-reduce to
mainDecember 5, 2024 02:33
MajorLiftforce-pushed
the
jongsun/refactor/base-controller/241203-remove-BaseControllerV1
branch
2 times, most recently
from
January 27, 2025 16:45
380b220 to
a098f82CompareMajorLiftforce-pushed
the
jongsun/refactor/base-controller/241203-remove-BaseControllerV1
branch
from
January 29, 2025 21:16
af99108 to
9a3f4b6CompareMajorLift
marked this pull request as ready for review
January 29, 2025 21:28
MajorLift
enabled auto-merge (squash)
January 29, 2025 21:29
MajorLiftforce-pushed
the
jongsun/refactor/base-controller/241203-remove-BaseControllerV1
branch
from
January 29, 2025 21:34
d0e584f to
4bc8b22CompareMajorLift
disabled auto-merge
January 29, 2025 21:38
MajorLiftforce-pushed
the
jongsun/refactor/base-controller/241203-remove-BaseControllerV1
branch
from
January 31, 2025 09:58
4bc8b22 to
2f1adbbComparemcmire
previously approved these changes
Jan 31, 2025
MajorLiftforce-pushed
the
jongsun/refactor/base-controller/241203-remove-BaseControllerV1
branch
from
February 2, 2025 23:03
2f1adbb to
e80228fCompareMajorLift
enabled auto-merge (squash)
February 3, 2025 01:41
cryptodev-2s
previously approved these changes
Feb 3, 2025
cryptodev-2s
left a comment
Contributor
There was a problem hiding this comment.
LGTM! We want to merge this change along with the removal of Old Messenger Aliases, which is currently in draft: MetaMask/core#5260.
cryptodev-2s
disabled auto-merge
February 3, 2025 15:14
mcmire
commented
Feb 3, 2025
Collaborator
Good call @cryptodev-2s, I'm going to mark this as |
…ve-BaseControllerV1
cryptodev-2s
enabled auto-merge (squash)
February 5, 2025 15:18
cryptodev-2s
deleted the
jongsun/refactor/base-controller/241203-remove-BaseControllerV1
branch
February 5, 2025 15:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explanation
Removes the deprecated
BaseControllerV1and its associated types and methods, replacing them with the V2BaseController, its derived classes, and helper methods.This is the culmination of work completed over multiple quarters, and represents a major step forward for performative and best practice-compliant state management in our clients.
References
AbstractMessageManagerfromBaseControllerV1toBaseControllerV2#5103Changelog
@metamask/base-controllerChanged
isBaseControllerfromControllerInstancetounknown.Removed
BaseControllerV1and type guardisBaseControllerV1.BaseConfig,BaseControllerV1Instance,BaseState,ConfigConstraintV1,Listener,StateConstraintV1,LegacyControllerStateConstraint,ControllerInstance.@metamask/composable-controllerChanged
ComposableControllerStateConstrainttype usingStateConstraintinstead ofLegacyControllerStateConstraint.ComposableControllerStategeneric argument for theComposableControllerclass usingComposableControllerStateConstraintinstead ofLegacyComposableControllerStateConstraint.@metamask/polling-controllerRemoved
BlockTrackerPollingControllerV1,StaticIntervalPollingControllerV1.Checklist