Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Commit 12e3a20

Browse files
13.0.0 (#254)
1 parent 8699ccd commit 12e3a20

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed

CHANGELOG.md

+38-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,42 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

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))
16+
- **BREAKING**: Constructor parameter `KeyringControllerArgs` fields changed ([#247](https://github.com/MetaMask/KeyringController/pull/247)):
17+
- **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`
38+
39+
### Fixed
40+
- Fix `signTypedMessage` parameter types ([#250](https://github.com/MetaMask/KeyringController/pull/250))
41+
- 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+
945
## [12.0.1]
1046
### Fixed
1147
- 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
118154
- Validate user imported seedphrase across all bip39 wordlists ([#77](https://github.com/MetaMask/KeyringController/pull/77))
119155

120156

121-
[Unreleased]: https://github.com/MetaMask/KeyringController/compare/v12.0.1...HEAD
157+
[Unreleased]: https://github.com/MetaMask/KeyringController/compare/v13.0.0...HEAD
158+
[13.0.0]: https://github.com/MetaMask/KeyringController/compare/v12.0.1...v13.0.0
122159
[12.0.1]: https://github.com/MetaMask/KeyringController/compare/v12.0.0...v12.0.1
123160
[12.0.0]: https://github.com/MetaMask/KeyringController/compare/v11.0.0...v12.0.0
124161
[11.0.0]: https://github.com/MetaMask/KeyringController/compare/v10.0.1...v11.0.0

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/eth-keyring-controller",
3-
"version": "12.0.1",
3+
"version": "13.0.0",
44
"description": "A module for managing various keyrings of Ethereum accounts, encrypting them, and using them",
55
"keywords": [
66
"ethereum",

0 commit comments

Comments
 (0)