Releases: MetaMask/providers
Releases · MetaMask/providers
9.1.0
9.0.0
Changed
- BREAKING: Move stream functionality from
BaseProvider
to newStreamProvider
(#209)BaseProvider
is now a transport-agnostic abstract class.StreamProvider
accepts a stream and relies on MetaMask's internal JSON-RPC API for its behavior. See theStreamProvider
class for more details.MetaMaskInpageProvider
should be completely unaffected except that its prototype chain now includes a class namedAbstractStreamProvider
.
Version 8.1.1
8.1.1 RC (#172) * 8.1.1 * Update CHANGELOG.md for lint:fix Co-authored-by: github-actions <[email protected]> Co-authored-by: shanejonas <[email protected]> Co-authored-by: Erik Marks <[email protected]>
Version 8.1.0
8.1.0 RC (#165) * 8.1.0 * add changelog update for v8.1.0 * Update CHANGELOG.md * lint fix + better changelog formatting + PR links * Update CHANGELOG.md Co-authored-by: github-actions <[email protected]> Co-authored-by: shanejonas <[email protected]> Co-authored-by: Erik Marks <[email protected]>
8.0.4
8.0.3
8.0.2
8.0.1
8.0.0
Added
- Add
logger
parameter toinitializeProvider
(#116) - Add
window.web3
shim,shimWeb3
export (#113, #115)- This is to maintain
window.web3.currentProvider
once MetaMask stops injectingwindow.web3
(very soon), and to log attempts to access any properties on the shim other thancurrentProvider
. initializeWeb3
now has ashouldShimWeb3
argument, which causes the shim to be set aswindow.web3
iftrue
.
- This is to maintain
Changed
- (BREAKING) Rename
initProvider
export toinitializeProvider
(#114) - (BREAKING) Replace
ethereum.publicConfigStore
with new set of JSON-RPC notifications (#109)
Fixed
- Correctly implement
connect
anddisconnect
events (#120)- See EIP-1193 for the specification of these events.
disconnect
emits with an RPC error. Like all such errors emitted by this module, they have acode
property with anumber
value. There are currently two codes:1013
indicates that MetaMask is attempting to reestablish the connection1011
indicates that a page reload is required
- Send page metadata even if page is already loaded (#119)
- Convert
MetaMaskInpageProvider
logger
to instance variable (#118)- Previously, it was erroneously a singleton across all class instances.
- Stop emitting state change events on initialization (#117)
- Includes
accountsChanged
,chainChanged
, andnetworkChanged
. - This prevents sites that handle any of these events by reloading the page from entering into a reload loop.
- Includes
Removed
- (BREAKING) Remove
_metamask.isEnabled
and_metamask.isApproved
(#112) - (BREAKING) Remove the
chainIdChanged
event (#111) - (BREAKING) Remove
ethereum.publicConfigStore
(#109) - (BREAKING) Remove
web3.js
-related functionality (#106)- This functionality caused the page to reload if there was a
web3.js
instance atwindow.web3
, and keptweb3.eth.defaultAccount
in sync withethereum.selectedAddress
. - This functionality is replicated in @metamask/legacy-web3.
- This functionality caused the page to reload if there was a