@metamask-previews/gas-fee-controller 22.0.1-preview-a0b32c13 → 22.0.2-preview-9e30e90a

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,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [22.0.2]
11
+
12
+ ### Changed
13
+
14
+ - Bump `@metamask/controller-utils` from `^11.4.3` to `^11.4.4` ([#5012](https://github.com/MetaMask/core/pull/5012))
15
+ - Bump `@metamask/polling-controller` from `^12.0.1` to `^12.0.2` ([#5012](https://github.com/MetaMask/core/pull/5012))
16
+
17
+ ### Fixed
18
+
19
+ - Make implicit peer dependencies explicit ([#4974](https://github.com/MetaMask/core/pull/4974))
20
+ - Add the following packages as peer dependencies of this package to satisfy peer dependency requirements from other dependencies:
21
+ - `@babel/runtime@^7.0.0` (required by `@metamask/ethjs-unit`)
22
+ - These dependencies really should be present in projects that consume this package (e.g. MetaMask clients), and this change ensures that they now are.
23
+ - 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.
24
+ - 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))
25
+ - `@metamask/eth-query`
26
+ - `bn.js`
27
+
10
28
  ## [22.0.1]
11
29
 
12
30
  ### Changed
@@ -375,7 +393,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
375
393
 
376
394
  All changes listed after this point were applied to this package following the monorepo conversion.
377
395
 
378
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@22.0.1...HEAD
396
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@22.0.2...HEAD
397
+ [22.0.2]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@22.0.1...@metamask/gas-fee-controller@22.0.2
379
398
  [22.0.1]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@22.0.0...@metamask/gas-fee-controller@22.0.1
380
399
  [22.0.0]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@21.0.0...@metamask/gas-fee-controller@22.0.0
381
400
  [21.0.0]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@20.0.1...@metamask/gas-fee-controller@21.0.0
@@ -151,14 +151,14 @@ type GasFeePollingInput = {
151
151
  networkClientId: NetworkClientId;
152
152
  };
153
153
  declare const GasFeeController_base: (abstract new (...args: any[]) => {
154
- readonly "__#787811@#intervalIds": Record<string, NodeJS.Timeout>;
155
- "__#787811@#intervalLength": number | undefined;
154
+ readonly "__#11@#intervalIds": Record<string, NodeJS.Timeout>;
155
+ "__#11@#intervalLength": number | undefined;
156
156
  setIntervalLength(intervalLength: number): void;
157
157
  getIntervalLength(): number | undefined;
158
158
  _startPolling(input: GasFeePollingInput): void;
159
159
  _stopPollingByPollingTokenSetId(key: string): void;
160
- readonly "__#787803@#pollingTokenSets": Map<string, Set<string>>;
161
- "__#787803@#callbacks": Map<string, Set<(input: GasFeePollingInput) => void>>;
160
+ readonly "__#3@#pollingTokenSets": Map<string, Set<string>>;
161
+ "__#3@#callbacks": Map<string, Set<(input: GasFeePollingInput) => void>>;
162
162
  _executePoll(input: GasFeePollingInput): Promise<void>;
163
163
  startPolling(input: GasFeePollingInput): string;
164
164
  stopAllPolling(): void;
@@ -151,14 +151,14 @@ type GasFeePollingInput = {
151
151
  networkClientId: NetworkClientId;
152
152
  };
153
153
  declare const GasFeeController_base: (abstract new (...args: any[]) => {
154
- readonly "__#787811@#intervalIds": Record<string, NodeJS.Timeout>;
155
- "__#787811@#intervalLength": number | undefined;
154
+ readonly "__#11@#intervalIds": Record<string, NodeJS.Timeout>;
155
+ "__#11@#intervalLength": number | undefined;
156
156
  setIntervalLength(intervalLength: number): void;
157
157
  getIntervalLength(): number | undefined;
158
158
  _startPolling(input: GasFeePollingInput): void;
159
159
  _stopPollingByPollingTokenSetId(key: string): void;
160
- readonly "__#787803@#pollingTokenSets": Map<string, Set<string>>;
161
- "__#787803@#callbacks": Map<string, Set<(input: GasFeePollingInput) => void>>;
160
+ readonly "__#3@#pollingTokenSets": Map<string, Set<string>>;
161
+ "__#3@#callbacks": Map<string, Set<(input: GasFeePollingInput) => void>>;
162
162
  _executePoll(input: GasFeePollingInput): Promise<void>;
163
163
  startPolling(input: GasFeePollingInput): string;
164
164
  stopAllPolling(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/gas-fee-controller",
3
- "version": "22.0.1-preview-a0b32c13",
3
+ "version": "22.0.2-preview-9e30e90a",
4
4
  "description": "Periodically calculates gas fee estimates based on various gas limits as well as other data displayed on transaction confirm screens",
5
5
  "keywords": [
6
6
  "MetaMask",
@@ -48,10 +48,10 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@metamask/base-controller": "^7.0.2",
51
- "@metamask/controller-utils": "^11.4.3",
51
+ "@metamask/controller-utils": "^11.4.4",
52
52
  "@metamask/eth-query": "^4.0.0",
53
53
  "@metamask/ethjs-unit": "^0.3.0",
54
- "@metamask/polling-controller": "^12.0.1",
54
+ "@metamask/polling-controller": "^12.0.2",
55
55
  "@metamask/utils": "^10.0.0",
56
56
  "@types/bn.js": "^5.1.5",
57
57
  "@types/uuid": "^8.3.0",
@@ -59,8 +59,9 @@
59
59
  "uuid": "^8.3.2"
60
60
  },
61
61
  "devDependencies": {
62
+ "@babel/runtime": "^7.23.9",
62
63
  "@metamask/auto-changelog": "^3.4.4",
63
- "@metamask/network-controller": "^22.0.2",
64
+ "@metamask/network-controller": "^22.1.0",
64
65
  "@types/jest": "^27.4.1",
65
66
  "@types/jest-when": "^2.7.3",
66
67
  "deepmerge": "^4.2.2",
@@ -74,6 +75,7 @@
74
75
  "typescript": "~5.2.2"
75
76
  },
76
77
  "peerDependencies": {
78
+ "@babel/runtime": "^7.0.0",
77
79
  "@metamask/network-controller": "^22.0.0"
78
80
  },
79
81
  "engines": {