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.
- Use
ts-bridge/[email protected]
(#118)- This new version fixes a bug with CJS re-exports.
- Uses new
keyring-api
splitted packages (#24)
- BREAKING: Add ESM build (#40)
- It's no longer possible to import files from
./dist
directly.
- It's no longer possible to import files from
- Export type
JsonRpcRequest
(#95)
- Do not lower address for non-EVM accounts during account creation (#90)
- Add proprietary license (#83)
- BREAKING: Bump
@metamask/eth-sig-util
dependency from^7.0.3
to^8.0.0
(#79)signTypedData
no longer supportnumber
for addresses, see here.
- Sanitize redirect URL (#70)
- Bump
@metamask/*
dependencies and add@lavamoat/preinstall-always-fail
(#65), (#59), (#58) - Use TypeScript 5 (#55)
- 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.
- Package name does not change (
- 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)
- 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
toNode16
(#311)
- 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
orNodeNext
as itsmoduleResolution
option.
- This fixes the issue of this package being unusable by any TypeScript project that uses
- Bump @metamask/keyring-api from 6.3.1 to 8.0.0 (#331).
- Export
KeyringSnapControllerClient
(#328).
- 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).
- 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)
- Add
accountNameSuggestion
anddisplayConfirmation
options handling for"notify:accountCreated"
(#300) - Bump @metamask/keyring-api from 6.1.1 to 6.2.1 (#304)
- Bump @metamask/snaps-* and @metamask/keyring-api (#294)
- Bump @metamask/key-tree from 9.0.0 to 9.1.0 (#293)
- 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)
- 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)
- Add logger and now log Snap requests (#254)
- 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)
- 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
andpatchUserOperation
to be synchronous (#243) - Bump @metamask/snaps-registry from 3.0.0 to 3.0.1 (#244)
- 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)
- Add
chainId
to Keyring API requests (transaction/typed message) (#231) - Enforce async request redirect URL is in the snaps 'allowedOrigins' (#228)
- 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 inconsistent signature signing (#200)
- Reject unsupported account methods (#190)
- Add methods to support ERC-4337 accounts (#180).
- 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).
- BREAKING: Remove async from
listAccounts
andgetAccountByAddress
(#148).
- Bump
@metamask/keyring-api
to 1.0.0 (#145). - Bump
semver
andword-wrap
dependencies (#144). - Bump @metamask/rpc-errors from 6.0.0 to 6.1.0 (#143).
- Add
redirectUser
callback (#136).
- Add
getAccountByAddress
method (#134).
- Bump
word-wrap
andsemver
(#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).
- Add the
getAccountsBySnapId
method (#122).
- Remove the
removeAccountsBySnapId
method (#121). - Call external function with lowercase address (#120).
- Handle approval when adding/removing account with
handleUserInput
callback (#99).
- Add method to remove all accounts given a snap ID (#116).
- Don't allow duplicate accounts to be added (#115).
- Ignore event if account was already removed (#101).
- Add
removeAccount
callback to constructor (#96).
- 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.
- Add account and snap metadata (#75).
- Rename files to be more idiomatic (#42).
- Move internal state from objects to maps (#41).
- Remove promise if
submitRequest()
throws (#43).
- BREAKING: Add
callbacks
that will be used to inject dependencies (#79, MetaMask/snaps#1725, MetaMask/metamask-extension#20786).
- Remove account from maps before calling the snap (#39).
- Remove unused
#listAccounts()
method (#35).
- Use objects in snap -> controller methods (#28).
- Fix circular call when handling
'read'
requests (#27). - Remove
saveSnapKeyring
argument fromhandleKeyringSnapMessage
(#26).
- Initial release.