@dynamic-labs/wagmi-connector 4.77.3 → 4.77.4

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.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,20 @@
1
1
 
2
+ ### [4.77.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.77.3...v4.77.4) (2026-04-21)
3
+
4
+
5
+ ### Features
6
+
7
+ * **sdk-react-core:** log ui.fallback_error_shown when generic error surfaces ([#10972](https://github.com/dynamic-labs/dynamic-auth/issues/10972)) ([7aee5d1](https://github.com/dynamic-labs/dynamic-auth/commit/7aee5d1a518121742a6ffcc3d3e1101d70b1cc29))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * Add SSR-safe defaults to CaptchaContext ([#10977](https://github.com/dynamic-labs/dynamic-auth/issues/10977)) ([bdf4e80](https://github.com/dynamic-labs/dynamic-auth/commit/bdf4e809c0fd6382961d7b079dbdde25678ecbb1))
13
+ * **DYNT-400:** update Trust Wallet flag from isTrustWallet to isTrust ([#10917](https://github.com/dynamic-labs/dynamic-auth/issues/10917)) ([1ca616a](https://github.com/dynamic-labs/dynamic-auth/commit/1ca616a926ce35d5a75e4611049ef0a05b96865d))
14
+ * lower retry count for viem calls ([#10984](https://github.com/dynamic-labs/dynamic-auth/issues/10984)) ([37843df](https://github.com/dynamic-labs/dynamic-auth/commit/37843dffb2bf31bdc0d7f3e91b65656e3af745f9))
15
+ * show correct loading view when new view is selected ([#10981](https://github.com/dynamic-labs/dynamic-auth/issues/10981)) ([eb650a4](https://github.com/dynamic-labs/dynamic-auth/commit/eb650a4ba62cf12c03f03bfa0866fdc3d30503a1))
16
+ * **wagmi-connector:** promote onAccountsChanged log to instrument for backend visibility DYNT-549 ([#10982](https://github.com/dynamic-labs/dynamic-auth/issues/10982)) ([5087227](https://github.com/dynamic-labs/dynamic-auth/commit/508722724a049737da49fd0320e97d19f6249fce))
17
+
2
18
  ### [4.77.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.77.2...v4.77.3) (2026-04-18)
3
19
 
4
20
 
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.77.3";
2
+ var version = "4.77.4";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@dynamic-labs/wagmi-connector",
3
- "version": "4.77.3",
3
+ "version": "4.77.4",
4
4
  "peerDependencies": {
5
5
  "@wagmi/core": "^2.6.4",
6
6
  "react": ">=18.0.0 <20.0.0",
7
7
  "viem": "^2.45.3",
8
8
  "wagmi": "^2.14.11",
9
- "@dynamic-labs/assert-package-version": "4.77.3",
10
- "@dynamic-labs/ethereum-core": "4.77.3",
11
- "@dynamic-labs/logger": "4.77.3",
12
- "@dynamic-labs/rpc-providers": "4.77.3",
13
- "@dynamic-labs/sdk-react-core": "4.77.3",
14
- "@dynamic-labs/types": "4.77.3",
15
- "@dynamic-labs/wallet-connector-core": "4.77.3",
9
+ "@dynamic-labs/assert-package-version": "4.77.4",
10
+ "@dynamic-labs/ethereum-core": "4.77.4",
11
+ "@dynamic-labs/logger": "4.77.4",
12
+ "@dynamic-labs/rpc-providers": "4.77.4",
13
+ "@dynamic-labs/sdk-react-core": "4.77.4",
14
+ "@dynamic-labs/types": "4.77.4",
15
+ "@dynamic-labs/wallet-connector-core": "4.77.4",
16
16
  "eventemitter3": "5.0.1"
17
17
  },
18
18
  "license": "MIT",
@@ -2,6 +2,7 @@
2
2
  import { __awaiter } from '../../_virtual/_tslib.js';
3
3
  import { createConnector } from '@wagmi/core';
4
4
  import { getAddress, createWalletClient, custom } from 'viem';
5
+ import { logger } from '@dynamic-labs/wallet-connector-core';
5
6
 
6
7
  /* eslint-disable prefer-arrow/prefer-arrow-functions */
7
8
  const getCreateConnectorFn = ({ connectorId, wallet, }) => createConnector((config) => ({
@@ -75,10 +76,20 @@ const getCreateConnectorFn = ({ connectorId, wallet, }) => createConnector((conf
75
76
  });
76
77
  },
77
78
  name: 'Dynamic',
78
- onAccountsChanged(_) {
79
- // this changes the active account on wagmi, but we don't want to do that
80
- // we want the active account to always match the primary wallet
81
- // so we should not emit this event on the wagmi config
79
+ onAccountsChanged(accounts) {
80
+ // Intentionally does NOT emit `change` on the wagmi emitter. Dynamic keeps
81
+ // wagmi's active account aligned with the primary wallet via
82
+ // SyncDynamicWagmi, and emitting here risks double-sync races. DYNT-549
83
+ // tracks customer reports where wagmi stays one account behind the primary
84
+ // wallet after a MetaMask account switch — log context so we can correlate
85
+ // repro cases with the no-op path taken here.
86
+ logger.instrument('[DynamicWagmiConnector] onAccountsChanged (no-op)', {
87
+ accounts: accounts.map((a) => getAddress(a)),
88
+ connectorId,
89
+ key: 'wagmi-connector.onAccountsChanged',
90
+ primaryWalletAddress: wallet === null || wallet === void 0 ? void 0 : wallet.address,
91
+ time: 0,
92
+ });
82
93
  },
83
94
  onChainChanged(chainId) {
84
95
  config.emitter.emit('change', {