This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
Releases: MetaMask/KeyringController
Releases · MetaMask/KeyringController
17.0.1
17.0.0
Changed
16.0.0
Changed
- BREAKING: Bump
@metamask/obs-store
from^8.1.0
to^9.0.0
(#306)- The
store
andmemStore
properties now expose streams confirming toreadable-stream@^3.6.2
- The
- BREAKING: Replace
GenericEncryptor.updateVault
withGenericEncryptor.isVaultUpdated
(#310)) - Bump
@metamask/browser-passworder
from^4.2.0
to^4.3.0
(#310 #311)
Fixed
- Prefer cached
encryptionKey
over password when possible (#307)
v15.1.0
Added
- Added optional
isVaultUpdated
property toGenericEncryptor
type (#312)
Changed
- Bump
@metamask/browser-passworder
to^4.3.0
(#312)
Removed
- Removed
updateVault
optional property fromGenericEncryptor
type (#312)
Fixed
- Improved encryption performance when the controller is constructed with
cacheEncryptionKey: true
(#312)
15.0.0
Changed
- BREAKING Removed
encryptor
class variable (#293) - BREAKING Removed
cacheEncryptionKey
class variable (#293) - BREAKING Changed
encryptor
constructor option property type toGenericEncryptor | ExportableKeyEncryptor | undefined
(#293)- When the controller is instantiated with
cacheEncryptionKey = true
, theencryptor
type is restricted toExportableKeyEncryptor | undefined
- When the controller is instantiated with
14.0.1
14.0.0
13.0.1
13.0.0
Added
- Added
KeyringControllerPersistentState
type which includes only persistent state, an optional string property with keyvault
(#247) - Added
KeyringObject
type for how keyrings are represented inmemStore
(#247)
Changed
- BREAKING: Add types for store and fix type discrepancies (#247)
- BREAKING: Constructor parameter
KeyringControllerArgs
fields changed (#247): - BREAKING: type of
store
andmemStore
public properties changed (#247):KeyringController.store
is now anObservableStore<KeyringControllerPersistentState>
KeyringController.memStore
is now anObservableStore<KeyringControllerState>
- BREAKING:
updateMemStoreKeyrings
method return type changed toPromise<void>
(#247) - BREAKING:
KeyringControllerState
type changed to include only non-persistent state (#247):- Now
undefined
is used instead ofnull
whenencryptionKey
andencryptionSalt
are unset keyrings
is now of typeKeyringObject[]
instead ofKeyring<Json>
password
,store
,memStore
have been removed - note that in practice this change only affects types- This changes cause the following methods also to change the return type:
createNewVaultAndKeychain
createNewVaultAndRestore
setLocked
submitPassword
submitEncryptionKey
addNewAccount
removeAccount
fullUpdate
- Now
- 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 aprivateKeys
property (#253) - Restored support for keyrings with non-object serialized state (#253)
- Narrow return type of
signTypedMessage
and encryption methods (#249)- The methods
signTypedMessage
,getEncryptionPublicKey
, anddecryptMessage
now returnstring
rather thanBytes
- The methods