@metamask/network-controller 19.0.0 → 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.
Files changed (33) hide show
  1. package/CHANGELOG.md +21 -1
  2. package/dist/NetworkController.js +4 -4
  3. package/dist/NetworkController.mjs +3 -3
  4. package/dist/{chunk-UG2NYGJD.mjs → chunk-6PT34M4U.mjs} +162 -230
  5. package/dist/chunk-6PT34M4U.mjs.map +1 -0
  6. package/dist/{chunk-LDNWNT2P.js → chunk-E4V6XEBR.js} +3 -1
  7. package/dist/chunk-E4V6XEBR.js.map +1 -0
  8. package/dist/{chunk-ZV34XXLT.js → chunk-LLMZDA4Q.js} +6 -6
  9. package/dist/chunk-LLMZDA4Q.js.map +1 -0
  10. package/dist/{chunk-G5HYTGGH.mjs → chunk-TZA3CBEI.mjs} +2 -2
  11. package/dist/chunk-TZA3CBEI.mjs.map +1 -0
  12. package/dist/{chunk-TPYFTFZ2.mjs → chunk-U43RY4MY.mjs} +3 -1
  13. package/dist/chunk-U43RY4MY.mjs.map +1 -0
  14. package/dist/{chunk-4ZD3DTQ7.js → chunk-WT5ZBF4X.js} +164 -232
  15. package/dist/chunk-WT5ZBF4X.js.map +1 -0
  16. package/dist/create-auto-managed-network-client.js +3 -3
  17. package/dist/create-auto-managed-network-client.mjs +2 -2
  18. package/dist/create-network-client.js +2 -2
  19. package/dist/create-network-client.mjs +1 -1
  20. package/dist/index.js +4 -4
  21. package/dist/index.mjs +3 -3
  22. package/dist/tsconfig.build.tsbuildinfo +1 -1
  23. package/dist/types/NetworkController.d.ts +32 -50
  24. package/dist/types/NetworkController.d.ts.map +1 -1
  25. package/dist/types/create-auto-managed-network-client.d.ts.map +1 -1
  26. package/dist/types/create-network-client.d.ts.map +1 -1
  27. package/package.json +4 -3
  28. package/dist/chunk-4ZD3DTQ7.js.map +0 -1
  29. package/dist/chunk-G5HYTGGH.mjs.map +0 -1
  30. package/dist/chunk-LDNWNT2P.js.map +0 -1
  31. package/dist/chunk-TPYFTFZ2.mjs.map +0 -1
  32. package/dist/chunk-UG2NYGJD.mjs.map +0 -1
  33. package/dist/chunk-ZV34XXLT.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -7,6 +7,25 @@ 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
+
10
29
  ## [19.0.0]
11
30
 
12
31
  ### Changed
@@ -505,7 +524,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
505
524
 
506
525
  All changes listed after this point were applied to this package following the monorepo conversion.
507
526
 
508
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/network-controller@19.0.0...HEAD
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
509
529
  [19.0.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@18.1.3...@metamask/network-controller@19.0.0
510
530
  [18.1.3]: https://github.com/MetaMask/core/compare/@metamask/network-controller@18.1.2...@metamask/network-controller@18.1.3
511
531
  [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 _chunk4ZD3DTQ7js = require('./chunk-4ZD3DTQ7.js');
5
+ var _chunkWT5ZBF4Xjs = require('./chunk-WT5ZBF4X.js');
6
6
  require('./chunk-ZKNI7MD3.js');
7
- require('./chunk-ZV34XXLT.js');
8
- require('./chunk-LDNWNT2P.js');
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 = _chunk4ZD3DTQ7js.NetworkController; exports.defaultState = _chunk4ZD3DTQ7js.defaultState; exports.knownKeysOf = _chunk4ZD3DTQ7js.knownKeysOf;
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-UG2NYGJD.mjs";
5
+ } from "./chunk-6PT34M4U.mjs";
6
6
  import "./chunk-2QJYHWIP.mjs";
7
- import "./chunk-G5HYTGGH.mjs";
8
- import "./chunk-TPYFTFZ2.mjs";
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";