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.1
to^7.0.2
(#4862) - Bump
@metamask/controller-utils
from^11.4.0
to^11.4.2
(#4862, #4870)
- 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)
- BREAKING:
AbstractPollingController
now accepts a generic type parameterPollingInput
which is polymorphic, unlike the previous monomorphic required input of a network client id (#4752) - BREAKING: The
AbstractPollingController
methodstartPollingByNetworkClientId
has been renamed tostartPolling
(#4752) - BREAKING: The
AbstractPollingController
methodonPollingComplete
now returns the entire input object of typePollingInput
, instead of a network client id (#4752)
- 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.
- 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)
- Remove
@metamask/network-controller
dependency #4556- This was listed under
peerDependencies
already, so it was redundant as a dependency.
- This was listed under
- Upgrade TypeScript version to
~5.0.4
and setmoduleResolution
option toNode16
(#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)
- BREAKING: Bump peerDependency
@metamask/network-controller
to^20.0.0
(#4508)
- BREAKING: Bump minimum Node version to 18.18 (#3611)
- BREAKING: Bump dependency and 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)
- BREAKING: Bump dependency and peer dependency
@metamask/network-controller
to^18.1.3
(#4342) - Bump
@metamask/controller-utils
to^10.0.0
(#4342)
StaticIntervalPollingControllerOnly
,StaticIntervalPollingController
, andStaticIntervalPollingControllerV1
now properly stops polling when a stop is requested while_executePoll
has not yet resolved for the current loop (#4230)
- Bump TypeScript version to
~4.9.5
(#4084) - Bump
@metamask/network-controller
to^18.1.0
(#4121) - Bump
@metamask/controller-utils
to^9.1.0
(#4153, #4065)
- 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: Bump dependency and peer dependency on
@metamask/network-controller
to^18.0.0
(#4039) - Bump
@metamask/controller-utils
to^9.0.0
(#4039)
- Bump
@metamask/controller-utils
to^8.0.4
(#4007) - Bump
@metamask/network-controller
to^17.2.1
(#4007)
- 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)
- BREAKING: Bump
@metamask/network-controller
dependency and peer dependency from^17.0.0
to^17.1.1
(#3695) - Bump
@metamask/base-controller
to^4.0.1
(#3695) - Bump
@metamask/controller-utils
to^8.0.1
(#3695, #3678)
BlockTrackerPollingController
,BlockTrackerPollingControllerV1
andBlockTrackerPollingControllerOnly
have been added and can be used by subclasses to poll with a blockTracker using the same API as theStaticIntervalPollingController
versions - the only exception is the requirement to implement the abstract method_getNetworkClientById
on subclasses.
- BREAKING:
PollingController
,PollingControllerV1
andPollingControllerOnly
are all removed and replaced byStaticIntervalPollingController
,StaticIntervalPollingControllerV1
andStaticIntervalPollingControllerOnly
(#3636)
- 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.
- This is breaking because the type of the
- Bump
@metamask/controller-utils
to ^6.0.0 (#2063) - Bump
@metamask/network-controller
to ^17.0.0 (#2063)
- 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)
- Export
PollingControllerOnly
(#1921)
- Add
PollingControllerOnly
to extend from an empty class. This will allow classes that previously are just classes that don't extend from BaseV1 or V2 to extend from this newPollingControllerOnly
. (#1873)
- BREAKING:
_executePoll()
is called immediately on start if no polling interval is already active for the networkClientId + options combination (#1874) - Bump dependency and peer dependency on
@metamask/network-controller
to ^15.1.0
- Add way to start and stop different polling sessions for the same network client ID by providing extra scoping data (#1776)
- Add optional second argument to
stopPollingByPollingToken
(formerlystopPollingByNetworkClientId
) - Add optional second argument to
onPollingCompleteByNetworkClientId
- Add optional second argument to
- BREAKING: Bump dependency and peer dependency on
@metamask/network-controller
to ^15.0.0 - BREAKING: Polling controllers are expected to override
_executePoll
instead ofexecutePoll
(#1810) - BREAKING: Rename
stopPollingByNetworkClientId
tostopPollingByPollingToken
(#1810) - Add dependency on
fast-json-stable-stringify
^2.1.0
- Initial release