@wagmi/connectors 2.6.2 → 2.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -57,9 +57,14 @@ type WalletConnectOptions = {
57
57
  showQrModal?: EthereumProviderOptions['showQrModal'];
58
58
  /**
59
59
  * Options of QR code modal.
60
- * @link https://docs.walletconnect.com/2.0/web3modal/options
60
+ * @link https://docs.walletconnect.com/2.0/web/walletConnectModal/modal/options
61
61
  */
62
62
  qrModalOptions?: EthereumProviderOptions['qrModalOptions'];
63
+ /**
64
+ * Option to override default relay url.
65
+ * @link https://docs.walletconnect.com/2.0/web/providers/ethereum
66
+ */
67
+ relayUrl?: string;
63
68
  };
64
69
  type ConnectConfig = {
65
70
  /** Target chain to connect to. */
@@ -222,18 +222,15 @@ createProvider_fn = async function() {
222
222
  };
223
223
  _initProvider = new WeakSet();
224
224
  initProvider_fn = async function() {
225
- const {
226
- default: EthereumProvider,
227
- OPTIONAL_EVENTS,
228
- OPTIONAL_METHODS
229
- } = await import("@walletconnect/ethereum-provider");
225
+ const { EthereumProvider, OPTIONAL_EVENTS, OPTIONAL_METHODS } = await import("@walletconnect/ethereum-provider");
230
226
  const [defaultChain, ...optionalChains] = this.chains.map(({ id }) => id);
231
227
  if (defaultChain) {
232
228
  const {
233
229
  projectId,
234
230
  showQrModal = true,
235
231
  qrModalOptions,
236
- metadata
232
+ metadata,
233
+ relayUrl
237
234
  } = this.options;
238
235
  __privateSet(this, _provider, await EthereumProvider.init({
239
236
  showQrModal,
@@ -249,7 +246,8 @@ initProvider_fn = async function() {
249
246
  chain.rpcUrls.default.http[0]
250
247
  ])
251
248
  ),
252
- metadata
249
+ metadata,
250
+ relayUrl
253
251
  }));
254
252
  }
255
253
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@wagmi/connectors",
3
3
  "description": "A collection of connectors for wagmi",
4
4
  "license": "MIT",
5
- "version": "2.6.2",
5
+ "version": "2.6.3",
6
6
  "peerDependencies": {
7
7
  "@wagmi/chains": ">=1.3.0",
8
8
  "typescript": ">=5.0.4",
@@ -21,15 +21,15 @@
21
21
  "@ledgerhq/connect-kit-loader": "^1.1.0",
22
22
  "@safe-global/safe-apps-provider": "^0.17.1",
23
23
  "@safe-global/safe-apps-sdk": "^8.0.0",
24
- "@walletconnect/ethereum-provider": "2.8.4",
24
+ "@walletconnect/ethereum-provider": "2.8.6",
25
25
  "@walletconnect/legacy-provider": "^2.0.0",
26
- "@walletconnect/modal": "2.5.4",
26
+ "@walletconnect/modal": "2.5.9",
27
27
  "abitype": "0.8.7",
28
28
  "eventemitter3": "^4.0.7"
29
29
  },
30
30
  "devDependencies": {
31
31
  "viem": "^1.0.0",
32
- "@wagmi/chains": "1.3.0"
32
+ "@wagmi/chains": "1.4.0"
33
33
  },
34
34
  "type": "module",
35
35
  "main": "dist/index.js",