@dynamic-labs/utils 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 +19 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +4 -4
- package/src/errors/WalletRequiresInAppBrowserError.cjs +24 -0
- package/src/errors/WalletRequiresInAppBrowserError.d.ts +14 -0
- package/src/errors/WalletRequiresInAppBrowserError.js +20 -0
- package/src/errors/index.d.ts +1 -0
- package/src/index.cjs +2 -0
- package/src/index.js +1 -0
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
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/utils",
|
|
3
|
-
"version": "4.92.
|
|
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",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@dynamic-labs/sdk-api-core": "0.0.1067",
|
|
22
22
|
"tldts": "6.0.16",
|
|
23
|
-
"@dynamic-labs/assert-package-version": "4.92.
|
|
24
|
-
"@dynamic-labs/logger": "4.92.
|
|
25
|
-
"@dynamic-labs/types": "4.92.
|
|
23
|
+
"@dynamic-labs/assert-package-version": "4.92.2",
|
|
24
|
+
"@dynamic-labs/logger": "4.92.2",
|
|
25
|
+
"@dynamic-labs/types": "4.92.2",
|
|
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 };
|
package/src/errors/index.d.ts
CHANGED
|
@@ -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';
|