You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrate from `RestrictedMessenger` to `@metamask/messenger`.
* Fixes#278
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Migrates messenger types and test setup from RestrictedMessenger to
@metamask/messenger across keyring packages, updating dependencies and
changelogs.
>
> - **Messaging migration (BREAKING)**:
> - Replace `RestrictedMessenger` from `@metamask/base-controller` with
new `Messenger` from `@metamask/messenger`.
> - Update `KeyringInternalSnapClientMessenger` and
`SnapKeyringMessenger` type definitions to use `Messenger`.
> - Adjust event payload typing via `ExtractEventPayload` from
`@metamask/messenger`.
> - **Tests**:
> - Refactor `SnapKeyring.test.ts` to construct `Messenger` with
namespaces (`MOCK_ANY_NAMESPACE`) and delegate allowed actions.
> - **Dependencies**:
> - Add `@metamask/messenger@^0.3.0`; remove `@metamask/base-controller`
from affected packages.
> - **Changelogs**:
> - Note breaking changes for `@metamask/keyring-internal-snap-client`
and `@metamask/eth-snap-keyring` regarding the messenger migration.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
74cd0f8. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Copy file name to clipboardExpand all lines: packages/keyring-internal-snap-client/CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [Unreleased]
9
9
10
+
### Changed
11
+
12
+
-**BREAKING:** Migrate `KeyringInternalSnapClientMessenger` to new `Messenger` type from `@metamask/messenger` ([#383](https://github.com/MetaMask/accounts/pull/383))
Copy file name to clipboardExpand all lines: packages/keyring-snap-bridge/CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [Unreleased]
9
9
10
+
### Changed
11
+
12
+
-**BREAKING:** Migrate `SnapKeyringMessenger` to new `Messenger` type from `@metamask/messenger` ([#383](https://github.com/MetaMask/accounts/pull/383))
0 commit comments