@metamask/network-controller 18.1.3 → 20.0.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 +32 -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/package.json +8 -7
- 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,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [20.0.0]
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Add a new `log` argument to the constructor ([#4440](https://github.com/MetaMask/core/pull/4440))
|
|
15
|
+
- 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
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- **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))
|
|
20
|
+
- 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.
|
|
21
|
+
- Bump `@metamask/eth-block-tracker` to `^9.0.3` ([#4418](https://github.com/MetaMask/core/pull/4418))
|
|
22
|
+
- Bump `@metamask/eth-json-rpc-provider` to `^4.1.0` ([#4508](https://github.com/MetaMask/core/pull/4508))
|
|
23
|
+
|
|
24
|
+
### Removed
|
|
25
|
+
|
|
26
|
+
- **BREAKING:** Remove `providerConfig` property from state along with `ProviderConfig` type and `NetworkController:getProviderConfig` messenger action ([#4254](https://github.com/MetaMask/core/pull/4254))
|
|
27
|
+
- 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.
|
|
28
|
+
|
|
29
|
+
## [19.0.0]
|
|
30
|
+
|
|
31
|
+
### Changed
|
|
32
|
+
|
|
33
|
+
- **BREAKING:** Bump minimum Node version to 18.18 ([#3611](https://github.com/MetaMask/core/pull/3611))
|
|
34
|
+
- Bump `@metamask/base-controller` to `^6.0.0` ([#4352](https://github.com/MetaMask/core/pull/4352))
|
|
35
|
+
- Bump `@metamask/controller-utils` to `^11.0.0` ([#4352](https://github.com/MetaMask/core/pull/4352))
|
|
36
|
+
- Bump `@metamask/eth-json-rpc-provider` to `^4.0.0` ([#4352](https://github.com/MetaMask/core/pull/4352))
|
|
37
|
+
- Bump `@metamask/json-rpc-engine` to `^9.0.0` ([#4352](https://github.com/MetaMask/core/pull/4352))
|
|
38
|
+
|
|
10
39
|
## [18.1.3]
|
|
11
40
|
|
|
12
41
|
### Changed
|
|
@@ -495,7 +524,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
495
524
|
|
|
496
525
|
All changes listed after this point were applied to this package following the monorepo conversion.
|
|
497
526
|
|
|
498
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/network-controller@
|
|
527
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/network-controller@20.0.0...HEAD
|
|
528
|
+
[20.0.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@19.0.0...@metamask/network-controller@20.0.0
|
|
529
|
+
[19.0.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@18.1.3...@metamask/network-controller@19.0.0
|
|
499
530
|
[18.1.3]: https://github.com/MetaMask/core/compare/@metamask/network-controller@18.1.2...@metamask/network-controller@18.1.3
|
|
500
531
|
[18.1.2]: https://github.com/MetaMask/core/compare/@metamask/network-controller@18.1.1...@metamask/network-controller@18.1.2
|
|
501
532
|
[18.1.1]: https://github.com/MetaMask/core/compare/@metamask/network-controller@18.1.0...@metamask/network-controller@18.1.1
|
|
@@ -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";
|