-
-
Notifications
You must be signed in to change notification settings - Fork 253
refactor: migrate {AccountActivity,BackendWebSocket}Service
to @metamask/messenger
#6823
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
base: main
Are you sure you want to change the base?
Conversation
{AccountActivity,BackendWebSocket}Service
to @metamask/messenger
827f7f5
to
9a2a804
Compare
9a2a804
to
daec53e
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 :)
Bug: Race Conditions in Test Asynchronous OperationsRemoving Additional Locations (6)
|
Explanation
This PR migrates
AccountActivityService
andBackendWebSocketService
to the new@metamask/messenger
message bus, as opposed to the one exported from@metamask/base-controller
.References
Checklist
Note
Replace base-controller RestrictedMessenger with @metamask/messenger across services, tests, and exports, with breaking type/constant removals and dependency/config updates.
AccountActivityService
andBackendWebSocketService
to@metamask/messenger
(Messenger
), replacingRestrictedMessenger
from@metamask/base-controller
.AccountActivityServiceMessenger
,BackendWebSocketServiceMessenger
) and allowed action/event type aliases (AllowedActions
,AllowedEvents
).index.ts
andAccountActivityService
.@metamask/messenger
with root/child namespaces anddelegate
; add helpers likegetRootMessenger
.@metamask/messenger
; remove reliance on@metamask/base-controller
; update TS references to../messenger
.yarn.lock
for new dependency.Messenger
and removal of exported controller-messenger-specific types/constants.Written by Cursor Bugbot for commit b7ebc18. This will update automatically on new commits. Configure here.