@dynamic-labs/wagmi-connector 4.80.0 → 4.82.0

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,42 @@
1
1
 
2
+ ## [4.82.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.81.0...v4.82.0) (2026-05-11)
3
+
4
+
5
+ ### Features
6
+
7
+ * adds react-native embedded webview ([#11168](https://github.com/dynamic-labs/dynamic-auth/issues/11168)) ([31c17e3](https://github.com/dynamic-labs/dynamic-auth/commit/31c17e34e198efc806299011ab286bf48a244908))
8
+ * **aleo:** expose WaaS-specific methods directly on AleoWallet ([#11174](https://github.com/dynamic-labs/dynamic-auth/issues/11174)) ([ccfb8f4](https://github.com/dynamic-labs/dynamic-auth/commit/ccfb8f4de690ee4a30b6c20e037fef51a69df8e1))
9
+ * **aleo:** two-step Exchange Send (unshield → public→public) ([#11172](https://github.com/dynamic-labs/dynamic-auth/issues/11172)) ([02a992c](https://github.com/dynamic-labs/dynamic-auth/commit/02a992c3239519ed283a9804f092bffca9ba4d18))
10
+ * **demo:** registry-driven Aleo transactions form ([#11105](https://github.com/dynamic-labs/dynamic-auth/issues/11105)) ([766949e](https://github.com/dynamic-labs/dynamic-auth/commit/766949e7bb9f613e157418ed4221cac43fbf0394))
11
+ * **sdk-react-core:** add ActiveMidnightWalletAddresses widget ([#11083](https://github.com/dynamic-labs/dynamic-auth/issues/11083)) ([1858292](https://github.com/dynamic-labs/dynamic-auth/commit/18582926348420332f89a3d1b2c2ca2cd453f69e))
12
+ * **widget:** auto-merge + auto-shield sponsored Aleo tokens on wallet load ([#11157](https://github.com/dynamic-labs/dynamic-auth/issues/11157)) ([cda1de1](https://github.com/dynamic-labs/dynamic-auth/commit/cda1de1f04789eb24bba2fbe0a49b5f42f6a609d))
13
+ * **widget:** auto-shield indicator + post-shield balance refresh polling ([#11173](https://github.com/dynamic-labs/dynamic-auth/issues/11173)) ([f49d480](https://github.com/dynamic-labs/dynamic-auth/commit/f49d480dc5ef85efd7d201687d9b0309090a69c8))
14
+ * **widget:** wire Aleo curated prices into the Shielded balance tab ([#11178](https://github.com/dynamic-labs/dynamic-auth/issues/11178)) ([eab1606](https://github.com/dynamic-labs/dynamic-auth/commit/eab16062140a0474d14a2cc43fd0a1624e4da92e))
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **ci:** wire dd-trace ci visibility env vars for [@demov1](https://github.com/demov1) playwright task ([#11199](https://github.com/dynamic-labs/dynamic-auth/issues/11199)) ([9af4827](https://github.com/dynamic-labs/dynamic-auth/commit/9af48271e4721dac54d495097d43522f76ec724d))
20
+ * **playwright:** expose raw auth token for stable JWT reads ([#11204](https://github.com/dynamic-labs/dynamic-auth/issues/11204)) ([b002dfb](https://github.com/dynamic-labs/dynamic-auth/commit/b002dfb642755830c6c9c813ebb4d749882518d6))
21
+ * **playwright:** replace waitForTimeout in networkControl + reinitialize spec ([#11161](https://github.com/dynamic-labs/dynamic-auth/issues/11161)) ([5e72371](https://github.com/dynamic-labs/dynamic-auth/commit/5e723713ceb8c804d253c261be86abb997daeabd))
22
+ * remediate high-severity dependency vulnerabilities ([#11171](https://github.com/dynamic-labs/dynamic-auth/issues/11171)) ([285e7cb](https://github.com/dynamic-labs/dynamic-auth/commit/285e7cb0d07f957a97e8d9ef4fab0b8d2d24e031))
23
+
24
+ ## [4.81.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.80.0...v4.81.0) (2026-05-07)
25
+
26
+
27
+ ### Features
28
+
29
+ * **react-native:** add waitForAuthSuccess() to auth module ([#11137](https://github.com/dynamic-labs/dynamic-auth/issues/11137)) ([089a566](https://github.com/dynamic-labs/dynamic-auth/commit/089a5663283639e7e425eead291b135010c8b398))
30
+ * **waas:** hook Aleo into DynamicWaasMixin ([#11102](https://github.com/dynamic-labs/dynamic-auth/issues/11102)) ([ff42df9](https://github.com/dynamic-labs/dynamic-auth/commit/ff42df99d8993e22894caee3c0570cd9c332a3d1))
31
+ * **widget:** shielded/unshielded tabs + Shield Manually CTA on ActiveWalletBalance for Aleo ([#11103](https://github.com/dynamic-labs/dynamic-auth/issues/11103)) ([e278836](https://github.com/dynamic-labs/dynamic-auth/commit/e278836bfcb19c13828c10483ebb87d165f5d00d))
32
+
33
+
34
+ ### Bug Fixes
35
+
36
+ * **ethereum-aa:** return hex chain ids from EIP-5792 getCapabilities ([#11146](https://github.com/dynamic-labs/dynamic-auth/issues/11146)) ([b32dc8f](https://github.com/dynamic-labs/dynamic-auth/commit/b32dc8f6fdee3722073921787c4f77908ab4f740))
37
+ * remediate high-severity dependency vulnerabilities ([#11151](https://github.com/dynamic-labs/dynamic-auth/issues/11151)) ([1d84ef1](https://github.com/dynamic-labs/dynamic-auth/commit/1d84ef12e10544be0b2a80dbbbd63f615b03adc3))
38
+ * **wagmi-connector:** emit change unconditionally on MM accountsChanged DYNT-549 ([#11131](https://github.com/dynamic-labs/dynamic-auth/issues/11131)) ([348ee6f](https://github.com/dynamic-labs/dynamic-auth/commit/348ee6ff9a22cb55ef0cb84c4b8f8d2e843bd10e)), closes [#11043](https://github.com/dynamic-labs/dynamic-auth/issues/11043)
39
+
2
40
  ## [4.80.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.79.2...v4.80.0) (2026-05-05)
3
41
 
4
42
 
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.80.0";
2
+ var version = "4.82.0";
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.80.0",
3
+ "version": "4.82.0",
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.80.0",
10
- "@dynamic-labs/ethereum-core": "4.80.0",
11
- "@dynamic-labs/logger": "4.80.0",
12
- "@dynamic-labs/rpc-providers": "4.80.0",
13
- "@dynamic-labs/sdk-react-core": "4.80.0",
14
- "@dynamic-labs/types": "4.80.0",
15
- "@dynamic-labs/wallet-connector-core": "4.80.0",
9
+ "@dynamic-labs/assert-package-version": "4.82.0",
10
+ "@dynamic-labs/ethereum-core": "4.82.0",
11
+ "@dynamic-labs/logger": "4.82.0",
12
+ "@dynamic-labs/rpc-providers": "4.82.0",
13
+ "@dynamic-labs/sdk-react-core": "4.82.0",
14
+ "@dynamic-labs/types": "4.82.0",
15
+ "@dynamic-labs/wallet-connector-core": "4.82.0",
16
16
  "eventemitter3": "5.0.1"
17
17
  },
18
18
  "license": "MIT",
@@ -91,31 +91,32 @@ const getCreateConnectorFn = ({ connectorId, wallet, }) => createConnector((conf
91
91
  },
92
92
  name: 'Dynamic',
93
93
  onAccountsChanged(accounts) {
94
- var _a, _b;
95
- const next = (_a = accounts[0]) === null || _a === void 0 ? void 0 : _a.toLowerCase();
96
- const bound = (_b = wallet === null || wallet === void 0 ? void 0 : wallet.address) === null || _b === void 0 ? void 0 : _b.toLowerCase();
97
- // Wallet-internal switch (e.g. user toggled accounts inside the MetaMask
98
- // extension while the Dynamic primary wallet is still bound to this
99
- // connector). Tell wagmi directly so it doesn't lag a step behind. Safe
100
- // against SyncDynamicWagmi races because the synthetic newId
101
- // (`${connector.id}-${wallet.address}`) is unchanged in this branch, so
102
- // SyncDynamicWagmi.sync() returns early instead of fighting us. DYNT-549.
103
- if (next && bound && next === bound) {
104
- config.emitter.emit('change', {
105
- accounts: accounts.map((a) => getAddress(a)),
106
- });
94
+ // Empty accounts means the wallet was disconnected at the provider level;
95
+ // SyncDynamicWagmi handles that path via its own disconnect flow.
96
+ if (!accounts[0]) {
107
97
  return;
108
98
  }
109
- // Primary-wallet swap (or empty accounts). Leave wagmi state to
110
- // SyncDynamicWagmi's disconnect/reconnect dance and log so we can
111
- // correlate stuck-state customer reports with the path taken.
112
- logger.instrument('[DynamicWagmiConnector] onAccountsChanged (no-op)', {
113
- accounts: accounts.map((a) => getAddress(a)),
99
+ // Always tell wagmi directly. The previous `next === bound` guard
100
+ // (DYNT-549) was unreachable in practice: `wallet` is the closure-
101
+ // captured EthereumWallet from getCreateConnectorFn, and the SDK replaces
102
+ // wallets via connector.createWallet({...}) (useConnectWallet.ts) rather
103
+ // than mutating address in place — so the bound address is frozen at the
104
+ // value it had when this connector was built. Without the emit, wagmi
105
+ // only catches up on the React re-render path
106
+ // (refreshConnectedWallet → new evmWallet → SyncDynamicWagmi disconnect/
107
+ // reconnect), which Lighter reported is unreliable when no Dynamic UI
108
+ // (e.g. <DynamicWidget />) is mounted to drive the render cadence.
109
+ const checksummedAccounts = accounts.map((a) => getAddress(a));
110
+ logger.instrument('[DynamicWagmiConnector] onAccountsChanged', {
111
+ accounts: checksummedAccounts,
114
112
  connectorId,
115
113
  key: 'wagmi-connector.onAccountsChanged',
116
114
  primaryWalletAddress: wallet === null || wallet === void 0 ? void 0 : wallet.address,
117
115
  time: 0,
118
116
  });
117
+ config.emitter.emit('change', {
118
+ accounts: checksummedAccounts,
119
+ });
119
120
  },
120
121
  onChainChanged(chainId) {
121
122
  config.emitter.emit('change', {