Releases: WalletConnect/walletconnect-monorepo
Releases · WalletConnect/walletconnect-monorepo
@walletconnect/utils@2.23.9
Patch Changes
-
#7205
bb4869fThanks @ganchoradkov! - fix: replace Node.js Buffer with browser-safe alternatives to fix "Buffer is not defined" in browser environments- Replace
Buffer.from/Buffer.concatwithUint8Array,btoa/atob,TextEncoder/TextDecoder, anduint8arrayshelpers acrossmisc.ts,crypto.ts,cacao.ts,signatures.ts, andpolkadot.ts - Add
scripts/verify-no-buffer.mjsto verify UMD bundles contain no unguarded Buffer usage
- Replace
-
Updated dependencies []:
- @walletconnect/types@2.23.9
@walletconnect/universal-provider@2.23.9
@walletconnect/types@2.23.9
@walletconnect/types@2.23.9
@walletconnect/signer-connection@2.23.9
@walletconnect/sign-client@2.23.9
Patch Changes
-
#7201
6e4a34dThanks @ganchoradkov! - fix: clean up orphaned subscriber topics to prevent indefinite persistence- Fix
onSessionSettleResponseerror path to fully clean up session topic (unsubscribe, delete keys, remove expiry) - Fix
proposalExpireHandlerto unsubscribe session topic when proposal expires after wallet approval - Fix
authenticate()to unsubscribe previous auth response topic before subscribing to a new one - Add heartbeat-based reconciliation that removes subscriber topics not associated with any active session, pairing, or pending session
- Fix
-
Updated dependencies [
431e43b,bb4869f,ed0fa42]:- @walletconnect/core@2.23.9
- @walletconnect/utils@2.23.9
- @walletconnect/types@2.23.9
@walletconnect/react-native-compat@2.23.9
@walletconnect/react-native-compat@2.23.9
@walletconnect/pos-client@1.0.9
@walletconnect/pay@1.0.8
Patch Changes
- Updated dependencies [
bb4869f]:- @walletconnect/utils@2.23.9
- @walletconnect/types@2.23.9
@walletconnect/ethereum-provider@2.23.9
@walletconnect/core@2.23.9
Patch Changes
-
#7204
431e43bThanks @ganchoradkov! - fix: prevent Node.js crypto module from leaking into browser bundles- Fix Rollup external config to handle subpath imports (e.g.
uint8arrays/from-string), preventing transitive bundling ofmultiformatsand its Node.jscryptoimport in ESM/CJS outputs - Add browser field override plugin to redirect
multiformatsinternalsha2.jstosha2-browser.js(Web Crypto API) in UMD bundles - Add build-time guard that fails the UMD build if any Node.js built-in module is referenced
- Fix Rollup external config to handle subpath imports (e.g.
-
#7206
ed0fa42Thanks @ganchoradkov! - fix: prevent infinite loop and memory exhaustion in relayer reconnection- Eliminate
new Promise(async executor)antipattern inconnect()andsubscribe()so background tasks no longer spawn unsupervised connection attempts - Serialize connection attempts via
connectPromisein bothtransportOpen()andtoEstablishConnection()to prevent concurrentconnect()calls - Keep
connectionAttemptInProgressguard up during the entire retry loop to blockrestartTransport()from spawning parallel connections - Reset
reconnectInProgresson early returns inonProviderDisconnect()to prevent the flag from getting permanently stuck - Close old WebSocket in
createProvider()before creating a new one to prevent connection and listener leaks - Wrap
subscriber.stop()in try/catch inonProviderDisconnect()to preventreconnectInProgressfrom getting stuck on throw - Reset
stalledRestartBackoffon successful connection so recovery latency doesn't degrade after repeated stall/recover cycles
- Eliminate
-
Updated dependencies [
bb4869f]:- @walletconnect/utils@2.23.9
- @walletconnect/types@2.23.9