@metamask/network-controller 17.2.0 → 17.2.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 +92 -2
- package/package.json +5 -5
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,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
6
7
|
|
|
7
8
|
## [Unreleased]
|
|
8
9
|
|
|
10
|
+
## [17.2.1]
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Bump `@metamask/controller-utils` to `^8.0.4` ([#4007](https://github.com/MetaMask/core/pull/4007))
|
|
15
|
+
- Bump `@metamask/eth-json-rpc-middleware` to `^12.1.0` ([#3829](https://github.com/MetaMask/core/pull/3829))
|
|
16
|
+
- Bump `@metamask/json-rpc-engine` to `^7.3.3` ([#4007](https://github.com/MetaMask/core/pull/4007))
|
|
17
|
+
- Bump `@metamask/rpc-errors` to `^6.2.1` ([#3970](https://github.com/MetaMask/core/pull/3970), [#3954](https://github.com/MetaMask/core/pull/3954))
|
|
18
|
+
|
|
9
19
|
## [17.2.0]
|
|
20
|
+
|
|
10
21
|
### Changed
|
|
22
|
+
|
|
11
23
|
- The `setActiveNetwork` method and action now supports built-in network types ([#3764](https://github.com/MetaMask/core/pull/3764))
|
|
12
24
|
- Previously this would only accept a network configuration ID. Now it will accept the type of a built-in network as well, using it like an ID. This lets you switch to a built-in or custom network with a single method/action.
|
|
13
25
|
- Deprecate the `setProviderType` method and action ([#3764](https://github.com/MetaMask/core/pull/3764))
|
|
@@ -20,11 +32,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
20
32
|
- Bump `@metamask/json-rpc-engine` to `^7.3.2` ([#3821](https://github.com/MetaMask/core/pull/3821))
|
|
21
33
|
|
|
22
34
|
## [17.1.0]
|
|
35
|
+
|
|
23
36
|
### Added
|
|
37
|
+
|
|
24
38
|
- Add `getNetworkConfigurationByNetworkClientId` method which can be used to retrieve details for both custom and built-in networks (using the network configuration object shape) ([#2055](https://github.com/MetaMask/core/pull/2055))
|
|
25
39
|
- Add `NetworkController:getNetworkConfigurationByNetworkClientId` messenger action for the previous method ([#2055](https://github.com/MetaMask/core/pull/2055))
|
|
26
40
|
|
|
27
41
|
### Changed
|
|
42
|
+
|
|
28
43
|
- Bump `@metamask/base-controller` to `^4.0.1` ([#3695](https://github.com/MetaMask/core/pull/3695))
|
|
29
44
|
- Bump `@metamask/controller-utils` to `^8.0.1` ([#3695](https://github.com/MetaMask/core/pull/3695), [#3678](https://github.com/MetaMask/core/pull/3678), [#3667](https://github.com/MetaMask/core/pull/3667), [#3580](https://github.com/MetaMask/core/pull/3580))
|
|
30
45
|
- Bump `@metamask/eth-json-rpc-provider` to `^2.3.1` ([#3695](https://github.com/MetaMask/core/pull/3695))
|
|
@@ -35,24 +50,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
35
50
|
- Both of these events now include `NetworkState` as the first and only item in the payload
|
|
36
51
|
|
|
37
52
|
## [17.0.0]
|
|
53
|
+
|
|
38
54
|
### Changed
|
|
55
|
+
|
|
39
56
|
- **BREAKING:** Bump `@metamask/base-controller` to ^4.0.0 ([#2063](https://github.com/MetaMask/core/pull/2063))
|
|
40
57
|
- This is breaking because the type of the `messenger` has backward-incompatible changes. See the changelog for this package for more.
|
|
41
58
|
- Bump `@metamask/controller-utils` to ^6.0.0 ([#2063](https://github.com/MetaMask/core/pull/2063))
|
|
42
59
|
|
|
43
60
|
## [16.0.0]
|
|
61
|
+
|
|
44
62
|
### Changed
|
|
63
|
+
|
|
45
64
|
- **BREAKING:** Bump dependency `@metamask/eth-query` from ^3.0.1 to ^4.0.0 ([#2028](https://github.com/MetaMask/core/pull/2028))
|
|
46
65
|
- This is breaking because it changes the type of the EthQuery instance this controller creates internally and exports under the `getEthQuery` action. Please consult the [changelog for `@metamask/eth-query` 4.0.0](https://github.com/MetaMask/eth-query/blob/main/CHANGELOG.md#400) for more.
|
|
47
66
|
|
|
48
67
|
## [15.2.0]
|
|
68
|
+
|
|
49
69
|
### Changed
|
|
70
|
+
|
|
50
71
|
- Update @metamask/eth-json-rpc-middleware in network controller ([#1988](https://github.com/MetaMask/core/pull/1988))
|
|
51
72
|
- Bump dependency on `@metamask/json-rpc-engine` to ^7.2.0 ([#1895](https://github.com/MetaMask/core/pull/1895))
|
|
52
73
|
- Bump @metamask/utils from 8.1.0 to 8.2.0 ([#1957](https://github.com/MetaMask/core/pull/1957))
|
|
53
74
|
|
|
54
75
|
## [15.1.0]
|
|
76
|
+
|
|
55
77
|
### Added
|
|
78
|
+
|
|
56
79
|
- Add new action handlers and associated types ([#1806](https://github.com/MetaMask/core/pull/1806))
|
|
57
80
|
- `NetworkController:setActiveNetwork` / `NetworkControllerSetActiveNetworkAction`
|
|
58
81
|
- `NetworkController:setProviderType` / `NetworkControllerSetProviderTypeAction`
|
|
@@ -60,10 +83,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
60
83
|
- Add `ticker` to `NetworkClientConfiguration` ([#1794](https://github.com/MetaMask/core/pull/1794))
|
|
61
84
|
|
|
62
85
|
### Changed
|
|
86
|
+
|
|
63
87
|
- Bump dependency on `@metamask/eth-json-rpc-provider` to ^2.2.0 ([#1738](https://github.com/MetaMask/core/pull/1738))
|
|
64
88
|
|
|
65
89
|
## [15.0.0]
|
|
90
|
+
|
|
66
91
|
### Changed
|
|
92
|
+
|
|
67
93
|
- **BREAKING:** Bump dependency on `@metamask/eth-json-rpc-infura` to ^9.0.0 ([#1653](https://github.com/MetaMask/core/pull/1653))
|
|
68
94
|
- **BREAKING:** Bump dependency on `@metamask/eth-json-rpc-middleware` to ^12.0.0 ([#1653](https://github.com/MetaMask/core/pull/1653))
|
|
69
95
|
- **BREAKING:** Move from `json-rpc-engine` ^7.1.1 to `@metamask/json-rpc-engine` ^8.0.0 ([#1653](https://github.com/MetaMask/core/pull/1653))
|
|
@@ -72,24 +98,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
72
98
|
- Move from `eth-rpc-errors` ^4.0.2 to `@metamask/rpc-errors` ^6.1.0 ([#1653](https://github.com/MetaMask/core/pull/1653))
|
|
73
99
|
|
|
74
100
|
## [14.0.0]
|
|
101
|
+
|
|
75
102
|
### Added
|
|
103
|
+
|
|
76
104
|
- Add `NetworkController:getEIP1559Compatibility` controller action ([#1673](https://github.com/MetaMask/core/pull/1673))
|
|
77
105
|
|
|
78
106
|
### Changed
|
|
107
|
+
|
|
79
108
|
- **BREAKING:** Rename `get1555CompatibilityWithNetworkClientId` to `get1559CompatibilityWithNetworkClientId` ([#1673](https://github.com/MetaMask/core/pull/1673))
|
|
80
109
|
- Bump dependency on `@metamask/utils` to ^8.1.0 ([#1639](https://github.com/MetaMask/core/pull/1639))
|
|
81
110
|
- Bump dependency on `@metamask/base-controller` to ^3.2.3
|
|
82
111
|
- Bump dependency on `@metamask/controller-utils` to ^5.0.2
|
|
83
112
|
|
|
84
113
|
### Fixed
|
|
114
|
+
|
|
85
115
|
- Update linea goerli explorer url ([#1666](https://github.com/MetaMask/core/pull/1666))
|
|
86
116
|
|
|
87
117
|
## [13.0.1]
|
|
118
|
+
|
|
88
119
|
### Changed
|
|
120
|
+
|
|
89
121
|
- Update TypeScript to v4.8.x ([#1718](https://github.com/MetaMask/core/pull/1718))
|
|
90
122
|
|
|
91
123
|
## [13.0.0]
|
|
124
|
+
|
|
92
125
|
### Changed
|
|
126
|
+
|
|
93
127
|
- **BREAKING**: Remove `NetworkId` type ([#1633](https://github.com/MetaMask/core/pull/1633))
|
|
94
128
|
- **BREAKING**: Remove `networkId` property from `NetworkState` type ([#1633](https://github.com/MetaMask/core/pull/1633))
|
|
95
129
|
- Update scaffold RPC middleware for built-in Infura networks to no longer resolve `net_version` locally ([#1633](https://github.com/MetaMask/core/pull/1633))
|
|
@@ -97,32 +131,44 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
97
131
|
- Bump dependency on `@metamask/controller-utils` to ^5.0.0
|
|
98
132
|
|
|
99
133
|
## [12.2.0]
|
|
134
|
+
|
|
100
135
|
### Added
|
|
136
|
+
|
|
101
137
|
- Add `NetworkController:getNetworkClientById` action ([#1638](https://github.com/MetaMask/core/pull/1638))
|
|
102
138
|
- Add `lookupNetworkByClientId` and `get1555CompatibilityWithNetworkClientId` methods ([#1557](https://github.com/MetaMask/core/pull/1557))
|
|
103
139
|
|
|
104
140
|
### Changed
|
|
105
|
-
|
|
141
|
+
|
|
142
|
+
- Add optional `networkClientId` argument to methods `lookupNetwork` and `getEIP1559Compatibility` ([#1557](https://github.com/MetaMask/core/pull/1557))
|
|
106
143
|
|
|
107
144
|
## [12.1.2]
|
|
145
|
+
|
|
108
146
|
### Changed
|
|
147
|
+
|
|
109
148
|
- Bump dependency on `@metamask/base-controller` to ^3.2.1
|
|
110
149
|
- Bump dependency on `@metamask/controller-utils` to ^4.3.2
|
|
111
150
|
|
|
112
151
|
## [12.1.1]
|
|
152
|
+
|
|
113
153
|
### Added
|
|
154
|
+
|
|
114
155
|
- Added an export for NetworkClientId in NetworkController ([#1583](https://github.com/MetaMask/core/pull/1583))
|
|
115
156
|
|
|
116
157
|
## [12.1.0]
|
|
158
|
+
|
|
117
159
|
### Added
|
|
160
|
+
|
|
118
161
|
- Add `getNetworkClientById` ([#1562](https://github.com/MetaMask/core/pull/1562))
|
|
119
162
|
- Add `findNetworkClientIdByChainId` ([#1571](https://github.com/MetaMask/core/pull/1571))
|
|
120
163
|
|
|
121
164
|
## [12.0.0]
|
|
165
|
+
|
|
122
166
|
### Added
|
|
167
|
+
|
|
123
168
|
- Add `NetworksMetadata` type ([#1559](https://github.com/MetaMask/core/pull/1559))
|
|
124
169
|
|
|
125
170
|
### Changed
|
|
171
|
+
|
|
126
172
|
- **BREAKING:** Remove `NetworkDetails` type in favor of `NetworkMetadata` ([#1559](https://github.com/MetaMask/core/pull/1559))
|
|
127
173
|
- This new type includes `NetworkDetails` plus a `status` property
|
|
128
174
|
- **BREAKING:** Add `networksMetadata` to state ([#1559](https://github.com/MetaMask/core/pull/1559))
|
|
@@ -133,11 +179,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
133
179
|
- Replace `eth-query` ^2.1.2 with `@metamask/eth-query` ^3.0.1 ([#1546](https://github.com/MetaMask/core/pull/1546))
|
|
134
180
|
|
|
135
181
|
### Removed
|
|
182
|
+
|
|
136
183
|
- **BREAKING:** Remove `networkDetails` from state ([#1559](https://github.com/MetaMask/core/pull/1559))
|
|
137
184
|
- The data in this state property has been merged into the new `networksMetadata` state property; each value in this object contains an `EIPS` property.
|
|
138
185
|
|
|
139
186
|
## [11.0.0]
|
|
187
|
+
|
|
140
188
|
### Changed
|
|
189
|
+
|
|
141
190
|
- **BREAKING**: Require `ticker` to be included in the `providerConfig` state ([#1495](https://github.com/MetaMask/core/pull/1495))
|
|
142
191
|
- This requires a state migration, setting `providerConfig.ticker` to `ETH` if it's missing.
|
|
143
192
|
- Update `@metamask/utils` to `^6.2.0` ([#1514](https://github.com/MetaMask/core/pull/1514))
|
|
@@ -145,16 +194,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
145
194
|
- Remove unnecessary `babel-runtime` dependency ([#1504](https://github.com/MetaMask/core/pull/1504))
|
|
146
195
|
|
|
147
196
|
## [10.3.1]
|
|
197
|
+
|
|
148
198
|
### Changed
|
|
199
|
+
|
|
149
200
|
- Bump `@metamask/eth-json-rpc-infura` dependency from ^8.0.0 to ^8.1.0
|
|
150
201
|
- This extends the types that this package recognizes to include Linea networks
|
|
151
202
|
|
|
152
203
|
## [10.3.0]
|
|
204
|
+
|
|
153
205
|
### Added
|
|
206
|
+
|
|
154
207
|
- Add `getNetworkClientsById` method ([#1439](https://github.com/MetaMask/core/pull/1439))
|
|
155
208
|
- This method returns a registry of available built-in and custom networks, allowing consumers to access multiple networks simultaneously if desired
|
|
156
209
|
|
|
157
210
|
### Changed
|
|
211
|
+
|
|
158
212
|
- Network clients are retained and will no longer be destroyed or recreated whenever the network is initialized or switched ([#1439](https://github.com/MetaMask/core/pull/1439))
|
|
159
213
|
- This means that cached responses for a network will no longer disappear when a different network is selected
|
|
160
214
|
- Update `upsertNetworkConfiguration` to keep the network client registry up to date with changes to the set of network configurations ([#1439](https://github.com/MetaMask/core/pull/1439))
|
|
@@ -162,22 +216,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
162
216
|
- If an existing network configuration is updated, its information will be used to recreate the client for the corresponding network
|
|
163
217
|
|
|
164
218
|
## [10.2.0]
|
|
219
|
+
|
|
165
220
|
### Added
|
|
221
|
+
|
|
166
222
|
- Expose `BlockTracker` type ([#1443](https://github.com/MetaMask/core/pull/1443))
|
|
167
223
|
|
|
168
224
|
## [10.1.0]
|
|
225
|
+
|
|
169
226
|
### Added
|
|
227
|
+
|
|
170
228
|
- Add `loadBackup` method to NetworkController ([#1421](https://github.com/MetaMask/core/pull/1421))
|
|
171
229
|
|
|
172
230
|
## [10.0.0]
|
|
231
|
+
|
|
173
232
|
### Changed
|
|
233
|
+
|
|
174
234
|
- **BREAKING:** Update `getEIP1559Compatibility` to return `false` instead of `true` if the provider has not been initialized yet ([#1404](https://github.com/MetaMask/core/pull/1404))
|
|
175
235
|
- Update `getEIP1559Compatibility` to not hit the current network if it is known that it does not support EIP-1559 ([#1404](https://github.com/MetaMask/core/pull/1404))
|
|
176
236
|
- Update `networkDetails` initial state from `{ EIPS: { 1559: false } }` to `{ EIPS: {} }` ([#1404](https://github.com/MetaMask/core/pull/1404))
|
|
177
237
|
- Update lookupNetwork to unset `networkDetails.EIPS[1559]` in state instead of setting it `false` if either of its requests for the network ID or network details fails ([#1403](https://github.com/MetaMask/core/pull/1403))
|
|
178
238
|
|
|
179
239
|
## [9.0.0]
|
|
240
|
+
|
|
180
241
|
### Added
|
|
242
|
+
|
|
181
243
|
- The events `networkWillChange` and `networkDidChange` are emitted during `setProviderType`, `setActiveNetwork`, `resetConnection`, and `rollbackToPreviousProvider` ([#1336](https://github.com/MetaMask/core/pull/1336))
|
|
182
244
|
- The `networkWillChange` event is emitted before the network is switched (before the network status is cleared),
|
|
183
245
|
- The `networkDidChange` event is emitted after the new provider is setup (but before it has finished initializing).
|
|
@@ -186,6 +248,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
186
248
|
- Add `NetworkController:getState` action constant ([#1329](https://github.com/MetaMask/core/pull/1329))
|
|
187
249
|
|
|
188
250
|
### Changed
|
|
251
|
+
|
|
189
252
|
- **BREAKING:** Bump to Node 16 ([#1262](https://github.com/MetaMask/core/pull/1262))
|
|
190
253
|
- **BREAKING:** The `providerConfig` type and state property have changed. The `chainId` property is now `Hex` rather than a decimal `string` ([#1367](https://github.com/MetaMask/core/pull/1367))
|
|
191
254
|
- This requires a state migration
|
|
@@ -238,20 +301,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
238
301
|
- Add dependency `json-rpc-engine` ^6.1.0 ([#1116](https://github.com/MetaMask/core/pull/1116))
|
|
239
302
|
|
|
240
303
|
### Removed
|
|
304
|
+
|
|
241
305
|
- **BREAKING:** Remove `providerConfigChange` event ([#1329](https://github.com/MetaMask/core/pull/1329))
|
|
242
306
|
- Consumers are encouraged to subscribe to `NetworkController:stateChange` with a selector function that returns `providerConfig` if they want to perform an action when `providerConfig` changes.
|
|
243
307
|
- **BREAKING:** The built-in "localhost" network has been removed ([#1313](https://github.com/MetaMask/core/pull/1313))
|
|
244
308
|
|
|
245
309
|
### Fixed
|
|
310
|
+
|
|
246
311
|
- Update network details in `lookupNetwork` even when network ID is unchanged ([#1379](https://github.com/MetaMask/core/pull/1379))
|
|
247
312
|
- Fix error when `rollbackToPreviousProvider` is called when the previous network is a custom network with a missing or invalid `id` ([#1223](https://github.com/MetaMask/core/pull/1223))
|
|
248
313
|
- In that situation, `rollbackToPreviousProvider` used to throw an error. Now it correctly rolls back instead.
|
|
249
314
|
|
|
250
315
|
## [8.0.0]
|
|
316
|
+
|
|
251
317
|
### Added
|
|
318
|
+
|
|
252
319
|
- Implement `resetConnection` method ([#1131](https://github.com/MetaMask/core/pull/1131), [#1235](https://github.com/MetaMask/core/pull/1235), [#1239](https://github.com/MetaMask/core/pull/1239))
|
|
253
320
|
|
|
254
321
|
### Changed
|
|
322
|
+
|
|
255
323
|
- Update EIP-1559 compatibility during network lookup ([#1236](https://github.com/MetaMask/core/pull/1236))
|
|
256
324
|
- EIP-1559 compatibility check is still performed on initialization and after switching networks, like before. This change only impacts direct calls to `lookupNetwork`.
|
|
257
325
|
- `lookupNetwork` is now making two network calls instead of one, ensuring that the `networkDetails` state is up-to-date.
|
|
@@ -276,20 +344,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
276
344
|
- deps: bump @metamask/utils to 5.0.1 ([#1211](https://github.com/MetaMask/core/pull/1211))
|
|
277
345
|
|
|
278
346
|
### Removed
|
|
347
|
+
|
|
279
348
|
- **BREAKING:** Remove `isCustomNetwork` state ([#1199](https://github.com/MetaMask/core/pull/1199))
|
|
280
349
|
- The `providerConfig.type` state will be set to `'rpc'` if the current network is a custom network. Replace all references to the `isCustomNetwork` state by checking the provider config state instead.
|
|
281
350
|
|
|
282
351
|
## [7.0.0]
|
|
352
|
+
|
|
283
353
|
### Changed
|
|
354
|
+
|
|
284
355
|
- **BREAKING:** Replace `providerConfig` setter with a public `initializeProvider` method ([#1133](https://github.com/MetaMask/core/pull/1133))
|
|
285
356
|
- The property `providerConfig` should no longer be set to initialize the provider. That property no longer exists.
|
|
286
357
|
- The method `initializeProvider` must be called instead to initialize the provider after constructing the network controller.
|
|
287
358
|
|
|
288
359
|
## [6.0.0]
|
|
360
|
+
|
|
289
361
|
### Added
|
|
362
|
+
|
|
290
363
|
- Add rollbackToPreviousProvider method ([#1132](https://github.com/MetaMask/core/pull/1132))
|
|
291
364
|
|
|
292
365
|
### Changed
|
|
366
|
+
|
|
293
367
|
- **BREAKING:** Migrate network configurations from `PreferencesController` to `NetworkController` ([#1064](https://github.com/MetaMask/core/pull/1064))
|
|
294
368
|
- Consumers will need to adapt to reading network data from `NetworkConfigurations` state on `NetworkController` rather than `frequentRpcList` on `PreferencesController`.
|
|
295
369
|
- `setRpcTarget` becomes `setActiveNetwork` on `NetworkController` and accepts a `networkConfigurationId` argument rather than an `rpcUrl`.
|
|
@@ -300,50 +374,66 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
300
374
|
- This change is breaking because it removes the provider property from `NetworkController`. Instead, a new method `getProviderAndBlockTracker` method is available for accessing the current provider object.
|
|
301
375
|
|
|
302
376
|
## [5.0.0]
|
|
377
|
+
|
|
303
378
|
### Changed
|
|
379
|
+
|
|
304
380
|
- **BREAKING:** Rename `properties` property in state object to `networkDetails` ([#1074](https://github.com/MetaMask/controllers/pull/1074))
|
|
305
381
|
|
|
306
382
|
### Removed
|
|
383
|
+
|
|
307
384
|
- **BREAKING:** Remove `isomorphic-fetch` ([#1106](https://github.com/MetaMask/controllers/pull/1106))
|
|
308
385
|
- Consumers must now import `isomorphic-fetch` or another polyfill themselves if they are running in an environment without `fetch`
|
|
309
386
|
|
|
310
387
|
## [4.0.0]
|
|
388
|
+
|
|
311
389
|
### Changed
|
|
390
|
+
|
|
312
391
|
- **BREAKING:** Update type of state object by renaming `properties` property to `networkDetails` ([#1074](https://github.com/MetaMask/core/pull/1074))
|
|
313
392
|
- Consumers are recommended to add a state migration for this change.
|
|
314
393
|
- **BREAKING:** Rename `NetworkProperties` type to `NetworkDetails` ([#1074](https://github.com/MetaMask/core/pull/1074))
|
|
315
394
|
- Change `getEIP1559Compatibility` to use async await syntax ([#1084](https://github.com/MetaMask/core/pull/1084))
|
|
316
395
|
|
|
317
396
|
## [3.0.0]
|
|
397
|
+
|
|
318
398
|
### Added
|
|
399
|
+
|
|
319
400
|
- Add support for Sepolia as a built-in Infura network ([#1041](https://github.com/MetaMask/controllers/pull/1041))
|
|
320
401
|
- Export types for network controller events and actions ([#1039](https://github.com/MetaMask/core/pull/1039))
|
|
321
402
|
|
|
322
403
|
### Changed
|
|
404
|
+
|
|
323
405
|
- **BREAKING:** Make `lookupNetwork` block on completing the lookup ([#1063](https://github.com/MetaMask/controllers/pull/1063))
|
|
324
406
|
- This function was always `async`, but it would return before completing any async work. Now it will not return until after the network lookup has been completed.
|
|
325
407
|
- Rename this repository to `core` ([#1031](https://github.com/MetaMask/controllers/pull/1031))
|
|
326
408
|
- Update `@metamask/controller-utils` package ([#1041](https://github.com/MetaMask/controllers/pull/1041))
|
|
327
409
|
|
|
328
410
|
### Removed
|
|
411
|
+
|
|
329
412
|
- **BREAKING:**: Drop support for Ropsten, Rinkeby, and Kovan as built-in Infura networks ([#1041](https://github.com/MetaMask/controllers/pull/1041))
|
|
330
413
|
|
|
331
414
|
## [2.0.0]
|
|
415
|
+
|
|
332
416
|
### Changed
|
|
417
|
+
|
|
333
418
|
- **BREAKING:** Update type of state object by renaming `provider` property to `providerConfig` ([#995](https://github.com/MetaMask/core/pull/995))
|
|
334
419
|
- Consumers are recommended to add a state migration for this change.
|
|
335
420
|
- **BREAKING:** Rename `NetworkController:providerChange` messenger event to `NetworkController:providerConfigChange` ([#995](https://github.com/MetaMask/core/pull/995))
|
|
336
421
|
- Relax dependencies on `@metamask/base-controller` and `@metamask/controller-utils` (use `^` instead of `~`) ([#998](https://github.com/MetaMask/core/pull/998))
|
|
337
422
|
|
|
338
423
|
## [1.0.0]
|
|
424
|
+
|
|
339
425
|
### Added
|
|
426
|
+
|
|
340
427
|
- Initial release
|
|
428
|
+
|
|
341
429
|
- 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:
|
|
430
|
+
|
|
342
431
|
- Everything in `src/network` (minus `NetworkType` and `NetworksChainId`, which were placed in `@metamask/controller-utils`)
|
|
343
432
|
|
|
344
433
|
All changes listed after this point were applied to this package following the monorepo conversion.
|
|
345
434
|
|
|
346
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/network-controller@17.2.
|
|
435
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/network-controller@17.2.1...HEAD
|
|
436
|
+
[17.2.1]: https://github.com/MetaMask/core/compare/@metamask/network-controller@17.2.0...@metamask/network-controller@17.2.1
|
|
347
437
|
[17.2.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@17.1.0...@metamask/network-controller@17.2.0
|
|
348
438
|
[17.1.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@17.0.0...@metamask/network-controller@17.1.0
|
|
349
439
|
[17.0.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@16.0.0...@metamask/network-controller@17.0.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask/network-controller",
|
|
3
|
-
"version": "17.2.
|
|
3
|
+
"version": "17.2.1",
|
|
4
4
|
"description": "Provides an interface to the currently selected network via a MetaMask-compatible provider object",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"MetaMask",
|
|
@@ -32,13 +32,13 @@
|
|
|
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.4",
|
|
36
36
|
"@metamask/eth-json-rpc-infura": "^9.0.0",
|
|
37
|
-
"@metamask/eth-json-rpc-middleware": "^12.0
|
|
37
|
+
"@metamask/eth-json-rpc-middleware": "^12.1.0",
|
|
38
38
|
"@metamask/eth-json-rpc-provider": "^2.3.2",
|
|
39
39
|
"@metamask/eth-query": "^4.0.0",
|
|
40
|
-
"@metamask/json-rpc-engine": "^7.3.
|
|
41
|
-
"@metamask/rpc-errors": "^6.1
|
|
40
|
+
"@metamask/json-rpc-engine": "^7.3.3",
|
|
41
|
+
"@metamask/rpc-errors": "^6.2.1",
|
|
42
42
|
"@metamask/swappable-obj-proxy": "^2.2.0",
|
|
43
43
|
"@metamask/utils": "^8.3.0",
|
|
44
44
|
"async-mutex": "^0.2.6",
|