Releases: MetaMask/providers
Releases · MetaMask/providers
22.1.1
Changed
- Update
StreamProvider.initializeto callmetamask_getProviderStatewithisInitializingStreamProvider: true(#422)- In implementing
metamask_getProviderState, the extension makes a request for the network version; this parameter allows us to opt-out of that extra request on UI initialization.
- In implementing
22.1.0
22.0.1
22.0.0
21.0.0
Changed
- BREAKING:
initializeProvider()no longer accepts thejsonRpcStreamNameoption param. (#410)- This helper no longers instantiates a
jsonRpcStreamNamenamed substream from theconnectionStreamDuplex stream option param. - Callers of
initializeProvider()should now instantiate their ownmetamask-providernamed substream and pass it in as the value forconnectionStream.
- This helper no longers instantiates a
20.0.0
Changed
- BREAKING: An
isConnectedboolean property is now expected in the result ofmetamask_getProviderStateandmetamask_chainChangedevents (#404) - BREAKING: A
networkVersionvalue ofloadingreceived by thechainChangedevent handler is now interpreted to be null. In this case, thenetworkChangedevent emits a null value as well. (#404) - BREAKING: The disconnect event is now tied to the new
isConnectedproperty instead of thenetworkVersionproperty. (#404) - A change in the
isUnlockedboolean property of themetamask_getProviderStateandmetamask_accountsChangedevents (from what is in state) no longer causes theaccountsChangedevent 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:
StreamProviderno longer accepts ajsonRpcStreamNameparameter (#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:
MetaMaskInpageProviderno longer accepts ajsonRpcStreamNameparameter (#400)- This change is inherited from StreamProvider, as MetaMaskInpageProvider extends StreamProvider
- Stream multiplexing should be handled before provider instantiation
initializeInpageProvidernow 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
createExternalExtensionProvidernow 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
initializeInpageProviderwith legacy build system support (#391)- Previously this module could be imported from
/dist/initializeInpageProvider, but this only worked with build systems that support theexportsfield (e.g. browserify). - This new
initializeInpageProviderexport has a JavaScript redirect for older build systems, so it should work correctly in all cases.
- Previously this module could be imported from