@metamask/assets-controller 10.2.0 → 11.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,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [11.0.0]
11
+
12
+ ### Fixed
13
+
14
+ - **BREAKING:** Subscribe to exported `AccountTreeController:stateChange`, `ClientController:stateChange`, and `NetworkEnablementController:stateChange` messenger events instead of locally constructed `:stateChanged` aliases ([#9478](https://github.com/MetaMask/core/pull/9478))
15
+
16
+ ## [10.2.1]
17
+
18
+ ### Changed
19
+
20
+ - Bump `@metamask/transaction-controller` from `^68.3.0` to `^69.0.0` ([#9456](https://github.com/MetaMask/core/pull/9456), [#9470](https://github.com/MetaMask/core/pull/9470))
21
+ - Bump `@metamask/accounts-controller` from `^39.0.4` to `^39.0.5` ([#9470](https://github.com/MetaMask/core/pull/9470))
22
+ - Bump `@metamask/account-tree-controller` from `^7.5.4` to `^7.5.5` ([#9470](https://github.com/MetaMask/core/pull/9470))
23
+ - Bump `@metamask/assets-controllers` from `^109.4.0` to `^109.4.1` ([#9470](https://github.com/MetaMask/core/pull/9470))
24
+ - Bump `@metamask/network-enablement-controller` from `^5.4.1` to `^5.5.0` ([#9470](https://github.com/MetaMask/core/pull/9470))
25
+ - Bump `@metamask/phishing-controller` from `^17.2.0` to `^17.2.1` ([#9470](https://github.com/MetaMask/core/pull/9470))
26
+
10
27
  ## [10.2.0]
11
28
 
12
29
  ### Added
@@ -712,7 +729,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
712
729
  - Refactor `RpcDataSource` to delegate polling to `BalanceFetcher` and `TokenDetector` services ([#7709](https://github.com/MetaMask/core/pull/7709))
713
730
  - Refactor `BalanceFetcher` and `TokenDetector` to extend `StaticIntervalPollingControllerOnly` for independent polling management ([#7709](https://github.com/MetaMask/core/pull/7709))
714
731
 
715
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/assets-controller@10.2.0...HEAD
732
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/assets-controller@11.0.0...HEAD
733
+ [11.0.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controller@10.2.1...@metamask/assets-controller@11.0.0
734
+ [10.2.1]: https://github.com/MetaMask/core/compare/@metamask/assets-controller@10.2.0...@metamask/assets-controller@10.2.1
716
735
  [10.2.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controller@10.1.0...@metamask/assets-controller@10.2.0
717
736
  [10.1.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controller@10.0.1...@metamask/assets-controller@10.1.0
718
737
  [10.0.1]: https://github.com/MetaMask/core/compare/@metamask/assets-controller@10.0.0...@metamask/assets-controller@10.0.1
package/LICENSE CHANGED
@@ -18,3 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1099,11 +1099,11 @@ _AssetsController_isEnabled = new WeakMap(), _AssetsController_isBasicFunctional
1099
1099
  // The base-controller `:stateChange` event is guaranteed to fire
1100
1100
  // when init() calls this.update(). #start() is idempotent so
1101
1101
  // repeated fires are safe.
1102
- this.messenger.subscribe('AccountTreeController:stateChanged', () => {
1102
+ this.messenger.subscribe('AccountTreeController:stateChange', () => {
1103
1103
  __classPrivateFieldGet(this, _AssetsController_instances, "m", _AssetsController_handleAccountTreeStateChange).call(this);
1104
1104
  });
1105
1105
  // Subscribe to network enablement changes (only enabledNetworkMap)
1106
- this.messenger.subscribe('NetworkEnablementController:stateChanged', ({ enabledNetworkMap }) => {
1106
+ this.messenger.subscribe('NetworkEnablementController:stateChange', ({ enabledNetworkMap }) => {
1107
1107
  __classPrivateFieldGet(this, _AssetsController_instances, "m", _AssetsController_handleEnabledNetworksChanged).call(this, enabledNetworkMap).catch(console.error);
1108
1108
  });
1109
1109
  // When a network is added or removed from NetworkController, refresh
@@ -1122,12 +1122,12 @@ _AssetsController_isEnabled = new WeakMap(), _AssetsController_isBasicFunctional
1122
1122
  __classPrivateFieldGet(this, _AssetsController_instances, "m", _AssetsController_refreshAssetsAfterNetworkChange).call(this);
1123
1123
  });
1124
1124
  // Selected EVM network switch (network picker). Enablement changes are
1125
- // handled separately via NetworkEnablementController:stateChanged.
1125
+ // handled separately via NetworkEnablementController:stateChange.
1126
1126
  this.messenger.subscribe('NetworkController:networkDidChange', (networkState) => {
1127
1127
  __classPrivateFieldGet(this, _AssetsController_instances, "m", _AssetsController_handleNetworkDidChange).call(this, networkState).catch(console.error);
1128
1128
  });
1129
1129
  // Client + Keyring lifecycle: only run when UI is open AND keyring is unlocked
1130
- this.messenger.subscribe('ClientController:stateChanged', (isUiOpen) => {
1130
+ this.messenger.subscribe('ClientController:stateChange', (isUiOpen) => {
1131
1131
  __classPrivateFieldSet(this, _AssetsController_uiOpen, isUiOpen, "f");
1132
1132
  __classPrivateFieldGet(this, _AssetsController_instances, "m", _AssetsController_updateActive).call(this);
1133
1133
  }, client_controller_1.clientControllerSelectors.selectIsUiOpen);