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.
- BREAKING: Bump minimum Node version to 18.18 (#3611)
- Bump
@metamask/base-controller
to^6.0.0
(#4352)
- Fix
types
field inpackage.json
(#4047)
- BREAKING: Add ESM build (#3998)
- It's no longer possible to import files from
./dist
directly.
- It's no longer possible to import files from
- BREAKING: Bump
@metamask/base-controller
to^5.0.0
(#4039)- This version has a number of breaking changes. See the changelog for more.
- BREAKING: Narrow
ApprovalControllerMessenger
type parametersAllowedAction
andAllowedEvent
fromstring
tonever
(#4031)- Allowlisting or using any external actions or events will now produce a type error.
- Bump
@metamask/rpc-errors
to^6.2.1
(#3954)
- Bump
@metamask/base-controller
to^4.0.1
(#3695)
- Add
title
andicon
options tosuccess
anderror
methods (#3675)
- 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.
- This is breaking because the type of the
- Bump
@metamask/utils
to ^8.2.0 (#1957)
- Add
show
option forstartFlow
(#1886)- This option lets you initiate a new approval flow without triggering the UI immediately.
- Bump dependency on
@metamask/rpc-errors
to ^6.1.0 (#1653)
- 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
- Upon upgrading, you may need to also use
- Bump dependency on
@metamask/utils
to ^8.1.0 (#1639) - Bump dependency on
@metamask/base-controller
to ^3.2.3
- Update TypeScript to v4.8.x (#1718)
- Bump dependency on
@metamask/base-controller
to ^3.2.1
- Update
@metamask/utils
to^6.2.0
(#1514)
- Add
success
anderror
methods to display result pages (#1442)
- Add
setFlowLoadingText
method to ApprovalController (#1419)
- Add
startFlow
andendFlow
methods to ApprovalController (#1394)
- Fix ApprovalController constructor so that it accepts a messenger created by calling
getRestricted
without having type parameters explicitly specified (#1417)
- Optional feedback when accepting an approval request (#1396)
- BREAKING: Bump to Node 16 (#1262)
- Replace
@metamask/controller-utils
dependency with@metamask/utils
(#1370)
- deps: eth-rpc-errors@4.0.0->4.0.2 (#1215)
- Option to exclude types from rate limiting (#1185)
- BREAKING: Remove
isomorphic-fetch
(#1106)- Consumers must now import
isomorphic-fetch
or another polyfill themselves if they are running in an environment withoutfetch
- Consumers must now import
- Add
updateRequestState
action toApprovalController
(#1059)
- Relax dependencies on
@metamask/base-controller
and@metamask/controller-utils
(use^
instead of~
) (#998)
-
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.
- Everything in
-