[Snyk] Upgrade @metamask/providers from 10.2.1 to 16.1.0 #19
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 was automatically created by Snyk using the credentials of a real user.
![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)
Snyk has created this PR to upgrade @metamask/providers from 10.2.1 to 16.1.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 13 versions ahead of your current version.
The recommended version was released on a month ago.
Release notes
Package name: @metamask/providers
Added
Removed
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 thechainChanged
event.window.ethereum.send()
no longer resolvesnet_version
offline (from cache).Changed
Added
dist
folder directly, with the exception of./dist/StreamProvider
Changed
RequestArguments
andConsoleLike
types (#302)Fixed
null
params to underlying provider (#292)Fixed
undefined
params to underlying provider (#290)Changed
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
Added
initializeProvider()
params object now accepts an optionalproviderInfo
property with a value of EIP6963ProviderInfo objecteip6963AnnounceProvider()
which supports a wallet by announcing a provider through theeip6963:announceProvider
event and re-announcing the provider whenever aneip6963:requestProvider
event is receivedeip6963RequestProvider()
which supports a dapp by dispatching aneip6963:requestProvider
event and invoking a callback for eacheip6963:announceProvider
event receivedEIP6963AnnounceProviderEvent
typeEIP6963ProviderDetail
typeEIP6963ProviderInfo
typeEIP6963RequestProviderEvent
typeChanged
chainId
,networkVersion
, andselectedAddress
to be read-only (#280)chainId
,networkVersion
, andselectedAddress
(#280)pump
(#281)Changed
eth-rpc-errors
@^4.0.2
with@ metamask/rpc-errors
@6.0.0
(#277)json-rpc-engine
@^6.1.0
with@ metamask/json-rpc-engine
@7.1.1
(#277)@ metamask/utils
from^6.2.0
to^8.1.0
(#277)Changed
extension-port-stream
to^2.1.1
(#273)Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: