@metamask/providers
Advanced tools
Changelog
[17.1.1]
@metamask/json-rpc-engine
to ^9.0.1
(#345)@metamask/json-rpc-middleware-stream
to ^8.0.1
(#345)@metamask/rpc-errors
to ^6.3.1
(#345)@metamask/superstruct
to ^3.1.0
(#338)@metamask/utils
to ^9.0.0
(#345)@ts-bridge/cli
to ^0.2.0
(#343)
json
file imports, where an extension was appended to the file name after compilation (e.g. *.json.cjs
or *.json.mjs
).Changelog
[17.1.0]
@metamask/json-rpc-middleware-stream
from ^7.0.1
to ^8.0.0
(#327)@metamask/json-rpc-engine
from ^8.0.2
to ^9.0.0
(#328)extension-port-stream
from ^3.0.0
to ^4.1.0
(#331)@metamask/utils
from ^8.4.0
to ^8.5.0
(#329)@metamask/rpc-errors
from ^6.2.1
to ^6.3.0
(#326)Node16
or NodeNext
as its moduleResolution
option.exports
field in package.json
linked to these files. This is an anti-pattern and was rightfully flagged by the "Are the Types Wrong?" tool as "masquerading as CJS".extension-port-stream
import to ensure compatibility with bundlers such as Vite (#331)Changelog
[16.0.0]
window.ethereum.chainId
has been removed. Use the 'eth_chainId' RPC method instead.window.ethereum.networkVersion
has been removed. Use the 'net_version' RPC method instead.window.ethereum.selectedAddress
has been removed. Use the 'eth_accounts' RPC method instead.networkChanged
event has been removed. The closest equivalent is the chainChanged
event.window.ethereum.send()
no longer resolves net_version
offline (from cache).Changelog
[14.0.0]
extension-port-stream
from ^2.1.1
to ^3.0.0
readable-stream
to ^3.6.2
in resolutionsjson-rpc-middleware-stream
from ^4.2.3
to ^5.0.1
@metamask/object-multiplex
from ^1.3.0
to ^2.0.0
readable-stream@^3.6.2
readable-stream
Changelog
[13.1.0]
initializeProvider()
params object now accepts an optional providerInfo
property with a value of EIP6963ProviderInfo objecteip6963AnnounceProvider()
which supports a wallet by announcing a provider through the eip6963:announceProvider
event and re-announcing the provider whenever an eip6963:requestProvider
event is receivedeip6963RequestProvider()
which supports a dapp by dispatching an eip6963:requestProvider
event and invoking a callback for each eip6963:announceProvider
event receivedEIP6963AnnounceProviderEvent
typeEIP6963ProviderDetail
typeEIP6963ProviderInfo
typeEIP6963RequestProviderEvent
type