@dynamic-labs/utils 4.98.0 → 4.100.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 +26 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +4 -4
- 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,30 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.100.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.99.0...v4.100.0) (2026-09-10)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **solana-extension:** expose createAssociatedTokenAccount ([#12377](https://github.com/dynamic-labs/dynamic-auth/issues/12377)) ([c127857](https://github.com/dynamic-labs/dynamic-auth/commit/c127857097069ef2fcf337b78971e678f0552277))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* show transaction amount when simulation returns no transfers (v4 backport) ([#12356](https://github.com/dynamic-labs/dynamic-auth/issues/12356)) ([36feb2d](https://github.com/dynamic-labs/dynamic-auth/commit/36feb2d24de3f78560112bdf86a258d0596c4470))
|
|
13
|
+
|
|
14
|
+
## [4.99.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.98.0...v4.99.0) (2026-09-10)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **solana-core:** standalone sponsored ATA creation [v4 backport] ([#12366](https://github.com/dynamic-labs/dynamic-auth/issues/12366)) ([46d86c9](https://github.com/dynamic-labs/dynamic-auth/commit/46d86c9a1a04c45bf045acc5c6df792dcd4b3590))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* do not report wallets installed from a provider selection router (v4) ([#12341](https://github.com/dynamic-labs/dynamic-auth/issues/12341)) ([6b02087](https://github.com/dynamic-labs/dynamic-auth/commit/6b02087685545bb6f672eb9040316d01489c82f4))
|
|
25
|
+
* **screening:** soften the blocked-wallet copy to be provider-neutral (v4) ([#12359](https://github.com/dynamic-labs/dynamic-auth/issues/12359)) ([d6772df](https://github.com/dynamic-labs/dynamic-auth/commit/d6772dfc1419811bfbc1d9cb1db58fe12274d397))
|
|
26
|
+
* **waas:** detach the superseded WaaS client from the iframe reverse channel (v4) ([#12349](https://github.com/dynamic-labs/dynamic-auth/issues/12349)) ([393253d](https://github.com/dynamic-labs/dynamic-auth/commit/393253d9e5934e039e21b85ed6ceded760e0f225)), closes [#11766](https://github.com/dynamic-labs/dynamic-auth/issues/11766) [#12348](https://github.com/dynamic-labs/dynamic-auth/issues/12348)
|
|
27
|
+
|
|
2
28
|
## [4.98.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.97.0...v4.98.0) (2026-09-02)
|
|
3
29
|
|
|
4
30
|
|
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.
|
|
3
|
+
"version": "4.100.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",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@dynamic-labs/sdk-api-core": "0.12.0",
|
|
22
22
|
"tldts": "6.0.16",
|
|
23
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
24
|
-
"@dynamic-labs/logger": "4.
|
|
25
|
-
"@dynamic-labs/types": "4.
|
|
23
|
+
"@dynamic-labs/assert-package-version": "4.100.0",
|
|
24
|
+
"@dynamic-labs/logger": "4.100.0",
|
|
25
|
+
"@dynamic-labs/types": "4.100.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
|
@@ -188,6 +188,7 @@ exports.UserRejectedTransactionError = UserRejectedTransactionError.UserRejected
|
|
|
188
188
|
exports.VerificationDataCollectionError = VerificationDataCollectionError.VerificationDataCollectionError;
|
|
189
189
|
exports.WAAS_AUTH_SCOPE_PENDING_CODE = WaasAuthScopePendingError.WAAS_AUTH_SCOPE_PENDING_CODE;
|
|
190
190
|
exports.WaasAuthScopePendingError = WaasAuthScopePendingError.WaasAuthScopePendingError;
|
|
191
|
+
exports.isWaasAuthScopePendingError = WaasAuthScopePendingError.isWaasAuthScopePendingError;
|
|
191
192
|
exports.WalletAddressMismatchError = WalletAddressMismatchError.WalletAddressMismatchError;
|
|
192
193
|
exports.WalletNotDeployedError = WalletNotDeployedError.WalletNotDeployedError;
|
|
193
194
|
exports.WalletRequiresInAppBrowserError = WalletRequiresInAppBrowserError.WalletRequiresInAppBrowserError;
|
package/src/index.js
CHANGED
|
@@ -52,7 +52,7 @@ export { UsernameAlreadyExistsError } from './errors/UsernameAlreadyExistsError.
|
|
|
52
52
|
export { UserRejectedRequestError } from './errors/UserRejectedRequestError.js';
|
|
53
53
|
export { UserRejectedTransactionError } from './errors/UserRejectedTransactionError.js';
|
|
54
54
|
export { VerificationDataCollectionError } from './errors/VerificationDataCollectionError.js';
|
|
55
|
-
export { WAAS_AUTH_SCOPE_PENDING_CODE, WaasAuthScopePendingError } from './errors/WaasAuthScopePendingError.js';
|
|
55
|
+
export { WAAS_AUTH_SCOPE_PENDING_CODE, WaasAuthScopePendingError, isWaasAuthScopePendingError } from './errors/WaasAuthScopePendingError.js';
|
|
56
56
|
export { WalletAddressMismatchError } from './errors/WalletAddressMismatchError.js';
|
|
57
57
|
export { WalletNotDeployedError } from './errors/WalletNotDeployedError.js';
|
|
58
58
|
export { WalletRequiresInAppBrowserError } from './errors/WalletRequiresInAppBrowserError.js';
|