Commit 97c24ed
## Explanation
The methods `delegate` and `revoke` have been added to the Messenger
class. These methods replace the need for the `RestrictedMessenger`. The
`getRestricted` method, and the `RestrictedMessenger` class, have been
removed as obsolete.
Note that the `parent` constructor parameter described in the ADR is not
implemented yet, that will come in the next PR.
## References
See this ADR PR for details: MetaMask/decisions#53
Relates to #5626
## Checklist
- [x] I've updated the test suite for new or updated code as appropriate
- [x] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [x] 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
- [x] I've prepared draft pull requests for clients and consumer
packages to resolve any breaking changes
---------
Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
1 parent 2bfb7fc commit 97c24ed
File tree
7 files changed
+1563
-2045
lines changed- packages/messenger
- src
7 files changed
+1563
-2045
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
16 | 23 | | |
17 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
18 | 31 | | |
19 | 32 | | |
20 | 33 | | |
| |||
0 commit comments