@metamask-previews/network-controller
Advanced tools
Comparing version 17.2.0-preview.8cdddaf to 17.2.0-preview.cbe2fbb7
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
@@ -10,3 +11,5 @@ | ||
## [17.2.0] | ||
### Changed | ||
- The `setActiveNetwork` method and action now supports built-in network types ([#3764](https://github.com/MetaMask/core/pull/3764)) | ||
@@ -24,3 +27,5 @@ - Previously this would only accept a network configuration ID. Now it will accept the type of a built-in network as well, using it like an ID. This lets you switch to a built-in or custom network with a single method/action. | ||
## [17.1.0] | ||
### Added | ||
- Add `getNetworkConfigurationByNetworkClientId` method which can be used to retrieve details for both custom and built-in networks (using the network configuration object shape) ([#2055](https://github.com/MetaMask/core/pull/2055)) | ||
@@ -30,2 +35,3 @@ - Add `NetworkController:getNetworkConfigurationByNetworkClientId` messenger action for the previous method ([#2055](https://github.com/MetaMask/core/pull/2055)) | ||
### Changed | ||
- Bump `@metamask/base-controller` to `^4.0.1` ([#3695](https://github.com/MetaMask/core/pull/3695)) | ||
@@ -41,3 +47,5 @@ - Bump `@metamask/controller-utils` to `^8.0.1` ([#3695](https://github.com/MetaMask/core/pull/3695), [#3678](https://github.com/MetaMask/core/pull/3678), [#3667](https://github.com/MetaMask/core/pull/3667), [#3580](https://github.com/MetaMask/core/pull/3580)) | ||
## [17.0.0] | ||
### Changed | ||
- **BREAKING:** Bump `@metamask/base-controller` to ^4.0.0 ([#2063](https://github.com/MetaMask/core/pull/2063)) | ||
@@ -48,3 +56,5 @@ - This is breaking because the type of the `messenger` has backward-incompatible changes. See the changelog for this package for more. | ||
## [16.0.0] | ||
### Changed | ||
- **BREAKING:** Bump dependency `@metamask/eth-query` from ^3.0.1 to ^4.0.0 ([#2028](https://github.com/MetaMask/core/pull/2028)) | ||
@@ -54,3 +64,5 @@ - This is breaking because it changes the type of the EthQuery instance this controller creates internally and exports under the `getEthQuery` action. Please consult the [changelog for `@metamask/eth-query` 4.0.0](https://github.com/MetaMask/eth-query/blob/main/CHANGELOG.md#400) for more. | ||
## [15.2.0] | ||
### Changed | ||
- Update @metamask/eth-json-rpc-middleware in network controller ([#1988](https://github.com/MetaMask/core/pull/1988)) | ||
@@ -61,3 +73,5 @@ - Bump dependency on `@metamask/json-rpc-engine` to ^7.2.0 ([#1895](https://github.com/MetaMask/core/pull/1895)) | ||
## [15.1.0] | ||
### Added | ||
- Add new action handlers and associated types ([#1806](https://github.com/MetaMask/core/pull/1806)) | ||
@@ -70,6 +84,9 @@ - `NetworkController:setActiveNetwork` / `NetworkControllerSetActiveNetworkAction` | ||
### Changed | ||
- Bump dependency on `@metamask/eth-json-rpc-provider` to ^2.2.0 ([#1738](https://github.com/MetaMask/core/pull/1738)) | ||
## [15.0.0] | ||
### Changed | ||
- **BREAKING:** Bump dependency on `@metamask/eth-json-rpc-infura` to ^9.0.0 ([#1653](https://github.com/MetaMask/core/pull/1653)) | ||
@@ -83,6 +100,9 @@ - **BREAKING:** Bump dependency on `@metamask/eth-json-rpc-middleware` to ^12.0.0 ([#1653](https://github.com/MetaMask/core/pull/1653)) | ||
## [14.0.0] | ||
### Added | ||
- Add `NetworkController:getEIP1559Compatibility` controller action ([#1673](https://github.com/MetaMask/core/pull/1673)) | ||
### Changed | ||
- **BREAKING:** Rename `get1555CompatibilityWithNetworkClientId` to `get1559CompatibilityWithNetworkClientId` ([#1673](https://github.com/MetaMask/core/pull/1673)) | ||
@@ -94,10 +114,15 @@ - Bump dependency on `@metamask/utils` to ^8.1.0 ([#1639](https://github.com/MetaMask/core/pull/1639)) | ||
### Fixed | ||
- Update linea goerli explorer url ([#1666](https://github.com/MetaMask/core/pull/1666)) | ||
## [13.0.1] | ||
### Changed | ||
- Update TypeScript to v4.8.x ([#1718](https://github.com/MetaMask/core/pull/1718)) | ||
## [13.0.0] | ||
### Changed | ||
- **BREAKING**: Remove `NetworkId` type ([#1633](https://github.com/MetaMask/core/pull/1633)) | ||
@@ -110,3 +135,5 @@ - **BREAKING**: Remove `networkId` property from `NetworkState` type ([#1633](https://github.com/MetaMask/core/pull/1633)) | ||
## [12.2.0] | ||
### Added | ||
- Add `NetworkController:getNetworkClientById` action ([#1638](https://github.com/MetaMask/core/pull/1638)) | ||
@@ -116,6 +143,9 @@ - Add `lookupNetworkByClientId` and `get1555CompatibilityWithNetworkClientId` methods ([#1557](https://github.com/MetaMask/core/pull/1557)) | ||
### Changed | ||
- Add optional `networkClientId` argument to methods `lookupNetwork` and `getEIP1559Compatibility` ([#1557](https://github.com/MetaMask/core/pull/1557)) | ||
- Add optional `networkClientId` argument to methods `lookupNetwork` and `getEIP1559Compatibility` ([#1557](https://github.com/MetaMask/core/pull/1557)) | ||
## [12.1.2] | ||
### Changed | ||
- Bump dependency on `@metamask/base-controller` to ^3.2.1 | ||
@@ -125,7 +155,11 @@ - Bump dependency on `@metamask/controller-utils` to ^4.3.2 | ||
## [12.1.1] | ||
### Added | ||
- Added an export for NetworkClientId in NetworkController ([#1583](https://github.com/MetaMask/core/pull/1583)) | ||
## [12.1.0] | ||
### Added | ||
- Add `getNetworkClientById` ([#1562](https://github.com/MetaMask/core/pull/1562)) | ||
@@ -135,6 +169,9 @@ - Add `findNetworkClientIdByChainId` ([#1571](https://github.com/MetaMask/core/pull/1571)) | ||
## [12.0.0] | ||
### Added | ||
- Add `NetworksMetadata` type ([#1559](https://github.com/MetaMask/core/pull/1559)) | ||
### Changed | ||
- **BREAKING:** Remove `NetworkDetails` type in favor of `NetworkMetadata` ([#1559](https://github.com/MetaMask/core/pull/1559)) | ||
@@ -150,2 +187,3 @@ - This new type includes `NetworkDetails` plus a `status` property | ||
### Removed | ||
- **BREAKING:** Remove `networkDetails` from state ([#1559](https://github.com/MetaMask/core/pull/1559)) | ||
@@ -155,3 +193,5 @@ - The data in this state property has been merged into the new `networksMetadata` state property; each value in this object contains an `EIPS` property. | ||
## [11.0.0] | ||
### Changed | ||
- **BREAKING**: Require `ticker` to be included in the `providerConfig` state ([#1495](https://github.com/MetaMask/core/pull/1495)) | ||
@@ -164,3 +204,5 @@ - This requires a state migration, setting `providerConfig.ticker` to `ETH` if it's missing. | ||
## [10.3.1] | ||
### Changed | ||
- Bump `@metamask/eth-json-rpc-infura` dependency from ^8.0.0 to ^8.1.0 | ||
@@ -170,3 +212,5 @@ - This extends the types that this package recognizes to include Linea networks | ||
## [10.3.0] | ||
### Added | ||
- Add `getNetworkClientsById` method ([#1439](https://github.com/MetaMask/core/pull/1439)) | ||
@@ -176,2 +220,3 @@ - This method returns a registry of available built-in and custom networks, allowing consumers to access multiple networks simultaneously if desired | ||
### Changed | ||
- Network clients are retained and will no longer be destroyed or recreated whenever the network is initialized or switched ([#1439](https://github.com/MetaMask/core/pull/1439)) | ||
@@ -184,11 +229,17 @@ - This means that cached responses for a network will no longer disappear when a different network is selected | ||
## [10.2.0] | ||
### Added | ||
- Expose `BlockTracker` type ([#1443](https://github.com/MetaMask/core/pull/1443)) | ||
## [10.1.0] | ||
### Added | ||
- Add `loadBackup` method to NetworkController ([#1421](https://github.com/MetaMask/core/pull/1421)) | ||
## [10.0.0] | ||
### Changed | ||
- **BREAKING:** Update `getEIP1559Compatibility` to return `false` instead of `true` if the provider has not been initialized yet ([#1404](https://github.com/MetaMask/core/pull/1404)) | ||
@@ -200,3 +251,5 @@ - Update `getEIP1559Compatibility` to not hit the current network if it is known that it does not support EIP-1559 ([#1404](https://github.com/MetaMask/core/pull/1404)) | ||
## [9.0.0] | ||
### Added | ||
- The events `networkWillChange` and `networkDidChange` are emitted during `setProviderType`, `setActiveNetwork`, `resetConnection`, and `rollbackToPreviousProvider` ([#1336](https://github.com/MetaMask/core/pull/1336)) | ||
@@ -210,2 +263,3 @@ - The `networkWillChange` event is emitted before the network is switched (before the network status is cleared), | ||
### Changed | ||
- **BREAKING:** Bump to Node 16 ([#1262](https://github.com/MetaMask/core/pull/1262)) | ||
@@ -263,2 +317,3 @@ - **BREAKING:** The `providerConfig` type and state property have changed. The `chainId` property is now `Hex` rather than a decimal `string` ([#1367](https://github.com/MetaMask/core/pull/1367)) | ||
### Removed | ||
- **BREAKING:** Remove `providerConfigChange` event ([#1329](https://github.com/MetaMask/core/pull/1329)) | ||
@@ -269,2 +324,3 @@ - Consumers are encouraged to subscribe to `NetworkController:stateChange` with a selector function that returns `providerConfig` if they want to perform an action when `providerConfig` changes. | ||
### Fixed | ||
- Update network details in `lookupNetwork` even when network ID is unchanged ([#1379](https://github.com/MetaMask/core/pull/1379)) | ||
@@ -275,6 +331,9 @@ - Fix error when `rollbackToPreviousProvider` is called when the previous network is a custom network with a missing or invalid `id` ([#1223](https://github.com/MetaMask/core/pull/1223)) | ||
## [8.0.0] | ||
### Added | ||
- Implement `resetConnection` method ([#1131](https://github.com/MetaMask/core/pull/1131), [#1235](https://github.com/MetaMask/core/pull/1235), [#1239](https://github.com/MetaMask/core/pull/1239)) | ||
### Changed | ||
- Update EIP-1559 compatibility during network lookup ([#1236](https://github.com/MetaMask/core/pull/1236)) | ||
@@ -304,2 +363,3 @@ - EIP-1559 compatibility check is still performed on initialization and after switching networks, like before. This change only impacts direct calls to `lookupNetwork`. | ||
### Removed | ||
- **BREAKING:** Remove `isCustomNetwork` state ([#1199](https://github.com/MetaMask/core/pull/1199)) | ||
@@ -309,3 +369,5 @@ - The `providerConfig.type` state will be set to `'rpc'` if the current network is a custom network. Replace all references to the `isCustomNetwork` state by checking the provider config state instead. | ||
## [7.0.0] | ||
### Changed | ||
- **BREAKING:** Replace `providerConfig` setter with a public `initializeProvider` method ([#1133](https://github.com/MetaMask/core/pull/1133)) | ||
@@ -316,6 +378,9 @@ - The property `providerConfig` should no longer be set to initialize the provider. That property no longer exists. | ||
## [6.0.0] | ||
### Added | ||
- Add rollbackToPreviousProvider method ([#1132](https://github.com/MetaMask/core/pull/1132)) | ||
### Changed | ||
- **BREAKING:** Migrate network configurations from `PreferencesController` to `NetworkController` ([#1064](https://github.com/MetaMask/core/pull/1064)) | ||
@@ -331,6 +396,9 @@ - Consumers will need to adapt to reading network data from `NetworkConfigurations` state on `NetworkController` rather than `frequentRpcList` on `PreferencesController`. | ||
## [5.0.0] | ||
### Changed | ||
- **BREAKING:** Rename `properties` property in state object to `networkDetails` ([#1074](https://github.com/MetaMask/controllers/pull/1074)) | ||
### Removed | ||
- **BREAKING:** Remove `isomorphic-fetch` ([#1106](https://github.com/MetaMask/controllers/pull/1106)) | ||
@@ -340,3 +408,5 @@ - Consumers must now import `isomorphic-fetch` or another polyfill themselves if they are running in an environment without `fetch` | ||
## [4.0.0] | ||
### Changed | ||
- **BREAKING:** Update type of state object by renaming `properties` property to `networkDetails` ([#1074](https://github.com/MetaMask/core/pull/1074)) | ||
@@ -348,3 +418,5 @@ - Consumers are recommended to add a state migration for this change. | ||
## [3.0.0] | ||
### Added | ||
- Add support for Sepolia as a built-in Infura network ([#1041](https://github.com/MetaMask/controllers/pull/1041)) | ||
@@ -354,2 +426,3 @@ - Export types for network controller events and actions ([#1039](https://github.com/MetaMask/core/pull/1039)) | ||
### Changed | ||
- **BREAKING:** Make `lookupNetwork` block on completing the lookup ([#1063](https://github.com/MetaMask/controllers/pull/1063)) | ||
@@ -361,6 +434,9 @@ - This function was always `async`, but it would return before completing any async work. Now it will not return until after the network lookup has been completed. | ||
### Removed | ||
- **BREAKING:**: Drop support for Ropsten, Rinkeby, and Kovan as built-in Infura networks ([#1041](https://github.com/MetaMask/controllers/pull/1041)) | ||
## [2.0.0] | ||
### Changed | ||
- **BREAKING:** Update type of state object by renaming `provider` property to `providerConfig` ([#995](https://github.com/MetaMask/core/pull/995)) | ||
@@ -372,5 +448,9 @@ - Consumers are recommended to add a state migration for this change. | ||
## [1.0.0] | ||
### Added | ||
- Initial release | ||
- As a result of converting our shared controllers repo into a monorepo ([#831](https://github.com/MetaMask/core/pull/831)), we've created this package from select parts of [`@metamask/controllers` v33.0.0](https://github.com/MetaMask/core/tree/v33.0.0), namely: | ||
- Everything in `src/network` (minus `NetworkType` and `NetworksChainId`, which were placed in `@metamask/controller-utils`) | ||
@@ -377,0 +457,0 @@ |
{ | ||
"name": "@metamask-previews/network-controller", | ||
"version": "17.2.0-preview.8cdddaf", | ||
"version": "17.2.0-preview.cbe2fbb7", | ||
"description": "Provides an interface to the currently selected network via a MetaMask-compatible provider object", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
234237