@metamask/polling-controller
Advanced tools
Comparing version 4.0.0 to 5.0.0
@@ -9,2 +9,9 @@ # Changelog | ||
## [5.0.0] | ||
### Changed | ||
- **BREAKING:** Bump `@metamask/network-controller` peer dependency to `^17.2.0` ([#3821](https://github.com/MetaMask/core/pull/3821)) | ||
- Bump `@metamask/utils` to `^8.3.0` ([#3769](https://github.com/MetaMask/core/pull/3769)) | ||
- Bump `@metamask/base-controller` to `^4.1.1` ([#3760](https://github.com/MetaMask/core/pull/3760), [#3821](https://github.com/MetaMask/core/pull/3821)) | ||
- Bump `@metamask/controller-utils` to `^8.0.2` ([#3821](https://github.com/MetaMask/core/pull/3821)) | ||
## [4.0.0] | ||
@@ -63,3 +70,4 @@ ### Changed | ||
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/polling-controller@4.0.0...HEAD | ||
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/polling-controller@5.0.0...HEAD | ||
[5.0.0]: https://github.com/MetaMask/core/compare/@metamask/polling-controller@4.0.0...@metamask/polling-controller@5.0.0 | ||
[4.0.0]: https://github.com/MetaMask/core/compare/@metamask/polling-controller@3.0.0...@metamask/polling-controller@4.0.0 | ||
@@ -66,0 +74,0 @@ [3.0.0]: https://github.com/MetaMask/core/compare/@metamask/polling-controller@2.0.0...@metamask/polling-controller@3.0.0 |
@@ -22,4 +22,4 @@ import type { NetworkClientId } from '@metamask/network-controller'; | ||
export declare function AbstractPollingControllerBaseMixin<TBase extends Constructor>(Base: TBase): (abstract new (...args: any[]) => { | ||
readonly "__#93085@#pollingTokenSets": Map<PollingTokenSetId, Set<string>>; | ||
"__#93085@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>; | ||
readonly "__#97100@#pollingTokenSets": Map<PollingTokenSetId, Set<string>>; | ||
"__#97100@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>; | ||
_executePoll(networkClientId: NetworkClientId, options: Json): Promise<void>; | ||
@@ -26,0 +26,0 @@ _startPollingByNetworkClientId(networkClientId: NetworkClientId, options: Json): void; |
@@ -8,8 +8,8 @@ import { BaseController, BaseControllerV1 } from '@metamask/base-controller'; | ||
export declare const BlockTrackerPollingControllerOnly: (abstract new (...args: any[]) => { | ||
"__#93086@#activeListeners": Record<string, (options: Json) => Promise<void>>; | ||
"__#97101@#activeListeners": Record<string, (options: Json) => Promise<void>>; | ||
_getNetworkClientById(networkClientId: NetworkClientId): NetworkClient | undefined; | ||
_startPollingByNetworkClientId(networkClientId: NetworkClientId, options: Json): void; | ||
_stopPollingByPollingTokenSetId(key: PollingTokenSetId): void; | ||
readonly "__#93085@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>; | ||
"__#93085@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>; | ||
readonly "__#97100@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>; | ||
"__#97100@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>; | ||
_executePoll(networkClientId: string, options: Json): Promise<void>; | ||
@@ -22,8 +22,8 @@ startPollingByNetworkClientId(networkClientId: string, options?: Json): string; | ||
export declare const BlockTrackerPollingController: (abstract new (...args: any[]) => { | ||
"__#93086@#activeListeners": Record<string, (options: Json) => Promise<void>>; | ||
"__#97101@#activeListeners": Record<string, (options: Json) => Promise<void>>; | ||
_getNetworkClientById(networkClientId: NetworkClientId): NetworkClient | undefined; | ||
_startPollingByNetworkClientId(networkClientId: NetworkClientId, options: Json): void; | ||
_stopPollingByPollingTokenSetId(key: PollingTokenSetId): void; | ||
readonly "__#93085@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>; | ||
"__#93085@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>; | ||
readonly "__#97100@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>; | ||
"__#97100@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>; | ||
_executePoll(networkClientId: string, options: Json): Promise<void>; | ||
@@ -36,8 +36,8 @@ startPollingByNetworkClientId(networkClientId: string, options?: Json): string; | ||
export declare const BlockTrackerPollingControllerV1: (abstract new (...args: any[]) => { | ||
"__#93086@#activeListeners": Record<string, (options: Json) => Promise<void>>; | ||
"__#97101@#activeListeners": Record<string, (options: Json) => Promise<void>>; | ||
_getNetworkClientById(networkClientId: NetworkClientId): NetworkClient | undefined; | ||
_startPollingByNetworkClientId(networkClientId: NetworkClientId, options: Json): void; | ||
_stopPollingByPollingTokenSetId(key: PollingTokenSetId): void; | ||
readonly "__#93085@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>; | ||
"__#93085@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>; | ||
readonly "__#97100@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>; | ||
"__#97100@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>; | ||
_executePoll(networkClientId: string, options: Json): Promise<void>; | ||
@@ -44,0 +44,0 @@ startPollingByNetworkClientId(networkClientId: string, options?: Json): string; |
@@ -13,4 +13,4 @@ /// <reference types="node" /> | ||
export declare const StaticIntervalPollingControllerOnly: (abstract new (...args: any[]) => { | ||
readonly "__#93087@#intervalIds": Record<PollingTokenSetId, NodeJS.Timeout>; | ||
"__#93087@#intervalLength": number | undefined; | ||
readonly "__#97102@#intervalIds": Record<PollingTokenSetId, NodeJS.Timeout>; | ||
"__#97102@#intervalLength": number | undefined; | ||
setIntervalLength(intervalLength: number): void; | ||
@@ -20,4 +20,4 @@ getIntervalLength(): number | undefined; | ||
_stopPollingByPollingTokenSetId(key: PollingTokenSetId): void; | ||
readonly "__#93085@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>; | ||
"__#93085@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>; | ||
readonly "__#97100@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>; | ||
"__#97100@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>; | ||
_executePoll(networkClientId: string, options: Json): Promise<void>; | ||
@@ -30,4 +30,4 @@ startPollingByNetworkClientId(networkClientId: string, options?: Json): string; | ||
export declare const StaticIntervalPollingController: (abstract new (...args: any[]) => { | ||
readonly "__#93087@#intervalIds": Record<PollingTokenSetId, NodeJS.Timeout>; | ||
"__#93087@#intervalLength": number | undefined; | ||
readonly "__#97102@#intervalIds": Record<PollingTokenSetId, NodeJS.Timeout>; | ||
"__#97102@#intervalLength": number | undefined; | ||
setIntervalLength(intervalLength: number): void; | ||
@@ -37,4 +37,4 @@ getIntervalLength(): number | undefined; | ||
_stopPollingByPollingTokenSetId(key: PollingTokenSetId): void; | ||
readonly "__#93085@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>; | ||
"__#93085@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>; | ||
readonly "__#97100@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>; | ||
"__#97100@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>; | ||
_executePoll(networkClientId: string, options: Json): Promise<void>; | ||
@@ -47,4 +47,4 @@ startPollingByNetworkClientId(networkClientId: string, options?: Json): string; | ||
export declare const StaticIntervalPollingControllerV1: (abstract new (...args: any[]) => { | ||
readonly "__#93087@#intervalIds": Record<PollingTokenSetId, NodeJS.Timeout>; | ||
"__#93087@#intervalLength": number | undefined; | ||
readonly "__#97102@#intervalIds": Record<PollingTokenSetId, NodeJS.Timeout>; | ||
"__#97102@#intervalLength": number | undefined; | ||
setIntervalLength(intervalLength: number): void; | ||
@@ -54,4 +54,4 @@ getIntervalLength(): number | undefined; | ||
_stopPollingByPollingTokenSetId(key: PollingTokenSetId): void; | ||
readonly "__#93085@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>; | ||
"__#93085@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>; | ||
readonly "__#97100@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>; | ||
"__#97100@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>; | ||
_executePoll(networkClientId: string, options: Json): Promise<void>; | ||
@@ -58,0 +58,0 @@ startPollingByNetworkClientId(networkClientId: string, options?: Json): string; |
{ | ||
"name": "@metamask/polling-controller", | ||
"version": "4.0.0", | ||
"version": "5.0.0", | ||
"description": "Polling Controller is the base for controllers that polling by networkClientId", | ||
@@ -34,6 +34,6 @@ "keywords": [ | ||
"dependencies": { | ||
"@metamask/base-controller": "^4.0.1", | ||
"@metamask/controller-utils": "^8.0.1", | ||
"@metamask/network-controller": "^17.1.0", | ||
"@metamask/utils": "^8.2.0", | ||
"@metamask/base-controller": "^4.1.1", | ||
"@metamask/controller-utils": "^8.0.2", | ||
"@metamask/network-controller": "^17.2.0", | ||
"@metamask/utils": "^8.3.0", | ||
"@types/uuid": "^8.3.0", | ||
@@ -55,3 +55,3 @@ "fast-json-stable-stringify": "^2.1.0", | ||
"peerDependencies": { | ||
"@metamask/network-controller": "^17.1.0" | ||
"@metamask/network-controller": "^17.2.0" | ||
}, | ||
@@ -58,0 +58,0 @@ "engines": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52131
+ Added@noble/hashes@1.5.0(transitive)
- Removed@noble/hashes@1.6.0(transitive)
Updated@metamask/utils@^8.3.0