Skip to content

Latest commit

 

History

History
163 lines (98 loc) · 6.33 KB

File metadata and controls

163 lines (98 loc) · 6.33 KB

Changelog

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.

Changed

  • Bump @metamask/superstruct from ^3.3.0 to ^3.4.0 (#577)

Removed

  • BREAKING: Removed object, type and exactOptional superstruct support (#580)
    • Use @metamask/superstruct instead.

Fixed

  • Do not narrow Keyring with BaseKeyring (#545)
    • We cannot use an intersection and narrow getAccounts() to use Promise<Hex[]> as a return type.
    • We now instead verify with TSD that Keyring is compatible with BaseKeyring so we get the proper signature.

Added

  • Add BaseKeyring type (#543)
    • This is the minimum interface that is used by the KeyringController to handle keyrings lifecycle.

Changed

  • Bump @metamask/utils from ^11.1.0 to ^11.11.0, (#489, #483)

Added

  • Add EthKeyring alias export for the legacy Keyring type (#404)

Added

  • Add superstruct.type support for exactOptional (#316)

Changed

  • Now supports unknown[] array for Keyring.signTypedData (#224)

Changed

  • BREAKING: The method signTransaction can 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).
  • BREAKING: Bump @ethereumjs/tx from ^4.2.0 to ^5.4.0 (#209)

Changed

  • Export isScope{Equal,EqualToAny} helpers (#227)

Added

  • Add isScopeEqual and isScopeEqualToAny helpers (#222)

Added

  • Add AccountId type (#211)

Changed

  • Use ts-bridge/cli@0.6.3 (#214)
    • This new version fixes a bug regarding some missing exports.

Fixed

  • Export Keyring and KeyringClass types from package root (#208)

Added

  • Add Keyring and KeyringClass types, (#201, #205)
    • The two types have been migrated from @metamask/utils.
    • The State generic accepted by the two types was removed, and the deserialize and serialize signatures were updated to use Json instead of State as argument and return types.

Changed

  • BREAKING: Remove definePattern (#173)
    • Has been moved to @metamask/utils@11.1.0.

Changed

  • Bump @metamask/utils from ^11.0.1 to ^11.1.0 (#167)

Added

  • Add AccountIdStruct alias (#154)

Changed

  • Add generic type in definePattern (#150)
    • It allows to use template literal type that matches the pattern.

Added

  • Add Bitcoin address helpers (#147)

Changed

  • Bump @metamask/utils from ^9.3.0 to ^11.0.1 (#134)

Changed

  • Use ts-bridge/cli@0.6.1 (#118)
    • This new version fixes a bug with CJS re-exports.
  • Initial release (#24)