@metamask-previews/network-controller 23.1.0-preview-6cc620a → 23.2.0-preview-ded32bd

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 (2) hide show
  1. package/CHANGELOG.md +19 -3
  2. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -7,12 +7,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [23.2.0]
11
+
12
+ ### Added
13
+
14
+ - Add optional `additionalDefaultNetworks` option to `NetworkController` constructor ([#5527](https://github.com/MetaMask/core/pull/5527))
15
+ - This can be used to customize which custom networks the default `networkConfigurationsByChainId` includes.
16
+ - Add `getSelectedChainId` method to `NetworkController` ([#5516](https://github.com/MetaMask/core/pull/5516))
17
+ - This is also callable via the messenger.
18
+ - Add `DEPRECATED_NETWORKS` constant ([#5560](https://github.com/MetaMask/core/pull/5560))
19
+
10
20
  ### Changed
11
21
 
22
+ - Remove Goerli and Linea Goerli from set of default networks ([#5560](https://github.com/MetaMask/core/pull/5560))
23
+ - Note that if you do not pass any initial state to NetworkController, this means that `0x5` and `0xe704` will no longer be keys in `networkConfigurationsByChainId`.
24
+ - We are not counting this as a breaking change because we don't make any guarantees about what keys are present in `networkConfigurationsByChainId` at runtime — only that they must be valid chain IDs.
25
+ - If you want more of a guarantee, you are recommended to persist the NetworkController state and then pass it back through as initial state.
12
26
  - Update `RpcEndpoint` so that `failoverUrls` is optional ([#5561](https://github.com/MetaMask/core/pull/5561))
13
- - This property was introduced in 23.0.0 as a breaking change, but this change makes it non-breaking
27
+ - This property was introduced in 23.0.0 as a breaking change, but this change makes it non-breaking.
14
28
  - Update `NetworkClientConfiguration` so that `failoverUrls` is optional ([#5561](https://github.com/MetaMask/core/pull/5561))
15
- - This property was introduced in 23.0.0 as a breaking change, but this change makes it non-breaking
29
+ - This property was introduced in 23.0.0 as a breaking change, but this change makes it non-breaking.
30
+ - Bump `@metamask/controller-utils` to `^11.7.0` ([#5583](https://github.com/MetaMask/core/pull/5583))
16
31
 
17
32
  ### Fixed
18
33
 
@@ -799,7 +814,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
799
814
 
800
815
  All changes listed after this point were applied to this package following the monorepo conversion.
801
816
 
802
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/network-controller@23.1.0...HEAD
817
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/network-controller@23.2.0...HEAD
818
+ [23.2.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@23.1.0...@metamask/network-controller@23.2.0
803
819
  [23.1.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@23.0.0...@metamask/network-controller@23.1.0
804
820
  [23.0.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@22.2.1...@metamask/network-controller@23.0.0
805
821
  [22.2.1]: https://github.com/MetaMask/core/compare/@metamask/network-controller@22.2.0...@metamask/network-controller@22.2.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/network-controller",
3
- "version": "23.1.0-preview-6cc620a",
3
+ "version": "23.2.0-preview-ded32bd",
4
4
  "description": "Provides an interface to the currently selected network via a MetaMask-compatible provider object",
5
5
  "keywords": [
6
6
  "MetaMask",
@@ -48,7 +48,7 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@metamask/base-controller": "^8.0.0",
51
- "@metamask/controller-utils": "^11.6.0",
51
+ "@metamask/controller-utils": "^11.7.0",
52
52
  "@metamask/eth-block-tracker": "^11.0.3",
53
53
  "@metamask/eth-json-rpc-infura": "^10.1.1",
54
54
  "@metamask/eth-json-rpc-middleware": "^16.0.1",