@metamask-previews/network-enablement-controller 4.0.0-preview-c72fc191 → 4.1.0-preview-4a66b658
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 +10 -5
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -7,9 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [4.1.0]
|
|
11
|
+
|
|
10
12
|
### Added
|
|
11
13
|
|
|
12
14
|
- Add `nativeAssetIdentifiers` state property that maps CAIP-2 chain IDs to CAIP-19-like native asset identifiers (e.g., `eip155:1/slip44:60`) ([#7609](https://github.com/MetaMask/core/pull/7609))
|
|
15
|
+
- Add `initNativeAssetIdentifiers` method to populate `nativeAssetIdentifiers` state property ([#7609](https://github.com/MetaMask/core/pull/7609))
|
|
16
|
+
- This is designed to be called during controller initialization.
|
|
13
17
|
- Add `Slip44Service` to look up SLIP-44 coin types by native currency symbol ([#7609](https://github.com/MetaMask/core/pull/7609))
|
|
14
18
|
- Add `@metamask/slip44` dependency for SLIP-44 coin type lookups ([#7609](https://github.com/MetaMask/core/pull/7609))
|
|
15
19
|
- Subscribe to `NetworkController:stateChange` to update `nativeAssetIdentifiers` when a network's native currency changes ([#7609](https://github.com/MetaMask/core/pull/7609))
|
|
@@ -17,11 +21,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
17
21
|
### Changed
|
|
18
22
|
|
|
19
23
|
- Upgrade `@metamask/utils` from `^11.8.1` to `^11.9.0` ([#7511](https://github.com/MetaMask/core/pull/7511))
|
|
20
|
-
- Move peer dependencies for controller and service packages to direct dependencies ([#7209](https://github.com/MetaMask/core/pull/7209), [#7220](https://github.com/MetaMask/core/pull/7220), [#7236](https://github.com/MetaMask/core/pull/7236), [#7257](https://github.com/MetaMask/core/pull/7257), [#7258](https://github.com/MetaMask/core/pull/7258), [#7289](https://github.com/MetaMask/core/pull/7289), [#7325](https://github.com/MetaMask/core/pull/7325), [#7430](https://github.com/MetaMask/core/pull/7430), [#7494](https://github.com/MetaMask/core/pull/7494), [#7534](https://github.com/MetaMask/core/pull/7534), [#7583](https://github.com/MetaMask/core/pull/7583), [#7596](https://github.com/MetaMask/core/pull/7596), [#7602](https://github.com/MetaMask/core/pull/7602), [#7604](https://github.com/MetaMask/core/pull/7604))
|
|
24
|
+
- Move peer dependencies for controller and service packages to direct dependencies ([#7209](https://github.com/MetaMask/core/pull/7209), [#7220](https://github.com/MetaMask/core/pull/7220), [#7236](https://github.com/MetaMask/core/pull/7236), [#7257](https://github.com/MetaMask/core/pull/7257), [#7258](https://github.com/MetaMask/core/pull/7258), [#7289](https://github.com/MetaMask/core/pull/7289), [#7325](https://github.com/MetaMask/core/pull/7325), [#7430](https://github.com/MetaMask/core/pull/7430), [#7494](https://github.com/MetaMask/core/pull/7494), [#7534](https://github.com/MetaMask/core/pull/7534), [#7583](https://github.com/MetaMask/core/pull/7583), [#7596](https://github.com/MetaMask/core/pull/7596), [#7602](https://github.com/MetaMask/core/pull/7602), [#7604](https://github.com/MetaMask/core/pull/7604), [#7642](https://github.com/MetaMask/core/pull/7642))
|
|
21
25
|
- The dependencies moved are:
|
|
22
|
-
- `@metamask/multichain-network-controller` (^3.0.
|
|
23
|
-
- `@metamask/network-controller` (^
|
|
24
|
-
- `@metamask/transaction-controller` (^62.9.
|
|
26
|
+
- `@metamask/multichain-network-controller` (^3.0.2)
|
|
27
|
+
- `@metamask/network-controller` (^29.0.0)
|
|
28
|
+
- `@metamask/transaction-controller` (^62.9.2)
|
|
25
29
|
- In clients, it is now possible for multiple versions of these packages to exist in the dependency tree.
|
|
26
30
|
- For example, this scenario would be valid: a client relies on `@metamask/controller-a` 1.0.0 and `@metamask/controller-b` 1.0.0, and `@metamask/controller-b` depends on `@metamask/controller-a` 1.1.0.
|
|
27
31
|
- Note, however, that the versions specified in the client's `package.json` always "win", and you are expected to keep them up to date so as not to break controller and service intercommunication.
|
|
@@ -188,7 +192,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
188
192
|
|
|
189
193
|
- Initial release ([#6028](https://github.com/MetaMask/core/pull/6028))
|
|
190
194
|
|
|
191
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/network-enablement-controller@4.
|
|
195
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/network-enablement-controller@4.1.0...HEAD
|
|
196
|
+
[4.1.0]: https://github.com/MetaMask/core/compare/@metamask/network-enablement-controller@4.0.0...@metamask/network-enablement-controller@4.1.0
|
|
192
197
|
[4.0.0]: https://github.com/MetaMask/core/compare/@metamask/network-enablement-controller@3.1.0...@metamask/network-enablement-controller@4.0.0
|
|
193
198
|
[3.1.0]: https://github.com/MetaMask/core/compare/@metamask/network-enablement-controller@3.0.0...@metamask/network-enablement-controller@3.1.0
|
|
194
199
|
[3.0.0]: https://github.com/MetaMask/core/compare/@metamask/network-enablement-controller@2.1.2...@metamask/network-enablement-controller@3.0.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask-previews/network-enablement-controller",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.0-preview-4a66b658",
|
|
4
4
|
"description": "Provides an interface to the currently enabled network using a MetaMask-compatible provider object",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"MetaMask",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"@metamask/controller-utils": "^11.18.0",
|
|
53
53
|
"@metamask/keyring-api": "^21.0.0",
|
|
54
54
|
"@metamask/messenger": "^0.3.0",
|
|
55
|
-
"@metamask/multichain-network-controller": "^3.0.
|
|
56
|
-
"@metamask/network-controller": "^
|
|
55
|
+
"@metamask/multichain-network-controller": "^3.0.2",
|
|
56
|
+
"@metamask/network-controller": "^29.0.0",
|
|
57
57
|
"@metamask/slip44": "^4.3.0",
|
|
58
|
-
"@metamask/transaction-controller": "^62.9.
|
|
58
|
+
"@metamask/transaction-controller": "^62.9.2",
|
|
59
59
|
"@metamask/utils": "^11.9.0",
|
|
60
60
|
"reselect": "^5.1.1"
|
|
61
61
|
},
|