Skip to content

9.0.0

Choose a tag to compare

@github-actions github-actions released this 22 Jan 13:55
34bbe5b

@metamask/connect-evm 0.2.0

Added

  • Add display_uri event support for custom QR code UI implementations (#130)
    • display_uri event on EIP1193Provider emitted when QR code link is available
    • displayUri callback in EventHandlers for event-based subscriptions
    • Forwarded from @metamask/connect-multichain core to EIP-1193 provider layer
  • Add mobile.preferredOpenLink option support for React Native deeplink handling in wagmi connector (#118)
    • Allows React Native apps to use Linking.openURL() instead of window.location.href for opening MetaMask deeplinks
    • Required for wagmi connector usage in React Native environments
  • Add legacy compatibility methods to EIP1193Provider for broader ecosystem compatibility (#102)
    • chainId getter (alias for selectedChainId)
    • sendAsync() for callback/promise-based JSON-RPC requests
    • send() for callback-based JSON-RPC requests

Changed

  • BREAKING Rename createMetamaskConnectEVM to createEVMClient for a cleaner naming convention (#114)

Removed

  • Revert: Fix local state not correctly being reset when establishing a new connection when there is an existing active session (#119)

Fixed

  • Fix selected chainId incorrectly reverting to Ethereum Mainnet after page refresh by caching the selected chainId and retrieving it from storage instead of assuming the first permitted chain is selected (#113)
  • Update #attemptSessionRecovery() to check to state before attempting recovery (#107)
  • Bind all public methods in EIP1193Provider constructor to ensure stable this context when methods are extracted or passed as callbacks (#102)

@metamask/connect-multichain 0.5.0

Added

  • Add display_uri event emission for QR code links to support custom UI implementations (#130)
    • Emitted when QR code link is generated during connection
    • Emitted when QR code is regenerated on expiration
    • Emitted for deeplink connections on mobile web
  • Add onDisplayUri callback to InstallWidgetProps for notifying when QR codes are generated/regenerated (#130)
  • Add headless mode support that emits display_uri without rendering modal UI (#130)
  • Add sessionProperties parameter to connect() method for passing custom session configuration to wallets(#80)
  • Introduce MultichainApiClientWrapperTransport to provide the provider interface before connection is established(#80)

Changed

  • BREAKING Rename state property to status on MultichainCore for improved clarity (#125)
  • BREAKING Rename createMetamaskConnect to createMultichainClient for a cleaner naming convention (#114)
  • Provider is now always available via sdk.provider regardless of connection state (wrapper handles disconnected state internally)(#80)

Fixed

  • Fix wallet_sessionChanged events subsequent to the initial connection not being persisted (#100)
  • Fix hanging when attempting to resume a previous connection initialization in which the wallet does not send any response at all (#103)