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.
- Bump
@metamask/base-controller
from^7.0.0
to^7.1.0
(#5079)
- Bump
@metamask/utils
from^9.1.0
to^10.0.0
(#4831)
- Add
deleteAfterResult
option to accept method to delay removal of approval request from state (#4715)
- 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 inpackage.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.
- Previously, this package shipped with only one variant of type declaration
files, and these files were only CommonJS-compatible, and the
- 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.
- Bump
@metamask/base-controller
from^6.0.2
to^7.0.0
(#4625, #4643) - Bump
typescript
from~5.0.4
to~5.2.2
(#4576, #4584)
- Bump TypeScript version to
~5.0.4
and setmoduleResolution
option toNode16
(#3645) - Bump
@metamask/base-controller
from^6.0.1
from^6.0.2
(#4544) - Bump
@metamask/utils
from^9.0.0
to^9.1.0
(#4529)
- Bump
@metamask/rpc-errors
from6.2.1
to^6.3.1
(#4516) - Bump
@metamask/utils
from^8.3.0
to^9.0.0
(#4516) - Bump
@metamask/base-controller
to^6.0.1
(#4517)
- 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: [email protected]>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
-