@metamask/providers
Advanced tools
Changelog
[20.0.0]
isConnected
boolean property is now expected in the result of metamask_getProviderState
and metamask_chainChanged
events (#404)networkVersion
value of loading
received by the chainChanged
event handler is now interpreted to be null. In this case, the networkChanged
event emits a null value as well. (#404)isConnected
property instead of the networkVersion
property. (#404)isUnlocked
boolean property of the metamask_getProviderState
and metamask_accountsChanged
events (from what is in state) no longer causes the accountsChanged
event to be emitted (#405)MetaMaskInpageProvider.isUnlocked()
will always return true until the inpage to contentscript stream ends and the provider enters a permanently disconnected state (#405)Changelog
[19.0.0]
StreamProvider
no longer accepts a jsonRpcStreamName
parameter (#400)
MetaMaskInpageProvider
no longer accepts a jsonRpcStreamName
parameter (#400)
initializeInpageProvider
now handles stream multiplexing internally (#400)
jsonRpcStreamName
initializeInpageProvider
createExternalExtensionProvider
now handles stream multiplexing internally (#400)
createExternalExtensionProvider
Changelog
[18.2.0]
initializeInpageProvider
with legacy build system support (#391)
/dist/initializeInpageProvider
, but this only worked with build systems that support the exports
field (e.g. browserify).initializeInpageProvider
export has a JavaScript redirect for older build systems, so it should work correctly in all cases.