Releases: MetaMask/providers
Releases · MetaMask/providers
13.1.0
Added
- Add support for EIP-6963 (#263)
initializeProvider()
params object now accepts an optionalproviderInfo
property with a value of EIP6963ProviderInfo object- Add
eip6963AnnounceProvider()
which supports a wallet by announcing a provider through theeip6963:announceProvider
event and re-announcing the provider whenever aneip6963:requestProvider
event is received - Add
eip6963RequestProvider()
which supports a dapp by dispatching aneip6963:requestProvider
event and invoking a callback for eacheip6963:announceProvider
event received - Add
EIP6963AnnounceProviderEvent
type - Add
EIP6963ProviderDetail
type - Add
EIP6963ProviderInfo
type - Add
EIP6963RequestProviderEvent
type
13.0.0
12.0.0
11.1.2
11.1.1
11.1.0
11.0.0
Changed
- BREAKING: Minimum Node.js version 16 (#254)
- Support Flask and Beta in the external extension provider (#252)
- Bump @metamask/safe-event-emitter from 2.0.0 to 3.0.0 (#255)
Fixed
- Fix console warning about deprecated
webextension-polyfill-ts
(#249) - Prevent
accountsChanged
+eth_accounts
callback loop (#248)- If you listen to the provider
accountsChanged
event, modify the returned accounts, then calleth_accounts
, it was possible to enter an infinite loop. This was caused by the provider mistakenly thinking the accounts had changed because of the mutation performed in the event listener, triggering redundantaccountsChanged
events. This was fixed; there should be no more redundantaccountsChanged
events and no infinite loop.
- If you listen to the provider