Commit cfdd5e7
## Explanation
<!--
Thanks for your contribution! Take a moment to answer these questions so
that reviewers have the information they need to properly understand
your changes:
* What is the current state of things and why does it need to change?
* What is the solution your changes offer and how does it work?
* Are there any changes whose purpose might not obvious to those
unfamiliar with the domain?
* If your primary goal was to update one package but you found you had
to update another one along the way, why did you do so?
* If you had to upgrade a dependency, why did you do so?
-->
## References
<!--
Are there any issues that this pull request is tied to?
Are there other links that reviewers should consult to understand these
changes better?
Are there client or consumer pull requests to adopt any breaking
changes?
For example:
* Fixes #12345
* Related to #67890
-->
* Related to #5626
## Checklist
- [ ] I've updated the test suite for new or updated code as appropriate
- [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [ ] I've communicated my changes to consumers by [updating changelogs
for packages I've
changed](https://github.com/MetaMask/core/tree/main/docs/contributing.md#updating-changelogs),
highlighting breaking changes as necessary
- [ ] I've prepared draft pull requests for clients and consumer
packages to resolve any breaking changes
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Migrates `ComposableController` to `@metamask/messenger`, updates
types/metadata, rewrites tests, and updates dependencies and docs.
>
> - **@metamask/composable-controller**:
> - Migrate from `RestrictedMessenger` to `Messenger`
(`@metamask/messenger`) and `@metamask/base-controller/next` APIs.
> - Update types: add `ComposableControllerActions/GetState`, refine
`ChildControllerStateChangeEvents`, and redefine
`ComposableControllerMessenger` to use `Messenger`.
> - Replace `anonymous` metadata with `includeInDebugSnapshot`; keep
`persist`, `includeInStateLogs`, `usedInUi`.
> - Use `messenger.subscribe` for child `stateChange` events with error
handling; minor cleanup.
> - Tests: rewrite to new messenger API and delegation; add case for
failed subscription; remove allowlist-dependent cases.
> - Add dependency `@metamask/messenger`; update TS project references.
> - Changelog: document breaking changes and a typing fix.
> - **Docs/Graph**:
> - Add `composable_controller --> messenger`; add
`eip_7702_internal_rpc_middleware --> controller_utils` in README
mermaid graph.
> - **Tooling**:
> - Adjust ESLint warning thresholds; update lockfile.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
17e9041. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: Jongsun Suh <jongsun.suh@icloud.com>
Co-authored-by: Salah-Eddine Saakoun <salah-eddine.saakoun@consensys.net>
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
1 parent 1860493 commit cfdd5e7
File tree
9 files changed
+389
-277
lines changed- packages/composable-controller
- src
9 files changed
+389
-277
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| 210 | + | |
210 | 211 | | |
211 | 212 | | |
212 | 213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | 110 | | |
114 | 111 | | |
115 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
10 | 21 | | |
11 | 22 | | |
12 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
0 commit comments