Skip to content

Latest commit

 

History

History
247 lines (166 loc) · 15.8 KB

File metadata and controls

247 lines (166 loc) · 15.8 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.

Changed

  • Bump @metamask/network-controller from ^31.0.0 to ^31.1.0 (#8765)

Changed

  • Bump @metamask/json-rpc-engine from ^10.4.0 to ^10.5.0 (#8753)
  • Bump @metamask/accounts-controller from ^38.0.0 to ^38.1.0 (#8755)
  • Bump @metamask/chain-agnostic-permission from ^1.6.0 to ^1.6.1 (#8755)
  • Bump @metamask/controller-utils from ^11.20.0 to ^12.0.0 (#8755)
  • Bump @metamask/network-controller from ^30.1.0 to ^31.0.0 (#8755)
  • Bump @metamask/permission-controller from ^13.1.0 to ^13.1.1 (#8755)

Changed

  • Bump @metamask/chain-agnostic-permission from ^1.5.0 to ^1.6.0 (#8749)
  • Bump @metamask/multichain-transactions-controller from ^7.0.4 to ^7.1.0 (#8665)
  • Bump @metamask/accounts-controller from ^37.2.0 to ^38.0.0 (#8665)
  • Bump @metamask/permission-controller from ^13.0.0 to ^13.1.0 (#8722)
  • Bump @metamask/json-rpc-engine from ^10.3.0 to ^10.4.0 (#8746)

Added

  • Add MethodHandlerHooks type, the intersection of all method handler hook types (#8583)
    • Consumers can use this to type the hooks object passed to createMethodMiddleware without restating each handler's hooks individually.

Changed

  • BREAKING: Consolidate method handlers into a single methodHandlers export (#8583)
    • The individual handler exports have been removed. They can still be accessed as properties on the methodHandlers export.
    • The new handlers follow the format expected by createMethodMiddleware from @metamask/json-rpc-engine@10.3.0.
    • The hook types have been updated to cohere with their corresponding MetaMask controller methods.
  • BREAKING: Make trackSessionCreatedEvent hook required in wallet_createSession handler (#8583)
    • If the hook is not required, null can be passed instead.
  • Bump @metamask/json-rpc-engine from ^10.2.3 to ^10.3.0 (#8317, #8661)
  • Bump @metamask/network-controller from ^30.0.0 to ^30.1.0 (#8317, #8636)
  • Bump @metamask/permission-controller from ^12.2.1 to ^13.0.0 (#8317, #8661)
  • Bump @metamask/multichain-transactions-controller from ^7.0.3 to ^7.0.4 (#8325)
  • Bump @metamask/controller-utils from ^11.19.0 to ^11.20.0 (#8344)

Fixed

  • wallet_invokeMethod fails early with an invalidParams error when the params object is not an object (#8583)
    • Previously it would fail with a less specific error.
  • wallet_revokeSession now returns true when no active session exists and specific scopes are requested, consistent with its full-revoke behavior (#8583)
    • Previously it would return an internal error.

Added

  • BREAKING: Add required sortAccountIdsByLastSelected hook to wallet_getSession, wallet_createSession, and wallet_invokeMethod handlers to enable custom account ordering in session scopes (#8255)

Changed

  • Bump @metamask/chain-agnostic-permission from ^1.4.0 to ^1.5.0 (#8290)
  • Bump @metamask/permission-controller from ^12.2.0 to ^12.2.1 (#8225)
  • Bump @metamask/json-rpc-engine from ^10.2.2 to ^10.2.3 (#8078)

Changed

  • Bump @metamask/network-controller from ^29.0.0 to ^30.0.0 (#7996)
  • Bump @metamask/json-rpc-engine from ^10.2.1 to ^10.2.2 (#7856)
  • Bump @metamask/multichain-transactions-controller from 7.0.0 to 7.0.1 (#7897)
  • Bump @metamask/controller-utils from ^11.18.0 to ^11.19.0 (#7995)

Changed

  • Bump @metamask/json-rpc-engine from ^10.2.0 to ^10.2.1 (#7642)
  • Upgrade @metamask/utils from ^11.8.1 to ^11.9.0 (#7511)
  • Bump @metamask/network-controller from ^27.0.0 to ^29.0.0 (#7534, #7583, #7604, #7642)
  • Bump @metamask/controller-utils from ^11.16.0 to ^11.18.0 (#7534, #7583)
  • Bump @metamask/permission-controller from ^12.1.1 to ^12.2.0 (#7559)
  • Bump @metamask/chain-agnostic-permission from ^1.3.0 to ^1.4.0 (#7567)

Fixed

  • Fix wallet_revokeSession to handle cases where params is not provided (#7551)

Changed

  • Bump @metamask/permission-controller from ^12.1.0 to ^12.1.1 (#7202)
  • Bump @metamask/network-controller from ^26.0.0 to ^27.0.0 (#7202, #7258)
  • Bump @metamask/json-rpc-engine from ^10.1.1 to ^10.2.0 (#7202)
  • Bump @metamask/controller-utils from ^11.15.0 to ^11.16.0 (#7202)
  • Bump @metamask/chain-agnostic-permission from ^1.2.2 to ^1.3.0 (#7322)

Changed

  • Bump @metamask/permission-controller from ^12.0.0 to ^12.1.0 (#6988)

Fixed

  • Fix wallet_revokeSession error handling (#6987)
    • This was broken in a different way in v1.2.3. Fixed by the update to @metamask/permission-controller@12.1.0.

Changed

  • Bump @metamask/network-controller from ^24.3.1 to ^25.0.0 (#6962)
  • Bump @metamask/permission-controller from ^11.1.1 to ^12.0.0 (#6962)
  • Bump @metamask/chain-agnostic-permission from ^1.2.1 to ^1.2.2 (#6986)

Fixed

  • Fix wallet_revokeSession error handling in case where different versions of @metamask/permission-controller are used (#6985)

Changed

  • Bump @metamask/chain-agnostic-permission from ^1.2.0 to ^1.2.1 (#6940)
  • Bump @metamask/network-controller from ^24.2.1 to ^24.3.1 (#6845, #6883, #6940)
  • Bump @metamask/permission-controller from ^11.1.0 to ^11.1.1 (#6940)

Changed

  • Bump @metamask/chain-agnostic-permission from ^1.1.1 to ^1.2.0 (#6807)
  • Bump @metamask/controller-utils from ^11.14.0 to ^11.14.1 (#6807)
  • Bump @metamask/json-rpc-engine from ^10.1.0 to ^10.1.1 (#6807)
  • Bump @metamask/network-controller from ^24.2.0 to ^24.2.1 (#6807)
  • Bump @metamask/permission-controller from ^11.0.6 to ^11.1.0 (#6807)

Changed

  • Bump @metamask/utils from ^11.8.0 to ^11.8.1 (#6708)
  • wallet_invokeMethod no longer fails with unauthorized error if the isMultichainOrigin property is false on the requesting origin's CAIP-25 Permission (#6703)

Changed

  • Add partial permission revoke into wallet_revokeSession (#6668)
  • Bump @metamask/chain-agnostic-permission from 1.0.0 to 1.1.1 (#6241, #6345)
  • Bump @metamask/controller-utils from ^11.10.0 to ^11.14.0 (#6069, #6303, #6620, #6629)
  • Bump @metamask/network-controller from ^24.0.0 to ^24.2.0 (#6148, #6303, #6678)
  • Bump @metamask/utils from ^11.2.0 to ^11.4.2 (#6054)
  • Bump @metamask/utils from ^11.4.2 to ^11.8.0 (#6588)
  • Bump @metamask/json-rpc-engine from ^10.0.3 to ^10.1.0 (#6678)

Changed

  • This package is now considered stable (#6013)
  • Bump @metamask/multichain-transactions-controller to ^2.0.0 (#5888)
  • Bump @metamask/controller-utils to ^11.10.0 (#5935)
  • Bump @metamask/network-controller to ^23.6.0 (#5935, #5882)
  • Bump @metamask/chain-agnostic-permission to ^1.0.0 (#6013, #5982, #6004)
  • Bump @metamask/network-controller to ^24.0.0 (#5999)

Added

  • When wallet_createSession handler is called with solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp (solana mainnet) as a requested scope, but there are not currently any accounts in the wallet supporting this scope, we now add a promptToCreateSolanaAccount to a metadata object on the requestPermissions call forwarded to the PermissionsController.

Added

  • Add more chain-agnostic-permission utility functions from sip-26 usage (#5609)

Changed

  • Bump @metamask/chain-agnostic-permission to ^0.7.0 (#5715, #5760, #5818)
  • Bump @metamask/api-specs to ^0.14.0 (#5817)
  • Bump @metamask/controller-utils to ^11.9.0 (#5765, #5812)
  • Bump @metamask/network-controller to ^23.5.0 (#5765, #5812)

Added

  • Add wallet_createSession handler (#5647)
  • Add Caip25Errors from @metamask/chain-agnostic-permission package (#5566)

Changed

  • Bump @metamask/chain-agnostic-permission to ^0.4.0 (#5674)
  • Bump @metamask/network-controller to ^23.2.0 (#5583)

Added

  • Add MultichainApiNotifications enum to standardize notification method names (#5491)

Changed

  • Bump @metamask/network-controller to ^23.1.0 (#5507, #5518)
  • Bump @metamask/chain-agnostic-permission to ^0.2.0 (#5518)

Added

  • Initial release