@dynamic-labs/utils 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 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
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.91.6";
6
+ var version = "4.92.1";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.91.6";
2
+ var version = "4.92.1";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/utils",
3
- "version": "4.91.6",
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",
@@ -18,11 +18,11 @@
18
18
  },
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
- "@dynamic-labs/sdk-api-core": "0.0.1046",
21
+ "@dynamic-labs/sdk-api-core": "0.0.1067",
22
22
  "tldts": "6.0.16",
23
- "@dynamic-labs/assert-package-version": "4.91.6",
24
- "@dynamic-labs/logger": "4.91.6",
25
- "@dynamic-labs/types": "4.91.6",
23
+ "@dynamic-labs/assert-package-version": "4.92.1",
24
+ "@dynamic-labs/logger": "4.92.1",
25
+ "@dynamic-labs/types": "4.92.1",
26
26
  "buffer": "6.0.3",
27
27
  "eventemitter3": "5.0.1"
28
28
  },
@@ -0,0 +1,24 @@
1
+ 'use client'
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var CustomError = require('./CustomError.cjs');
7
+
8
+ /**
9
+ * Error thrown when a wallet action (e.g. signing) requires the wallet's
10
+ * in-app browser but there is no injected provider available and no way to
11
+ * redirect the user into it.
12
+ *
13
+ * This typically happens on mobile web when an in-app-browser wallet
14
+ * (Phantom, Backpack, Solflare, MetaMask, ...) has been made primary but the
15
+ * user is not inside the wallet's in-app browser, so no provider can be
16
+ * reached to sign.
17
+ */
18
+ class WalletRequiresInAppBrowserError extends CustomError.CustomError {
19
+ constructor(walletName) {
20
+ super(`${walletName} requires its in-app browser to sign. Open this site inside the ${walletName} app's browser and try again.`, 'wallet_requires_in_app_browser');
21
+ }
22
+ }
23
+
24
+ exports.WalletRequiresInAppBrowserError = WalletRequiresInAppBrowserError;
@@ -0,0 +1,14 @@
1
+ import { CustomError } from './CustomError';
2
+ /**
3
+ * Error thrown when a wallet action (e.g. signing) requires the wallet's
4
+ * in-app browser but there is no injected provider available and no way to
5
+ * redirect the user into it.
6
+ *
7
+ * This typically happens on mobile web when an in-app-browser wallet
8
+ * (Phantom, Backpack, Solflare, MetaMask, ...) has been made primary but the
9
+ * user is not inside the wallet's in-app browser, so no provider can be
10
+ * reached to sign.
11
+ */
12
+ export declare class WalletRequiresInAppBrowserError extends CustomError {
13
+ constructor(walletName: string);
14
+ }
@@ -0,0 +1,20 @@
1
+ 'use client'
2
+ import { CustomError } from './CustomError.js';
3
+
4
+ /**
5
+ * Error thrown when a wallet action (e.g. signing) requires the wallet's
6
+ * in-app browser but there is no injected provider available and no way to
7
+ * redirect the user into it.
8
+ *
9
+ * This typically happens on mobile web when an in-app-browser wallet
10
+ * (Phantom, Backpack, Solflare, MetaMask, ...) has been made primary but the
11
+ * user is not inside the wallet's in-app browser, so no provider can be
12
+ * reached to sign.
13
+ */
14
+ class WalletRequiresInAppBrowserError extends CustomError {
15
+ constructor(walletName) {
16
+ super(`${walletName} requires its in-app browser to sign. Open this site inside the ${walletName} app's browser and try again.`, 'wallet_requires_in_app_browser');
17
+ }
18
+ }
19
+
20
+ export { WalletRequiresInAppBrowserError };
@@ -47,4 +47,5 @@ export * from './VerificationDataCollectionError';
47
47
  export * from './WaasAuthScopePendingError';
48
48
  export * from './WalletAddressMismatchError';
49
49
  export * from './WalletNotDeployedError';
50
+ export * from './WalletRequiresInAppBrowserError';
50
51
  export * from './WalletUsedError';
package/src/index.cjs CHANGED
@@ -58,6 +58,7 @@ var VerificationDataCollectionError = require('./errors/VerificationDataCollecti
58
58
  var WaasAuthScopePendingError = require('./errors/WaasAuthScopePendingError.cjs');
59
59
  var WalletAddressMismatchError = require('./errors/WalletAddressMismatchError.cjs');
60
60
  var WalletNotDeployedError = require('./errors/WalletNotDeployedError.cjs');
61
+ var WalletRequiresInAppBrowserError = require('./errors/WalletRequiresInAppBrowserError.cjs');
61
62
  var WalletUsedError = require('./errors/WalletUsedError.cjs');
62
63
  var eventTimeline = require('./eventTimeline/eventTimeline.cjs');
63
64
  var formatNumberText = require('./formatNumberText/formatNumberText.cjs');
@@ -186,6 +187,7 @@ exports.WAAS_AUTH_SCOPE_PENDING_CODE = WaasAuthScopePendingError.WAAS_AUTH_SCOPE
186
187
  exports.WaasAuthScopePendingError = WaasAuthScopePendingError.WaasAuthScopePendingError;
187
188
  exports.WalletAddressMismatchError = WalletAddressMismatchError.WalletAddressMismatchError;
188
189
  exports.WalletNotDeployedError = WalletNotDeployedError.WalletNotDeployedError;
190
+ exports.WalletRequiresInAppBrowserError = WalletRequiresInAppBrowserError.WalletRequiresInAppBrowserError;
189
191
  exports.WalletUsedError = WalletUsedError.WalletUsedError;
190
192
  exports.createEventTimeline = eventTimeline.createEventTimeline;
191
193
  exports.formatNumberText = formatNumberText.formatNumberText;
package/src/index.js CHANGED
@@ -54,6 +54,7 @@ export { VerificationDataCollectionError } from './errors/VerificationDataCollec
54
54
  export { WAAS_AUTH_SCOPE_PENDING_CODE, WaasAuthScopePendingError } from './errors/WaasAuthScopePendingError.js';
55
55
  export { WalletAddressMismatchError } from './errors/WalletAddressMismatchError.js';
56
56
  export { WalletNotDeployedError } from './errors/WalletNotDeployedError.js';
57
+ export { WalletRequiresInAppBrowserError } from './errors/WalletRequiresInAppBrowserError.js';
57
58
  export { WalletUsedError } from './errors/WalletUsedError.js';
58
59
  export { createEventTimeline } from './eventTimeline/eventTimeline.js';
59
60
  export { formatNumberText } from './formatNumberText/formatNumberText.js';