Commit e8f5dab
authored
chore: mark getAccounts → getPermittedAccountsForOrigin rename as breaking in eip-5792-middleware changelog (#8060)
## 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?
-->
- Mark the #7816 changelog entry in @metamask/eip-5792-middleware as
BREAKING, since it renames the getAccounts hook to
getPermittedAccountsForOrigin (with a changed signature) across
walletSendCalls, walletGetCapabilities, and ProcessSendCallsHooks
- Add migration guidance for consumers
## 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
-->
## 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/processes/updating-changelogs.md)
- [ ] I've introduced [breaking
changes](https://github.com/MetaMask/core/tree/main/docs/processes/breaking-changes.md)
in this PR and have prepared draft pull requests for clients and
consumer packages to resolve them
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Documentation-only change that clarifies a previously introduced
breaking API rename; no runtime behavior is modified.
>
> **Overview**
> Updates the `@metamask/eip-5792-middleware` `CHANGELOG.md` to
explicitly mark the `getAccounts` � `getPermittedAccountsForOrigin` hook
rename as **BREAKING** for `walletSendCalls`, `walletGetCapabilities`,
and `ProcessSendCallsHooks`, and adds brief migration guidance (new hook
name/signature and `origin` requirement on the request).
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
01cbe17. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent ebf29db commit e8f5dab
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
0 commit comments