Releases: MetaMask/core
Releases · MetaMask/core
204.0.0
@metamask/notification-services-controller 0.7.0
Changed
- Bump
@metamask/profile-sync-controller
from^0.7.0
to^0.8.0
(#4712)
Fixed
- BREAKING use new profile-sync notification settings path hash (#4711)
- changing this path also means the underlying storage hash has changed. But this will align with our existing solutions that are in prod.
@metamask/profile-sync-controller 0.8.0
Fixed
- BREAKING update profile-sync notification settings path hash (#4711)
- changing this path also means the underlying storage hash has changed. But this will align with our existing solutions that are in prod.
203.0.0
@metamask/notification-services-controller 0.6.0
Changed
- update subpath exports to use new .d.cts definition files. (#4709)
- Bump
@metamask/profile-sync-controller
from^0.6.0
to^0.7.0
(#4710)
@metamask/profile-sync-controller 0.7.0
Changed
- update subpath exports to use new .d.cts definition files. (#4709)
- move profile-sync-sdk snap methods to snap auth class (#4708)
- move and validate
connectSnap
andisSnapConnected
methods to only be available for SRP auth.
- move and validate
Removed
- test: remove unused test mock (#4703)
202.0.0
@metamask/accounts-controller 18.2.1
Changed
- Bump
@metamask/eth-snap-keyring
from^4.3.1
to^4.3.3
(#4689) - Bump
@metamask/snaps-sdk
from^6.1.1
to^6.5.0
(#4689) - Bump
@metamask/snaps-utils
from^7.8.1
to^8.1.1
(#4689) - Bump peer dependency
@metamask/snaps-controllers
from^9.3.0
to^9.7.0
(#4689)
Fixed
- Produce and export ESM-compatible TypeScript type declaration files in addition to CommonJS-compatible declaration files (#4648)
- Previously, this package shipped with only one variant of type declaration
files, and these files were only CommonJS-compatible, and theexports
field inpackage.json
linked to these files. This is an anti-pattern and
was rightfully flagged by the
"Are the Types Wrong?" tool as
"masquerading as CJS".
All of the ATTW checks now pass.
- Previously, this package shipped with only one variant of type declaration
- Remove chunk files (#4648).
- Previously, the build tool we used to generate JavaScript files extracted
common code to "chunk" files. While this was intended to make this package
more tree-shakeable, it also made debugging more difficult for our
development teams. These chunk files are no longer present.
- Previously, the build tool we used to generate JavaScript files extracted
@metamask/address-book-controller 6.0.1
Fixed
- Produce and export ESM-compatible TypeScript type declaration files in addition to CommonJS-compatible declaration files (#4648)
- Previously, this package shipped with only one variant of type declaration
files, and these files were only CommonJS-compatible, and theexports
field inpackage.json
linked to these files. This is an anti-pattern and
was rightfully flagged by the
"Are the Types Wrong?" tool as
"masquerading as CJS".
All of the ATTW checks now pass.
- Previously, this package shipped with only one variant of type declaration
- Remove chunk files (#4648).
- Previously, the build tool we used to generate JavaScript files extracted
common code to "chunk" files. While this was intended to make this package
more tree-shakeable, it also made debugging more difficult for our
development teams. These chunk files are no longer present.
- Previously, the build tool we used to generate JavaScript files extracted
@metamask/announcement-controller 7.0.1
Changed
- Bump TypeScript from
~4.9.5
to~5.2.2
and setmoduleResolution
option toNode16
(#3645, #4576, #4584)
Fixed
- Produce and export ESM-compatible TypeScript type declaration files in addition to CommonJS-compatible declaration files (#4648)
- Previously, this package shipped with only one variant of type declaration
files, and these files were only CommonJS-compatible, and theexports
field inpackage.json
linked to these files. This is an anti-pattern and
was rightfully flagged by the
"Are the Types Wrong?" tool as
"masquerading as CJS".
All of the ATTW checks now pass.
- Previously, this package shipped with only one variant of type declaration
- Remove chunk files (#4648).
- Previously, the build tool we used to generate JavaScript files extracted
common code to "chunk" files. While this was intended to make this package
more tree-shakeable, it also made debugging more difficult for our
development teams. These chunk files are no longer present.
- Previously, the build tool we used to generate JavaScript files extracted
@metamask/approval-controller 7.0.4
Fixed
- Produce and export ESM-compatible TypeScript type declaration files in addition to CommonJS-compatible declaration files (#4648)
- Previously, this package shipped with only one variant of type declaration
files, and these files were only CommonJS-compatible, and theexports
field inpackage.json
linked to these files. This is an anti-pattern and
was rightfully flagged by the
"Are the Types Wrong?" tool as
"masquerading as CJS".
All of the ATTW checks now pass.
- Previously, this package shipped with only one variant of type declaration
- Remove chunk files (#4648).
- Previously, the build tool we used to generate JavaScript files extracted
common code to "chunk" files. While this was intended to make this package
more tree-shakeable, it also made debugging more difficult for our
development teams. These chunk files are no longer present.
- Previously, the build tool we used to generate JavaScript files extracted
@metamask/assets-controllers 38.0.1
Fixed
- Produce and export ESM-compatible TypeScript type declaration files in addition to CommonJS-compatible declaration files (#4648)
- Previously, this package shipped with only one variant of type declaration
files, and these files were only CommonJS-compatible, and theexports
field inpackage.json
linked to these files. This is an anti-pattern and
was rightfully flagged by the
"Are the Types Wrong?" tool as
"masquerading as CJS".
All of the ATTW checks now pass.
- Previously, this package shipped with only one variant of type declaration
- Remove chunk files (#4648).
- Previously, the build tool we used to generate JavaScript files extracted
common code to "chunk" files. While this was intended to make this package
more tree-shakeable, it also made debugging more difficult for our
development teams. These chunk files are no longer present.
- Previously, the build tool we used to generate JavaScript files extracted
- Don't update currency rates on transient errors (#4662)
- In
CurrencyRateController
if unexpected errors occur during requests to
crypto compare, the conversion rate in state will remain unchanged instead
of being set to null.
- In
- Fix fallback conversion rate for token market data (#4615)
- On networks where the native currency is not ETH, token market data is now
correctly priced in the native currency.
- On networks where the native currency is not ETH, token market data is now
@metamask/base-controller 7.0.1
Fixed
- Produce and export ESM-compatible TypeScript type declaration files in addition to CommonJS-compatible declaration files (#4648)
- Previously, this package shipped with only one variant of type declaration
files, and these files were only CommonJS-compatible, and theexports
field inpackage.json
linked to these files. This is an anti-pattern and
was rightfully flagged by the
"Are the Types Wrong?" tool as
"masquerading as CJS".
All of the ATTW checks now pass.
- Previously, this package shipped with only one variant of type declaration
- Remove chunk files (#4648).
- Previously, the build tool we used to generate JavaScript files extracted
common code to "chunk" files. While this was intended to make this package
more tree-shakeable, it also made debugging more difficult for our
development teams. These chunk files are no longer present.
- Previously, the build tool we used to generate JavaScript files extracted
@metamask/build-utils 3.0.1
Changed
- Bump
@metamask/utils
from^8.3.0
to^9.1.0
(#4516, #4529) - Bump
@metamask/rpc-errors
from^6.2.1
to^6.3.1
(#4516) - Bump TypeScript from
~4.9.5
to~5.2.2
and setmoduleResolution
option toNode16
(#3645, #4576, #4584)
Fixed
- Produce and export ESM-compatible TypeScript type declaration files in addition to CommonJS-compatible declaration files (#4648)
- Previously, this package shipped with only one variant of type declaration
files, and these files were only CommonJS-compatible, and theexports
field inpackage.json
linked to these files. This is an anti-pattern and
was rightfully flagged by the
"Are the Types Wrong?" tool as
"masquerading as CJS".
All of the ATTW checks now pass.
- Previously, this package shipped with only one variant of type declaration
- Remove chunk files (#4648).
- Previously, the build tool we used to generate JavaScript files extracted
common code to "chunk" files. While this was intended to make this package
more tree-shakeable, it also made debugging more difficult for our
development teams. These chunk files are no longer present.
- Previously, the build tool we used to generate JavaScript files extracted
@metamask/chain-controller 0.1.2
Changed
- Bump
@metamask/keyring-api
from^8.0.1
to^8.1.0
(#4594) - Bump TypeScript from
~4.9.5
to~5.2.2
and setmoduleResolution
option toNode16
(#3645, #4576, #4584)
Fixed
- Produce and export ESM-compatible TypeScript type decla...
201.0.0
200.0.0
@metamask/accounts-controller 18.2.0
Added
- Add event
AccountsController:accountRenamed
and export corresponding event typeAccountsControllerAccountRenamedEvent
(#4664), (#4660) - Add new
nameLastUpdatedAt
timestamp to account's metadata (#4589)
Changed
- Consolidate
setAccountName
logic inupdateAccountMetadata
(#4663)- Moved the logic for checking account name uniqueness and triggering the
accountRenamed
event fromsetAccountName
toupdateAccountMetadata
. ThesetAccountName
method now callsupdateAccountMetadata
to handle these tasks.
- Moved the logic for checking account name uniqueness and triggering the
199.0.0
@metamask/notification-services-controller 0.5.0
Changed
- move contentful as a dev dependency (#4673)
- update polygon symbol from MATIC to POL (#4672)
- Bump
@metamask/profile-sync-controller
from^0.4.0
to^0.5.0
(#4678)
@metamask/profile-sync-controller 0.5.0
Added
- add isSnapConnected method to the Authentication SDK (#4668)
- add
accountAdded
andaccountRenamed
events when triggering account syncing (#4665) - prevent accounts controller events being used when sync is in progress (#4675)
- add
isAccountSyncingInProgress
toUserStorageController
- add
isAccountSyncingInProgress
checks to abort processingaccountAdded
andaccountRenamed
events.
- add
Removed
- account sync throttling (#4675)
- remove
maxSyncInterval
;lastSyncedAt
;shouldSync
fromUserStorageController
- remove
198.0.0
197.0.0
@metamask/notification-services-controller 0.4.1
Fixed
- fix: keep push subscription when wallet is locked (#4653)
- add
NotificationServicesPushController:subscribeToPushNotifications
event and allowedEvent inNotificationServicesController
- add else check to continue to subscribe to push notifications when wallet is locked
- add
196.0.0
@metamask/notification-services-controller 0.4.0
Changed
- Bump
@metamask/profile-sync-controller
from^0.3.0
to^0.4.0
(#4661)
@metamask/profile-sync-controller 0.4.0
Added
195.0.0
@metamask/notification-services-controller 0.3.0
Added
- passed notification parameter to the
NotificationServicesPushController
onPushNotificationClicked
config (#4613) - Define and export new type
NotificationServicesControllerGetStateAction
(#4633) - Add and export types
NotificationServicesPushControllerGetStateAction
,NotificationServicesPushControllerStateChangeEvent
(#4641) - add subpath exports to
@metamask/notification-services-controller
(#4604)- add
@metamask/notification-services-controller/notification-services
export - add
@metamask/notification-services-controller/push-services
export
- add
- add
TypeExternalLinkFields
,TypePortfolioLinkFields
, andTypeMobileLinkFields
types to handle different types of links in feature announcements (#4620)
Changed
- Bump
typescript
from~5.1.6
to~5.2.2
(#4584) - Bump
@metamask/profile-sync-controller
from^0.2.1
to^0.3.0
(#4657) - Bump
contentful
from^10.3.6
to^10.15.0
(#4637) - BREAKING: Rename
NotificationServicesPushControllerPushNotificationClicked
type toNotificationServicesPushControllerPushNotificationClickedEvent
(#4641) - BREAKING: Narrow
AllowedEvents
type forNotificationServicesPushControllerMessenger
tonever
(#4641) - updated
NotificationServicesPushControllerMessenger
must allow internal eventNotificationServicesPushControllerStateChangeEvent
(#4641) - updated
FeatureAnnouncementRawNotificationData
to include fields for external, portfolio, and mobile links (#4620) - updated
TypeFeatureAnnouncementFields
to include fields for external, portfolio, and mobile links (#4620) - updated
fetchFeatureAnnouncementNotifications
to handle the new link types and include them in the notification data.
Fixed
- Replace
getState
action inNotificationServicesControllerActions
with correctly-definedNotificationServicesControllerGetStateAction
type (#4633) - BREAKING: Fix package-level export for
NotificationServicesPushController
from "NotificationsServicesPushController" to "NotificationsServicesPushController" (#4641) - BREAKING: Replace incorrectly-defined
getState
action in theActions
type forNotificationServicesPushControllerMessenger
with newNotificationServicesPushControllerGetStateAction
type (#4641) - update subpath exports internal
package.json
files to resolvejest-haste-map
errors (#4650) - removed unnecessary subpath exports (#4650)
- removed
/constants
,/services
,/processors
,/utils
sub paths as these are navigable from root.
- removed
@metamask/profile-sync-controller 0.3.0
Added
- add granular account syncing (#4629)
- add accounts user storage schema
- add method
saveInternalAccountToUserStorage
toUserStorageController
- add method
syncInternalAccountsWithUserStorage
toUserStorageController
- add
@metamask/accounts-controller
dev dependency - add
@metamask/keyring-api
dev dependency
- add infura OIDC identifier (#4654)
- define and export new types:
AuthenticationControllerGetStateAction
,AuthenticationControllerStateChangeEvent
,Events
(#4633) - SDK and controller support for
GET /api/v1/userstorage/:feature
endpoint (#4626)- add method
performGetStorageAllFeatureEntries
toUserStorageController
- add
ALLOW_ARBITRARY_KEYS
toUSER_STORAGE_SCHEMA
to allow wildcard/getAll for entries for a feature
- add method
- add subpath exports to
@metamask/profile-sync-controller
(#4604)- add
@metamask/profile-sync-controller/sdk
export - add
@metamask/profile-sync-controller/user-storage
export - add
@metamask/profile-sync-controller/auth
export
- add
Changed
- Bump
typescript
from~5.1.6
to~5.2.2
(#4584) - Fix controllers with missing or incorrect messenger action/event types (#4633)
- BREAKING:
AuthenticationControllerMessenger
must allow internal events defined in theEvents
type (#4633) AuthenticationControllerActions
is widened to include theAuthenticationController:getState
action (#4633)- Replaced
@metamask/profile-sync-controller/sdk
to use the same encryption file asUserStorageController
(#4649)
Fixed
- update subpath exports internal
package.json
files to resolvejest-haste-map
errors (#4650)