@dynamic-labs/ethereum 4.92.0 → 4.92.2

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,23 @@
1
1
 
2
+ ### [4.92.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.92.1...v4.92.2) (2026-07-09)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * engage captcha during step-up OTP re-auth ([#11879](https://github.com/dynamic-labs/dynamic-auth/issues/11879)) ([585460a](https://github.com/dynamic-labs/dynamic-auth/commit/585460a8976803a8ed0aad16a4a00047bd6c115a))
8
+ * **waas:** gate v1 wallet upgrade on recovery for email-only wallets ([#11897](https://github.com/dynamic-labs/dynamic-auth/issues/11897)) ([5a6f0c6](https://github.com/dynamic-labs/dynamic-auth/commit/5a6f0c6bf3120e59cf502004d09fae56f193e977))
9
+
10
+ ### [4.92.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.92.0...v4.92.1) (2026-07-09)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **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))
16
+ * **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))
17
+ * **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))
18
+ * **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))
19
+ * **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))
20
+
2
21
  ## [4.92.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.91.6...v4.92.0) (2026-07-08)
3
22
 
4
23
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.92.0";
6
+ var version = "4.92.2";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.92.0";
2
+ var version = "4.92.2";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethereum",
3
- "version": "4.92.0",
3
+ "version": "4.92.2",
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
  "@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.92.0",
28
- "@dynamic-labs/embedded-wallet-evm": "4.92.0",
29
- "@dynamic-labs/ethereum-core": "4.92.0",
30
- "@dynamic-labs/logger": "4.92.0",
31
- "@dynamic-labs/rpc-providers": "4.92.0",
32
- "@dynamic-labs/types": "4.92.0",
33
- "@dynamic-labs/utils": "4.92.0",
34
- "@dynamic-labs/waas-evm": "4.92.0",
35
- "@dynamic-labs/wallet-book": "4.92.0",
36
- "@dynamic-labs/wallet-connector-core": "4.92.0"
27
+ "@dynamic-labs/assert-package-version": "4.92.2",
28
+ "@dynamic-labs/embedded-wallet-evm": "4.92.2",
29
+ "@dynamic-labs/ethereum-core": "4.92.2",
30
+ "@dynamic-labs/logger": "4.92.2",
31
+ "@dynamic-labs/rpc-providers": "4.92.2",
32
+ "@dynamic-labs/types": "4.92.2",
33
+ "@dynamic-labs/utils": "4.92.2",
34
+ "@dynamic-labs/waas-evm": "4.92.2",
35
+ "@dynamic-labs/wallet-book": "4.92.2",
36
+ "@dynamic-labs/wallet-connector-core": "4.92.2"
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
  }