@metamask-previews/assets-controller 13.1.2-preview-9efd0b754 → 13.1.3-preview-4e64b66e8
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 +13 -1
- package/dist/AssetsController.cjs +7 -3
- package/dist/AssetsController.cjs.map +1 -1
- package/dist/AssetsController.d.cts.map +1 -1
- package/dist/AssetsController.d.mts.map +1 -1
- package/dist/AssetsController.mjs +7 -3
- package/dist/AssetsController.mjs.map +1 -1
- package/dist/data-sources/AccountsApiDataSource.cjs +1 -1
- package/dist/data-sources/AccountsApiDataSource.cjs.map +1 -1
- package/dist/data-sources/AccountsApiDataSource.mjs +1 -1
- package/dist/data-sources/AccountsApiDataSource.mjs.map +1 -1
- package/dist/defaults.cjs +8 -11
- package/dist/defaults.cjs.map +1 -1
- package/dist/defaults.d.cts.map +1 -1
- package/dist/defaults.d.mts.map +1 -1
- package/dist/defaults.mjs +8 -11
- package/dist/defaults.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,10 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Revert `AccountsApiDataSource` `forceUpdate` balance fetch cache window from `staleTime`/`gcTime` of `100`ms back to `0`/`0` (undoes [#9591](https://github.com/MetaMask/core/pull/9591)) so forced refreshes truly bypass the TanStack cache instead of reusing a short-lived entry ([#9870](https://github.com/MetaMask/core/pull/9870))
|
|
13
|
+
- Fix Arc native USDC never appearing until the account receives its first deposit, by default-tracking the native asset id (`eip155:5042/slip44:5042`) instead of the `0x3600...` ERC20 identity so `assetsInfo` metadata is seeded up front ([#9869](https://github.com/MetaMask/core/pull/9869))
|
|
14
|
+
|
|
15
|
+
## [13.1.3]
|
|
16
|
+
|
|
10
17
|
### Changed
|
|
11
18
|
|
|
12
19
|
- Bump `@metamask/transaction-controller` from `^69.5.1` to `^69.5.2` ([#9823](https://github.com/MetaMask/core/pull/9823))
|
|
13
20
|
|
|
21
|
+
### Fixed
|
|
22
|
+
|
|
23
|
+
- Properly filter empty (`''`) selected account group event ([#9825](https://github.com/MetaMask/core/pull/9825))
|
|
24
|
+
|
|
14
25
|
## [13.1.2]
|
|
15
26
|
|
|
16
27
|
### Changed
|
|
@@ -894,7 +905,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
894
905
|
- Refactor `RpcDataSource` to delegate polling to `BalanceFetcher` and `TokenDetector` services ([#7709](https://github.com/MetaMask/core/pull/7709))
|
|
895
906
|
- Refactor `BalanceFetcher` and `TokenDetector` to extend `StaticIntervalPollingControllerOnly` for independent polling management ([#7709](https://github.com/MetaMask/core/pull/7709))
|
|
896
907
|
|
|
897
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/assets-controller@13.1.
|
|
908
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/assets-controller@13.1.3...HEAD
|
|
909
|
+
[13.1.3]: https://github.com/MetaMask/core/compare/@metamask/assets-controller@13.1.2...@metamask/assets-controller@13.1.3
|
|
898
910
|
[13.1.2]: https://github.com/MetaMask/core/compare/@metamask/assets-controller@13.1.1...@metamask/assets-controller@13.1.2
|
|
899
911
|
[13.1.1]: https://github.com/MetaMask/core/compare/@metamask/assets-controller@13.1.0...@metamask/assets-controller@13.1.1
|
|
900
912
|
[13.1.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controller@13.0.0...@metamask/assets-controller@13.1.0
|
|
@@ -1293,8 +1293,8 @@ _AssetsController_isEnabled = new WeakMap(), _AssetsController_isBasicFunctional
|
|
|
1293
1293
|
return reference;
|
|
1294
1294
|
}, _AssetsController_subscribeToEvents = function _AssetsController_subscribeToEvents() {
|
|
1295
1295
|
// Subscribe to account group changes (when user switches between account groups like Account 1 -> Account 2)
|
|
1296
|
-
this.messenger.subscribe('AccountTreeController:selectedAccountGroupChange', () => {
|
|
1297
|
-
__classPrivateFieldGet(this, _AssetsController_instances, "m", _AssetsController_handleAccountGroupChanged).call(this).catch(console.error);
|
|
1296
|
+
this.messenger.subscribe('AccountTreeController:selectedAccountGroupChange', (groupId) => {
|
|
1297
|
+
__classPrivateFieldGet(this, _AssetsController_instances, "m", _AssetsController_handleAccountGroupChanged).call(this, groupId).catch(console.error);
|
|
1298
1298
|
});
|
|
1299
1299
|
// Catch the initial tree build. On returning users,
|
|
1300
1300
|
// `selectedAccountGroupChange` does NOT fire when the persisted group
|
|
@@ -2338,7 +2338,11 @@ async function _AssetsController_executeMiddlewares(params) {
|
|
|
2338
2338
|
// ============================================================================
|
|
2339
2339
|
// EVENT HANDLERS
|
|
2340
2340
|
// ============================================================================
|
|
2341
|
-
async function _AssetsController_handleAccountGroupChanged() {
|
|
2341
|
+
async function _AssetsController_handleAccountGroupChanged(groupId) {
|
|
2342
|
+
// The selected account group can be empty during onboarding or wallet reset.
|
|
2343
|
+
if (!groupId) {
|
|
2344
|
+
return;
|
|
2345
|
+
}
|
|
2342
2346
|
const accounts = __classPrivateFieldGet(this, _AssetsController_instances, "m", _AssetsController_getSelectedAccounts).call(this);
|
|
2343
2347
|
log('Account group changed', {
|
|
2344
2348
|
accountCount: accounts.length,
|