@metamask/polling-controller
Advanced tools
Comparing version 3.0.0 to 4.0.0
@@ -9,2 +9,8 @@ # Changelog | ||
## [4.0.0] | ||
### Changed | ||
- **BREAKING:** Bump `@metamask/network-controller` dependency and peer dependency from `^17.0.0` to `^17.1.1` ([#3695](https://github.com/MetaMask/core/pull/3695)) | ||
- Bump `@metamask/base-controller` to `^4.0.1` ([#3695](https://github.com/MetaMask/core/pull/3695)) | ||
- Bump `@metamask/controller-utils` to `^8.0.1` ([#3695](https://github.com/MetaMask/core/pull/3695), [#3678](https://github.com/MetaMask/core/pull/3678)) | ||
## [3.0.0] | ||
@@ -57,3 +63,4 @@ ### Added | ||
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/polling-controller@3.0.0...HEAD | ||
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/polling-controller@4.0.0...HEAD | ||
[4.0.0]: https://github.com/MetaMask/core/compare/@metamask/polling-controller@3.0.0...@metamask/polling-controller@4.0.0 | ||
[3.0.0]: https://github.com/MetaMask/core/compare/@metamask/polling-controller@2.0.0...@metamask/polling-controller@3.0.0 | ||
@@ -60,0 +67,0 @@ [2.0.0]: https://github.com/MetaMask/core/compare/@metamask/polling-controller@1.0.2...@metamask/polling-controller@2.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 "__#93090@#pollingTokenSets": Map<PollingTokenSetId, Set<string>>; | ||
"__#93090@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>; | ||
readonly "__#93085@#pollingTokenSets": Map<PollingTokenSetId, Set<string>>; | ||
"__#93085@#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[]) => { | ||
"__#93091@#activeListeners": Record<string, (options: Json) => Promise<void>>; | ||
"__#93086@#activeListeners": Record<string, (options: Json) => Promise<void>>; | ||
_getNetworkClientById(networkClientId: NetworkClientId): NetworkClient | undefined; | ||
_startPollingByNetworkClientId(networkClientId: NetworkClientId, options: Json): void; | ||
_stopPollingByPollingTokenSetId(key: PollingTokenSetId): void; | ||
readonly "__#93090@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>; | ||
"__#93090@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>; | ||
readonly "__#93085@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>; | ||
"__#93085@#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[]) => { | ||
"__#93091@#activeListeners": Record<string, (options: Json) => Promise<void>>; | ||
"__#93086@#activeListeners": Record<string, (options: Json) => Promise<void>>; | ||
_getNetworkClientById(networkClientId: NetworkClientId): NetworkClient | undefined; | ||
_startPollingByNetworkClientId(networkClientId: NetworkClientId, options: Json): void; | ||
_stopPollingByPollingTokenSetId(key: PollingTokenSetId): void; | ||
readonly "__#93090@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>; | ||
"__#93090@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>; | ||
readonly "__#93085@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>; | ||
"__#93085@#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[]) => { | ||
"__#93091@#activeListeners": Record<string, (options: Json) => Promise<void>>; | ||
"__#93086@#activeListeners": Record<string, (options: Json) => Promise<void>>; | ||
_getNetworkClientById(networkClientId: NetworkClientId): NetworkClient | undefined; | ||
_startPollingByNetworkClientId(networkClientId: NetworkClientId, options: Json): void; | ||
_stopPollingByPollingTokenSetId(key: PollingTokenSetId): void; | ||
readonly "__#93090@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>; | ||
"__#93090@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>; | ||
readonly "__#93085@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>; | ||
"__#93085@#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 "__#93092@#intervalIds": Record<PollingTokenSetId, NodeJS.Timeout>; | ||
"__#93092@#intervalLength": number | undefined; | ||
readonly "__#93087@#intervalIds": Record<PollingTokenSetId, NodeJS.Timeout>; | ||
"__#93087@#intervalLength": number | undefined; | ||
setIntervalLength(intervalLength: number): void; | ||
@@ -20,4 +20,4 @@ getIntervalLength(): number | undefined; | ||
_stopPollingByPollingTokenSetId(key: PollingTokenSetId): void; | ||
readonly "__#93090@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>; | ||
"__#93090@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>; | ||
readonly "__#93085@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>; | ||
"__#93085@#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 "__#93092@#intervalIds": Record<PollingTokenSetId, NodeJS.Timeout>; | ||
"__#93092@#intervalLength": number | undefined; | ||
readonly "__#93087@#intervalIds": Record<PollingTokenSetId, NodeJS.Timeout>; | ||
"__#93087@#intervalLength": number | undefined; | ||
setIntervalLength(intervalLength: number): void; | ||
@@ -37,4 +37,4 @@ getIntervalLength(): number | undefined; | ||
_stopPollingByPollingTokenSetId(key: PollingTokenSetId): void; | ||
readonly "__#93090@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>; | ||
"__#93090@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>; | ||
readonly "__#93085@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>; | ||
"__#93085@#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 "__#93092@#intervalIds": Record<PollingTokenSetId, NodeJS.Timeout>; | ||
"__#93092@#intervalLength": number | undefined; | ||
readonly "__#93087@#intervalIds": Record<PollingTokenSetId, NodeJS.Timeout>; | ||
"__#93087@#intervalLength": number | undefined; | ||
setIntervalLength(intervalLength: number): void; | ||
@@ -54,4 +54,4 @@ getIntervalLength(): number | undefined; | ||
_stopPollingByPollingTokenSetId(key: PollingTokenSetId): void; | ||
readonly "__#93090@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>; | ||
"__#93090@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>; | ||
readonly "__#93085@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>; | ||
"__#93085@#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": "3.0.0", | ||
"version": "4.0.0", | ||
"description": "Polling Controller is the base for controllers that polling by networkClientId", | ||
@@ -25,2 +25,3 @@ "keywords": [ | ||
"build:docs": "typedoc", | ||
"changelog:update": "../../scripts/update-changelog.sh @metamask/polling-controller", | ||
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/polling-controller", | ||
@@ -34,5 +35,5 @@ "publish:preview": "yarn npm publish --tag preview", | ||
"dependencies": { | ||
"@metamask/base-controller": "^4.0.0", | ||
"@metamask/controller-utils": "^7.0.0", | ||
"@metamask/network-controller": "^17.0.0", | ||
"@metamask/base-controller": "^4.0.1", | ||
"@metamask/controller-utils": "^8.0.1", | ||
"@metamask/network-controller": "^17.1.0", | ||
"@metamask/utils": "^8.2.0", | ||
@@ -44,3 +45,3 @@ "@types/uuid": "^8.3.0", | ||
"devDependencies": { | ||
"@metamask/auto-changelog": "^3.4.3", | ||
"@metamask/auto-changelog": "^3.4.4", | ||
"@types/jest": "^27.4.1", | ||
@@ -56,3 +57,3 @@ "deepmerge": "^4.2.2", | ||
"peerDependencies": { | ||
"@metamask/network-controller": "^17.0.0" | ||
"@metamask/network-controller": "^17.1.0" | ||
}, | ||
@@ -59,0 +60,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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
51503
0
+ Added@noble/hashes@1.6.0(transitive)
- Removed@metamask/controller-utils@7.0.0(transitive)
- Removed@metamask/ethjs-unit@0.2.1(transitive)
- Removed@noble/hashes@1.6.1(transitive)
- Removed@types/bn.js@5.1.6(transitive)
- Removed@types/node@22.10.0(transitive)
- Removed@types/pbkdf2@3.1.2(transitive)
- Removed@types/secp256k1@4.0.6(transitive)
- Removedbase-x@3.0.10(transitive)
- Removedblakejs@1.2.1(transitive)
- Removedbn.js@4.11.64.12.1(transitive)
- Removedbrorand@1.1.0(transitive)
- Removedbrowserify-aes@1.2.0(transitive)
- Removedbs58@4.0.1(transitive)
- Removedbs58check@2.1.2(transitive)
- Removedbuffer-xor@1.0.3(transitive)
- Removedcipher-base@1.0.5(transitive)
- Removedcreate-hash@1.2.0(transitive)
- Removedcreate-hmac@1.1.7(transitive)
- Removedelliptic@6.6.1(transitive)
- Removedethereum-cryptography@0.1.3(transitive)
- Removedethereumjs-util@7.1.5(transitive)
- Removedevp_bytestokey@1.0.3(transitive)
- Removedhash-base@3.1.0(transitive)
- Removedhash.js@1.1.7(transitive)
- Removedhmac-drbg@1.0.1(transitive)
- Removedinherits@2.0.4(transitive)
- Removedkeccak@3.0.4(transitive)
- Removedmd5.js@1.3.5(transitive)
- Removedminimalistic-assert@1.0.1(transitive)
- Removedminimalistic-crypto-utils@1.0.1(transitive)
- Removednode-addon-api@2.0.25.1.0(transitive)
- Removednode-gyp-build@4.8.4(transitive)
- Removednumber-to-bn@1.7.0(transitive)
- Removedpbkdf2@3.1.2(transitive)
- Removedrandombytes@2.1.0(transitive)
- Removedreadable-stream@3.6.2(transitive)
- Removedripemd160@2.0.2(transitive)
- Removedrlp@2.2.7(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedscrypt-js@3.0.1(transitive)
- Removedsecp256k1@4.0.4(transitive)
- Removedsetimmediate@1.0.5(transitive)
- Removedsha.js@2.4.11(transitive)
- Removedstring_decoder@1.3.0(transitive)
- Removedundici-types@6.20.0(transitive)
- Removedutil-deprecate@1.0.2(transitive)