You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 7, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+38-1
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,42 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
7
7
## [Unreleased]
8
8
9
+
## [13.0.0]
10
+
### Added
11
+
- Added `KeyringControllerPersistentState` type which includes only persistent state, an optional string property with key `vault` ([#247](https://github.com/MetaMask/KeyringController/pull/247))
12
+
- Added `KeyringObject` type for how keyrings are represented in `memStore` ([#247](https://github.com/MetaMask/KeyringController/pull/247))
13
+
14
+
### Changed
15
+
-**BREAKING**: Add types for store and fix type discrepancies ([#247](https://github.com/MetaMask/KeyringController/pull/247))
-**BREAKING**: type of `store` and `memStore` public properties changed ([#247](https://github.com/MetaMask/KeyringController/pull/247)):
18
+
-`KeyringController.store` is now an `ObservableStore<KeyringControllerPersistentState>`
19
+
-`KeyringController.memStore` is now an `ObservableStore<KeyringControllerState>`
20
+
-**BREAKING**: `updateMemStoreKeyrings` method return type changed to `Promise<void>` ([#247](https://github.com/MetaMask/KeyringController/pull/247))
21
+
-**BREAKING**: `KeyringControllerState` type changed to include only non-persistent state ([#247](https://github.com/MetaMask/KeyringController/pull/247)):
22
+
- Now `undefined` is used instead of `null` when `encryptionKey` and `encryptionSalt` are unset
23
+
-`keyrings` is now of type `KeyringObject[]` instead of `Keyring<Json>`
24
+
-`password`, `store`, `memStore` have been removed - note that in practice this change only affects types
25
+
- This changes cause the following methods also to change the return type:
26
+
-`createNewVaultAndKeychain`
27
+
-`createNewVaultAndRestore`
28
+
-`setLocked`
29
+
-`submitPassword`
30
+
-`submitEncryptionKey`
31
+
-`addNewAccount`
32
+
-`removeAccount`
33
+
-`fullUpdate`
34
+
-**BREAKING**: When constructing a simple keyring with `addNewKeyring`, the second parameter (`opts`) is now expected to be an array of private keys rather than an object with a `privateKeys` property ([#253](https://github.com/MetaMask/KeyringController/pull/253))
35
+
- Restored support for keyrings with non-object serialized state ([#253](https://github.com/MetaMask/KeyringController/pull/253))
36
+
- Narrow return type of `signTypedMessage` and encryption methods ([#249](https://github.com/MetaMask/KeyringController/pull/249))
37
+
- The methods `signTypedMessage`, `getEncryptionPublicKey`, and `decryptMessage` now return `string` rather than `Bytes`
- Restore compatibility with QR Keyring ([#252](https://github.com/MetaMask/KeyringController/pull/252))
42
+
- An empty object is no longer used as a default when deserialized state was not provided to the `addNewKeyring` method. This default empty object was breaking the QR keyring.
43
+
44
+
9
45
## [12.0.1]
10
46
### Fixed
11
47
- Improved error handling when calling `getKeyringForAccount` with empty or invalid address ([#238](https://github.com/MetaMask/KeyringController/pull/238))
@@ -118,7 +154,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
118
154
- Validate user imported seedphrase across all bip39 wordlists ([#77](https://github.com/MetaMask/KeyringController/pull/77))
0 commit comments