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