-
-
Notifications
You must be signed in to change notification settings - Fork 205
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: Remove BaseControllerV1
#5018
chore: Remove BaseControllerV1
#5018
Conversation
a0b32c1
to
244f6c8
Compare
5f12a92
to
7800e9b
Compare
380b220
to
a098f82
Compare
af99108
to
9a3f4b6
Compare
d0e584f
to
4bc8b22
Compare
4bc8b22
to
2f1adbb
Compare
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.
Woohoo! Looks great to me! (edit: oh, aside from the conflicts, boo. I will keep an eye on this PR then)
2f1adbb
to
e80228f
Compare
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! We want to merge this change along with the removal of Old Messenger Aliases, which is currently in draft: MetaMask/core#5260.
Good call @cryptodev-2s, I'm going to mark this as |
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!
…ve-BaseControllerV1
Explanation
Removes the deprecated
BaseControllerV1
and 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
AbstractMessageManager
fromBaseControllerV1
toBaseControllerV2
#5103Changelog
@metamask/base-controller
Changed
isBaseController
fromControllerInstance
tounknown
.Removed
BaseControllerV1
and type guardisBaseControllerV1
.BaseConfig
,BaseControllerV1Instance
,BaseState
,ConfigConstraintV1
,Listener
,StateConstraintV1
,LegacyControllerStateConstraint
,ControllerInstance
.@metamask/composable-controller
Changed
ComposableControllerStateConstraint
type usingStateConstraint
instead ofLegacyControllerStateConstraint
.ComposableControllerState
generic argument for theComposableController
class usingComposableControllerStateConstraint
instead ofLegacyComposableControllerStateConstraint
.@metamask/polling-controller
Removed
BlockTrackerPollingControllerV1
,StaticIntervalPollingControllerV1
.Checklist