Skip to content

Releases: MetaMask/core

204.0.0

17 Sep 16:15
ecd69df
Compare
Choose a tag to compare

@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

17 Sep 10:24
b4ccb42
Compare
Choose a tag to compare

@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 and isSnapConnected methods to only be available for SRP auth.

Removed

  • test: remove unused test mock (#4703)

202.0.0

16 Sep 13:37
4d30dda
Compare
Choose a tag to compare

@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 the exports
      field in package.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.
  • 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.

@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 the exports
      field in package.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.
  • 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.

@metamask/announcement-controller 7.0.1

Changed

  • Bump TypeScript from ~4.9.5 to ~5.2.2 and set moduleResolution option to Node16 (#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 the exports
      field in package.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.
  • 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.

@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 the exports
      field in package.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.
  • 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.

@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 the exports
      field in package.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.
  • 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.
  • 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.
  • 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.

@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 the exports
      field in package.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.
  • 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.

@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 set moduleResolution option to Node16 (#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 the exports
      field in package.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.
  • 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.

@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 set moduleResolution option to Node16 (#3645, #4576, #4584)

Fixed

  • Produce and export ESM-compatible TypeScript type decla...
Read more

201.0.0

11 Sep 12:53
465d3da
Compare
Choose a tag to compare

@metamask/transaction-controller 36.1.0

Added

  • Add missing TransactionControllerOptions type in package-level export (#4683)

200.0.0

11 Sep 07:55
aa92f31
Compare
Choose a tag to compare

@metamask/accounts-controller 18.2.0

Added

  • Add event AccountsController:accountRenamed and export corresponding event type AccountsControllerAccountRenamedEvent (#4664), (#4660)
  • Add new nameLastUpdatedAt timestamp to account's metadata (#4589)

Changed

  • Consolidate setAccountName logic in updateAccountMetadata (#4663)
    • Moved the logic for checking account name uniqueness and triggering the accountRenamed event fromsetAccountName to updateAccountMetadata. The setAccountName method now callsupdateAccountMetadata to handle these tasks.

199.0.0

10 Sep 11:46
fe3dfcb
Compare
Choose a tag to compare

@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 and accountRenamed events when triggering account syncing (#4665)
  • prevent accounts controller events being used when sync is in progress (#4675)
    • add isAccountSyncingInProgress to UserStorageController
    • add isAccountSyncingInProgress checks to abort processing accountAdded and accountRenamed events.

Removed

  • account sync throttling (#4675)
    • remove maxSyncInterval; lastSyncedAt; shouldSync from UserStorageController

198.0.0

10 Sep 10:32
02b5a7a
Compare
Choose a tag to compare

@metamask/phishing-controller 12.0.2

Fixed

  • Export PhishingDetectorResultType enum type (#4674)
  • Export PhishingDetector type (#4553)

197.0.0

09 Sep 13:15
aff2b26
Compare
Choose a tag to compare

@metamask/notification-services-controller 0.4.1

Fixed

  • fix: keep push subscription when wallet is locked (#4653)
    • add NotificationServicesPushController:subscribeToPushNotifications event and allowedEvent in NotificationServicesController
    • add else check to continue to subscribe to push notifications when wallet is locked

196.0.0

06 Sep 16:17
815c5be
Compare
Choose a tag to compare

@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

  • add maxSyncInterval for account syncing to UserStorageController prevent multiple sync requests (#4659)
  • add optional NativeScrypt property to UserStorageController to allow the scrypt implementation to be swapped out for a native version. Improving mobile performance (#4656)

195.0.0

05 Sep 14:16
319b7b1
Compare
Choose a tag to compare

@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 TypeExternalLinkFields, TypePortfolioLinkFields, and TypeMobileLinkFields 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 to NotificationServicesPushControllerPushNotificationClickedEvent (#4641)
  • BREAKING: Narrow AllowedEvents type for NotificationServicesPushControllerMessenger to never (#4641)
  • updated NotificationServicesPushControllerMessenger must allow internal event NotificationServicesPushControllerStateChangeEvent (#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 in NotificationServicesControllerActions with correctly-defined NotificationServicesControllerGetStateAction type (#4633)
  • BREAKING: Fix package-level export for NotificationServicesPushController from "NotificationsServicesPushController" to "NotificationsServicesPushController" (#4641)
  • BREAKING: Replace incorrectly-defined getState action in the Actions type for NotificationServicesPushControllerMessenger with new NotificationServicesPushControllerGetStateAction type (#4641)
  • update subpath exports internal package.json files to resolve jest-haste-map errors (#4650)
  • removed unnecessary subpath exports (#4650)
    • removed /constants, /services, /processors, /utils sub paths as these are navigable from root.

@metamask/profile-sync-controller 0.3.0

Added

  • add granular account syncing (#4629)
    • add accounts user storage schema
    • add method saveInternalAccountToUserStorage to UserStorageController
    • add method syncInternalAccountsWithUserStorage to UserStorageController
    • 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 to UserStorageController
    • add ALLOW_ARBITRARY_KEYS to USER_STORAGE_SCHEMA to allow wildcard/getAll for entries for a feature
  • 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

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 the Events type (#4633)
  • AuthenticationControllerActions is widened to include the AuthenticationController:getState action (#4633)
  • Replaced @metamask/profile-sync-controller/sdk to use the same encryption file as UserStorageController (#4649)

Fixed

  • update subpath exports internal package.json files to resolve jest-haste-map errors (#4650)