Skip to content

23.0.0

Choose a tag to compare

@github-actions github-actions released this 19 Mar 18:15
1b8a96f

@metamask/connect-evm 0.9.0

Changed

  • Migrate metamask_accountsChanged and metamask_chainChanged subscriptions from transport.onNotification() to typed core.on()/core.off(), removing @ts-expect-error suppressions (#230)

Fixed

  • EIP1193Provider.request() now re-surfaces the original numeric RPC error code as error.code on the thrown error, matching the EIP-1193 error shape expected by dApps, wagmi, and ethers.js. Previously error.code was always undefined. (#232)

@metamask/connect-multichain 0.11.0

Changed

  • DefaultTransport now forwards all wallet notifications instead of filtering to only metamask_chainChanged and metamask_accountsChanged, matching MWPTransport behavior (#230)
  • stateChanged is now emitted via the EventEmitter so client.on('stateChanged', cb) fires correctly (#230)
  • SDKEvents type now includes explicit entries for metamask_accountsChanged, metamask_chainChanged, and stateChanged (#230)
  • Mark @react-native-async-storage/async-storage peer dependency as optional — web/Node consumers no longer pull in the React Native toolchain (#234)
  • getInfuraRpcUrls now includes Solana mainnet and devnet CAIP chain IDs in the generated RPC URL map (#235)
  • Updated infuraRpcUrls to align with Infura's currently supported networks by removing deprecated testnets (Goerli variants, Mumbai, Palm testnet, Aurora) and adding new mainnet/testnet coverage across Base, Blast, zkSync, BSC/opBNB, Scroll, Mantle, Sei, Swellchain, Unichain, Hemi, MegaETH, Monad, and Celo Sepolia (#237)

Fixed

  • RPCInvokeMethodErr now carries the original numeric RPC code from the wallet (rpcCode) and the original wallet-facing message (rpcMessage) as separate fields, so higher layers can re-surface them without losing them inside internal error formatting. (#232)
  • RequestRouter now propagates the numeric RPC error code from wallet response errors and transport exceptions into RPCInvokeMethodErr, ensuring the code is not dropped during error wrapping. (#232)
  • DefaultTransport now attaches the numeric RPC code to errors produced from window.postMessage responses, so it survives the transport boundary. (#232)

@metamask/connect-solana 0.7.0

Added

  • Add getInfuraRpcUrls({ infuraApiKey, networks }) helper to generate Solana supportedNetworks entries (mainnet/devnet) for createSolanaClient (#235)

@metamask/browser-playground 0.5.1

Changed

  • Bump workspace dependencies:
    • @metamask/connect-evm@0.9.0
    • @metamask/connect-multichain@0.11.0