Skip to content

Latest commit

 

History

History
248 lines (166 loc) · 13.7 KB

File metadata and controls

248 lines (166 loc) · 13.7 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/controller-utils from ^12.0.0 to ^12.1.0 (#8774)

Changed

  • Bump @metamask/controller-utils from ^11.19.0 to ^12.0.0 (#8344, #8755)
  • Bump @metamask/messenger from ^1.0.0 to ^1.2.0 (#8364, #8373, #8632)
  • Bump @metamask/base-controller from ^9.0.1 to ^9.1.0 (#8457)

Changed

  • Bump @metamask/base-controller from ^9.0.0 to ^9.0.1 (#8317)
  • Bump @metamask/messenger from ^0.3.0 to ^1.0.0 (#8317)

Added

  • Expose missing public NameController methods through its messenger (#8183)
    • The following actions are now available:
      • NameController:setName
      • NameController:updateProposedNames
    • Corresponding action types (e.g. NameControllerSetNameAction) are available as well.

Changed

  • Upgrade @metamask/utils from ^11.8.1 to ^11.9.0 (#7511)
  • Bump @metamask/controller-utils from ^11.15.0 to ^11.19.0 (#7202, #7534, #7583, #7995)

Changed

  • BREAKING: Use new Messenger from @metamask/messenger (#6541)
    • Previously, NameController accepted a RestrictedMessenger instance from @metamask/base-controller.
  • BREAKING: Metadata property anonymous renamed to includeInDebugSnapshot (#6541)
  • 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)

Added

  • Add two new controller state metadata properties: includeInStateLogs and usedInUi (#6473)

Changed

Changed

  • Bump @metamask/base-controller from ^7.1.0 to ^8.0.0 (#5135), (#5305)
  • Bump @metamask/controller-utils from ^11.4.4 to ^11.5.0 (#5135), (#5272)
  • Bump @metamask/utils from ^10.0.0 to ^11.1.0 (#5080), (#5223)
  • Bump @metamask/base-controller from ^7.0.0 to ^7.1.0 (#5079)

Changed

  • Bump @metamask/controller-utils from ^11.3.0 to ^11.4.4 (#4834, #4862, #4870, #4915, #5012)
  • Bump @metamask/utils from ^9.1.0 to ^10.0.0 (#4831)
  • Bump @metamask/base-controller from ^7.0.1 to ^7.0.2 (#4862)

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.

Changed

  • BREAKING: Bump minimum Node version to 18.18 (#3611)
  • Bump @metamask/base-controller to ^6.0.0 (#4352)
  • Bump @metamask/controller-utils to ^11.0.0 (#4352)

Changed

  • BREAKING: Changed token API endpoint from *.metafi.codefi.network to *.api.cx.metamask.io (#4301)
  • Bump @metamask/base-controller to ^5.0.2 (#4232)
  • Bump async-mutex to ^0.5.0 (#4335)
  • Bump @metamask/controller-utils to ^10.0.0 (#4342)

Fixed

  • Fix setName and updateProposedNames methods to protect against prototype-polluting assignments (#4041

Fixed

  • Fix types field in package.json (#4047)

Added

  • BREAKING: Add ESM build (#3998)
    • It's no longer possible to import files from ./dist directly.
  • Add support for Linea Sepolia (chain ID 0xe705) (#3995)

Changed

  • BREAKING: Bump @metamask/base-controller to ^5.0.0 (#4039)
    • This version has a number of breaking changes. See the changelog for more.
  • BREAKING: Remove support for Optimism Goerli (chain ID 0x1a4); replace with support for Optimism Sepolia (chain ID 0xaa37dc) (#3999)

Changed

  • BREAKING: Add expire limit for proposed names (#3748)
    • Expired names now get removed on every call to updateProposedNames
  • Bump @metamask/base-controller to ^4.1.1 (#3821)

Added

  • Add origin property to NameEntry and SetNameRequest (#3751)

Added

  • Add fallback variation for petnames (#3705)

Changed

  • Bump @metamask/base-controller to ^4.0.1 (#3695)

Changed

  • BREAKING: Bump @metamask/base-controller to ^4.0.0 (#2063)
    • This is breaking because the type of the messenger has backward-incompatible changes. See the changelog for this package for more.
  • Bump @metamask/utils to ^8.2.0 (#1957)

Changed

  • Bump dependency on @metamask/utils to ^8.1.0 (#1639)
  • Bump dependency on @metamask/base-controller to ^3.2.3

Changed

  • BREAKING: Normalize addresses and chain IDs (#1732)
    • Save addresses and chain IDs as lowercase in state
    • Remove getChainId constructor callback
    • Require a variation property when calling setName or updateProposedNames with the ethereumAddress type

Changed

  • BREAKING: Support rate limiting in name providers (#1715)
    • Breaking changes:
      • Change proposedNames property in NameEntry type from string array to new ProposedNamesEntry type
      • Remove proposedNamesLastUpdated property from NameEntry type
    • Add onlyUpdateAfterDelay option to UpdateProposedNamesRequest type
    • Add updateDelay constructor option
    • Add updateDelay property to NameProviderSourceResult type
    • Add isEnabled callback option to ENSNameProvider, EtherscanNameProvider, LensNameProvider, and TokenNameProvider
    • Existing proposed names in state are only updated if the NameProvider has no errors and the proposedNames property is not undefined
  • Dormant proposed names are automatically removed when calling updateProposedNames (#1688)
  • The setName method accepts a null value for the name property to enable removing saved names (#1688)
  • Update TypeScript to v4.8.x (#1718)

Added

  • Initial Release (#1647)