Skip to content

Latest commit

 

History

History
301 lines (197 loc) · 15.7 KB

CHANGELOG.md

File metadata and controls

301 lines (197 loc) · 15.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/base-controller from ^7.0.0 to ^7.1.0 (#5079)

Changed

  • Bump @metamask/base-controller from ^7.0.1 to ^7.0.2 (#4862)
  • Bump @metamask/controller-utils from ^11.4.0 to ^11.4.4 (#4862, #4870, #4915, #5012)

Fixed

  • Correct ESM-compatible build so that imports of the following packages that re-export other modules via export * are no longer corrupted: (#5011)
    • punycode/punycode.js

Changed

  • BREAKING: Bump @metamask/network-controller peer dependency to ^22.0.0 (#4841)
  • Bump @metamask/controller-utils to ^11.4.0 (#4834)
  • Bump @metamask/utils to ^10.0.0 (#4831)

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: EnsControllerMessenger must allow NetworkController:getState action (#4557)
  • BREAKING: Bump devDependency and peerDependency @metamask/network-controller from ^20.0.0 to ^21.0.0 (#4618, #4651)
  • Bump @metamask/base-controller from ^6.0.2 to ^7.0.0 (#4625, #4643)
  • Bump @metamask/controller-utils from ^11.0.2 to ^11.2.0 (#4639, #4651)
  • Bump typescript from ~5.0.4 to ~5.2.2 (#4576, #4584)

Removed

  • BREAKING: Remove optional constructor option provider (#4557)
    • Provider is now sourced from selectedNetworkClient.

Fixed

  • Initial network is set using selectedNetworkClientId, which is derived using the NetworkController:getState action (#4557)

Changed

  • Upgrade TypeScript version to ~5.0.4 and set moduleResolution option to Node16 (#3645)
  • Bump @metamask/base-controller from ^6.0.0 to ^6.0.2 (#4517, #4544)
  • Bump @metamask/controller-utils from ^11.0.0 to ^11.0.2 (#4517, #4544)
  • Bump @metamask/utils from ^8.3.0 to ^9.1.0 (#4516, #4529)

Changed

  • BREAKING: Bump peerDependency @metamask/network-controller to ^20.0.0 (#4508)

Changed

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

Changed

  • BREAKING: Bump peer dependency @metamask/network-controller to ^18.1.3 (#4342)
  • Bump @metamask/base-controller to ^5.0.2 (#4232)
  • Bump @metamask/controller-utils to ^10.0.0 (#4342)

Fixed

  • Fix delete method 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 Holesky and Sepolia registries (#4006)
  • Add optional constructor option registriesByChainId, which allows overriding the default ENS network map (#4006)
  • Update default value of ensEntries state property to include entry for . (#4006)
  • Update get so that it now returns registry address for chain when queried for the name . (#4006)
  • Update delete so that entry for . can be removed (#4006)

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: Bump peer dependency on @metamask/network-controller to ^18.0.0 (#4039)
  • Bump @metamask/controller-utils to ^9.0.0 (#4039)

Changed

  • BREAKING: Bump @metamask/network-controller peer dependency to ^17.2.0 (#3821)
  • Bump @metamask/utils to ^8.3.0 (#3769)
  • Bump @metamask/base-controller to ^4.1.1 (#3760, #3821)
  • Bump @metamask/controller-utils to ^8.0.2 (#3821)

Changed

  • BREAKING: Replace constructor parameter onNetworkStateChange with onNetworkDidChange (#3610)
  • BREAKING: Bump @metamask/network-controller peer dependency from ^17.0.0 to ^17.1.0 (#3695)
  • Bump @metamask/controller-utils to ^8.0.1 (#3695, #3678, #3667, #3580)
  • Bump @metamask/base-controller to ^4.0.1 (#3695)

Fixed

  • Remove @metamask/network-controller dependency (#3607)

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/controller-utils to ^6.0.0 (#2063)
  • Bump @metamask/network-controller to ^17.0.0 (#2063)

Changed

  • BREAKING: Bump dependency and peer dependency on @metamask/network-controller to ^16.0.0
  • Bump @metamask/utils from 8.1.0 to 8.2.0 (#1957)

Changed

  • BREAKING: Bump dependency and peer dependency on @metamask/network-controller to ^15.0.0

Changed

  • Bump dependency on @metamask/utils to ^8.1.0 (#1639)
  • Bump dependency on @metamask/base-controller to ^3.2.3
  • Bump dependency on @metamask/controller-utils to ^5.0.2
  • Bump dependency and peer dependency on @metamask/network-controller to ^14.0.0

Changed

  • Update TypeScript to v4.8.x (#1718)

Changed

  • BREAKING: Bump peer dependency on @metamask/network-controller to ^13.0.0 (#1633)
  • Use providerConfig.chainId instead of providerConfig.networkId to determine ENS compatability (#1633)
  • Bump dependency on @metamask/controller-utils to ^5.0.0 (#1633)

Changed

  • Bump dependency on @metamask/base-controller to ^3.2.1
  • Bump dependency on @metamask/controller-utils to ^4.3.2
  • Bump dependency and peer dependency on @metamask/network-controller to ^12.1.2

Changed

  • Update @metamask/utils to ^6.2.0 (#1514)

Changed

  • BREAKING: Bump to Node 16 (#1262)
  • BREAKING: Add @metamask/network-controller as a dependency and peer dependency (#1367, #1362)
  • BREAKING: The ensEntries state property is now keyed by Hex chain ID rather than string, and the chainId property of each ENS entry is also Hex rather than string. (#1367)
    • This requires a state migration
  • BREAKING: The methods get, set, and delete have been updated to accept and return chain IDs as 0x-prefixed hex strings, rather than decimal strings. (#1367)
  • Bump @metamask/utils from 5.0.1 to 5.0.2 (#1271)

Fixed

  • Fix ENS controller failure to initialize after switching networks (#1362)

Changed

  • Add support for reverse ENS address resolution (#1170)
    • This controller can now resolve a network address to an ENS address. This feature was ported from the extension ENS controller.

Changed

  • BREAKING: Convert the ENS controller to the BaseController v2 API (#1134)

Removed

  • BREAKING: Remove isomorphic-fetch (#1106)
    • Consumers must now import isomorphic-fetch or another polyfill themselves if they are running in an environment without fetch

Changed

  • Rename this repository to core (#1031)
  • Update @metamask/controller-utils package (#1041)

Changed

  • Relax dependencies on @metamask/base-controller and @metamask/controller-utils (use ^ instead of ~) (#998)

Added

  • Initial release

    • As a result of converting our shared controllers repo into a monorepo (#831), we've created this package from select parts of @metamask/controllers v33.0.0, namely:

      • src/third-party/EnsController.ts
      • src/third-party/EnsController.test.ts

      All changes listed after this point were applied to this package following the monorepo conversion.