@metamask/network-controller 19.0.0 → 20.1.0
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 +38 -1
- package/dist/NetworkController.js +4 -4
- package/dist/NetworkController.mjs +3 -3
- package/dist/{chunk-UG2NYGJD.mjs → chunk-6PT34M4U.mjs} +162 -230
- package/dist/chunk-6PT34M4U.mjs.map +1 -0
- package/dist/{chunk-LDNWNT2P.js → chunk-E4V6XEBR.js} +3 -1
- package/dist/chunk-E4V6XEBR.js.map +1 -0
- package/dist/{chunk-ZV34XXLT.js → chunk-LLMZDA4Q.js} +6 -6
- package/dist/chunk-LLMZDA4Q.js.map +1 -0
- package/dist/{chunk-G5HYTGGH.mjs → chunk-TZA3CBEI.mjs} +2 -2
- package/dist/chunk-TZA3CBEI.mjs.map +1 -0
- package/dist/{chunk-TPYFTFZ2.mjs → chunk-U43RY4MY.mjs} +3 -1
- package/dist/chunk-U43RY4MY.mjs.map +1 -0
- package/dist/{chunk-4ZD3DTQ7.js → chunk-WT5ZBF4X.js} +164 -232
- package/dist/chunk-WT5ZBF4X.js.map +1 -0
- package/dist/create-auto-managed-network-client.js +3 -3
- package/dist/create-auto-managed-network-client.mjs +2 -2
- package/dist/create-network-client.js +2 -2
- package/dist/create-network-client.mjs +1 -1
- package/dist/index.js +4 -4
- package/dist/index.mjs +3 -3
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/NetworkController.d.ts +32 -50
- package/dist/types/NetworkController.d.ts.map +1 -1
- package/dist/types/create-auto-managed-network-client.d.ts.map +1 -1
- package/dist/types/create-network-client.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +14 -13
- package/dist/chunk-4ZD3DTQ7.js.map +0 -1
- package/dist/chunk-G5HYTGGH.mjs.map +0 -1
- package/dist/chunk-LDNWNT2P.js.map +0 -1
- package/dist/chunk-TPYFTFZ2.mjs.map +0 -1
- package/dist/chunk-UG2NYGJD.mjs.map +0 -1
- package/dist/chunk-ZV34XXLT.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,41 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [20.1.0]
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Newly export the following types: `AutoManagedNetworkClient`, `InfuraNetworkClientConfiguration`, `CustomNetworkClientConfiguration` ([#3645](https://github.com/MetaMask/core/pull/3645))
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- Upgrade TypeScript version to `~5.0.4` and set `moduleResolution` option to `Node16` ([#3645](https://github.com/MetaMask/core/pull/3645))
|
|
19
|
+
- Bump `@metamask/base-controller` from `^6.0.0` to `^6.0.2` ([#4517](https://github.com/MetaMask/core/pull/4517), [#4544](https://github.com/MetaMask/core/pull/4544))
|
|
20
|
+
- Bump `@metamask/controller-utils` from `^11.0.0` to `^11.0.2` ([#4517](https://github.com/MetaMask/core/pull/4517), [#4544](https://github.com/MetaMask/core/pull/4544))
|
|
21
|
+
- Bump `@metamask/eth-json-rpc-provider` from `^4.1.0` to `^4.1.2` ([#4519](https://github.com/MetaMask/core/pull/4519), [#4548](https://github.com/MetaMask/core/pull/4548))
|
|
22
|
+
- Bump `@metamask/json-rpc-engine` from `^9.0.0` to `^9.0.2` ([#4517](https://github.com/MetaMask/core/pull/4517), [#4544](https://github.com/MetaMask/core/pull/4544))
|
|
23
|
+
- Bump `@metamask/rpc-errors` from `^6.2.1` to `^6.3.1` ([#4516](https://github.com/MetaMask/core/pull/4516))
|
|
24
|
+
- Bump `@metamask/utils` from `^8.3.0` to `^9.1.0` ([#4516](https://github.com/MetaMask/core/pull/4516), [#4529](https://github.com/MetaMask/core/pull/4529))
|
|
25
|
+
|
|
26
|
+
## [20.0.0]
|
|
27
|
+
|
|
28
|
+
### Added
|
|
29
|
+
|
|
30
|
+
- Add a new `log` argument to the constructor ([#4440](https://github.com/MetaMask/core/pull/4440))
|
|
31
|
+
- The new `log` argument must be a `Logger` object from the `loglevel` package and will be used to log a message when we fail to connect to a network or the network responds with an unknown error
|
|
32
|
+
|
|
33
|
+
### Changed
|
|
34
|
+
|
|
35
|
+
- **BREAKING:** Update `networksMetadata` state property so that the keys in the object will only ever be network client IDs and not RPC URLs ([#4254](https://github.com/MetaMask/core/pull/4254))
|
|
36
|
+
- Some keys could have been RPC URLs if the initial network controller state had a `providerConfig` with an empty `id`, but since `providerConfig` is being removed, that won't happen anymore.
|
|
37
|
+
- Bump `@metamask/eth-block-tracker` to `^9.0.3` ([#4418](https://github.com/MetaMask/core/pull/4418))
|
|
38
|
+
- Bump `@metamask/eth-json-rpc-provider` to `^4.1.0` ([#4508](https://github.com/MetaMask/core/pull/4508))
|
|
39
|
+
|
|
40
|
+
### Removed
|
|
41
|
+
|
|
42
|
+
- **BREAKING:** Remove `providerConfig` property from state along with `ProviderConfig` type and `NetworkController:getProviderConfig` messenger action ([#4254](https://github.com/MetaMask/core/pull/4254))
|
|
43
|
+
- The best way to obtain the equivalent configuration object, e.g. to access the chain ID of the currently selected network, is to get `selectedNetworkClientId` from state, pass this to the `NetworkController:getNetworkClientId` messenger action, and then use the `configuration` property on the network client.
|
|
44
|
+
|
|
10
45
|
## [19.0.0]
|
|
11
46
|
|
|
12
47
|
### Changed
|
|
@@ -505,7 +540,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
505
540
|
|
|
506
541
|
All changes listed after this point were applied to this package following the monorepo conversion.
|
|
507
542
|
|
|
508
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/network-controller@
|
|
543
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/network-controller@20.1.0...HEAD
|
|
544
|
+
[20.1.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@20.0.0...@metamask/network-controller@20.1.0
|
|
545
|
+
[20.0.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@19.0.0...@metamask/network-controller@20.0.0
|
|
509
546
|
[19.0.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@18.1.3...@metamask/network-controller@19.0.0
|
|
510
547
|
[18.1.3]: https://github.com/MetaMask/core/compare/@metamask/network-controller@18.1.2...@metamask/network-controller@18.1.3
|
|
511
548
|
[18.1.2]: https://github.com/MetaMask/core/compare/@metamask/network-controller@18.1.1...@metamask/network-controller@18.1.2
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkWT5ZBF4Xjs = require('./chunk-WT5ZBF4X.js');
|
|
6
6
|
require('./chunk-ZKNI7MD3.js');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-LLMZDA4Q.js');
|
|
8
|
+
require('./chunk-E4V6XEBR.js');
|
|
9
9
|
require('./chunk-VGYLDDJB.js');
|
|
10
10
|
require('./chunk-KHZTS7TF.js');
|
|
11
11
|
require('./chunk-Z4BLTVTB.js');
|
|
@@ -13,5 +13,5 @@ require('./chunk-Z4BLTVTB.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
exports.NetworkController =
|
|
16
|
+
exports.NetworkController = _chunkWT5ZBF4Xjs.NetworkController; exports.defaultState = _chunkWT5ZBF4Xjs.defaultState; exports.knownKeysOf = _chunkWT5ZBF4Xjs.knownKeysOf;
|
|
17
17
|
//# sourceMappingURL=NetworkController.js.map
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
NetworkController,
|
|
3
3
|
defaultState,
|
|
4
4
|
knownKeysOf
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6PT34M4U.mjs";
|
|
6
6
|
import "./chunk-2QJYHWIP.mjs";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-TZA3CBEI.mjs";
|
|
8
|
+
import "./chunk-U43RY4MY.mjs";
|
|
9
9
|
import "./chunk-VTLOAS2R.mjs";
|
|
10
10
|
import "./chunk-AU4UVIPZ.mjs";
|
|
11
11
|
import "./chunk-XUI43LEZ.mjs";
|