@metamask-previews/keyring-controller 25.1.0-preview-980f677 → 25.1.0-preview-3d4d0d0ef
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 +2 -0
- package/dist/KeyringController.cjs +3 -1
- package/dist/KeyringController.cjs.map +1 -1
- package/dist/KeyringController.d.cts +4 -0
- package/dist/KeyringController.d.cts.map +1 -1
- package/dist/KeyringController.d.mts +4 -0
- package/dist/KeyringController.d.mts.map +1 -1
- package/dist/KeyringController.mjs +3 -1
- package/dist/KeyringController.mjs.map +1 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
9
9
|
|
|
10
10
|
### Changed
|
|
11
11
|
|
|
12
|
+
- **BREAKING:** The `data` property has been added to the `KeyringObject` type ([#8009](https://github.com/MetaMask/core/pull/8009))
|
|
13
|
+
- This change is also reflected in the `KeyringControllerState` type, via the `keyrings` property
|
|
12
14
|
- Bump `@metamask/keyring-api` from `^21.0.0` to `^21.5.0` ([#7857](https://github.com/MetaMask/core/pull/7857))
|
|
13
15
|
- Bump `@metamask/keyring-internal-api` from `^9.0.0` to `^10.0.0` ([#7857](https://github.com/MetaMask/core/pull/7857))
|
|
14
16
|
|
|
@@ -197,6 +197,7 @@ async function displayForKeyring({ keyring, metadata, }) {
|
|
|
197
197
|
// Cast to `string[]` here is safe here because `accounts` has no nullish
|
|
198
198
|
// values, and `normalize` returns `string` unless given a nullish value
|
|
199
199
|
accounts: accounts.map(normalize),
|
|
200
|
+
data: (0, lodash_1.cloneDeep)(await keyring.serialize()),
|
|
200
201
|
metadata,
|
|
201
202
|
};
|
|
202
203
|
}
|
|
@@ -267,7 +268,7 @@ class KeyringController extends base_controller_1.BaseController {
|
|
|
267
268
|
usedInUi: true,
|
|
268
269
|
},
|
|
269
270
|
keyrings: {
|
|
270
|
-
includeInStateLogs:
|
|
271
|
+
includeInStateLogs: false,
|
|
271
272
|
persist: false,
|
|
272
273
|
includeInDebugSnapshot: false,
|
|
273
274
|
usedInUi: true,
|
|
@@ -1270,6 +1271,7 @@ async function _KeyringController_unlockKeyrings(credentials) {
|
|
|
1270
1271
|
const { keyrings, newMetadata } = await __classPrivateFieldGet(this, _KeyringController_instances, "m", _KeyringController_restoreSerializedKeyrings).call(this, vault);
|
|
1271
1272
|
const updatedKeyrings = await __classPrivateFieldGet(this, _KeyringController_instances, "m", _KeyringController_getUpdatedKeyrings).call(this);
|
|
1272
1273
|
this.update((state) => {
|
|
1274
|
+
// @ts-expect-error The `Json` type causes the error `Type instantiation is excessively deep and possibly infinite`
|
|
1273
1275
|
state.keyrings = updatedKeyrings;
|
|
1274
1276
|
state.encryptionKey = encryptionKey;
|
|
1275
1277
|
state.encryptionSalt = __classPrivateFieldGet(this, _KeyringController_encryptionKey, "f")?.salt;
|