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) - Bump
@metamask/base-controller
from^7.0.1
to^7.0.2
(#4862) - Bump
@metamask/controller-utils
from^11.3.0
to^11.4.4
(#4834, #4862, #4870, #4915, #5012)
- 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.
- Add
AddressBookController
messenger types:AddressBookControllerMessenger
,AddressBookControllerGetStateAction
,AddressBookControllerActions
,AddressBookControllerStateChangeEvent
,AddressBookControllerEvents
(#4392) - Add
getDefaultAddressBookControllerState
getter for the default state ofAddressBookController
(#4392)
- BREAKING:
AddressBookController
inherits fromBaseController
, notBaseControllerV1
(#4392) - BREAKING: Add
messenger
as required constructor option toAddressBookController
(#4392) - BREAKING: Rename
AddressBookState
type toAddressBookControllerState
(#4392) - Bump
@metamask/base-controller
from^6.0.0
to^7.0.0
(#4517, #4544, #4625, #4643) - Bump
@metamask/controller-utils
from^11.0.0
to^11.2.0
(#4517, #4544, #4639, #4651) - Bump
@metamask/utils
from^8.3.0
to^9.1.0
(#4516, #4529) - Bump
typescript
from~4.9.5
to~5.2.2
and setmodule{,Resolution}
options toNode16
(#3645, #4576, #4584)
- BREAKING: Remove
config
from required constructor options ofAddressBookController
(#4392) - BREAKING: Remove
AddressBookConfig
type (#4392)
- 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)
- Fix
delete
method to protect against prototype-polluting assignments (#4041)
- 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.
- Bump
@metamask/controller-utils
to^9.0.0
(#4039)
- 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)
- Bump
@metamask/base-controller
to^4.0.1
(#3695) - Bump
@metamask/controller-utils
to^8.0.1
(#3695, #3678, #3667, #3580)
- Bump
@metamask/utils
to ^8.2.0 (#1957) - Bump
@metamask/base-controller
to ^4.0.0 (#2063)- This is not a breaking change because this controller still inherits from BaseController v1.
- Bump
@metamask/controller-utils
to ^6.0.0 (#2063)
- 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
- Update TypeScript to v4.8.x (#1718)
- Bump dependency on
@metamask/controller-utils
to ^5.0.0
- Bump dependency on
@metamask/base-controller
to ^3.2.1 - Bump dependency on
@metamask/controller-utils
to ^4.3.2
- Update
@metamask/utils
to^6.2.0
(#1514)
- BREAKING:: Bump to Node 16 (#1262)
- BREAKING: The
addressBook
state property is now keyed byHex
chain ID rather thanstring
, and thechainId
property of each address book entry is alsoHex
rather thanstring
.- This requires a state migration (#1367)
- BREAKING: The methods
delete
andset
now except the chain ID asHex
rather than as a decimal string (#1367) - Add
@metamask/utils
dependency (#1367)
- 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 optional
addressType
property to address book entries (#828, #1068) - Rename this repository to
core
(#1031) - Update
@metamask/controller-utils
package (#1041)
- 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:src/user/AddressBookController.ts
src/user/AddressBookController.test.ts
All changes listed after this point were applied to this package following the monorepo conversion.
-