-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
fix: Resolve errors, omissions, duplicates in Engine types Global{Actions,Events}
#12407
fix: Resolve errors, omissions, duplicates in Engine types Global{Actions,Events}
#12407
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
|
|
GlobalActions
, GlobalEvents
by adding missing entries and removing redundant, outdated entriesGlobal{Actions,Events}
|
Global{Actions,Events}
Global{Actions,Events}
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.
Fixes errors with notifications controllers action types.
@MajorLift How did we know that these types were incorrect before and how do we know that they are correct now? Or, better, is there any way to guarantee that this won't happen again? |
…rneous entries from `Global{Actions,Events}` types
1a957fb
to
5aa9e00
Compare
|
|
@mcmire The only place the And these are the expectations for the
So in this PR I've simply updated the As to how we can keep these up-to-date in the future: If the
A simpler sanity test is instantiating the engine's messenger as |
This makes sense! I guess I am curious why the global actions/events list fell so far out of sync though. Are we getting type errors on |
I think that with the updates in this PR, the only scenario where this becomes relevant in the future is when adding new controllers to engine context. Whoever's doing that will need to know to update |
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.
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!
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
Description
The
GlobalActions
andGlobalEvents
types have not been updated to keep up with the controller V2 upgrades. This commit adds missing entries and fixes redundant, outdated, or erroneous entries.All changes in this commit are purely at the type-level with no impact on runtime behavior.
Related issues
@metamask/composable-controller
from^3.0.0
to^10.0.0
#10441Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist