This repository was archived by the owner on Oct 7, 2024. It is now read-only.
9.0.0
Added
- Add support for keyring
initmethod (#163).- If a keyring has an
initmethod, it will be called automatically upon construction. It is called withawait, so it can be asynchronous.
- If a keyring has an
Changed
- BREAKING: Replace constructor option and public property
keyringTypeswithkeyringBuilders(#163).- The constructor now takes keyring builder functions rather than classes. Each builder function should return a keyring instance when called, and it must have a
typestring property set to the keyring type name. See the newly exportedkeyringBuilderFactoryfunction for an example. The builder functions must be synchronous; use aninitmethod for asynchronous initialization steps.
- The constructor now takes keyring builder functions rather than classes. Each builder function should return a keyring instance when called, and it must have a
- BREAKING:
KeyringControlleris now a named export instead of a default export (#163). - BREAKING: Update
@metamask/eth-simple-keyringfrom v4 to v5 (#171).- This keyring type is included as a default. If you are using this keyring API directly, see the
@metamask/eth-simple-keyringrelease notes for details on required changes.
- This keyring type is included as a default. If you are using this keyring API directly, see the
- BREAKING: Replace
getKeyringClassForTypemethod withgetKeyringBuilderForType(#163). - BREAKING: Update
@metamask/eth-hd-keyringto v5 (#177)- This keyring type is included as a default. If you are using this keyring API directly, see the
@metamask/eth-hd-keyringrelease notes for details on required changes.
- This keyring type is included as a default. If you are using this keyring API directly, see the
- BREAKING: Require support for ES2020 (#177, #180)
- As a result of some dependency updates made in this release, this package now requires ES2020 support. If using this package in an environment that does not support ES2020 completely, consider investigating these two dependency changes and transpiling any packages using ES2020 syntax.
- Update
@metamask/eth-sig-utilto v5 (#180) - Update minimum supported version of
@metamask/browser-passworderfrom v4.0.1 to v4.0.2 (#182) - Remove
bip39dependency (#179)
Fixed
- Fix support for asynchronous
addAccountsHD Keyring method (#176)- This method was asynchronous, but was called synchronously. Currently the method does not do anything asychronous so this should have no functional impact, but this ensures any future errors or asynchronous steps added to that method work correctly in the future.