@dynamic-labs/ethereum 4.62.0 → 4.63.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 +13 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +11 -11
- package/src/walletConnect/WalletConnectConnector/WalletConnectConnector.cjs +3 -0
- package/src/walletConnect/WalletConnectConnector/WalletConnectConnector.js +4 -1
- package/src/walletConnect/WalletConnectProvider/WalletConnectProvider.cjs +2 -1
- package/src/walletConnect/WalletConnectProvider/WalletConnectProvider.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.63.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.62.0...v4.63.0) (2026-02-24)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **react-native:** raise walletReturnFromDeepLink event to allow redirecting back to the same route as before ([#10364](https://github.com/dynamic-labs/dynamic-auth/issues/10364)) ([cd56fd0](https://github.com/dynamic-labs/dynamic-auth/commit/cd56fd089e867bb5ed09a7c999b04480d8f59f81))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **react-native:** include redirectUrl in WalletConnect connection deep links on iOS and add session redirect metadata for Solana ([#10479](https://github.com/dynamic-labs/dynamic-auth/issues/10479)) ([68829f9](https://github.com/dynamic-labs/dynamic-auth/commit/68829f9ef39c845917ce49bfd63922e5252c2299))
|
|
13
|
+
* ton external wallet connection ([#10460](https://github.com/dynamic-labs/dynamic-auth/issues/10460)) ([7431a74](https://github.com/dynamic-labs/dynamic-auth/commit/7431a74fcd0bcd04755e6a81b49aa24dfc261f09))
|
|
14
|
+
|
|
2
15
|
## [4.62.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.61.7...v4.62.0) (2026-02-23)
|
|
3
16
|
|
|
4
17
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/ethereum",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.63.0",
|
|
4
4
|
"description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,16 +24,16 @@
|
|
|
24
24
|
"eventemitter3": "5.0.1",
|
|
25
25
|
"buffer": "6.0.3",
|
|
26
26
|
"@metamask/sdk": "0.33.0",
|
|
27
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
28
|
-
"@dynamic-labs/embedded-wallet-evm": "4.
|
|
29
|
-
"@dynamic-labs/ethereum-core": "4.
|
|
30
|
-
"@dynamic-labs/logger": "4.
|
|
31
|
-
"@dynamic-labs/rpc-providers": "4.
|
|
32
|
-
"@dynamic-labs/types": "4.
|
|
33
|
-
"@dynamic-labs/utils": "4.
|
|
34
|
-
"@dynamic-labs/waas-evm": "4.
|
|
35
|
-
"@dynamic-labs/wallet-book": "4.
|
|
36
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
27
|
+
"@dynamic-labs/assert-package-version": "4.63.0",
|
|
28
|
+
"@dynamic-labs/embedded-wallet-evm": "4.63.0",
|
|
29
|
+
"@dynamic-labs/ethereum-core": "4.63.0",
|
|
30
|
+
"@dynamic-labs/logger": "4.63.0",
|
|
31
|
+
"@dynamic-labs/rpc-providers": "4.63.0",
|
|
32
|
+
"@dynamic-labs/types": "4.63.0",
|
|
33
|
+
"@dynamic-labs/utils": "4.63.0",
|
|
34
|
+
"@dynamic-labs/waas-evm": "4.63.0",
|
|
35
|
+
"@dynamic-labs/wallet-book": "4.63.0",
|
|
36
|
+
"@dynamic-labs/wallet-connector-core": "4.63.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"viem": "^2.28.4"
|
|
@@ -176,6 +176,9 @@ class WalletConnectConnector extends ethereumCore.EthereumWalletConnector {
|
|
|
176
176
|
];
|
|
177
177
|
const deepLink = this.getDeepLink();
|
|
178
178
|
if (utils.isMobile() && deepLink && methodsThatRequireDeepLink.includes(method)) {
|
|
179
|
+
// Store current route before opening wallet so we can emit an event on return
|
|
180
|
+
const currentUrl = utils.PlatformService.getUrl();
|
|
181
|
+
utils.walletReturnRoute.set(currentUrl.pathname);
|
|
179
182
|
utils.PlatformService.openURL(deepLink);
|
|
180
183
|
}
|
|
181
184
|
}
|
|
@@ -3,7 +3,7 @@ import { __awaiter } from '../../../_virtual/_tslib.js';
|
|
|
3
3
|
import { createWalletClient, custom } from 'viem';
|
|
4
4
|
import { toAccount } from 'viem/accounts';
|
|
5
5
|
import { EthereumWalletConnector, chainsMap, normalizeRpcError } from '@dynamic-labs/ethereum-core';
|
|
6
|
-
import { StorageService, parseIntSafe, DynamicError, isMobile, PlatformService } from '@dynamic-labs/utils';
|
|
6
|
+
import { StorageService, parseIntSafe, DynamicError, isMobile, PlatformService, walletReturnRoute } from '@dynamic-labs/utils';
|
|
7
7
|
import { logger, getDeepLink, isSameAddress } from '@dynamic-labs/wallet-connector-core';
|
|
8
8
|
import { WalletConnectProvider } from '../WalletConnectProvider/WalletConnectProvider.js';
|
|
9
9
|
|
|
@@ -172,6 +172,9 @@ class WalletConnectConnector extends EthereumWalletConnector {
|
|
|
172
172
|
];
|
|
173
173
|
const deepLink = this.getDeepLink();
|
|
174
174
|
if (isMobile() && deepLink && methodsThatRequireDeepLink.includes(method)) {
|
|
175
|
+
// Store current route before opening wallet so we can emit an event on return
|
|
176
|
+
const currentUrl = PlatformService.getUrl();
|
|
177
|
+
walletReturnRoute.set(currentUrl.pathname);
|
|
175
178
|
PlatformService.openURL(deepLink);
|
|
176
179
|
}
|
|
177
180
|
}
|
|
@@ -111,7 +111,8 @@ WalletConnectProvider.connect = (_b) => _tslib.__awaiter(void 0, [_b], void 0, f
|
|
|
111
111
|
yield walletConnectorCore.performPlatformSpecificConnectionMethod(_a.connectionUri, deepLinks, {
|
|
112
112
|
onDesktopUri: connectionOpts === null || connectionOpts === void 0 ? void 0 : connectionOpts.onDesktopUri,
|
|
113
113
|
onDisplayUri: connectionOpts === null || connectionOpts === void 0 ? void 0 : connectionOpts.onDisplayUri,
|
|
114
|
-
}, deepLinkPreference
|
|
114
|
+
}, deepLinkPreference, _a.redirectNative ||
|
|
115
|
+
_a.redirectUniversal);
|
|
115
116
|
logger.logger.debug('[WalletConnectProvider] removing display_uri event listener');
|
|
116
117
|
(_c = _a.provider) === null || _c === void 0 ? void 0 : _c.off('display_uri', handleDisplayURI);
|
|
117
118
|
});
|
|
@@ -103,7 +103,8 @@ WalletConnectProvider.connect = (_b) => __awaiter(void 0, [_b], void 0, function
|
|
|
103
103
|
yield performPlatformSpecificConnectionMethod(_a.connectionUri, deepLinks, {
|
|
104
104
|
onDesktopUri: connectionOpts === null || connectionOpts === void 0 ? void 0 : connectionOpts.onDesktopUri,
|
|
105
105
|
onDisplayUri: connectionOpts === null || connectionOpts === void 0 ? void 0 : connectionOpts.onDisplayUri,
|
|
106
|
-
}, deepLinkPreference
|
|
106
|
+
}, deepLinkPreference, _a.redirectNative ||
|
|
107
|
+
_a.redirectUniversal);
|
|
107
108
|
logger.debug('[WalletConnectProvider] removing display_uri event listener');
|
|
108
109
|
(_c = _a.provider) === null || _c === void 0 ? void 0 : _c.off('display_uri', handleDisplayURI);
|
|
109
110
|
});
|