Update dependency @metamask/providers to v22#61
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
8.1.1→22.1.1Release Notes
MetaMask/providers (@metamask/providers)
v22.1.1Compare Source
Changed
StreamProvider.initializeto callmetamask_getProviderStatewithisInitializingStreamProvider: true(#422)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.v22.1.0Compare Source
Changed
shouldAnnounceCaip294flag toinitializeProvideroptions (defaulted to true), so instead of theproviderInfo.rdnsvalue determining whether or not to announce the caip-294 target, the caller ofinitializeProvidercan directly control this (#419)v22.0.1Compare Source
Fixed
v22.0.0Compare Source
Changed
initializeProviderannounces the extensionId, when available, via acaip-348target on in the newtargetsproperty of the CAIP-294 wallet announcement event instead of the previousextensionIdproperty (#413)v21.0.0Compare Source
Changed
initializeProvider()no longer accepts thejsonRpcStreamNameoption param. (#410)jsonRpcStreamNamenamed substream from theconnectionStreamDuplex stream option param.initializeProvider()should now instantiate their ownmetamask-providernamed substream and pass it in as the value forconnectionStream.v20.0.0Compare Source
Changed
isConnectedboolean property is now expected in the result ofmetamask_getProviderStateandmetamask_chainChangedevents (#404)networkVersionvalue ofloadingreceived by thechainChangedevent handler is now interpreted to be null. In this case, thenetworkChangedevent emits a null value as well. (#404)isConnectedproperty instead of thenetworkVersionproperty. (#404)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)v19.0.0Compare Source
Changed
StreamProviderno longer accepts ajsonRpcStreamNameparameter (#400)MetaMaskInpageProviderno longer accepts ajsonRpcStreamNameparameter (#400)initializeInpageProvidernow handles stream multiplexing internally (#400)jsonRpcStreamNameinitializeInpageProvidercreateExternalExtensionProvidernow handles stream multiplexing internally (#400)createExternalExtensionProviderv18.3.1Compare Source
Changed
@metamask/json-rpc-enginefrom^10.0.1to^10.0.2(#397)@metamask/json-rpc-middleware-streamfrom^8.0.5to^8.0.6(#397)@metamask/rpc-errorsfrom^7.0.1to^7.0.2(#397)@metamask/utilsfrom^10.0.0to^11.0.1(#397)v18.3.0Compare Source
Added
v18.2.0Compare Source
Added
initializeInpageProviderwith legacy build system support (#391)/dist/initializeInpageProvider, but this only worked with build systems that support theexportsfield (e.g. browserify).initializeInpageProviderexport has a JavaScript redirect for older build systems, so it should work correctly in all cases.v18.1.2Compare Source
Fixed
jsonRpcStreamNameforinitializeInpageProvider(#390)v18.1.1Compare Source
Changed
v18.1.0Compare Source
Added
Fixed
v18.0.0Compare Source
Changed
@metamask/json-rpc-enginefrom^9.0.1to^10.0.0(#378)@metamask/rpc-errorsfrom^6.4.0to^7.0.0(#373)^2.0.0to^2.1.0(#375)^9.2.1to^9.3.0(#370)v17.2.1Compare Source
Fixed
createExternalExtensionProvider(#318, #368)v17.2.0Compare Source
Changed
Removed
window.ethereum.chainId,window.ethereum.networkVersion, andwindow.ethereum.selectedAddress(#360)v17.1.2Compare Source
Added
@metamask/providers/stream-providerexport (#351)@metamask/providers/dist/StreamProviderexport. It still exists for backwards compatibility, but will be removed in a future major release.Changed
@metamask/utilsfrom9.0.0to9.1.0(#348)v17.1.1Compare Source
Changed
@metamask/json-rpc-engineto^9.0.1(#345)@metamask/json-rpc-middleware-streamto^8.0.1(#345)@metamask/rpc-errorsto^6.3.1(#345)@metamask/superstructto^3.1.0(#338)@metamask/utilsto^9.0.0(#345)Fixed
@ts-bridge/clito^0.2.0(#343)jsonfile imports, where an extension was appended to the file name after compilation (e.g.*.json.cjsor*.json.mjs).v17.1.0Compare Source
Changed
@metamask/json-rpc-middleware-streamfrom^7.0.1to^8.0.0(#327)@metamask/json-rpc-enginefrom^8.0.2to^9.0.0(#328)extension-port-streamfrom^3.0.0to^4.1.0(#331)@metamask/utilsfrom^8.4.0to^8.5.0(#329)@metamask/rpc-errorsfrom^6.2.1to^6.3.0(#326)Fixed
Node16orNodeNextas itsmoduleResolutionoption.exportsfield inpackage.jsonlinked 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-streamimport to ensure compatibility with bundlers such as Vite (#331)v17.0.0Compare Source
Changed
errortowarn(#323)Fixed
v16.1.0Compare Source
Added
v16.0.0Compare Source
Removed
window.ethereum.chainIdhas been removed. Use the 'eth_chainId' RPC method instead.window.ethereum.networkVersionhas been removed. Use the 'net_version' RPC method instead.window.ethereum.selectedAddresshas been removed. Use the 'eth_accounts' RPC method instead.networkChangedevent has been removed. The closest equivalent is thechainChangedevent.window.ethereum.send()no longer resolvesnet_versionoffline (from cache).v15.0.0Compare Source
Added
distfolder directly, with the exception of./dist/StreamProviderChanged
RequestArgumentsandConsoleLiketypes (#302)v14.0.2Compare Source
Fixed
nullparams to underlying provider (#292)v14.0.1Compare Source
Fixed
undefinedparams to underlying provider (#290)v14.0.0Compare Source
Changed
extension-port-streamfrom^2.1.1to^3.0.0readable-streamto^3.6.2in resolutionsjson-rpc-middleware-streamfrom^4.2.3to^5.0.1@metamask/object-multiplexfrom^1.3.0to^2.0.0readable-stream@^3.6.2readable-streamv13.1.0Compare Source
Added
initializeProvider()params object now accepts an optionalproviderInfoproperty with a value of EIP6963ProviderInfo objecteip6963AnnounceProvider()which supports a wallet by announcing a provider through theeip6963:announceProviderevent and re-announcing the provider whenever aneip6963:requestProviderevent is receivedeip6963RequestProvider()which supports a dapp by dispatching aneip6963:requestProviderevent and invoking a callback for eacheip6963:announceProviderevent receivedEIP6963AnnounceProviderEventtypeEIP6963ProviderDetailtypeEIP6963ProviderInfotypeEIP6963RequestProviderEventtypev13.0.0Compare Source
Changed
chainId,networkVersion, andselectedAddressto be read-only (#280)chainId,networkVersion, andselectedAddress(#280)pump(#281)v12.0.0Compare Source
Changed
eth-rpc-errors@^4.0.2with@metamask/rpc-errors@6.0.0(#277)json-rpc-engine@^6.1.0with@metamask/json-rpc-engine@7.1.1(#277)@metamask/utilsfrom^6.2.0to^8.1.0(#277)v11.1.2Compare Source
Changed
extension-port-streamto^2.1.1(#273)v11.1.1Compare Source
Changed
fast-deep-equal(#258)v11.1.0Compare Source
Added
wallet_watchAssetwith ERC721 and ERC1155 token types, that support is currently considered experimental (#264)v11.0.0Compare Source
Changed
Fixed
webextension-polyfill-ts(#249)accountsChanged+eth_accountscallback loop (#248)accountsChangedevent, 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 redundantaccountsChangedevents. This was fixed; there should be no more redundantaccountsChangedevents and no infinite loop.v10.2.1Compare Source
Changed
json-rpc-middleware-stream(#234)v10.2.0Compare Source
Changed
json-rpc-middleware-stream(#230)v10.1.0Compare Source
Changed
json-rpc-middleware-stream(#228)v10.0.0Compare Source
Changed
METAMASK_EXTENSION_STREAM_CONNECTis received (#223)v9.1.0Compare Source
Added
v9.0.0Compare Source
Changed
StreamProviderno longer accepts ajsonRpcStreamNameparameter (#400)MetaMaskInpageProviderno longer accepts ajsonRpcStreamNameparameter (#400)initializeInpageProvidernow handles stream multiplexing internally (#400)jsonRpcStreamNameinitializeInpageProvidercreateExternalExtensionProvidernow handles stream multiplexing internally (#400)createExternalExtensionProviderConfiguration
📅 Schedule: (in timezone America/Buenos_Aires)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.