Skip to content

Latest commit

 

History

History
229 lines (136 loc) · 9.19 KB

File metadata and controls

229 lines (136 loc) · 9.19 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

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

Changed

  • Bump TypeScript version to ~4.9.5 (#4084)
  • Bump @metamask/base-controller to ^5.0.2 (#4232)

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.

Changed

  • BREAKING: Bump @metamask/base-controller to ^5.0.0 (#4039)
    • This version has a number of breaking changes. See the changelog for more.

Fixed

  • BREAKING: Narrow ApprovalControllerMessenger type parameters AllowedAction and AllowedEvent from string to never (#4031)
    • Allowlisting or using any external actions or events will now produce a type error.

Changed

  • Bump @metamask/rpc-errors to ^6.2.1 (#3954)

Changed

  • Bump @metamask/utils to ^8.3.0 (#3769)
  • Bump @metamask/base-controller to ^4.1.1 (#3760, #3821)

Changed

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

Added

  • Add title and icon options to success and error methods (#3675)

Changed

  • BREAKING: Bump @metamask/base-controller to ^4.0.0 (TODO: THIS PR)
    • 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)

Added

  • Add show option for startFlow (#1886)
    • This option lets you initiate a new approval flow without triggering the UI immediately.

Changed

  • Bump dependency on @metamask/rpc-errors to ^6.1.0 (#1653)

Changed

  • BREAKING: Move eth-rpc-errors@^4.0.2 dependency to @metamask/rpc-errors@^6.0.2 (#1743)
    • Upon upgrading, you may need to also use @metamask/rpc-errors@^6.0.2, which restricts valid data that can be used to build messages
  • Bump dependency on @metamask/utils to ^8.1.0 (#1639)
  • Bump dependency on @metamask/base-controller to ^3.2.3

Changed

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

Changed

  • Bump dependency on @metamask/base-controller to ^3.2.1

Changed

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

Added

  • Add success and error methods to display result pages (#1442)

Added

  • Add setFlowLoadingText method to ApprovalController (#1419)

Added

  • Add startFlow and endFlow methods to ApprovalController (#1394)

Fixed

  • Fix ApprovalController constructor so that it accepts a messenger created by calling getRestricted without having type parameters explicitly specified (#1417)

Added

  • Optional feedback when accepting an approval request (#1396)

Changed

  • BREAKING: Bump to Node 16 (#1262)
  • Replace @metamask/controller-utils dependency with @metamask/utils (#1370)

Changed

  • deps: eth-rpc-errors@4.0.0->4.0.2 (#1215)

Added

  • Option to exclude types from rate limiting (#1185)

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

Added

  • Add updateRequestState action to ApprovalController (#1059)

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:

      • Everything in src/approval

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