Skip to content

Conversation

@V00D00-child
Copy link
Member

@V00D00-child V00D00-child commented Jan 13, 2026

Explanation

This PR updates the @metamask/gator-permissions-controller package to comply with 7715 spec revisions:

  • Bumps @metamask/7715-permission-types: 0.4.0 -> 0.5.0
  • Updated core logic to resolve type compatibility issues

References

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
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

Note

  • Dependency bump: @metamask/7715-permission-types to ^0.5.0.
  • BREAKING types: Replace address/signer with from/to; rename dependencyInfodependencies; surface delegationManager. Update PermissionRequest, PermissionResponse, StoredGatorPermission, and *Sanitized (sanitize now removes dependencies and to).
  • Decoding changes: DecodedPermission now returns from/to; reconstructDecodedPermission and controller decodePermissionFromPermissionContextForOrigin updated accordingly.
  • Controller updates: Adjust sanitization/categorization to new shapes; add explicit return types; no behavior change beyond new field names.
  • Tests/mocks: Updated fixtures and assertions to new fields; added expectations for sanitization. Changelog notes breaking change.

Written by Cursor Bugbot for commit 34a21f4. This will update automatically on new commits. Configure here.

@V00D00-child V00D00-child added the team-delegation MetaMask Delegation Team label Jan 13, 2026
@socket-security
Copy link

socket-security bot commented Jan 13, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​metamask/​7715-permission-types@​0.4.0 ⏵ 0.5.01001007191 +2100

View full report

@V00D00-child V00D00-child changed the title [DRAFT] chore: Update gator-permissions-controller package to comply with 7715 spec revisions chore: Update gator-permissions-controller package to comply with 7715 spec revisions Jan 13, 2026
@V00D00-child V00D00-child marked this pull request as ready for review January 13, 2026 20:04
@V00D00-child V00D00-child requested review from a team as code owners January 13, 2026 20:04
@V00D00-child V00D00-child force-pushed the chore/bump-7715-permission-types-dep-to-absorb-7715-spec-revisions branch from 0a21bd2 to 253bec2 Compare January 13, 2026 20:30
…c-revisions' of github.com:MetaMask/core into chore/bump-7715-permission-types-dep-to-absorb-7715-spec-revisions
};

// Helper to refresh permissions after transaction state change
const refreshPermissions = (context: string) => {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not directly related to this PR, but there are a few ESLint warnings in this file about “Missing return type on function.”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-delegation MetaMask Delegation Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants