@metamask/assets-controllers 45.1.0 → 45.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,41 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [45.1.2]
11
+
12
+ ### Changed
13
+
14
+ - Remove use of `@metamask/keyring-api` ([#4695](https://github.com/MetaMask/core/pull/4695))
15
+ - `@metamask/providers` and `webextension-polyfill` peer dependencies are no longer required.
16
+ - Use new `@metamask/keyring-internal-api@^1.0.0` ([#4695](https://github.com/MetaMask/core/pull/4695))
17
+ - This package has been split out from the Keyring API. Its types are compatible with the `@metamask/keyring-api` package used previously.
18
+
19
+ ## [45.1.1]
20
+
21
+ ### Changed
22
+
23
+ - Bump `@metamask/controller-utils` from `^11.3.0` to `^11.4.4` ([#5012](https://github.com/MetaMask/core/pull/5012))
24
+ - Bump `@metamask/polling-controller` from `^12.0.1` to `^12.0.2` ([#5012](https://github.com/MetaMask/core/pull/5012))
25
+
26
+ ### Fixed
27
+
28
+ - Make implicit peer dependencies explicit ([#4974](https://github.com/MetaMask/core/pull/4974))
29
+ - Add the following packages as peer dependencies of this package to satisfy peer dependency requirements from other dependencies:
30
+ - `@metamask/providers` `^18.1.0` (required by `@metamask/keyring-api`)
31
+ - `webextension-polyfill` `^0.10.0 || ^0.11.0 || ^0.12.0` (required by `@metamask/providers`)
32
+ - These dependencies really should be present in projects that consume this package (e.g. MetaMask clients), and this change ensures that they now are.
33
+ - Furthermore, we are assuming that clients already use these dependencies, since otherwise it would be impossible to consume this package in its entirety or even create a working build. Hence, the addition of these peer dependencies is really a formality and should not be breaking.
34
+ - Fix `TokensController.ignoreTokens` so that if a network is provided, `allIgnoredTokens`, `allTokens`, and `allDetectedTokens` for that network no longer get corrupted with tokens from the globally selected network ([#4967](https://github.com/MetaMask/core/pull/4967))
35
+ - Correct ESM-compatible build so that imports of the following packages that re-export other modules via `export *` are no longer corrupted: ([#5011](https://github.com/MetaMask/core/pull/5011))
36
+ - `@metamask/abi-utils`
37
+ - `@metamask/contract-metadata`
38
+ - `@metamask/eth-query`
39
+ - `@ethereumjs/util`
40
+ - `bn.js`
41
+ - `cockatiel`
42
+ - `lodash`
43
+ - `single-call-balance-checker-abi`
44
+
10
45
  ## [45.1.0]
11
46
 
12
47
  ### Added
@@ -1265,7 +1300,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1265
1300
 
1266
1301
  - Use Ethers for AssetsContractController ([#845](https://github.com/MetaMask/core/pull/845))
1267
1302
 
1268
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@45.1.0...HEAD
1303
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@45.1.2...HEAD
1304
+ [45.1.2]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@45.1.1...@metamask/assets-controllers@45.1.2
1305
+ [45.1.1]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@45.1.0...@metamask/assets-controllers@45.1.1
1269
1306
  [45.1.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@45.0.0...@metamask/assets-controllers@45.1.0
1270
1307
  [45.0.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@44.1.0...@metamask/assets-controllers@45.0.0
1271
1308
  [44.1.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@44.0.1...@metamask/assets-controllers@44.1.0
@@ -65,14 +65,14 @@ type AccountTrackerPollingInput = {
65
65
  networkClientId: NetworkClientId;
66
66
  };
67
67
  declare const AccountTrackerController_base: (abstract new (...args: any[]) => {
68
- readonly "__#787811@#intervalIds": Record<string, NodeJS.Timeout>;
69
- "__#787811@#intervalLength": number | undefined;
68
+ readonly "__#13@#intervalIds": Record<string, NodeJS.Timeout>;
69
+ "__#13@#intervalLength": number | undefined;
70
70
  setIntervalLength(intervalLength: number): void;
71
71
  getIntervalLength(): number | undefined;
72
72
  _startPolling(input: AccountTrackerPollingInput): void;
73
73
  _stopPollingByPollingTokenSetId(key: string): void;
74
- readonly "__#787803@#pollingTokenSets": Map<string, Set<string>>;
75
- "__#787803@#callbacks": Map<string, Set<(input: AccountTrackerPollingInput) => void>>;
74
+ readonly "__#3@#pollingTokenSets": Map<string, Set<string>>;
75
+ "__#3@#callbacks": Map<string, Set<(input: AccountTrackerPollingInput) => void>>;
76
76
  _executePoll(input: AccountTrackerPollingInput): Promise<void>;
77
77
  startPolling(input: AccountTrackerPollingInput): string;
78
78
  stopAllPolling(): void;
@@ -65,14 +65,14 @@ type AccountTrackerPollingInput = {
65
65
  networkClientId: NetworkClientId;
66
66
  };
67
67
  declare const AccountTrackerController_base: (abstract new (...args: any[]) => {
68
- readonly "__#787811@#intervalIds": Record<string, NodeJS.Timeout>;
69
- "__#787811@#intervalLength": number | undefined;
68
+ readonly "__#13@#intervalIds": Record<string, NodeJS.Timeout>;
69
+ "__#13@#intervalLength": number | undefined;
70
70
  setIntervalLength(intervalLength: number): void;
71
71
  getIntervalLength(): number | undefined;
72
72
  _startPolling(input: AccountTrackerPollingInput): void;
73
73
  _stopPollingByPollingTokenSetId(key: string): void;
74
- readonly "__#787803@#pollingTokenSets": Map<string, Set<string>>;
75
- "__#787803@#callbacks": Map<string, Set<(input: AccountTrackerPollingInput) => void>>;
74
+ readonly "__#3@#pollingTokenSets": Map<string, Set<string>>;
75
+ "__#3@#callbacks": Map<string, Set<(input: AccountTrackerPollingInput) => void>>;
76
76
  _executePoll(input: AccountTrackerPollingInput): Promise<void>;
77
77
  startPolling(input: AccountTrackerPollingInput): string;
78
78
  stopAllPolling(): void;
@@ -29,14 +29,14 @@ type CurrencyRatePollingInput = {
29
29
  nativeCurrencies: string[];
30
30
  };
31
31
  declare const CurrencyRateController_base: (abstract new (...args: any[]) => {
32
- readonly "__#787811@#intervalIds": Record<string, NodeJS.Timeout>;
33
- "__#787811@#intervalLength": number | undefined;
32
+ readonly "__#13@#intervalIds": Record<string, NodeJS.Timeout>;
33
+ "__#13@#intervalLength": number | undefined;
34
34
  setIntervalLength(intervalLength: number): void;
35
35
  getIntervalLength(): number | undefined;
36
36
  _startPolling(input: CurrencyRatePollingInput): void;
37
37
  _stopPollingByPollingTokenSetId(key: string): void;
38
- readonly "__#787803@#pollingTokenSets": Map<string, Set<string>>;
39
- "__#787803@#callbacks": Map<string, Set<(input: CurrencyRatePollingInput) => void>>;
38
+ readonly "__#3@#pollingTokenSets": Map<string, Set<string>>;
39
+ "__#3@#callbacks": Map<string, Set<(input: CurrencyRatePollingInput) => void>>;
40
40
  _executePoll(input: CurrencyRatePollingInput): Promise<void>;
41
41
  startPolling(input: CurrencyRatePollingInput): string;
42
42
  stopAllPolling(): void;
@@ -29,14 +29,14 @@ type CurrencyRatePollingInput = {
29
29
  nativeCurrencies: string[];
30
30
  };
31
31
  declare const CurrencyRateController_base: (abstract new (...args: any[]) => {
32
- readonly "__#787811@#intervalIds": Record<string, NodeJS.Timeout>;
33
- "__#787811@#intervalLength": number | undefined;
32
+ readonly "__#13@#intervalIds": Record<string, NodeJS.Timeout>;
33
+ "__#13@#intervalLength": number | undefined;
34
34
  setIntervalLength(intervalLength: number): void;
35
35
  getIntervalLength(): number | undefined;
36
36
  _startPolling(input: CurrencyRatePollingInput): void;
37
37
  _stopPollingByPollingTokenSetId(key: string): void;
38
- readonly "__#787803@#pollingTokenSets": Map<string, Set<string>>;
39
- "__#787803@#callbacks": Map<string, Set<(input: CurrencyRatePollingInput) => void>>;
38
+ readonly "__#3@#pollingTokenSets": Map<string, Set<string>>;
39
+ "__#3@#callbacks": Map<string, Set<(input: CurrencyRatePollingInput) => void>>;
40
40
  _executePoll(input: CurrencyRatePollingInput): Promise<void>;
41
41
  startPolling(input: CurrencyRatePollingInput): string;
42
42
  stopAllPolling(): void;