Skip to content

Latest commit

 

History

History
132 lines (84 loc) · 7.46 KB

File metadata and controls

132 lines (84 loc) · 7.46 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Added

  • Extends the GatorPermissionsController to enable attaching metadata(transaction hash, block timestamp) when submitting a permission revocation. (#7503)

Changed

  • Bump @metamask/transaction-controller from ^62.5.0 to ^62.7.0 (#7430, #7494)

Added

  • Export DELEGATION_FRAMEWORK_VERSION constant to indicate the supported Delegation Framework version (#7195)

Changed

  • BREAKING: Permission decoding now rejects TimestampEnforcer caveats with zero timestampBeforeThreshold values (#7195)
  • PermissionResponseSanitized now includes rules property for stronger typing support (#7195)
  • Permission decoding now resolves erc20-token-revocation permission type (#7299)
  • Differentiate erc20-token-revocation permissions from other in controller state (#7318)
  • Bump @metamask/transaction-controller from ^62.3.1 to ^62.5.0 (#7289, #7325)

Added

  • Refresh gator permissions map after revocation state change (#7235)
  • New submitDirectRevocation method for already-disabled delegations that don't require an on-chain transaction (#7244)

Changed

  • Move peer dependencies for controller and service packages to direct dependencies (#7209, #7220, #7236, #7257)
    • The dependencies moved are:
      • @metamask/snaps-controllers (^14.0.1)
      • @metamask/transaction-controller (^62.3.1)
    • In clients, it is now possible for multiple versions of these packages to exist in the dependency tree.
      • For example, this scenario would be valid: a client relies on @metamask/controller-a 1.0.0 and @metamask/controller-b 1.0.0, and @metamask/controller-b depends on @metamask/controller-a 1.1.0.
    • Note, however, that the versions specified in the client's package.json always "win", and you are expected to keep them up to date so as not to break controller and service intercommunication.

Changed

  • BREAKING: Bump @metamask/transaction-controller from ^61.1.0 to ^62.0.0 (#7202)

Fixed

  • Does not add a pending revocation if user cancels the transaction (#7157)
  • BREAKING The GatorPermissionsController messenger must allow TransactionController:transactionApproved and TransactionController:transactionRejected events (#7157)

Added

  • BREAKING: Expose list of pending revocations in state (#7055)
    • Add pendingRevocations property to state
    • Add pendingRevocations getter to controller, which accesses the same property in state
  • BREAKING: The GatorPermissionsController messenger must allow TransactionController:transactionConfirmed, TransactionController:transactionFailed, and TransactionController:transactionDropped events (#6713)
  • Add submitRevocation and addPendingRevocation methods to GatorPermissionsController (#6713)
    • These are also available as actions (GatorPermissionsController:submitRevocation and GatorPermissionsController:addPendingRevocation)

Changed

  • BREAKING: Add @metamask/transaction-controller as peer dependency (#7058)

Changed

  • BREAKING: Use new Messenger from @metamask/messenger (#6461)
    • Previously, GatorPermissionsController accepted a RestrictedMessenger instance from @metamask/base-controller.
  • BREAKING: Metadata property anonymous renamed to includeInDebugSnapshot (#6461)
  • Bump @metamask/base-controller from ^8.4.2 to ^9.0.0 (#6962)

Changed

  • Bump @metamask/base-controller from ^8.4.1 to ^8.4.2 (#6917)

Changed

  • Bump @metamask/utils from ^11.8.0 to ^11.8.1 (#6708)
  • Bump @metamask/base-controller from ^8.4.0 to ^8.4.1 (#6807)

Added

  • Add two new controller state metadata properties: includeInStateLogs and usedInUi (#6552)
  • Add method to decode permission from signTypedData (#6556)

Changed

  • Bump @metamask/utils from ^11.4.2 to ^11.8.0 (#6588)
  • Bump @metamask/base-controller from ^8.3.0 to ^8.4.0 (#6632)
  • Function decodePermissionFromPermissionContextForOrigin is now synchronous (#6656)

Fixed

  • Fix incorrect default Gator Permissions SnapId (#6546)

Added

  • Initial release (#6033)