Skip to content

Latest commit

 

History

History
425 lines (282 loc) · 22.3 KB

CHANGELOG.md

File metadata and controls

425 lines (282 loc) · 22.3 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

  • Use ts-bridge/[email protected] (#118)
    • This new version fixes a bug with CJS re-exports.
  • Uses new keyring-api splitted packages (#24)

Added

  • BREAKING: Add ESM build (#40)
    • It's no longer possible to import files from ./dist directly.
  • Export type JsonRpcRequest (#95)

Fixed

  • Do not lower address for non-EVM accounts during account creation (#90)

Changed

  • Add proprietary license (#83)
  • BREAKING: Bump @metamask/eth-sig-util dependency from ^7.0.3 to ^8.0.0 (#79)
    • signTypedData no longer support number for addresses, see here.

Added

  • Sanitize redirect URL (#70)

Changed

  • Bump @metamask/* dependencies and add @lavamoat/preinstall-always-fail (#65), (#59), (#58)
  • Use TypeScript 5 (#55)

Changed

  • Bump sinon and @types/sinon to latest versions (#51)
  • Add syncpack and sync dependencies (#53)

Changed

  • Bump @metamask/* and @lavamoat/* dependencies (#46)
  • Move deepmerge to devDependencies (#44)

Changed

  • Convert to monorepo
    • Package name does not change (@metamask/eth-snap-keyring) and sources have been moved to: packages/keyring-snap-bridge.
    • You can find all the changes here.

Changed

  • Bump @metamask/snaps-controllers from ^9.3.0 to ^9.6.0 (#372, #389)
  • Bump @metamask/snaps-sdk from ^6.1.0 to ^6.4.0 (#389)
  • Bump @metamask/utils from ^9.1.0 to ^9.2.1 (#385)
  • Bump @metamask/keyring-api from ^8.0.1 to ^8.1.0 (#374, #376)

Changed

  • Bump @metamask/eth-sig-util from ^7.0.1 to ^7.0.3 (#311)
  • Bump @metamask/keyring-api from ^8.0.0 to ^8.0.1 (#311)
  • Bump @metamask/snaps-controllers from ^8.1.1 to ^9.3.0 (#311, #363)
  • Bump @metamask/snaps-sdk from ^4.2.0 to ^6.1.0 (#311, #363)
  • Bump @metamask/snaps-utils from ^7.4.0 to ^7.8.0 (#311, #363)
  • Bump @metamask/utils from ^8.4.0 to ^9.1.0 (#311)
  • Set tsconfig options module, moduleResolution to Node16 (#311)

Fixed

  • Replace superstruct with ESM-compatible @metamask/superstruct ^3.1.0 (#311)
    • This fixes the issue of this package being unusable by any TypeScript project that uses Node16 or NodeNext as its moduleResolution option.

Changed

  • Bump @metamask/keyring-api from 6.3.1 to 8.0.0 (#331).

Added

  • Export KeyringSnapControllerClient (#328).

Changed

  • Bump @metamask/snaps-utils from 7.4.1 to 7.5.0 (#326).
  • Bump @metamask/snaps-controllers from 8.3.1 to 8.4.0 (#325).
  • Bump @metamask/snaps-sdk from 4.4.1 to 4.4.2 (#327).
  • Bump @metamask/rpc-errors from 6.2.1 to 6.3.0 (#322).
  • Bump @metamask/snaps-controllers from 8.2.0 to 8.3.1 (#321).
  • Bump @metamask/snaps-sdk from 4.3.0 to 4.4.1 (#314).
  • Bump @metamask/permission-controller from 9.1.0 to 9.1.1 (#316).
  • Bump @metamask/snaps-utils from 7.4.0 to 7.4.1 (#319).
  • Bump @metamask/keyring-api from 6.3.1 to 6.4.0 (#315).
  • Bump @metamask/json-rpc-middleware-stream from 7.0.1 to 7.0.2 (#317).
  • Bump @metamask/phishing-controller from 9.0.3 to 9.0.4 (#318).
  • Bump @metamask/snaps-rpc-methods from 9.1.0 to 9.1.2 (#320).
  • Bump @lavamoat/allow-scripts@^2.3.1->^3.0.4 (#296).
  • Bump @metamask/key-tree from 9.1.0 to 9.1.1 (#298).
  • Bump @metamask/phishing-controller from 9.0.2 to 9.0.3 (#302).
  • Bump @metamask/json-rpc-engine from 8.0.1 to 8.0.2 (#291).
  • Bump @metamask/snaps-controllers from 8.1.1 to 8.2.0 (#307).

Changed

  • Fixed 4337 methods enum (#312)
  • Bump @metamask/post-message-stream from 8.0.0 to 8.1.0 (#297)
  • Bump @metamask/permission-controller from 9.0.2 to 9.1.0 (#306)
  • Bump @metamask/snaps-sdk from 4.2.0 to 4.3.0 (#308)

Added

  • Add accountNameSuggestion and displayConfirmation options handling for "notify:accountCreated" (#300)
  • Bump @metamask/keyring-api from 6.1.1 to 6.2.1 (#304)

Changed

  • Bump @metamask/snaps-* and @metamask/keyring-api (#294)
  • Bump @metamask/key-tree from 9.0.0 to 9.1.0 (#293)

Changed

  • Bump @metamask/keyring-api to version 6.1.0 and introduce btc account types (#285)
  • Bump @metamask/phishing-controller from 9.0.1 to 9.0.2 (#279)
  • Bump @metamask/base-controller from 5.0.1 to 5.0.2 (#280)
  • Bump @metamask/eth-sig-util from 7.0.1 to 7.0.2 (#281)
  • Bump @metamask/approval-controller from 6.0.1 to 6.0.2 (#282)
  • Bump @metamask/providers from 16.0.0 to 16.1.0 (#283)
  • Bump @metamask/snaps-controllers from 7.0.1 to 8.0.0 (#278)
  • Bump @metamask/snaps-utils from 7.1.0 to 7.2.0 (#277)

Changed

  • BREAKING: Bump @metamask/keyring-api to version 6.0.0 (#275)
  • Bump @metamask/snaps-controllers from 6.0.3 to 7.0.1 and @metamask/snaps-sdk 3.1.1 to 4.0.1 (#272)
  • Bump @metamask/snaps-utils from 7.0.4 to 7.1.0 (#268)
  • Bump @metamask/controller-utils from 9.0.2 to 9.1.0 (#270)
  • Bump @metamask/snaps-controllers from 6.0.3 to 6.0.4 (#266)
  • Bump @metamask/snaps-registry from 3.0.1 to 3.1.0 (#265)
  • Bump @metamask/snaps-rpc-methods from 7.0.1 to 7.0.2 (#264)
  • Bump @metamask/snaps-utils from 7.0.3 to 7.0.4 (#263)
  • Bump @metamask/snaps-sdk from 3.1.1 to 3.2.0 (#262)

Added

  • Add logger and now log Snap requests (#254)

Changed

  • BREAKING: Add KeyringExecutionContext to user ops methods (#253)
  • Bump @metamask/utils from 8.3.0 to 8.4.0 (#260) (#256)
  • Bump @metamask/keyring-api from 5.0.0 to 5.1.0 (#259)
  • Bump @metamask/keyring-api from 4.0.2 to 5.0.0 (#255)

Changed

  • Bump @metamask/safe-event-emitter from 3.1.0 to 3.1.1 (#251)
  • Bump dependencies (#246)
  • Bump @metamask/safe-event-emitter from 3.0.0 to 3.1.0 (#245)
  • Fix enforcing responses of prepareUserOperation and patchUserOperation to be synchronous (#243)
  • Bump @metamask/snaps-registry from 3.0.0 to 3.0.1 (#244)

Changed

  • Bump @metamask dependencies (#236)
  • Extract logic in 'submitRequest' (#232)
  • Bump @metamask/controller-utils from 8.0.3 to 8.0.4 (#233)
  • Bump @metamask/json-rpc-engine from 7.3.2 to 7.3.3 (#234)
  • Bump @metamask/approval-controller from 5.1.2 to 5.1.3 (#235)
  • Bump update Snap and dev dependencies (#230)
  • Bump @metamask/rpc-errors from 6.2.0 to 6.2.1 (#223)
  • Bump @metamask/snaps-utils from 6.1.0 to 7.0.0 (#224)
  • Bump @metamask/rpc-errors from 6.1.0 to 6.2.0 (#219)
  • Bump ip from 2.0.0 to 2.0.1 (#218)

Fixed

  • Add chainId to Keyring API requests (transaction/typed message) (#231)
  • Enforce async request redirect URL is in the snaps 'allowedOrigins' (#228)

Changed

  • Bump dependencies (#220)
    • @metamask/snaps-controllers from ^4.1.0 to ^5.0.1
    • @metamask/snaps-sdk from ^1.4.0 to ^2.1.0
    • @metamask/snaps-utils from ^5.2.0 to ^6.1.0
    • @metamask/utils from ^8.1.0 to ^8.3.0
    • @metamask/keyring-api from ^2.0.0 to ^4.0.0

Fixed

  • Fixed inconsistent signature signing (#200)

Fixed

  • Reject unsupported account methods (#190)

Added

  • Add methods to support ERC-4337 accounts (#180).

Changed

  • Use a snapId-indexed map (#172).
  • Update CODEOWNERS and run CI on merge queues (#165).
  • Bump min Node version to 18.18 and use LTS for dev (#183).

Changed

  • BREAKING: Remove async from listAccounts and getAccountByAddress (#148).

Changed

  • Bump @metamask/keyring-api to 1.0.0 (#145).
  • Bump semver and word-wrap dependencies (#144).
  • Bump @metamask/rpc-errors from 6.0.0 to 6.1.0 (#143).

Added

  • Add redirectUser callback (#136).

Added

  • Add getAccountByAddress method (#134).

Changed

  • Bump word-wrap and semver (#140).
  • Bump @metamask/scure-bip39 from 2.1.0 to 2.1.1 (#133).
  • Bump postcss from 8.4.20 to 8.4.31 (#137).
  • Bump @metamask dependencies (#139).

Added

  • Add the getAccountsBySnapId method (#122).

Fixed

  • Remove the removeAccountsBySnapId method (#121).
  • Call external function with lowercase address (#120).

Changed

  • Handle approval when adding/removing account with handleUserInput callback (#99).

Added

  • Add method to remove all accounts given a snap ID (#116).

Fixed

  • Don't allow duplicate accounts to be added (#115).
  • Ignore event if account was already removed (#101).

Changed

  • Add removeAccount callback to constructor (#96).

Changed

  • Add callbacks argument to constructor (#82).
  • Increase minimum Node.js version to 16 (default to 18) (#83).
  • Migrate to the new keyring-api (#78).
  • Upgrade dependencies.

Changed

  • Add account and snap metadata (#75).
  • Rename files to be more idiomatic (#42).
  • Move internal state from objects to maps (#41).

Fixed

  • Remove promise if submitRequest() throws (#43).

Changed

Fixed

  • Remove account from maps before calling the snap (#39).

Changed

  • Remove unused #listAccounts() method (#35).

Fixed

  • Sync all accounts on snap notificaiton (#36).
  • Don't sync accounts twice on deletion (#32).

Changed

  • Use objects in snap -> controller methods (#28).
  • Fix circular call when handling 'read' requests (#27).
  • Remove saveSnapKeyring argument from handleKeyringSnapMessage (#26).

Added

  • Initial release.