Releases: MetaMask/connect-monorepo
Releases · MetaMask/connect-monorepo
Release list
27.0.0
@metamask/connect-evm 0.10.0
Changed
- Bump
@metamask/connect-multichainto^0.12.0(#261)
@metamask/connect-multichain 0.12.0
Added
- Include
analytics.remote_session_idin V2 connection metadata so the wallet can correlate dapp-side and wallet-side analytics events (#256)
@metamask/connect-solana 0.8.0
Added
- Add optional
analytics.integrationTypeparam tocreateSolanaClient()(#260)
@metamask/browser-playground 0.6.3
Changed
- Bump workspace dependencies:
- @metamask/connect-evm@0.10.0
- @metamask/connect-multichain@0.12.0
Fixed
- Fix
@metamask/connect/evmimport path to use@metamask/connect-evmdirectly (#263)
26.0.0
@metamask/browser-playground 0.6.2
Fixed
- Fix potential stale closure in
handleCheckboxChangeand unconditionaluseEffecton session change (#257)
25.0.0
@metamask/connect-evm 0.9.1
Changed
Fixed
wallet_requestPermissionsnow correctly re-prompts account selection on MWP (mobile) without requiring a full disconnect/reconnect cycle. The request forwardsforceRequest: truethrough toMWPTransport, which previously ignored it and silently returned the existing session. (#243)
@metamask/connect-multichain 0.11.1
Changed
Fixed
MWPTransport.connect()now accepts and forwards aforceRequestoption. Whentrue,onResumeSuccessskips theisSameScopesAndAccountscheck and unconditionally sendswallet_createSession, allowing consumers to re-prompt account selection on an existing MWP session. PreviouslyforceRequestwas silently ignored, causingwallet_requestPermissionsto no-op on mobile. (#243)- Fix platform detection for Hermes-based React Native apps:
isReactNative()now checksglobal.navigator.productbeforewindow.navigator.product, so modern RN environments wherewindowis undefined correctly resolve toPlatformType.ReactNativeinstead ofPlatformType.NonBrowser. This restores analytics for all React Native consumers — analytics were silently disabled because#setupAnalytics()only callsanalytics.enable()for browser andReactNativeplatforms (#238)
@metamask/connect-solana 0.7.1
Changed
- chore: align sub-package licenses with root ConsenSys 2022 license (#241)
@metamask/browser-playground 0.6.1
Added
- Add global
localhostscopes (#250)
Changed
- Bump workspace dependencies: @metamask/connect-evm@0.9.1, @metamask/connect-multichain@0.11.1
24.0.0
@metamask/browser-playground 0.6.0
Changed
- Change LegacyEVM card's
sendTransactionto have an address field and default it to the connected address (#247) - Add
localhostto wagmi's configured chains (#246) - Bump wagmi from
^2.19.2to^3.5.0and apply v3 migration changes: useuseConnectors()instead ofuseConnect().connectors,useChains()instead ofuseSwitchChain().chains, and renameuseAccounttouseConnection(#233) - Bump
@wagmi/corefrom^2.22.1to^3.4.0(#233) - Bump
@tanstack/react-queryfrom>=5.45.1to^5.90.21(#233) - Bump
@tanstack/react-query-persist-client,@tanstack/query-sync-storage-persister, and@tanstack/react-query-devtoolsfrom5.0.5to latest (^5.90.24/^5.91.3) (#233)
23.0.0
@metamask/connect-evm 0.9.0
Changed
- Migrate
metamask_accountsChangedandmetamask_chainChangedsubscriptions fromtransport.onNotification()to typedcore.on()/core.off(), removing@ts-expect-errorsuppressions (#230)
Fixed
EIP1193Provider.request()now re-surfaces the original numeric RPC error code aserror.codeon the thrown error, matching the EIP-1193 error shape expected by dApps, wagmi, and ethers.js. Previouslyerror.codewas alwaysundefined. (#232)
@metamask/connect-multichain 0.11.0
Changed
DefaultTransportnow forwards all wallet notifications instead of filtering to onlymetamask_chainChangedandmetamask_accountsChanged, matchingMWPTransportbehavior (#230)stateChangedis now emitted via theEventEmittersoclient.on('stateChanged', cb)fires correctly (#230)SDKEventstype now includes explicit entries formetamask_accountsChanged,metamask_chainChanged, andstateChanged(#230)- Mark
@react-native-async-storage/async-storagepeer dependency as optional — web/Node consumers no longer pull in the React Native toolchain (#234) getInfuraRpcUrlsnow includes Solana mainnet and devnet CAIP chain IDs in the generated RPC URL map (#235)- Updated
infuraRpcUrlsto 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
RPCInvokeMethodErrnow 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)RequestRouternow propagates the numeric RPC error code from wallet response errors and transport exceptions intoRPCInvokeMethodErr, ensuring the code is not dropped during error wrapping. (#232)DefaultTransportnow attaches the numeric RPC code to errors produced fromwindow.postMessageresponses, so it survives the transport boundary. (#232)
@metamask/connect-solana 0.7.0
Added
- Add
getInfuraRpcUrls({ infuraApiKey, networks })helper to generate SolanasupportedNetworksentries (mainnet/devnet) forcreateSolanaClient(#235)
@metamask/browser-playground 0.5.1
Changed
- Bump workspace dependencies:
- @metamask/connect-evm@0.9.0
- @metamask/connect-multichain@0.11.0
22.0.0
@metamask/analytics 0.4.0
Changed
- use merged integration types in analytics (#223)
@metamask/connect-evm 0.8.0
Changed
- BREAKING
getInfuraRpcUrlsnow accepts a single options object{ infuraApiKey, chainIds? }instead of a positionalinfuraApiKeystring. The optionalchainIdsparameter accepts hex chain IDs to filter the output (#211) - use merged integration types in analytics (#223)
Fixed
- fix: Fix react-native-playground consumption of PACKAGE_VERSION build-time constant in connect packages (#221)
@metamask/connect-multichain 0.10.0
Changed
- BREAKING
getInfuraRpcUrlsnow accepts a single options object{ infuraApiKey, caipChainIds? }instead of a positionalinfuraApiKeystring. The optionalcaipChainIdsparameter filters the output to only the specified CAIP-2 chain IDs (#211) - use merged integration types in analytics (#223)
Fixed
- fix: Fix react-native-playground consumption of PACKAGE_VERSION build-time constant in connect packages (#221)
@metamask/connect-solana 0.6.0
Fixed
- fix: Fix react-native-playground consumption of PACKAGE_VERSION build-time constant in connect packages (#221)
@metamask/browser-playground 0.5.0
Changed
- Update
getInfuraRpcUrlscalls to use new options object parameter (#211)
21.0.0
@metamask/browser-playground 0.4.2
Added
- Add
integrationType: wagmito wagmi metamask connector(#215)
20.0.0
@metamask/analytics 0.3.0
Changed
- BREAKING
MMConnectProperties.mmconnect_versionstype changed fromstringtoRecord<string, string>(#206)
@metamask/connect-evm 0.7.0
Added
- Enable specifying the integration type for analytics. Defaults to
direct. (#213) - Pass
connect-evmpackage version tocreateMultichainClientvia theversionsoption so it appears in analytics events (#206)
Fixed
- Fix an issue where
connectwould always return the default chain id regardless of other chains being specified. This also affectedconnectWithandconnectAndSign(#205)
@metamask/connect-multichain 0.9.0
Added
- Add
versionsconstructor option tocreateMultichainClientso chain-specific packages (connect-evm,connect-solana) can report their version in analytics events. Versions are merged into the singleton on each call, following the same pattern asapi.supportedNetworks. (#206)
Changed
- BREAKING
mmconnect_versionsanalytics property is now aRecord<string, string>keyed by package name instead of a plain version string (#206)
Removed
- Stop passing
sdkVersionto install and OTP modals (#212)
Fixed
- Fix a bug where wallet_sessionChanged events were failing to propagate to the
ConnectMultichaininstance when theDefaultTransportis using theWindowPostMessageTransport. This was affecting Firefox, both iOS and Android in-app browsers (#204)
@metamask/connect-solana 0.5.0
Added
- Pass
connect-solanapackage version tocreateMultichainClientvia theversionsoption so it appears in analytics events (#206)
@metamask/multichain-ui 0.4.0
Removed
- Remove SDK version label from install and OTP modals (#212)
- BREAKING Remove
sdkVersionprop frommm-install-modalandmm-otp-modalcomponents (#212)
@metamask/browser-playground 0.4.1
Added
- Add Connect button that calls legacy EVM
connectAndSignmethod (#205)
Changed
- Bump workspace dependencies:
- @metamask/connect-evm@0.7.0
- @metamask/connect-multichain@0.9.0
19.0.0
@metamask/connect-evm 0.6.0
Added
- Bump
@metamask/connect-multichainto^0.8.0(#203)
@metamask/connect-multichain 0.8.0
Added
- Enable
ConnectMultichainto automatically handlewallet_sessionChangedevents when MetaMask extension is detected (Desktop Chrome/Firefox, or Mobile In-App Browser) andpreferExtension: truewithout needing the user to explicitly connect viaConnectMultichain.connect()(#198)
Changed
- Bump
@metamask/mobile-wallet-protocol-coreto^0.4.0(#201) - Bump
@metamask/mobile-wallet-protocol-dapp-clientto^0.3.0(#201)
@metamask/connect-solana 0.4.0
Changed
- Bump
@metamask/connect-multichainto^0.8.0(#203)
@metamask/browser-playground 0.4.0
Added
- Add
Connect (window.ethereum)button (#198)
Changed
- Update wagmi MetaMask connector (#202)
18.0.0
@metamask/connect-multichain 0.7.0
Changed
- Correct README documentation across
connect-solana,connect-evm, andconnect-multichainto match actual API behaviour. (#194) - Redact logs (#191)
- Pin eciesjs to exact version 0.4.17 (#188)
Fixed
- Fix uncaught exception in
parseWalletErrorwhen the wallet returns error codes outside the EIP-1193 provider range (1000–4999), such as standard JSON-RPC codes like-32603(Internal error). This prevented Solana request rejections from being handled gracefully. (#189)
@metamask/connect-solana 0.3.0
Changed
- Correct README documentation across
connect-solana,connect-evm, andconnect-multichainto match actual API behaviour. (#194) - Add missing changelogs from Release/17.0.0 (#186)
Fixed
- Explicitly disconnect only Solana scopes when calling
SolanaClient.disconnect(). Previously calling this function would result in the wallet connection being terminated entirely even if other ecosystems (evm, bitcoin, etc) were still connected (#193)
@metamask/browser-playground 0.3.1
Changed
- Bump workspace dependencies:
- @metamask/connect-multichain@0.7.0
@metamask/react-native-playground 0.1.3
Changed
- Bump workspace dependencies:
- @metamask/connect-multichain@0.7.0
Fixed
- Fix malformed reported dapp URL causing issues in the wallet (#187)