@metamask-previews/keyring-controller 21.0.4-preview-19ee5ff2 → 21.0.5-preview-20e2defb

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,13 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [21.0.5]
11
+
10
12
  ### Changed
11
13
 
12
14
  - Bump `@metamask/base-controller` from ^8.0.0 to ^8.0.1 ([#5722](https://github.com/MetaMask/core/pull/5722))
13
15
 
14
16
  ### Fixed
15
17
 
16
- - The vault encryption upgrade fails grecefully during login ([#5740](https://github.com/MetaMask/core/pull/5740))
18
+ - The vault encryption upgrade fails gracefully during login ([#5740](https://github.com/MetaMask/core/pull/5740))
17
19
 
18
20
  ## [21.0.4]
19
21
 
@@ -762,7 +764,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
762
764
 
763
765
  All changes listed after this point were applied to this package following the monorepo conversion.
764
766
 
765
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@21.0.4...HEAD
767
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@21.0.5...HEAD
768
+ [21.0.5]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@21.0.4...@metamask/keyring-controller@21.0.5
766
769
  [21.0.4]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@21.0.3...@metamask/keyring-controller@21.0.4
767
770
  [21.0.3]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@21.0.2...@metamask/keyring-controller@21.0.3
768
771
  [21.0.2]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@21.0.1...@metamask/keyring-controller@21.0.2
@@ -880,7 +880,7 @@ class KeyringController extends base_controller_1.BaseController {
880
880
  });
881
881
  try {
882
882
  // If there are stronger encryption params available, we
883
- // can attempt to upgrade the vault encryption params.
883
+ // can attempt to upgrade the vault.
884
884
  await __classPrivateFieldGet(this, _KeyringController_instances, "m", _KeyringController_withRollback).call(this, async () => __classPrivateFieldGet(this, _KeyringController_instances, "m", _KeyringController_upgradeVaultEncryptionParams).call(this));
885
885
  }
886
886
  catch (error) {
@@ -1440,6 +1440,7 @@ async function _KeyringController_unlockKeyrings(password, encryptionKey, encryp
1440
1440
  * @returns A promise resolving to `void`.
1441
1441
  */
1442
1442
  async function _KeyringController_upgradeVaultEncryptionParams() {
1443
+ __classPrivateFieldGet(this, _KeyringController_instances, "m", _KeyringController_assertControllerMutexIsLocked).call(this);
1443
1444
  const { vault } = this.state;
1444
1445
  if (vault &&
1445
1446
  __classPrivateFieldGet(this, _KeyringController_password, "f") &&