@metamask-previews/account-tree-controller 7.2.0-preview-f60a0b769 → 7.3.0-preview-d3f1b8bd9
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 +23 -15
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [7.3.0]
|
|
11
|
+
|
|
10
12
|
### Added
|
|
11
13
|
|
|
12
14
|
- Expose missing public `AccountTreeController` methods through its messenger ([#8716](https://github.com/MetaMask/core/pull/8716))
|
|
@@ -15,6 +17,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
15
17
|
- `AccountTreeController:reinit`
|
|
16
18
|
- Corresponding action types are available as well.
|
|
17
19
|
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- Bump `@metamask/keyring-controller` from `^25.4.0` to `^25.5.0` ([#8722](https://github.com/MetaMask/core/pull/8722))
|
|
23
|
+
- Bump `@metamask/multichain-account-service` from `^8.0.1` to `^9.0.0` ([#8722](https://github.com/MetaMask/core/pull/8722))
|
|
24
|
+
|
|
18
25
|
## [7.2.0]
|
|
19
26
|
|
|
20
27
|
### Changed
|
|
@@ -61,7 +68,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
61
68
|
|
|
62
69
|
### Added
|
|
63
70
|
|
|
64
|
-
- Add `lastSelected` (timestamp) to account group tree node metadata ([#8261](https://github.com/MetaMask/core/pull/8261)
|
|
71
|
+
- Add `lastSelected` (timestamp) to account group tree node metadata ([#8261](https://github.com/MetaMask/core/pull/8261), [#8300](https://github.com/MetaMask/core/pull/8300))
|
|
65
72
|
- `group.metadata.lastSelected` is set to `Date.now()` whenever a group becomes the selected group, either via `setSelectedAccountGroup` or `AccountsController:selectedAccountChange`.
|
|
66
73
|
- The value is persisted in `accountGroupsMetadata` and restored on `init`/`reinit`.
|
|
67
74
|
- The value is not synchronize through backup and sync.
|
|
@@ -98,7 +105,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
98
105
|
|
|
99
106
|
### Added
|
|
100
107
|
|
|
101
|
-
- Expose missing public `AccountTreeController` methods through its messenger ([#7976](https://github.com/MetaMask/core/pull/7976
|
|
108
|
+
- Expose missing public `AccountTreeController` methods through its messenger ([#7976](https://github.com/MetaMask/core/pull/7976))
|
|
102
109
|
- The following actions are now available:
|
|
103
110
|
- `AccountTreeController:getAccountWalletObject`
|
|
104
111
|
- `AccountTreeController:getAccountWalletObjects`
|
|
@@ -110,7 +117,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
110
117
|
|
|
111
118
|
### Changed
|
|
112
119
|
|
|
113
|
-
- Bump `@metamask/accounts-controller` from `^36.0.0` to `^37.0.0` ([#7996](https://github.com/MetaMask/core/pull/7996)
|
|
120
|
+
- Bump `@metamask/accounts-controller` from `^36.0.0` to `^37.0.0` ([#7996](https://github.com/MetaMask/core/pull/7996), [#8140](https://github.com/MetaMask/core/pull/8140))
|
|
114
121
|
- Bump `@metamask/multichain-account-service` from `^7.0.0` to `^7.1.0` ([#8140](https://github.com/MetaMask/core/pull/8140))
|
|
115
122
|
|
|
116
123
|
### Removed
|
|
@@ -137,7 +144,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
137
144
|
- Bump `@metamask/snaps-sdk` from `^9.0.0` to `^10.3.0` ([#7550](https://github.com/MetaMask/core/pull/7550))
|
|
138
145
|
- Bump `@metamask/snaps-utils` from `^11.0.0` to `^11.7.0` ([#7550](https://github.com/MetaMask/core/pull/7550))
|
|
139
146
|
- Upgrade `@metamask/utils` from `^11.8.1` to `^11.9.0` ([#7511](https://github.com/MetaMask/core/pull/7511))
|
|
140
|
-
- Move peer dependencies for controller and service packages to direct dependencies ([#7209](https://github.com/MetaMask/core/pull/7209), [#7437](https://github.com/MetaMask/core/pull/7437), [#7515](https://github.com/MetaMask/core/pull/7515), [#7594](https://github.com/MetaMask/core/pull/7594), [#7550](https://github.com/MetaMask/core/pull/7550), [#7604](https://github.com/MetaMask/core/pull/7604), [#7642](https://github.com/MetaMask/core/pull/7642), [#7678](https://github.com/MetaMask/core/pull/7678), [#7713](https://github.com/MetaMask/core/pull/7713), [#7849](https://github.com/MetaMask/core/pull/7849)
|
|
147
|
+
- Move peer dependencies for controller and service packages to direct dependencies ([#7209](https://github.com/MetaMask/core/pull/7209), [#7437](https://github.com/MetaMask/core/pull/7437), [#7515](https://github.com/MetaMask/core/pull/7515), [#7594](https://github.com/MetaMask/core/pull/7594), [#7550](https://github.com/MetaMask/core/pull/7550), [#7604](https://github.com/MetaMask/core/pull/7604), [#7642](https://github.com/MetaMask/core/pull/7642), [#7678](https://github.com/MetaMask/core/pull/7678), [#7713](https://github.com/MetaMask/core/pull/7713), [#7849](https://github.com/MetaMask/core/pull/7849), [#7869](https://github.com/MetaMask/core/pull/7869))
|
|
141
148
|
- The dependencies moved are:
|
|
142
149
|
- `@metamask/accounts-controller` (^35.0.2)
|
|
143
150
|
- `@metamask/keyring-controller` (^25.1.0)
|
|
@@ -255,16 +262,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
255
262
|
### Changed
|
|
256
263
|
|
|
257
264
|
- Set the `setAccountGroupName`'s option `autoHandleConflict` to `true` for all backup & sync operations ([#6697](https://github.com/MetaMask/core/pull/6697))
|
|
258
|
-
- Add new group naming for non-HD keyring accounts ([#6679](https://github.com/MetaMask/core/pull/6679)
|
|
265
|
+
- Add new group naming for non-HD keyring accounts ([#6679](https://github.com/MetaMask/core/pull/6679), [#6696](https://github.com/MetaMask/core/pull/6696))
|
|
259
266
|
- Hardware-wallet account groups are now named: "Ledger|Trezor|QR|Lattice|OneKey Account N".
|
|
260
267
|
- Private key account groups are now named: "Imported Account N".
|
|
261
268
|
- Snap account groups are now named: "Snap Account N".
|
|
262
|
-
- Account group names now use natural indexing as a fallback ([#6677](https://github.com/MetaMask/core/pull/6677)
|
|
269
|
+
- Account group names now use natural indexing as a fallback ([#6677](https://github.com/MetaMask/core/pull/6677), [#6679](https://github.com/MetaMask/core/pull/6679), [#6696](https://github.com/MetaMask/core/pull/6696))
|
|
263
270
|
- If a user names his accounts without any indexes, we would just use the number of accounts to compute the next available index.
|
|
264
271
|
|
|
265
272
|
### Fixed
|
|
266
273
|
|
|
267
|
-
- Fix group naming for non-HD keyring accounts ([#6677](https://github.com/MetaMask/core/pull/6677)
|
|
274
|
+
- Fix group naming for non-HD keyring accounts ([#6677](https://github.com/MetaMask/core/pull/6677), [#6679](https://github.com/MetaMask/core/pull/6679))
|
|
268
275
|
- Previously, the first non-HD keyring account would start as `Account 2` as opposed to `Account 1` and thus subsequent group names were off as well.
|
|
269
276
|
|
|
270
277
|
## [1.0.0]
|
|
@@ -340,13 +347,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
340
347
|
|
|
341
348
|
### Added
|
|
342
349
|
|
|
343
|
-
- Add `AccountWalletObject.status` support ([#6571](https://github.com/MetaMask/core/pull/6571)
|
|
350
|
+
- Add `AccountWalletObject.status` support ([#6571](https://github.com/MetaMask/core/pull/6571), [#6578](https://github.com/MetaMask/core/pull/6578))
|
|
344
351
|
- The `status` field will now report the current wallet status.
|
|
345
352
|
- Uses `MultichainAccountService` to report on-going operations (discovery, alignment, account creations) for `AccountWalletEntropyObject` multichain account wallet objects.
|
|
346
353
|
|
|
347
354
|
### Changed
|
|
348
355
|
|
|
349
|
-
- **BREAKING:** Bump peer dependency `@metamask/multichain-account-service` from `^0.7.0` to `^0.8.0` ([#6571](https://github.com/MetaMask/core/pull/6571)
|
|
356
|
+
- **BREAKING:** Bump peer dependency `@metamask/multichain-account-service` from `^0.7.0` to `^0.8.0` ([#6571](https://github.com/MetaMask/core/pull/6571), [#6578](https://github.com/MetaMask/core/pull/6578))
|
|
350
357
|
- **BREAKING:** Bump peer dependency `@metamask/account-api` from `^0.9.0` to `^0.12.0` ([#6560](https://github.com/MetaMask/core/pull/6560))
|
|
351
358
|
|
|
352
359
|
## [0.14.0]
|
|
@@ -366,7 +373,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
366
373
|
- Optional configuration through new `AccountTreeControllerConfig.backupAndSync` options.
|
|
367
374
|
- Add `@metamask/superstruct` for data validation.
|
|
368
375
|
- **BREAKING:** Add `@metamask/multichain-account-service` peer dependency ([#6344](https://github.com/MetaMask/core/pull/6344))
|
|
369
|
-
- **BREAKING:** Add `@metamask/profile-sync-controller` peer dependency ([#6344](https://github.com/MetaMask/core/pull/6344)
|
|
376
|
+
- **BREAKING:** Add `@metamask/profile-sync-controller` peer dependency ([#6344](https://github.com/MetaMask/core/pull/6344), [#6558](https://github.com/MetaMask/core/pull/6558))
|
|
370
377
|
- Add two new controller state metadata properties: `includeInStateLogs` and `usedInUi` ([#6470](https://github.com/MetaMask/core/pull/6470))
|
|
371
378
|
|
|
372
379
|
### Changed
|
|
@@ -446,7 +453,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
446
453
|
### Added
|
|
447
454
|
|
|
448
455
|
- **BREAKING:** Add support for `AccountsController:accountRenamed` event handling for state 1 and legacy account syncing compatibility ([#6251](https://github.com/MetaMask/core/pull/6251))
|
|
449
|
-
- Add `AccountTreeController:getAccountsFromSelectedAccountGroup` action ([#6266](https://github.com/MetaMask/core/pull/6266)
|
|
456
|
+
- Add `AccountTreeController:getAccountsFromSelectedAccountGroup` action ([#6266](https://github.com/MetaMask/core/pull/6266), [#6248](https://github.com/MetaMask/core/pull/6248), [#6265](https://github.com/MetaMask/core/pull/6265))
|
|
450
457
|
- This action can be used to get all accounts from the currently selected account group.
|
|
451
458
|
- This action also support `AccountSelector` support to filter out accounts based on some criterias.
|
|
452
459
|
- Add persistence support for user customizations ([#6221](https://github.com/MetaMask/core/pull/6221))
|
|
@@ -457,14 +464,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
457
464
|
- Add `{wallet,group}.type` tag ([#6214](https://github.com/MetaMask/core/pull/6214))
|
|
458
465
|
- This `type` can be used as a tag to strongly-type (tagged-union) the `AccountGroupObject`.
|
|
459
466
|
- The `type` from `wallet.metadata` has been moved to `wallet.type` instead and can be used to (tagged-union) the `AccountWalletObject`.
|
|
460
|
-
- Add `{wallet,group}.metadata` metadata object ([#6214](https://github.com/MetaMask/core/pull/6214)
|
|
467
|
+
- Add `{wallet,group}.metadata` metadata object ([#6214](https://github.com/MetaMask/core/pull/6214), [#6258](https://github.com/MetaMask/core/pull/6258))
|
|
461
468
|
- Given the `{wallet,group}.type` you will now have access to specific metadata information (e.g. `group.metadata.groupIndex` for multichain account groups or `wallet.metadata.entropy.id` for multichain account wallets)
|
|
462
469
|
- Automatically prune empty groups and wallets upon account removal ([#6234](https://github.com/MetaMask/core/pull/6234))
|
|
463
470
|
- This ensures that there aren't any empty nodes in the `AccountTreeController` state.
|
|
464
471
|
|
|
465
472
|
### Changed
|
|
466
473
|
|
|
467
|
-
- **BREAKING:** Bump peer dependency `@metamask/account-api` from `^0.3.0` to `^0.9.0` ([#6214](https://github.com/MetaMask/core/pull/6214)
|
|
474
|
+
- **BREAKING:** Bump peer dependency `@metamask/account-api` from `^0.3.0` to `^0.9.0` ([#6214](https://github.com/MetaMask/core/pull/6214), [#6216](https://github.com/MetaMask/core/pull/6216), [#6222](https://github.com/MetaMask/core/pull/6222), [#6248](https://github.com/MetaMask/core/pull/6248))
|
|
468
475
|
- **BREAKING:** Remove use of in-memory wallets and groups (`AccountTree{Wallet,Object}`) ([#6265](https://github.com/MetaMask/core/pull/6265))
|
|
469
476
|
- Those types are not ready to be used and adds no value for now.
|
|
470
477
|
- **BREAKING:** Move `wallet.metadata.type` tag to `wallet` node ([#6214](https://github.com/MetaMask/core/pull/6214))
|
|
@@ -503,7 +510,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
503
510
|
|
|
504
511
|
### Changed
|
|
505
512
|
|
|
506
|
-
- **BREAKING:** Add `@metamask/account-api` peer dependency ([#6115](https://github.com/MetaMask/core/pull/6115)
|
|
513
|
+
- **BREAKING:** Add `@metamask/account-api` peer dependency ([#6115](https://github.com/MetaMask/core/pull/6115), [#6146](https://github.com/MetaMask/core/pull/6146))
|
|
507
514
|
- **BREAKING:** Types `AccountWallet` and `AccountGroup` have been respectively renamed to `AccountWalletObject` and `AccountGroupObject` ([#6115](https://github.com/MetaMask/core/pull/6115))
|
|
508
515
|
- Those names are now used by the `@metamask/account-api` package to define higher-level interfaces.
|
|
509
516
|
- **BREAKING:** Bump peer dependency `@metamask/snaps-controllers` from `^12.0.0` to `^14.0.0` ([#6035](https://github.com/MetaMask/core/pull/6035))
|
|
@@ -549,7 +556,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
549
556
|
- Initial release ([#5847](https://github.com/MetaMask/core/pull/5847))
|
|
550
557
|
- Grouping accounts into 3 main categories: Entropy source, Snap ID, keyring types.
|
|
551
558
|
|
|
552
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/account-tree-controller@7.
|
|
559
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/account-tree-controller@7.3.0...HEAD
|
|
560
|
+
[7.3.0]: https://github.com/MetaMask/core/compare/@metamask/account-tree-controller@7.2.0...@metamask/account-tree-controller@7.3.0
|
|
553
561
|
[7.2.0]: https://github.com/MetaMask/core/compare/@metamask/account-tree-controller@7.1.0...@metamask/account-tree-controller@7.2.0
|
|
554
562
|
[7.1.0]: https://github.com/MetaMask/core/compare/@metamask/account-tree-controller@7.0.0...@metamask/account-tree-controller@7.1.0
|
|
555
563
|
[7.0.0]: https://github.com/MetaMask/core/compare/@metamask/account-tree-controller@6.0.0...@metamask/account-tree-controller@7.0.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask-previews/account-tree-controller",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0-preview-d3f1b8bd9",
|
|
4
4
|
"description": "Controller to group account together based on some pre-defined rules",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Ethereum",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"@metamask/accounts-controller": "^38.0.0",
|
|
57
57
|
"@metamask/base-controller": "^9.1.0",
|
|
58
58
|
"@metamask/keyring-api": "^23.1.0",
|
|
59
|
-
"@metamask/keyring-controller": "^25.
|
|
59
|
+
"@metamask/keyring-controller": "^25.5.0",
|
|
60
60
|
"@metamask/messenger": "^1.2.0",
|
|
61
|
-
"@metamask/multichain-account-service": "^
|
|
61
|
+
"@metamask/multichain-account-service": "^9.0.0",
|
|
62
62
|
"@metamask/profile-sync-controller": "^28.0.2",
|
|
63
63
|
"@metamask/snaps-controllers": "^19.0.0",
|
|
64
64
|
"@metamask/snaps-sdk": "^11.0.0",
|