@metamask-previews/gas-fee-controller 12.0.0-preview.fa529884 → 13.0.0-preview.08978bf

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +59 -1
  2. package/package.json +8 -8
package/CHANGELOG.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # Changelog
2
+
2
3
  All notable changes to this project will be documented in this file.
3
4
 
4
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
@@ -6,8 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
7
 
7
8
  ## [Unreleased]
8
9
 
10
+ ## [13.0.0]
11
+
12
+ ### Changed
13
+
14
+ - **BREAKING:** Bump `@metamask/network-controller` peer dependency to `^17.2.0` ([#3821](https://github.com/MetaMask/core/pull/3821))
15
+ - Bump `@metamask/utils` to `^8.3.0` ([#3769](https://github.com/MetaMask/core/pull/3769))
16
+ - Bump `@metamask/base-controller` to `^4.1.1` ([#3760](https://github.com/MetaMask/core/pull/3760), [#3821](https://github.com/MetaMask/core/pull/3821))
17
+ - Bump `@metamask/controller-utils` to `^8.0.2` ([#3821](https://github.com/MetaMask/core/pull/3821))
18
+ - Bump `@metamask/polling-controller` to `^5.0.0` ([#3821](https://github.com/MetaMask/core/pull/3821))
19
+
9
20
  ## [12.0.0]
21
+
10
22
  ### Changed
23
+
11
24
  - **BREAKING:** Bump `@metamask/network-controller` dependency and peer dependency from `^17.0.0` to `^17.1.0` ([#3695](https://github.com/MetaMask/core/pull/3695))
12
25
  - **BREAKING:** The `GasFeeController` now detects network changes using the `NetworkController:networkDidChange` event instead of `NetworkController:stateChange` ([#3610](https://github.com/MetaMask/core/pull/3610))
13
26
  - Additionally, the optional constructor parameter `onNetworkStateChange` has been replaced by `onNetworkDidChange`
@@ -17,7 +30,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
17
30
  - This update adds two new methods to each polling controller: `_startPollingByNetworkClientId` and `_stopPollingByPollingTokenSetId`. These methods are intended for internal use, and should not be called directly.
18
31
 
19
32
  ## [11.0.0]
33
+
20
34
  ### Changed
35
+
21
36
  - **BREAKING:** Bump `@metamask/base-controller` to ^4.0.0 ([#2063](https://github.com/MetaMask/core/pull/2063))
22
37
  - This is breaking because the type of the `messenger` has backward-incompatible changes. See the changelog for this package for more.
23
38
  - Replace `ethjs-unit` ^0.1.6 with `@metamask/ethjs-unit` ^0.2.1 ([#2064](https://github.com/MetaMask/core/pull/2064))
@@ -26,38 +41,49 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
26
41
  - Bump `@metamask/polling-controller` to ^2.0.0 ([#2063](https://github.com/MetaMask/core/pull/2063))
27
42
 
28
43
  ## [10.0.1]
44
+
29
45
  ### Changed
46
+
30
47
  - **BREAKING:** Bump dependency and peer dependency on `@metamask/network-controller` to ^16.0.0
31
48
  - Bump dependency `@metamask/eth-query` from ^3.0.1 to ^4.0.0 ([#2028](https://github.com/MetaMask/core/pull/2028))
32
49
  - Bump dependency on `@metamask/polling-controller` to ^1.0.2
33
50
  - Bump @metamask/utils from 8.1.0 to 8.2.0 ([#1957](https://github.com/MetaMask/core/pull/1957))
34
51
 
35
52
  ## [10.0.0]
53
+
36
54
  ### Added
55
+
37
56
  - Add optional `networkClientId` argument to options object param of `fetchGasFeeEstimates` method which, if passed, fetches the required chainId and networkClient provider to fetch and store gasFee data appropriately. ([#1891](https://github.com/MetaMask/core/pull/1891))
38
57
 
39
58
  ### Changed
59
+
40
60
  - **BREAKING:** Bump dependency on `@metamask/polling-controller` to ^1.0.0
41
61
  - Bump dependency and peer dependency on `@metamask/network-controller` to ^15.1.0
42
62
 
43
63
  ## [9.0.0]
64
+
44
65
  ### Added
66
+
45
67
  - Add way to start and stop different polling sessions for the same network client ID by providing extra scoping data ([#1776](https://github.com/MetaMask/core/pull/1776))
46
68
  - Add optional second argument to `stopPollingByPollingToken` (formerly `stopPollingByNetworkClientId`)
47
69
  - Add optional second argument to `onPollingCompleteByNetworkClientId`
48
70
 
49
71
  ### Changed
72
+
50
73
  - **BREAKING:** Make `executePoll` private ([#1810](https://github.com/MetaMask/core/pull/1810))
51
74
  - **BREAKING:** Rename `stopPollingByNetworkClientId` to `stopPollingByPollingToken` ([#1810](https://github.com/MetaMask/core/pull/1810))
52
75
  - **BREAKING:** Bump dependency and peer dependency on `@metamask/network-controller` to ^15.0.0
53
76
  - **BREAKING:** Bump dependency on `@metamask/polling-controller` to ^0.2.0
54
77
 
55
78
  ## [8.0.0]
79
+
56
80
  ### Added
81
+
57
82
  - Add optional `gasFeeEstimatesByChainId` property to GasFeeController state ([#1673](https://github.com/MetaMask/core/pull/1673)
58
83
  - Add dependency on `@metamask/polling-controller` ([#1748])(https://github.com/MetaMask/core/pull/1748))
59
84
 
60
85
  ### Changed
86
+
61
87
  - **BREAKING:** Messenger must allow controller actions `NetworkController:getNetworkClientById` and `NetworkController:getEIP1559Compatibility` ([#1673](https://github.com/MetaMask/core/pull/1673)
62
88
  - Bump dependency on `@metamask/utils` to ^8.1.0 ([#1639](https://github.com/MetaMask/core/pull/1639))
63
89
  - Bump dependency on `@metamask/base-controller` to ^3.2.3
@@ -65,36 +91,50 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
65
91
  - Bump dependency and peer dependency on `@metamask/network-controller` to ^14.0.0
66
92
 
67
93
  ## [7.0.1]
94
+
68
95
  ### Changed
96
+
69
97
  - Update TypeScript to v4.8.x ([#1718](https://github.com/MetaMask/core/pull/1718))
70
98
 
71
99
  ## [7.0.0]
100
+
72
101
  ### Changed
102
+
73
103
  - **BREAKING**: Bump peer dependency on `@metamask/network-controller` to ^13.0.0 ([#1633](https://github.com/MetaMask/core/pull/1633))
74
104
  - Bump dependency on `@metamask/controller-utils` to ^5.0.0 ([#1633](https://github.com/MetaMask/core/pull/1633))
75
105
 
76
106
  ## [6.1.2]
107
+
77
108
  ### Changed
109
+
78
110
  - Bump dependency on `@metamask/base-controller` to ^3.2.1
79
111
  - Bump dependency on `@metamask/controller-utils` to ^4.3.2
80
112
  - Bump dependency and peer dependency on `@metamask/network-controller` to ^12.1.2
81
113
 
82
114
  ## [6.1.1]
115
+
83
116
  ### Changed
117
+
84
118
  - Replace `eth-query` ^2.1.2 with `@metamask/eth-query` ^3.0.1 ([#1546](https://github.com/MetaMask/core/pull/1546))
85
119
 
86
120
  ## [6.1.0]
121
+
87
122
  ### Changed
123
+
88
124
  - Update `@metamask/utils` to `^6.2.0` ([#1514](https://github.com/MetaMask/core/pull/1514))
89
125
  - Remove unnecessary `babel-runtime` dependencies ([#1504](https://github.com/MetaMask/core/pull/1504))
90
126
 
91
127
  ## [6.0.1]
128
+
92
129
  ### Changed
130
+
93
131
  - Bump dependency on `controller-utils` ([#1447](https://github.com/MetaMask/core/pull/1447))
94
132
  - The new version of `controller-utils` adds `eth-query` to the list of dependencies. This dependency was added to improve internal types for `gas-fee-controller`. This has no impact on users of the package.
95
133
 
96
134
  ## [6.0.0]
135
+
97
136
  ### Changed
137
+
98
138
  - **BREAKING:** Bump to Node 16 ([#1262](https://github.com/MetaMask/core/pull/1262))
99
139
  - **BREAKING:** The `getChainId` constructor parameter now expects a `Hex` return type rather than a decimal string ([#1367](https://github.com/MetaMask/core/pull/1367))
100
140
  - Add `@metamask/utils` dependency
@@ -105,46 +145,64 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
105
145
  - **BREAKING:** Update `@metamask/network-controller` dependency and peer dependency
106
146
 
107
147
  ## [5.0.0]
148
+
108
149
  ### Changed
150
+
109
151
  - **BREAKING**: peerDeps: @metamask/network-controller@6.0.0->8.0.0 ([#1196](https://github.com/MetaMask/core/pull/1196))
110
152
 
111
153
  ## [4.0.1]
154
+
112
155
  ### Changed
156
+
113
157
  - Adjust types to align with new version of `NetworkController` ([#1091](https://github.com/MetaMask/core/pull/1091))
114
158
 
115
159
  ## [4.0.0]
160
+
116
161
  ### Changed
162
+
117
163
  - **BREAKING:** Make the EIP-1559 endpoint a required argument ([#1083](https://github.com/MetaMask/core/pull/1083))
118
164
 
119
165
  ### Removed
166
+
120
167
  - **BREAKING:** Remove `isomorphic-fetch` ([#1106](https://github.com/MetaMask/controllers/pull/1106))
121
168
  - Consumers must now import `isomorphic-fetch` or another polyfill themselves if they are running in an environment without `fetch`
122
169
 
123
170
  ## [3.0.0]
171
+
124
172
  ### Changed
173
+
125
174
  - **BREAKING:** Update `@metamask/network-controller` peer dependency to v3 ([#1041](https://github.com/MetaMask/controllers/pull/1041))
126
175
  - Rename this repository to `core` ([#1031](https://github.com/MetaMask/controllers/pull/1031))
127
176
  - Update `@metamask/controller-utils` package ([#1041](https://github.com/MetaMask/controllers/pull/1041))
128
177
 
129
178
  ## [2.0.1]
179
+
130
180
  ### Fixed
181
+
131
182
  - This package will now warn if a required package is not present ([#1003](https://github.com/MetaMask/core/pull/1003))
132
183
 
133
184
  ## [2.0.0]
185
+
134
186
  ### Changed
187
+
135
188
  - **BREAKING:** Bump `@metamask/network-controller` to 2.0.0 ([#995](https://github.com/MetaMask/core/pull/995))
136
189
  - GasFeeController now expects NetworkController to respond to the `NetworkController:providerChangeConfig` event (previously named `NetworkController:providerChange`). If you are depending directly on `@metamask/network-controller`, you should update your version to at least 2.0.0 as well.
137
190
  - Relax dependencies on `@metamask/base-controller`, `@metamask/controller-utils`, and `@metamask/network-controller` (use `^` instead of `~`) ([#998](https://github.com/MetaMask/core/pull/998))
138
191
 
139
192
  ## [1.0.0]
193
+
140
194
  ### Added
195
+
141
196
  - Initial release
197
+
142
198
  - As a result of converting our shared controllers repo into a monorepo ([#831](https://github.com/MetaMask/core/pull/831)), we've created this package from select parts of [`@metamask/controllers` v33.0.0](https://github.com/MetaMask/core/tree/v33.0.0), namely:
199
+
143
200
  - Everything in `src/gas`
144
201
 
145
202
  All changes listed after this point were applied to this package following the monorepo conversion.
146
203
 
147
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@12.0.0...HEAD
204
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@13.0.0...HEAD
205
+ [13.0.0]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@12.0.0...@metamask/gas-fee-controller@13.0.0
148
206
  [12.0.0]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@11.0.0...@metamask/gas-fee-controller@12.0.0
149
207
  [11.0.0]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@10.0.1...@metamask/gas-fee-controller@11.0.0
150
208
  [10.0.1]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@10.0.0...@metamask/gas-fee-controller@10.0.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/gas-fee-controller",
3
- "version": "12.0.0-preview.fa529884",
3
+ "version": "13.0.0-preview.08978bf",
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",
@@ -31,13 +31,13 @@
31
31
  "test:watch": "jest --watch"
32
32
  },
33
33
  "dependencies": {
34
- "@metamask/base-controller": "^4.0.1",
35
- "@metamask/controller-utils": "^8.0.1",
34
+ "@metamask/base-controller": "^4.1.1",
35
+ "@metamask/controller-utils": "^8.0.2",
36
36
  "@metamask/eth-query": "^4.0.0",
37
- "@metamask/ethjs-unit": "^0.2.1",
38
- "@metamask/network-controller": "^17.1.0",
39
- "@metamask/polling-controller": "^4.0.0",
40
- "@metamask/utils": "^8.2.0",
37
+ "@metamask/ethjs-unit": "^0.3.0",
38
+ "@metamask/network-controller": "^17.2.0",
39
+ "@metamask/polling-controller": "^5.0.0",
40
+ "@metamask/utils": "^8.3.0",
41
41
  "@types/uuid": "^8.3.0",
42
42
  "ethereumjs-util": "^7.0.10",
43
43
  "uuid": "^8.3.2"
@@ -57,7 +57,7 @@
57
57
  "typescript": "~4.8.4"
58
58
  },
59
59
  "peerDependencies": {
60
- "@metamask/network-controller": "^17.1.0"
60
+ "@metamask/network-controller": "^17.2.0"
61
61
  },
62
62
  "engines": {
63
63
  "node": ">=16.0.0"