@dynamic-labs/utils 5.6.0 → 5.7.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 +21 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +5 -5
- package/src/errors/WaasAuthScopePendingError.cjs +8 -0
- package/src/errors/WaasAuthScopePendingError.d.ts +6 -0
- package/src/errors/WaasAuthScopePendingError.js +8 -1
- package/src/index.cjs +1 -0
- package/src/index.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
|
|
2
|
+
## [5.7.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.6.1...v5.7.0) (2026-09-08)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **social:** add gemini social provider ([#12292](https://github.com/dynamic-labs/dynamic-auth/issues/12292)) ([fa72cb0](https://github.com/dynamic-labs/dynamic-auth/commit/fa72cb09f678506a5f34188eb7d62415bcb7073b))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **locale:** add missing dyn_upgrade_wallet.no_legacy_wallets and .close keys ([#12350](https://github.com/dynamic-labs/dynamic-auth/issues/12350)) ([50da3fa](https://github.com/dynamic-labs/dynamic-auth/commit/50da3fa3078de4ecbd88031a3e533a4ff6ced89b))
|
|
13
|
+
* **sdk-react-core:** expose SDK i18next instance for extension packages ([#12351](https://github.com/dynamic-labs/dynamic-auth/issues/12351)) ([f3d95b1](https://github.com/dynamic-labs/dynamic-auth/commit/f3d95b1bb1c30114d32d93dec4e9c2455ab4fdbb))
|
|
14
|
+
* **sdk-react-core:** publish ./icons and ./components subpath exports ([#12334](https://github.com/dynamic-labs/dynamic-auth/issues/12334)) ([519487c](https://github.com/dynamic-labs/dynamic-auth/commit/519487cf5f4f7abe895a125c5bf38800cae04bb5))
|
|
15
|
+
|
|
16
|
+
### [5.6.1](https://github.com/dynamic-labs/dynamic-auth/compare/v5.6.0...v5.6.1) (2026-09-01)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* **sdk-react-core:** drop legacy-client dependency by moving SdkWebViewLoadState to types ([#12314](https://github.com/dynamic-labs/dynamic-auth/issues/12314)) ([8ae0110](https://github.com/dynamic-labs/dynamic-auth/commit/8ae011056604ec28de9daa5ab37c5ec2b6c378bb))
|
|
22
|
+
|
|
2
23
|
## [5.6.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.5.0...v5.6.0) (2026-09-01)
|
|
3
24
|
|
|
4
25
|
|
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": "5.
|
|
3
|
+
"version": "5.7.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",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs/sdk-api-core": "0.
|
|
21
|
+
"@dynamic-labs/sdk-api-core": "0.32.0",
|
|
22
22
|
"tldts": "6.0.16",
|
|
23
|
-
"@dynamic-labs/assert-package-version": "5.
|
|
24
|
-
"@dynamic-labs/logger": "5.
|
|
25
|
-
"@dynamic-labs/types": "5.
|
|
23
|
+
"@dynamic-labs/assert-package-version": "5.7.0",
|
|
24
|
+
"@dynamic-labs/logger": "5.7.0",
|
|
25
|
+
"@dynamic-labs/types": "5.7.0",
|
|
26
26
|
"buffer": "6.0.3",
|
|
27
27
|
"eventemitter3": "5.0.1"
|
|
28
28
|
},
|
|
@@ -22,6 +22,14 @@ class WaasAuthScopePendingError extends DynamicError.DynamicError {
|
|
|
22
22
|
super('WaaS client not initialized: auth token scope is still pending (MFA/KYC/device registration). Wait for user:basic before creating or accessing the embedded wallet.', WAAS_AUTH_SCOPE_PENDING_CODE);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Recognizes the pending-scope error by its code, so callers can branch on it
|
|
27
|
+
* without relying on `instanceof` across package boundaries (each package may
|
|
28
|
+
* bundle its own copy of the class).
|
|
29
|
+
*/
|
|
30
|
+
const isWaasAuthScopePendingError = (error) => error instanceof Error &&
|
|
31
|
+
error.code === WAAS_AUTH_SCOPE_PENDING_CODE;
|
|
25
32
|
|
|
26
33
|
exports.WAAS_AUTH_SCOPE_PENDING_CODE = WAAS_AUTH_SCOPE_PENDING_CODE;
|
|
27
34
|
exports.WaasAuthScopePendingError = WaasAuthScopePendingError;
|
|
35
|
+
exports.isWaasAuthScopePendingError = isWaasAuthScopePendingError;
|
|
@@ -12,3 +12,9 @@ export declare const WAAS_AUTH_SCOPE_PENDING_CODE = "WAAS_AUTH_SCOPE_PENDING";
|
|
|
12
12
|
export declare class WaasAuthScopePendingError extends DynamicError {
|
|
13
13
|
constructor();
|
|
14
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Recognizes the pending-scope error by its code, so callers can branch on it
|
|
17
|
+
* without relying on `instanceof` across package boundaries (each package may
|
|
18
|
+
* bundle its own copy of the class).
|
|
19
|
+
*/
|
|
20
|
+
export declare const isWaasAuthScopePendingError: (error: unknown) => boolean;
|
|
@@ -18,5 +18,12 @@ class WaasAuthScopePendingError extends DynamicError {
|
|
|
18
18
|
super('WaaS client not initialized: auth token scope is still pending (MFA/KYC/device registration). Wait for user:basic before creating or accessing the embedded wallet.', WAAS_AUTH_SCOPE_PENDING_CODE);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Recognizes the pending-scope error by its code, so callers can branch on it
|
|
23
|
+
* without relying on `instanceof` across package boundaries (each package may
|
|
24
|
+
* bundle its own copy of the class).
|
|
25
|
+
*/
|
|
26
|
+
const isWaasAuthScopePendingError = (error) => error instanceof Error &&
|
|
27
|
+
error.code === WAAS_AUTH_SCOPE_PENDING_CODE;
|
|
21
28
|
|
|
22
|
-
export { WAAS_AUTH_SCOPE_PENDING_CODE, WaasAuthScopePendingError };
|
|
29
|
+
export { WAAS_AUTH_SCOPE_PENDING_CODE, WaasAuthScopePendingError, isWaasAuthScopePendingError };
|
package/src/index.cjs
CHANGED
|
@@ -190,6 +190,7 @@ exports.UserRejectedTransactionError = UserRejectedTransactionError.UserRejected
|
|
|
190
190
|
exports.VerificationDataCollectionError = VerificationDataCollectionError.VerificationDataCollectionError;
|
|
191
191
|
exports.WAAS_AUTH_SCOPE_PENDING_CODE = WaasAuthScopePendingError.WAAS_AUTH_SCOPE_PENDING_CODE;
|
|
192
192
|
exports.WaasAuthScopePendingError = WaasAuthScopePendingError.WaasAuthScopePendingError;
|
|
193
|
+
exports.isWaasAuthScopePendingError = WaasAuthScopePendingError.isWaasAuthScopePendingError;
|
|
193
194
|
exports.WalletAddressMismatchError = WalletAddressMismatchError.WalletAddressMismatchError;
|
|
194
195
|
exports.WalletNotDeployedError = WalletNotDeployedError.WalletNotDeployedError;
|
|
195
196
|
exports.WalletRequiresInAppBrowserError = WalletRequiresInAppBrowserError.WalletRequiresInAppBrowserError;
|
package/src/index.js
CHANGED
|
@@ -53,7 +53,7 @@ export { UsernameAlreadyExistsError } from './errors/UsernameAlreadyExistsError.
|
|
|
53
53
|
export { UserRejectedRequestError } from './errors/UserRejectedRequestError.js';
|
|
54
54
|
export { UserRejectedTransactionError } from './errors/UserRejectedTransactionError.js';
|
|
55
55
|
export { VerificationDataCollectionError } from './errors/VerificationDataCollectionError.js';
|
|
56
|
-
export { WAAS_AUTH_SCOPE_PENDING_CODE, WaasAuthScopePendingError } from './errors/WaasAuthScopePendingError.js';
|
|
56
|
+
export { WAAS_AUTH_SCOPE_PENDING_CODE, WaasAuthScopePendingError, isWaasAuthScopePendingError } from './errors/WaasAuthScopePendingError.js';
|
|
57
57
|
export { WalletAddressMismatchError } from './errors/WalletAddressMismatchError.js';
|
|
58
58
|
export { WalletNotDeployedError } from './errors/WalletNotDeployedError.js';
|
|
59
59
|
export { WalletRequiresInAppBrowserError } from './errors/WalletRequiresInAppBrowserError.js';
|