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.
- Bump
@metamask/network-controllerfrom^31.0.0to^31.1.0(#8765)
- Bump
@metamask/json-rpc-enginefrom^10.4.0to^10.5.0(#8753) - Bump
@metamask/accounts-controllerfrom^38.0.0to^38.1.0(#8755) - Bump
@metamask/chain-agnostic-permissionfrom^1.6.0to^1.6.1(#8755) - Bump
@metamask/controller-utilsfrom^11.20.0to^12.0.0(#8755) - Bump
@metamask/network-controllerfrom^30.1.0to^31.0.0(#8755) - Bump
@metamask/permission-controllerfrom^13.1.0to^13.1.1(#8755)
- Bump
@metamask/chain-agnostic-permissionfrom^1.5.0to^1.6.0(#8749) - Bump
@metamask/multichain-transactions-controllerfrom^7.0.4to^7.1.0(#8665) - Bump
@metamask/accounts-controllerfrom^37.2.0to^38.0.0(#8665) - Bump
@metamask/permission-controllerfrom^13.0.0to^13.1.0(#8722) - Bump
@metamask/json-rpc-enginefrom^10.3.0to^10.4.0(#8746)
- Add
MethodHandlerHookstype, the intersection of all method handler hook types (#8583)- Consumers can use this to type the hooks object passed to
createMethodMiddlewarewithout restating each handler's hooks individually.
- Consumers can use this to type the hooks object passed to
- BREAKING: Consolidate method handlers into a single
methodHandlersexport (#8583)- The individual handler exports have been removed. They can still be accessed as properties on the
methodHandlersexport. - The new handlers follow the format expected by
createMethodMiddlewarefrom@metamask/json-rpc-engine@10.3.0. - The hook types have been updated to cohere with their corresponding MetaMask controller methods.
- The individual handler exports have been removed. They can still be accessed as properties on the
- BREAKING: Make
trackSessionCreatedEventhook required inwallet_createSessionhandler (#8583)- If the hook is not required,
nullcan be passed instead.
- If the hook is not required,
- Bump
@metamask/json-rpc-enginefrom^10.2.3to^10.3.0(#8317, #8661) - Bump
@metamask/network-controllerfrom^30.0.0to^30.1.0(#8317, #8636) - Bump
@metamask/permission-controllerfrom^12.2.1to^13.0.0(#8317, #8661) - Bump
@metamask/multichain-transactions-controllerfrom^7.0.3to^7.0.4(#8325) - Bump
@metamask/controller-utilsfrom^11.19.0to^11.20.0(#8344)
wallet_invokeMethodfails early with aninvalidParamserror when theparamsobject is not an object (#8583)- Previously it would fail with a less specific error.
wallet_revokeSessionnow returnstruewhen no active session exists and specific scopes are requested, consistent with its full-revoke behavior (#8583)- Previously it would return an internal error.
- BREAKING: Add required
sortAccountIdsByLastSelectedhook towallet_getSession,wallet_createSession, andwallet_invokeMethodhandlers to enable custom account ordering in session scopes (#8255)
- Bump
@metamask/chain-agnostic-permissionfrom^1.4.0to^1.5.0(#8290) - Bump
@metamask/permission-controllerfrom^12.2.0to^12.2.1(#8225) - Bump
@metamask/json-rpc-enginefrom^10.2.2to^10.2.3(#8078)
- Bump
@metamask/network-controllerfrom^29.0.0to^30.0.0(#7996) - Bump
@metamask/json-rpc-enginefrom^10.2.1to^10.2.2(#7856) - Bump
@metamask/multichain-transactions-controllerfrom7.0.0to7.0.1(#7897) - Bump
@metamask/controller-utilsfrom^11.18.0to^11.19.0(#7995)
- Bump
@metamask/json-rpc-enginefrom^10.2.0to^10.2.1(#7642) - Upgrade
@metamask/utilsfrom^11.8.1to^11.9.0(#7511) - Bump
@metamask/network-controllerfrom^27.0.0to^29.0.0(#7534, #7583, #7604, #7642) - Bump
@metamask/controller-utilsfrom^11.16.0to^11.18.0(#7534, #7583) - Bump
@metamask/permission-controllerfrom^12.1.1to^12.2.0(#7559) - Bump
@metamask/chain-agnostic-permissionfrom^1.3.0to^1.4.0(#7567)
- Fix
wallet_revokeSessionto handle cases whereparamsis not provided (#7551)
- Bump
@metamask/permission-controllerfrom^12.1.0to^12.1.1(#7202) - Bump
@metamask/network-controllerfrom^26.0.0to^27.0.0(#7202, #7258) - Bump
@metamask/json-rpc-enginefrom^10.1.1to^10.2.0(#7202) - Bump
@metamask/controller-utilsfrom^11.15.0to^11.16.0(#7202) - Bump
@metamask/chain-agnostic-permissionfrom^1.2.2to^1.3.0(#7322)
- Bump
@metamask/permission-controllerfrom^12.0.0to^12.1.0(#6988)
- Fix
wallet_revokeSessionerror handling (#6987)- This was broken in a different way in v1.2.3. Fixed by the update to
@metamask/permission-controller@12.1.0.
- This was broken in a different way in v1.2.3. Fixed by the update to
- Bump
@metamask/network-controllerfrom^24.3.1to^25.0.0(#6962) - Bump
@metamask/permission-controllerfrom^11.1.1to^12.0.0(#6962) - Bump
@metamask/chain-agnostic-permissionfrom^1.2.1to^1.2.2(#6986)
- Fix
wallet_revokeSessionerror handling in case where different versions of@metamask/permission-controllerare used (#6985)
- Bump
@metamask/chain-agnostic-permissionfrom^1.2.0to^1.2.1(#6940) - Bump
@metamask/network-controllerfrom^24.2.1to^24.3.1(#6845, #6883, #6940) - Bump
@metamask/permission-controllerfrom^11.1.0to^11.1.1(#6940)
- Bump
@metamask/chain-agnostic-permissionfrom^1.1.1to^1.2.0(#6807) - Bump
@metamask/controller-utilsfrom^11.14.0to^11.14.1(#6807) - Bump
@metamask/json-rpc-enginefrom^10.1.0to^10.1.1(#6807) - Bump
@metamask/network-controllerfrom^24.2.0to^24.2.1(#6807) - Bump
@metamask/permission-controllerfrom^11.0.6to^11.1.0(#6807)
- Bump
@metamask/utilsfrom^11.8.0to^11.8.1(#6708) wallet_invokeMethodno longer fails with unauthorized error if theisMultichainOriginproperty is false on the requesting origin's CAIP-25 Permission (#6703)
- Add partial permission revoke into
wallet_revokeSession(#6668) - Bump
@metamask/chain-agnostic-permissionfrom1.0.0to1.1.1(#6241, #6345) - Bump
@metamask/controller-utilsfrom^11.10.0to^11.14.0(#6069, #6303, #6620, #6629) - Bump
@metamask/network-controllerfrom^24.0.0to^24.2.0(#6148, #6303, #6678) - Bump
@metamask/utilsfrom^11.2.0to^11.4.2(#6054) - Bump
@metamask/utilsfrom^11.4.2to^11.8.0(#6588) - Bump
@metamask/json-rpc-enginefrom^10.0.3to^10.1.0(#6678)
- This package is now considered stable (#6013)
- Bump
@metamask/multichain-transactions-controllerto^2.0.0(#5888) - Bump
@metamask/controller-utilsto^11.10.0(#5935) - Bump
@metamask/network-controllerto^23.6.0(#5935, #5882) - Bump
@metamask/chain-agnostic-permissionto^1.0.0(#6013, #5982, #6004) - Bump
@metamask/network-controllerto^24.0.0(#5999)
- When
wallet_createSessionhandler is called withsolana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp(solana mainnet) as a requested scope, but there are not currently any accounts in the wallet supporting this scope, we now add apromptToCreateSolanaAccountto a metadata object on therequestPermissionscall forwarded to thePermissionsController.
- Add more chain-agnostic-permission utility functions from sip-26 usage (#5609)
- Bump
@metamask/chain-agnostic-permissionto^0.7.0(#5715, #5760, #5818) - Bump
@metamask/api-specsto^0.14.0(#5817) - Bump
@metamask/controller-utilsto^11.9.0(#5765, #5812) - Bump
@metamask/network-controllerto^23.5.0(#5765, #5812)
- Add
wallet_createSessionhandler (#5647) - Add
Caip25Errorsfrom@metamask/chain-agnostic-permissionpackage (#5566)
- Bump
@metamask/chain-agnostic-permissionto^0.4.0(#5674) - Bump
@metamask/network-controllerto^23.2.0(#5583)
- Add
MultichainApiNotificationsenum to standardize notification method names (#5491)
- Bump
@metamask/network-controllerto^23.1.0(#5507, #5518) - Bump
@metamask/chain-agnostic-permissionto^0.2.0(#5518)
- Initial release