Skip to content

feat: Add messenger delegate and revoke methods #6132

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Jul 17, 2025

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

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, highlighting breaking changes as necessary
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

@Gudahtt Gudahtt force-pushed the create-messenger-package branch 2 times, most recently from 4876850 to e3899db Compare July 17, 2025 12:36
Base automatically changed from create-messenger-package to main July 17, 2025 12:41
@Gudahtt Gudahtt force-pushed the add-messenger-delegation branch from 06e8700 to 4773644 Compare July 17, 2025 12:57
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.

See this ADR PR for details: MetaMask/decisions#53
@Gudahtt Gudahtt force-pushed the add-messenger-delegation branch from 4773644 to a104532 Compare July 17, 2025 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant