@dynamic-labs/wagmi-connector 4.88.6 → 4.90.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 +34 -0
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/lib/SyncDynamicWagmi.js +14 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,38 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.90.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.89.0...v4.90.0) (2026-06-19)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add microsoft to social providers list ([#11631](https://github.com/dynamic-labs/dynamic-auth/issues/11631)) ([761b82d](https://github.com/dynamic-labs/dynamic-auth/commit/761b82dea2e2e86ec1c8b3fc8bab32ed72492132))
|
|
8
|
+
* **sdk-react-core:** preconnect to waas iframe origin at auth-flow start ([#11549](https://github.com/dynamic-labs/dynamic-auth/issues/11549)) ([1bb810c](https://github.com/dynamic-labs/dynamic-auth/commit/1bb810c4eb3d592b43f62c1eaf5450a0e42981c9)), closes [dynamic-labs/dynamic-wallet-sdk#1314](https://github.com/dynamic-labs/dynamic-wallet-sdk/issues/1314)
|
|
9
|
+
* **waas:** opt into SDK eager key-share recovery, drop host RECOVER loop (DYNT-1125) ([#11620](https://github.com/dynamic-labs/dynamic-auth/issues/11620)) ([4bef955](https://github.com/dynamic-labs/dynamic-auth/commit/4bef955b902a7e484ba8bd6323582843bb692a17))
|
|
10
|
+
* **wallet-connector-core:** add isMidnightConnector util + Midnight interface hooks ([#11005](https://github.com/dynamic-labs/dynamic-auth/issues/11005)) ([55117a8](https://github.com/dynamic-labs/dynamic-auth/commit/55117a8cf59640d00b358f68be8df6b29231fab5))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **sdk-react-core:** gate smart-wallet init on user:basic scope ([#11624](https://github.com/dynamic-labs/dynamic-auth/issues/11624)) ([9f891a4](https://github.com/dynamic-labs/dynamic-auth/commit/9f891a46a191532acdd4a91b74c4586089ef0e1a)), closes [#11623](https://github.com/dynamic-labs/dynamic-auth/issues/11623) [#11623](https://github.com/dynamic-labs/dynamic-auth/issues/11623) [#11626](https://github.com/dynamic-labs/dynamic-auth/issues/11626)
|
|
16
|
+
* **sdk-react-core:** search wallet list by metadata name in addition to connector name ([#11638](https://github.com/dynamic-labs/dynamic-auth/issues/11638)) ([a647614](https://github.com/dynamic-labs/dynamic-auth/commit/a647614bcba769e09ef59bf1ddb925ce9835842e))
|
|
17
|
+
* **waas:** rebuild WaaS client on session change after step-up reauth ([#11581](https://github.com/dynamic-labs/dynamic-auth/issues/11581)) ([2b7093e](https://github.com/dynamic-labs/dynamic-auth/commit/2b7093e27f57f1dfcdd303361d436d9bf33e28a9))
|
|
18
|
+
* **waas:** refuse to build WaaS client while auth scope is pending (createRooms 401 chokepoint) ([#11623](https://github.com/dynamic-labs/dynamic-auth/issues/11623)) ([08755f0](https://github.com/dynamic-labs/dynamic-auth/commit/08755f0bda2b74c7bcdff3d0ac9c228a5205ad6e)), closes [#11624](https://github.com/dynamic-labs/dynamic-auth/issues/11624)
|
|
19
|
+
* **wallet-connect:** skip address comparison on reconnect when expectedAddress is empty ([#11639](https://github.com/dynamic-labs/dynamic-auth/issues/11639)) ([8d665cf](https://github.com/dynamic-labs/dynamic-auth/commit/8d665cf3bf1fb0e498d71f14cc8a53d91593c23d))
|
|
20
|
+
|
|
21
|
+
## [4.89.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.88.6...v4.89.0) (2026-06-16)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
* **moonpay:** add useMoonPayOnramp hook ([#11405](https://github.com/dynamic-labs/dynamic-auth/issues/11405)) ([48cb62f](https://github.com/dynamic-labs/dynamic-auth/commit/48cb62fefecb511fcba9359ee6f6096dfef0b125))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Bug Fixes
|
|
30
|
+
|
|
31
|
+
* get wallet metadata from wallet-book when its present ([#11566](https://github.com/dynamic-labs/dynamic-auth/issues/11566)) ([a1a8ad5](https://github.com/dynamic-labs/dynamic-auth/commit/a1a8ad53c063157b189aea138fa338fcc67dc4dd))
|
|
32
|
+
* **waas:** instant logout — clear key share host-side, background iframe cleanup ([#11583](https://github.com/dynamic-labs/dynamic-auth/issues/11583)) ([0ab3378](https://github.com/dynamic-labs/dynamic-auth/commit/0ab3378efdbbe233069b17fad62b0c126397bc3a))
|
|
33
|
+
* **wagmi-connector:** await disconnect before connect to defuse SyncDynamicWagmi race DYNT-549 ([#11579](https://github.com/dynamic-labs/dynamic-auth/issues/11579)) ([6ac7c0e](https://github.com/dynamic-labs/dynamic-auth/commit/6ac7c0e02ed863342047bc5a1e60be3a66b8a425)), closes [#11131](https://github.com/dynamic-labs/dynamic-auth/issues/11131) [#11513](https://github.com/dynamic-labs/dynamic-auth/issues/11513) [#11516](https://github.com/dynamic-labs/dynamic-auth/issues/11516) [#11496](https://github.com/dynamic-labs/dynamic-auth/issues/11496) [#11513](https://github.com/dynamic-labs/dynamic-auth/issues/11513) [/github.com/dynamic-labs/dynamic-auth/blob/main/packages/wagmi-connector/src/lib/hooks/useConnectorId/useConnectorId.ts#L19-L26](https://github.com/dynamic-labs//github.com/dynamic-labs/dynamic-auth/blob/main/packages/wagmi-connector/src/lib/hooks/useConnectorId/useConnectorId.ts/issues/L19-L26) [#11131](https://github.com/dynamic-labs/dynamic-auth/issues/11131) [#11516](https://github.com/dynamic-labs/dynamic-auth/issues/11516) [#11513](https://github.com/dynamic-labs/dynamic-auth/issues/11513)
|
|
34
|
+
* **react-native:** resolve intermittent "Wallet with id <uuid> not found" after login ([#11575](https://github.com/dynamic-labs/dynamic-auth/issues/11575)) ([9d7a246](https://github.com/dynamic-labs/dynamic-auth/commit/9d7a246167927b9339dc33c10977c6d12783ab88))
|
|
35
|
+
|
|
2
36
|
### [4.88.6](https://github.com/dynamic-labs/dynamic-auth/compare/v4.88.5...v4.88.6) (2026-06-13)
|
|
3
37
|
|
|
4
38
|
|
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/wagmi-connector",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.90.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.
|
|
10
|
-
"@dynamic-labs/ethereum-core": "4.
|
|
11
|
-
"@dynamic-labs/logger": "4.
|
|
12
|
-
"@dynamic-labs/rpc-providers": "4.
|
|
13
|
-
"@dynamic-labs/sdk-react-core": "4.
|
|
14
|
-
"@dynamic-labs/types": "4.
|
|
15
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
9
|
+
"@dynamic-labs/assert-package-version": "4.90.0",
|
|
10
|
+
"@dynamic-labs/ethereum-core": "4.90.0",
|
|
11
|
+
"@dynamic-labs/logger": "4.90.0",
|
|
12
|
+
"@dynamic-labs/rpc-providers": "4.90.0",
|
|
13
|
+
"@dynamic-labs/sdk-react-core": "4.90.0",
|
|
14
|
+
"@dynamic-labs/types": "4.90.0",
|
|
15
|
+
"@dynamic-labs/wallet-connector-core": "4.90.0",
|
|
16
16
|
"eventemitter3": "5.0.1"
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT",
|
|
@@ -32,8 +32,8 @@ const SyncDynamicWagmi = ({ children, connector, wallet, }) => {
|
|
|
32
32
|
},
|
|
33
33
|
},
|
|
34
34
|
});
|
|
35
|
-
const {
|
|
36
|
-
const disconnectWagmi = useCallback(() => {
|
|
35
|
+
const { disconnectAsync } = useDisconnect();
|
|
36
|
+
const disconnectWagmi = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
37
37
|
logger.logVerboseTroubleshootingMessage('[SyncDynamicWagmi] disconnecting wagmi - previous status: ', {
|
|
38
38
|
clientStatus,
|
|
39
39
|
lastConnectedWalletId: lastConnectedWalletId.current,
|
|
@@ -41,9 +41,17 @@ const SyncDynamicWagmi = ({ children, connector, wallet, }) => {
|
|
|
41
41
|
if (clientStatus === 'disconnected') {
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
|
-
disconnect
|
|
44
|
+
// Await disconnect so wagmi clears `state.current` before any
|
|
45
|
+
// subsequent connect runs. Fire-and-forget `disconnect()` interleaves
|
|
46
|
+
// with `connect()` on the next line: wagmi's disconnect awaits
|
|
47
|
+
// `connector.disconnect()` before deleting from connections, while
|
|
48
|
+
// connect synchronously throws `ConnectorAlreadyConnectedError` if
|
|
49
|
+
// `connector.uid === state.current` — leaving wagmi disconnected with
|
|
50
|
+
// no auto-recovery. Observed in prod via the
|
|
51
|
+
// `wagmi-connector.connect_already_connected_race` counter (DYNT-549).
|
|
52
|
+
yield disconnectAsync();
|
|
45
53
|
lastConnectedWalletId.current = undefined;
|
|
46
|
-
}, [
|
|
54
|
+
}), [disconnectAsync, clientStatus]);
|
|
47
55
|
const connectWagmi = useCallback((connector, newId, forceConnect) => {
|
|
48
56
|
logger.logVerboseTroubleshootingMessage('[SyncDynamicWagmi] connecting wagmi - previous status: ', {
|
|
49
57
|
clientStatus,
|
|
@@ -73,7 +81,7 @@ const SyncDynamicWagmi = ({ children, connector, wallet, }) => {
|
|
|
73
81
|
});
|
|
74
82
|
// if there's no connector, disconnect wagmi
|
|
75
83
|
if (!connector || !address) {
|
|
76
|
-
disconnectWagmi();
|
|
84
|
+
yield disconnectWagmi();
|
|
77
85
|
return;
|
|
78
86
|
}
|
|
79
87
|
const newId = `${connector.id}-${address}`;
|
|
@@ -83,7 +91,7 @@ const SyncDynamicWagmi = ({ children, connector, wallet, }) => {
|
|
|
83
91
|
}
|
|
84
92
|
// if has a previous connection, disconnect wagmi
|
|
85
93
|
if (prevConnection) {
|
|
86
|
-
disconnectWagmi();
|
|
94
|
+
yield disconnectWagmi();
|
|
87
95
|
}
|
|
88
96
|
// and then (re)connect wagmi
|
|
89
97
|
// force reconnect if has disconnected in the preivous step
|