All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Bump
@metamask/superstructfrom^3.3.0to^3.4.0(#577)
- BREAKING: Removed
object,typeandexactOptionalsuperstruct support (#580)- Use
@metamask/superstructinstead.
- Use
- Do not narrow
KeyringwithBaseKeyring(#545)- We cannot use an intersection and narrow
getAccounts()to usePromise<Hex[]>as a return type. - We now instead verify with TSD that
Keyringis compatible withBaseKeyringso we get the proper signature.
- We cannot use an intersection and narrow
- Add
BaseKeyringtype (#543)- This is the minimum interface that is used by the
KeyringControllerto handle keyrings lifecycle.
- This is the minimum interface that is used by the
- Add
EthKeyringalias export for the legacyKeyringtype (#404)
- Add
superstruct.typesupport forexactOptional(#316)
- Now supports
unknown[]array forKeyring.signTypedData(#224)
- BREAKING: The method
signTransactioncan now returns various type of transactions (#209)- Initially was supporting:
Transaction | AccessListEIP2930Transaction | FeeMarketEIP1559Transaction(types from@ethereumjs/tx). - Now also supports
BlobEIP4844Transaction | EOACodeEIP7702Transaction(types from@ethereumjs/tx).
- Initially was supporting:
- BREAKING: Bump
@ethereumjs/txfrom^4.2.0to^5.4.0(#209)
- Export
isScope{Equal,EqualToAny}helpers (#227)
- Add
isScopeEqualandisScopeEqualToAnyhelpers (#222)
- Add
AccountIdtype (#211)
- Use
ts-bridge/cli@0.6.3(#214)- This new version fixes a bug regarding some missing exports.
- Export
KeyringandKeyringClasstypes from package root (#208)
- Add
KeyringandKeyringClasstypes, (#201, #205)- The two types have been migrated from
@metamask/utils. - The
Stategeneric accepted by the two types was removed, and thedeserializeandserializesignatures were updated to useJsoninstead ofStateas argument and return types.
- The two types have been migrated from
- BREAKING: Remove
definePattern(#173)- Has been moved to
@metamask/utils@11.1.0.
- Has been moved to
- Bump
@metamask/utilsfrom^11.0.1to^11.1.0(#167)
- Add
AccountIdStructalias (#154)
- Add generic type in
definePattern(#150)- It allows to use template literal type that matches the pattern.
- Add Bitcoin address helpers (#147)
- Bump
@metamask/utilsfrom^9.3.0to^11.0.1(#134)