@dynamic-labs/ethereum 4.91.6 → 4.92.1
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 +27 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +13 -13
- package/src/EthereumWalletConnectors.cjs +1 -1
- package/src/EthereumWalletConnectors.js +1 -1
- package/src/injected/InjectedWalletBase.cjs +32 -0
- package/src/injected/InjectedWalletBase.d.ts +8699 -0
- package/src/injected/InjectedWalletBase.js +32 -0
- package/src/injected/PhantomEvm.cjs +9 -17
- package/src/injected/PhantomEvm.d.ts +1 -1
- package/src/injected/PhantomEvm.js +9 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,31 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.92.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.92.0...v4.92.1) (2026-07-09)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* **ethereum:** fire in-app-browser redirect on sign for injected EVM wallets that use in-app-browser experience ([#11888](https://github.com/dynamic-labs/dynamic-auth/issues/11888)) ([5116d91](https://github.com/dynamic-labs/dynamic-auth/commit/5116d91ab2c71000a490d72c5d278549d4d8ae9a))
|
|
8
|
+
* **sdk-react-core:** show clear message for Phantom redirect signing failures (v4 backport) ([#11886](https://github.com/dynamic-labs/dynamic-auth/issues/11886)) ([60ac897](https://github.com/dynamic-labs/dynamic-auth/commit/60ac897ba81f7758ccd7a05f97b619785e1f50a7))
|
|
9
|
+
* **social:** use redirect strategy for step-up OAuth on mobile [V4 backport] ([#11881](https://github.com/dynamic-labs/dynamic-auth/issues/11881)) ([42a202e](https://github.com/dynamic-labs/dynamic-auth/commit/42a202e6255de8db73df02eff37c0b10b24fef1a))
|
|
10
|
+
* **solana:** fire in-app-browser redirect on sign and wallet switch ([#11871](https://github.com/dynamic-labs/dynamic-auth/issues/11871)) ([4e2d6b7](https://github.com/dynamic-labs/dynamic-auth/commit/4e2d6b7ac8fdef5bf7c62b8a726ecaef1c6210ec))
|
|
11
|
+
* **solana:** resolve Phantom/Backpack provider collision and Backpack >=0.10.x connect hangs ([#11856](https://github.com/dynamic-labs/dynamic-auth/issues/11856)) ([#11882](https://github.com/dynamic-labs/dynamic-auth/issues/11882)) ([5784aff](https://github.com/dynamic-labs/dynamic-auth/commit/5784aff9641bbc85445fb466f3ab1d6a14331e73))
|
|
12
|
+
|
|
13
|
+
## [4.92.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.91.6...v4.92.0) (2026-07-08)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* **captcha:** add Cloudflare Turnstile provider support alongside hCaptcha (v4) ([#11798](https://github.com/dynamic-labs/dynamic-auth/issues/11798)) ([114c770](https://github.com/dynamic-labs/dynamic-auth/commit/114c7702e900d8dedeebe7be867de35d11a93f31))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* **ethereum-aa:** resolve kernel client config per wallet (v4) ([#11870](https://github.com/dynamic-labs/dynamic-auth/issues/11870)) ([1b66d79](https://github.com/dynamic-labs/dynamic-auth/commit/1b66d79b4a32b4b6de433b7536bc46e6719224c6))
|
|
24
|
+
* **iframe-setup:** block dangerous URL schemes and verify sender in OPEN_URL ([#11819](https://github.com/dynamic-labs/dynamic-auth/issues/11819)) ([329b27e](https://github.com/dynamic-labs/dynamic-auth/commit/329b27e9fac825916ab227ec8cf93dc343898923))
|
|
25
|
+
* improve social OAuth error messages ([#11837](https://github.com/dynamic-labs/dynamic-auth/issues/11837)) ([8e57c06](https://github.com/dynamic-labs/dynamic-auth/commit/8e57c067c5a89111a32a12fb82e190cf6c46ad67))
|
|
26
|
+
* **react-native-extension:** reject path traversal in downloadFile fileName ([#11816](https://github.com/dynamic-labs/dynamic-auth/issues/11816)) ([9367a56](https://github.com/dynamic-labs/dynamic-auth/commit/9367a56b6daa853d7f7e7f5534261bc68825b239))
|
|
27
|
+
* **sdk-react-core:** display exactly the bytes signed in personal_sign preview ([#11818](https://github.com/dynamic-labs/dynamic-auth/issues/11818)) ([30b9382](https://github.com/dynamic-labs/dynamic-auth/commit/30b93829122f00060cb484aef09a03294c03f651))
|
|
28
|
+
|
|
2
29
|
### [4.91.6](https://github.com/dynamic-labs/dynamic-auth/compare/v4.91.5...v4.91.6) (2026-07-03)
|
|
3
30
|
|
|
4
31
|
|
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.92.1",
|
|
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",
|
|
@@ -19,21 +19,21 @@
|
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@coinbase/wallet-sdk": "4.3.7",
|
|
22
|
-
"@dynamic-labs-connectors/base-account-evm": "4.6.
|
|
23
|
-
"@dynamic-labs-connectors/metamask-evm": "4.6.
|
|
22
|
+
"@dynamic-labs-connectors/base-account-evm": "4.6.10",
|
|
23
|
+
"@dynamic-labs-connectors/metamask-evm": "4.6.10",
|
|
24
24
|
"@walletconnect/ethereum-provider": "2.23.2",
|
|
25
25
|
"eventemitter3": "5.0.1",
|
|
26
26
|
"buffer": "6.0.3",
|
|
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.92.1",
|
|
28
|
+
"@dynamic-labs/embedded-wallet-evm": "4.92.1",
|
|
29
|
+
"@dynamic-labs/ethereum-core": "4.92.1",
|
|
30
|
+
"@dynamic-labs/logger": "4.92.1",
|
|
31
|
+
"@dynamic-labs/rpc-providers": "4.92.1",
|
|
32
|
+
"@dynamic-labs/types": "4.92.1",
|
|
33
|
+
"@dynamic-labs/utils": "4.92.1",
|
|
34
|
+
"@dynamic-labs/waas-evm": "4.92.1",
|
|
35
|
+
"@dynamic-labs/wallet-book": "4.92.1",
|
|
36
|
+
"@dynamic-labs/wallet-connector-core": "4.92.1"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"viem": "^2.45.3"
|
|
@@ -7,8 +7,8 @@ var baseAccountEvm = require('@dynamic-labs-connectors/base-account-evm');
|
|
|
7
7
|
var metamaskEvm = require('@dynamic-labs-connectors/metamask-evm');
|
|
8
8
|
var embeddedWalletEvm = require('@dynamic-labs/embedded-wallet-evm');
|
|
9
9
|
var waasEvm = require('@dynamic-labs/waas-evm');
|
|
10
|
-
require('../_virtual/_tslib.cjs');
|
|
11
10
|
require('@dynamic-labs/utils');
|
|
11
|
+
require('../_virtual/_tslib.cjs');
|
|
12
12
|
require('@dynamic-labs/ethereum-core');
|
|
13
13
|
require('viem');
|
|
14
14
|
require('@dynamic-labs/wallet-book');
|
|
@@ -3,8 +3,8 @@ import { createBaseAccountConnector } from '@dynamic-labs-connectors/base-accoun
|
|
|
3
3
|
import { MetaMaskEvmWalletConnectors } from '@dynamic-labs-connectors/metamask-evm';
|
|
4
4
|
import { TurnkeyEVMWalletConnectors } from '@dynamic-labs/embedded-wallet-evm';
|
|
5
5
|
import { DynamicWaasEVMConnectors } from '@dynamic-labs/waas-evm';
|
|
6
|
-
import '../_virtual/_tslib.js';
|
|
7
6
|
import '@dynamic-labs/utils';
|
|
7
|
+
import '../_virtual/_tslib.js';
|
|
8
8
|
import '@dynamic-labs/ethereum-core';
|
|
9
9
|
import 'viem';
|
|
10
10
|
import '@dynamic-labs/wallet-book';
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
|
|
6
6
|
var _tslib = require('../../_virtual/_tslib.cjs');
|
|
7
7
|
var ethereumCore = require('@dynamic-labs/ethereum-core');
|
|
8
|
+
var utils = require('@dynamic-labs/utils');
|
|
8
9
|
var ethProviderHelper = require('../ethProviderHelper.cjs');
|
|
9
10
|
var logger = require('../utils/logger.cjs');
|
|
10
11
|
var WalletConnectConnector = require('../walletConnect/WalletConnectConnector/WalletConnectConnector.cjs');
|
|
@@ -72,9 +73,40 @@ class InjectedWalletBase extends ethereumCore.EthereumWalletConnector {
|
|
|
72
73
|
yield this.getAddress();
|
|
73
74
|
});
|
|
74
75
|
}
|
|
76
|
+
getSigner() {
|
|
77
|
+
const _super = Object.create(null, {
|
|
78
|
+
getSigner: { get: () => super.getSigner }
|
|
79
|
+
});
|
|
80
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
const signer = yield _super.getSigner.call(this);
|
|
82
|
+
if (signer) {
|
|
83
|
+
return signer;
|
|
84
|
+
}
|
|
85
|
+
// On mobile web (outside the wallet's in-app browser) there is no injected
|
|
86
|
+
// provider for these wallets, so signing silently returns nothing. Redirect
|
|
87
|
+
// into the wallet's in-app browser so signing can continue there, or throw a
|
|
88
|
+
// clear error when neither a provider nor a redirect is possible.
|
|
89
|
+
if (utils.isMobile() && !this.isInstalledOnBrowser()) {
|
|
90
|
+
const didOpenInAppBrowser = this.openInAppBrowserIfRequired();
|
|
91
|
+
if (!didOpenInAppBrowser) {
|
|
92
|
+
throw new utils.WalletRequiresInAppBrowserError(this.name);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return undefined;
|
|
96
|
+
});
|
|
97
|
+
}
|
|
75
98
|
signMessage(messageToSign) {
|
|
76
99
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
77
100
|
var _a;
|
|
101
|
+
// Trigger the in-app-browser redirect up front (mirroring getAddress) so
|
|
102
|
+
// that on mobile web an in-app-browser wallet redirects into its in-app
|
|
103
|
+
// browser instead of silently signing nothing. Delegating to the helper
|
|
104
|
+
// afterwards keeps signing to a single address request (no duplicate wallet
|
|
105
|
+
// prompt), since the helper resolves the address itself.
|
|
106
|
+
const didOpenInAppBrowser = this.openInAppBrowserIfRequired();
|
|
107
|
+
if (didOpenInAppBrowser) {
|
|
108
|
+
return undefined;
|
|
109
|
+
}
|
|
78
110
|
return (_a = this.ethProviderHelper) === null || _a === void 0 ? void 0 : _a.signMessage(messageToSign);
|
|
79
111
|
});
|
|
80
112
|
}
|