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