Releases: MetaMask/providers
Releases · MetaMask/providers
20.0.0
Changed
- BREAKING: An
isConnected
boolean property is now expected in the result ofmetamask_getProviderState
andmetamask_chainChanged
events (#404) - BREAKING: A
networkVersion
value ofloading
received by thechainChanged
event handler is now interpreted to be null. In this case, thenetworkChanged
event emits a null value as well. (#404) - BREAKING: The disconnect event is now tied to the new
isConnected
property instead of thenetworkVersion
property. (#404) - A change in the
isUnlocked
boolean property of themetamask_getProviderState
andmetamask_accountsChanged
events (from what is in state) no longer causes theaccountsChanged
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)
19.0.0
Changed
- BREAKING:
StreamProvider
no longer accepts ajsonRpcStreamName
parameter (#400)- Previously, this parameter was used internally to create an ObjectMultiplex stream and substream for JSON-RPC communication
- Now, the consumer is responsible for creating and managing the stream multiplexing if needed
- The provider will use the provided stream connection directly without any multiplexing
- BREAKING:
MetaMaskInpageProvider
no longer accepts ajsonRpcStreamName
parameter (#400)- This change is inherited from StreamProvider, as MetaMaskInpageProvider extends StreamProvider
- Stream multiplexing should be handled before provider instantiation
initializeInpageProvider
now handles stream multiplexing internally (#400)- Creates an ObjectMultiplex instance and substream using the provided
jsonRpcStreamName
- This maintains backwards compatibility for consumers using
initializeInpageProvider
- Creates an ObjectMultiplex instance and substream using the provided
createExternalExtensionProvider
now handles stream multiplexing internally (#400)- Creates an ObjectMultiplex instance and substream for JSON-RPC communication
- This maintains backwards compatibility for consumers using
createExternalExtensionProvider
18.3.1
18.3.0
18.2.0
Added
- Add new export for
initializeInpageProvider
with legacy build system support (#391)- Previously this module could be imported from
/dist/initializeInpageProvider
, but this only worked with build systems that support theexports
field (e.g. browserify). - This new
initializeInpageProvider
export has a JavaScript redirect for older build systems, so it should work correctly in all cases.
- Previously this module could be imported from