@metamask/gas-fee-controller 12.0.0 → 13.0.1

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 +67 -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,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
7
 
7
8
  ## [Unreleased]
8
9
 
10
+ ## [13.0.1]
11
+
12
+ ### Changed
13
+
14
+ - Bump `@metamask/ethjs-unit` to `^0.3.0` ([#3897](https://github.com/MetaMask/core/pull/3897))
15
+ - Bump `@metamask/controller-utils` to `^8.0.3` ([#3915](https://github.com/MetaMask/core/pull/3915))
16
+
17
+ ## [13.0.0]
18
+
19
+ ### Changed
20
+
21
+ - **BREAKING:** Bump `@metamask/network-controller` peer dependency to `^17.2.0` ([#3821](https://github.com/MetaMask/core/pull/3821))
22
+ - Bump `@metamask/utils` to `^8.3.0` ([#3769](https://github.com/MetaMask/core/pull/3769))
23
+ - Bump `@metamask/base-controller` to `^4.1.1` ([#3760](https://github.com/MetaMask/core/pull/3760), [#3821](https://github.com/MetaMask/core/pull/3821))
24
+ - Bump `@metamask/controller-utils` to `^8.0.2` ([#3821](https://github.com/MetaMask/core/pull/3821))
25
+ - Bump `@metamask/polling-controller` to `^5.0.0` ([#3821](https://github.com/MetaMask/core/pull/3821))
26
+
9
27
  ## [12.0.0]
28
+
10
29
  ### Changed
30
+
11
31
  - **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
32
  - **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
33
  - Additionally, the optional constructor parameter `onNetworkStateChange` has been replaced by `onNetworkDidChange`
@@ -17,7 +37,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
17
37
  - 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
38
 
19
39
  ## [11.0.0]
40
+
20
41
  ### Changed
42
+
21
43
  - **BREAKING:** Bump `@metamask/base-controller` to ^4.0.0 ([#2063](https://github.com/MetaMask/core/pull/2063))
22
44
  - This is breaking because the type of the `messenger` has backward-incompatible changes. See the changelog for this package for more.
23
45
  - Replace `ethjs-unit` ^0.1.6 with `@metamask/ethjs-unit` ^0.2.1 ([#2064](https://github.com/MetaMask/core/pull/2064))
@@ -26,38 +48,49 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
26
48
  - Bump `@metamask/polling-controller` to ^2.0.0 ([#2063](https://github.com/MetaMask/core/pull/2063))
27
49
 
28
50
  ## [10.0.1]
51
+
29
52
  ### Changed
53
+
30
54
  - **BREAKING:** Bump dependency and peer dependency on `@metamask/network-controller` to ^16.0.0
31
55
  - Bump dependency `@metamask/eth-query` from ^3.0.1 to ^4.0.0 ([#2028](https://github.com/MetaMask/core/pull/2028))
32
56
  - Bump dependency on `@metamask/polling-controller` to ^1.0.2
33
57
  - Bump @metamask/utils from 8.1.0 to 8.2.0 ([#1957](https://github.com/MetaMask/core/pull/1957))
34
58
 
35
59
  ## [10.0.0]
60
+
36
61
  ### Added
62
+
37
63
  - 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
64
 
39
65
  ### Changed
66
+
40
67
  - **BREAKING:** Bump dependency on `@metamask/polling-controller` to ^1.0.0
41
68
  - Bump dependency and peer dependency on `@metamask/network-controller` to ^15.1.0
42
69
 
43
70
  ## [9.0.0]
71
+
44
72
  ### Added
73
+
45
74
  - 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
75
  - Add optional second argument to `stopPollingByPollingToken` (formerly `stopPollingByNetworkClientId`)
47
76
  - Add optional second argument to `onPollingCompleteByNetworkClientId`
48
77
 
49
78
  ### Changed
79
+
50
80
  - **BREAKING:** Make `executePoll` private ([#1810](https://github.com/MetaMask/core/pull/1810))
51
81
  - **BREAKING:** Rename `stopPollingByNetworkClientId` to `stopPollingByPollingToken` ([#1810](https://github.com/MetaMask/core/pull/1810))
52
82
  - **BREAKING:** Bump dependency and peer dependency on `@metamask/network-controller` to ^15.0.0
53
83
  - **BREAKING:** Bump dependency on `@metamask/polling-controller` to ^0.2.0
54
84
 
55
85
  ## [8.0.0]
86
+
56
87
  ### Added
88
+
57
89
  - Add optional `gasFeeEstimatesByChainId` property to GasFeeController state ([#1673](https://github.com/MetaMask/core/pull/1673)
58
90
  - Add dependency on `@metamask/polling-controller` ([#1748])(https://github.com/MetaMask/core/pull/1748))
59
91
 
60
92
  ### Changed
93
+
61
94
  - **BREAKING:** Messenger must allow controller actions `NetworkController:getNetworkClientById` and `NetworkController:getEIP1559Compatibility` ([#1673](https://github.com/MetaMask/core/pull/1673)
62
95
  - Bump dependency on `@metamask/utils` to ^8.1.0 ([#1639](https://github.com/MetaMask/core/pull/1639))
63
96
  - Bump dependency on `@metamask/base-controller` to ^3.2.3
@@ -65,36 +98,50 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
65
98
  - Bump dependency and peer dependency on `@metamask/network-controller` to ^14.0.0
66
99
 
67
100
  ## [7.0.1]
101
+
68
102
  ### Changed
103
+
69
104
  - Update TypeScript to v4.8.x ([#1718](https://github.com/MetaMask/core/pull/1718))
70
105
 
71
106
  ## [7.0.0]
107
+
72
108
  ### Changed
109
+
73
110
  - **BREAKING**: Bump peer dependency on `@metamask/network-controller` to ^13.0.0 ([#1633](https://github.com/MetaMask/core/pull/1633))
74
111
  - Bump dependency on `@metamask/controller-utils` to ^5.0.0 ([#1633](https://github.com/MetaMask/core/pull/1633))
75
112
 
76
113
  ## [6.1.2]
114
+
77
115
  ### Changed
116
+
78
117
  - Bump dependency on `@metamask/base-controller` to ^3.2.1
79
118
  - Bump dependency on `@metamask/controller-utils` to ^4.3.2
80
119
  - Bump dependency and peer dependency on `@metamask/network-controller` to ^12.1.2
81
120
 
82
121
  ## [6.1.1]
122
+
83
123
  ### Changed
124
+
84
125
  - Replace `eth-query` ^2.1.2 with `@metamask/eth-query` ^3.0.1 ([#1546](https://github.com/MetaMask/core/pull/1546))
85
126
 
86
127
  ## [6.1.0]
128
+
87
129
  ### Changed
130
+
88
131
  - Update `@metamask/utils` to `^6.2.0` ([#1514](https://github.com/MetaMask/core/pull/1514))
89
132
  - Remove unnecessary `babel-runtime` dependencies ([#1504](https://github.com/MetaMask/core/pull/1504))
90
133
 
91
134
  ## [6.0.1]
135
+
92
136
  ### Changed
137
+
93
138
  - Bump dependency on `controller-utils` ([#1447](https://github.com/MetaMask/core/pull/1447))
94
139
  - 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
140
 
96
141
  ## [6.0.0]
142
+
97
143
  ### Changed
144
+
98
145
  - **BREAKING:** Bump to Node 16 ([#1262](https://github.com/MetaMask/core/pull/1262))
99
146
  - **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
147
  - Add `@metamask/utils` dependency
@@ -105,46 +152,65 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
105
152
  - **BREAKING:** Update `@metamask/network-controller` dependency and peer dependency
106
153
 
107
154
  ## [5.0.0]
155
+
108
156
  ### Changed
157
+
109
158
  - **BREAKING**: peerDeps: @metamask/network-controller@6.0.0->8.0.0 ([#1196](https://github.com/MetaMask/core/pull/1196))
110
159
 
111
160
  ## [4.0.1]
161
+
112
162
  ### Changed
163
+
113
164
  - Adjust types to align with new version of `NetworkController` ([#1091](https://github.com/MetaMask/core/pull/1091))
114
165
 
115
166
  ## [4.0.0]
167
+
116
168
  ### Changed
169
+
117
170
  - **BREAKING:** Make the EIP-1559 endpoint a required argument ([#1083](https://github.com/MetaMask/core/pull/1083))
118
171
 
119
172
  ### Removed
173
+
120
174
  - **BREAKING:** Remove `isomorphic-fetch` ([#1106](https://github.com/MetaMask/controllers/pull/1106))
121
175
  - Consumers must now import `isomorphic-fetch` or another polyfill themselves if they are running in an environment without `fetch`
122
176
 
123
177
  ## [3.0.0]
178
+
124
179
  ### Changed
180
+
125
181
  - **BREAKING:** Update `@metamask/network-controller` peer dependency to v3 ([#1041](https://github.com/MetaMask/controllers/pull/1041))
126
182
  - Rename this repository to `core` ([#1031](https://github.com/MetaMask/controllers/pull/1031))
127
183
  - Update `@metamask/controller-utils` package ([#1041](https://github.com/MetaMask/controllers/pull/1041))
128
184
 
129
185
  ## [2.0.1]
186
+
130
187
  ### Fixed
188
+
131
189
  - This package will now warn if a required package is not present ([#1003](https://github.com/MetaMask/core/pull/1003))
132
190
 
133
191
  ## [2.0.0]
192
+
134
193
  ### Changed
194
+
135
195
  - **BREAKING:** Bump `@metamask/network-controller` to 2.0.0 ([#995](https://github.com/MetaMask/core/pull/995))
136
196
  - 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
197
  - 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
198
 
139
199
  ## [1.0.0]
200
+
140
201
  ### Added
202
+
141
203
  - Initial release
204
+
142
205
  - 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:
206
+
143
207
  - Everything in `src/gas`
144
208
 
145
209
  All changes listed after this point were applied to this package following the monorepo conversion.
146
210
 
147
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@12.0.0...HEAD
211
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@13.0.1...HEAD
212
+ [13.0.1]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@13.0.0...@metamask/gas-fee-controller@13.0.1
213
+ [13.0.0]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@12.0.0...@metamask/gas-fee-controller@13.0.0
148
214
  [12.0.0]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@11.0.0...@metamask/gas-fee-controller@12.0.0
149
215
  [11.0.0]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@10.0.1...@metamask/gas-fee-controller@11.0.0
150
216
  [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/gas-fee-controller",
3
- "version": "12.0.0",
3
+ "version": "13.0.1",
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.3",
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"