@metamask/network-controller 31.1.0 → 32.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 CHANGED
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [32.0.0]
11
+
12
+ ### Changed
13
+
14
+ - **BREAKING:** Remove Sei, MegaETH, Avalanche, and ZKSync from list of default networks ([#8767](https://github.com/MetaMask/core/pull/8767))
15
+ - You will need to add them as network configurations first before switching to them.
16
+ - Bump `@metamask/controller-utils` from `^12.0.0` to `^12.1.0` ([#8774](https://github.com/MetaMask/core/pull/8774))
17
+
10
18
  ## [31.1.0]
11
19
 
12
20
  ### Added
@@ -1177,7 +1185,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1177
1185
 
1178
1186
  All changes listed after this point were applied to this package following the monorepo conversion.
1179
1187
 
1180
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/network-controller@31.1.0...HEAD
1188
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/network-controller@32.0.0...HEAD
1189
+ [32.0.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@31.1.0...@metamask/network-controller@32.0.0
1181
1190
  [31.1.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@31.0.0...@metamask/network-controller@31.1.0
1182
1191
  [31.0.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@30.1.0...@metamask/network-controller@31.0.0
1183
1192
  [30.1.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@30.0.1...@metamask/network-controller@30.1.0
@@ -152,7 +152,7 @@ function getDefaultNetworkConfigurationsByChainId(additionalDefaultNetworks = []
152
152
  * @returns The `networkConfigurationsByChainId` object of all Infura networks.
153
153
  */
154
154
  function getDefaultInfuraNetworkConfigurationsByChainId() {
155
- return Object.values(controller_utils_1.InfuraNetworkType).reduce((obj, infuraNetworkType) => {
155
+ return controller_utils_1.DEFAULT_INFURA_NETWORKS.reduce((obj, infuraNetworkType) => {
156
156
  const chainId = controller_utils_1.ChainId[infuraNetworkType];
157
157
  // Skip deprecated network as default network.
158
158
  if (constants_1.DEPRECATED_NETWORKS.has(chainId)) {