@metamask-previews/keyring-controller 15.0.0-preview-0e5df333 → 16.0.0-preview-4a029d8

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +21 -1
  2. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [16.0.0]
11
+
12
+ ### Added
13
+
14
+ - Added `withKeyring` method ([#4197](https://github.com/MetaMask/core/pull/4197))
15
+ - Consumers can now use `withKeyring` to atomically select a keyring by address or type and execute a callback with the it as argument.
16
+ - This method can be used instead of `getKeyringForAccount`, `getKeyringsByType` and `persistAllKeyrings`, as the vault will be updated automatically after the callback execution, or rolled back in case of errors
17
+
10
18
  ### Changed
11
19
 
12
20
  - **BREAKING**: Change various `KeyringController` methods so they no longer return the controller state ([#4199](https://github.com/MetaMask/core/pull/4199))
@@ -19,6 +27,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
19
27
  - Changed `setLocked` return type to `Promise<void>`
20
28
  - Changed `submitEncryptionKey` return type to `Promise<void>`
21
29
  - Changed `submitPassword` return type to `Promise<void>`
30
+ - Bump `@metamask/keyring-api` to `^6.0.0` ([#4193](https://github.com/MetaMask/core/pull/4193))
31
+ - Bump `@metamask/base-controller` to `^5.0.2` ([#4232](https://github.com/MetaMask/core/pull/4232))
32
+ - Bump `@metamask/message-manager` to `^8.0.2` ([#4234](https://github.com/MetaMask/core/pull/4234))
33
+
34
+ ### Fixed
35
+
36
+ - Method calls that change controller state are now atomic ([#4192](https://github.com/MetaMask/core/pull/4192))
37
+ - Each method will roll back keyring instances in case of errors
38
+ - Method calls that change controller state are now mutually exclusive ([#4182](https://github.com/MetaMask/core/pull/4182))
39
+ - Check presence of `HDKeyring` when updating the vault ([#4168](https://github.com/MetaMask/core/pull/4168))
40
+ - Update state in single call when persisting or unlocking ([#4154](https://github.com/MetaMask/core/pull/4154))
22
41
 
23
42
  ## [15.0.0]
24
43
 
@@ -421,7 +440,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
421
440
 
422
441
  All changes listed after this point were applied to this package following the monorepo conversion.
423
442
 
424
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@15.0.0...HEAD
443
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@16.0.0...HEAD
444
+ [16.0.0]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@15.0.0...@metamask/keyring-controller@16.0.0
425
445
  [15.0.0]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@14.0.1...@metamask/keyring-controller@15.0.0
426
446
  [14.0.1]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@14.0.0...@metamask/keyring-controller@14.0.1
427
447
  [14.0.0]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@13.0.0...@metamask/keyring-controller@14.0.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/keyring-controller",
3
- "version": "15.0.0-preview-0e5df333",
3
+ "version": "16.0.0-preview-4a029d8",
4
4
  "description": "Stores identities seen in the wallet and manages interactions such as signing",
5
5
  "keywords": [
6
6
  "MetaMask",
@@ -49,7 +49,7 @@
49
49
  "@metamask/eth-sig-util": "^7.0.1",
50
50
  "@metamask/eth-simple-keyring": "^6.0.1",
51
51
  "@metamask/keyring-api": "^6.0.0",
52
- "@metamask/message-manager": "^8.0.1",
52
+ "@metamask/message-manager": "^8.0.2",
53
53
  "@metamask/utils": "^8.3.0",
54
54
  "async-mutex": "^0.2.6",
55
55
  "ethereumjs-wallet": "^1.0.1",