@metamask-previews/keyring-controller 25.1.0-preview-3d4d0d0ef → 25.1.0-preview-835c0b0

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
@@ -9,8 +9,6 @@ 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
14
12
  - Bump `@metamask/keyring-api` from `^21.0.0` to `^21.5.0` ([#7857](https://github.com/MetaMask/core/pull/7857))
15
13
  - Bump `@metamask/keyring-internal-api` from `^9.0.0` to `^10.0.0` ([#7857](https://github.com/MetaMask/core/pull/7857))
16
14
 
@@ -197,7 +197,6 @@ 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()),
201
200
  metadata,
202
201
  };
203
202
  }
@@ -268,7 +267,7 @@ class KeyringController extends base_controller_1.BaseController {
268
267
  usedInUi: true,
269
268
  },
270
269
  keyrings: {
271
- includeInStateLogs: false,
270
+ includeInStateLogs: true,
272
271
  persist: false,
273
272
  includeInDebugSnapshot: false,
274
273
  usedInUi: true,
@@ -1271,7 +1270,6 @@ async function _KeyringController_unlockKeyrings(credentials) {
1271
1270
  const { keyrings, newMetadata } = await __classPrivateFieldGet(this, _KeyringController_instances, "m", _KeyringController_restoreSerializedKeyrings).call(this, vault);
1272
1271
  const updatedKeyrings = await __classPrivateFieldGet(this, _KeyringController_instances, "m", _KeyringController_getUpdatedKeyrings).call(this);
1273
1272
  this.update((state) => {
1274
- // @ts-expect-error The `Json` type causes the error `Type instantiation is excessively deep and possibly infinite`
1275
1273
  state.keyrings = updatedKeyrings;
1276
1274
  state.encryptionKey = encryptionKey;
1277
1275
  state.encryptionSalt = __classPrivateFieldGet(this, _KeyringController_encryptionKey, "f")?.salt;