@dynamic-labs/utils 5.6.1 → 5.8.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 +28 -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,32 @@
|
|
|
1
1
|
|
|
2
|
+
## [5.8.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.7.0...v5.8.0) (2026-09-09)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **solana-core:** standalone sponsored ATA creation ([#12365](https://github.com/dynamic-labs/dynamic-auth/issues/12365)) ([ac2e776](https://github.com/dynamic-labs/dynamic-auth/commit/ac2e7769fcf91c868e961a227b8acb6347bf3f13))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* do not report wallets installed from a provider selection router ([#12340](https://github.com/dynamic-labs/dynamic-auth/issues/12340)) ([dac5546](https://github.com/dynamic-labs/dynamic-auth/commit/dac5546edf6004c37bd84dd2089d94952949230b))
|
|
13
|
+
* **screening:** soften the blocked-wallet copy to be provider-neutral ([#12358](https://github.com/dynamic-labs/dynamic-auth/issues/12358)) ([b4854d8](https://github.com/dynamic-labs/dynamic-auth/commit/b4854d88fa67f684be0e133edd5fd4a4bf5c7f37))
|
|
14
|
+
* show transaction amount when simulation returns no transfers ([#12355](https://github.com/dynamic-labs/dynamic-auth/issues/12355)) ([bfaf337](https://github.com/dynamic-labs/dynamic-auth/commit/bfaf337e5350970f71255baff065e0cdbccdc7ca))
|
|
15
|
+
|
|
16
|
+
## [5.7.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.6.1...v5.7.0) (2026-09-08)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* **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))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* **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))
|
|
27
|
+
* **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))
|
|
28
|
+
* **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))
|
|
29
|
+
|
|
2
30
|
### [5.6.1](https://github.com/dynamic-labs/dynamic-auth/compare/v5.6.0...v5.6.1) (2026-09-01)
|
|
3
31
|
|
|
4
32
|
|
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.8.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.8.0",
|
|
24
|
+
"@dynamic-labs/logger": "5.8.0",
|
|
25
|
+
"@dynamic-labs/types": "5.8.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';
|