@dynamic-labs/utils 4.96.4 → 4.98.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 +25 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +4 -4
- package/src/errors/TransactionScreeningBlockedError.cjs +16 -0
- package/src/errors/TransactionScreeningBlockedError.d.ts +5 -0
- package/src/errors/TransactionScreeningBlockedError.js +12 -0
- package/src/errors/errorCodes.cjs +2 -0
- package/src/errors/errorCodes.d.ts +1 -0
- package/src/errors/errorCodes.js +2 -1
- package/src/errors/index.d.ts +1 -0
- package/src/index.cjs +3 -0
- package/src/index.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,29 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.98.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.97.0...v4.98.0) (2026-09-02)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **waas-evm:** route embedded EVM sends through gas sponsorship when enabled (V4) ([#12307](https://github.com/dynamic-labs/dynamic-auth/issues/12307)) ([d8e6b94](https://github.com/dynamic-labs/dynamic-auth/commit/d8e6b94dc86e1d48b66a246bf8bf0b857e7e69c4))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **sdk-react-core:** send a css overrides summary in sdkSettings telemetry (v4) ([#12330](https://github.com/dynamic-labs/dynamic-auth/issues/12330)) ([8547ee7](https://github.com/dynamic-labs/dynamic-auth/commit/8547ee7a7c3fef8de0ff384778f86542b809e7aa))
|
|
13
|
+
* **waas-svm:** apply overrideBlockhash before sponsorship [v4 backport] ([#12320](https://github.com/dynamic-labs/dynamic-auth/issues/12320)) ([0551f01](https://github.com/dynamic-labs/dynamic-auth/commit/0551f01953f5e623ac113b03e1b010d3dc58a81e)), closes [#10599](https://github.com/dynamic-labs/dynamic-auth/issues/10599) [#10599](https://github.com/dynamic-labs/dynamic-auth/issues/10599) [#10599](https://github.com/dynamic-labs/dynamic-auth/issues/10599) [#10599](https://github.com/dynamic-labs/dynamic-auth/issues/10599)
|
|
14
|
+
|
|
15
|
+
## [4.97.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.96.4...v4.97.0) (2026-08-27)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **screening:** connected-wallet transaction screening [v4 backport] (DYNT-1663) ([#12284](https://github.com/dynamic-labs/dynamic-auth/issues/12284)) ([294adba](https://github.com/dynamic-labs/dynamic-auth/commit/294adba7dba8f321f3b1e8413f73545701e51252)), closes [#12160](https://github.com/dynamic-labs/dynamic-auth/issues/12160) [#12167](https://github.com/dynamic-labs/dynamic-auth/issues/12167) [#12168](https://github.com/dynamic-labs/dynamic-auth/issues/12168) [#12169](https://github.com/dynamic-labs/dynamic-auth/issues/12169) [#12172](https://github.com/dynamic-labs/dynamic-auth/issues/12172)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* **screening:** wire connected-wallet screening into the Send Balance UI (DYNT-1663) ([#12289](https://github.com/dynamic-labs/dynamic-auth/issues/12289)) ([1587cd8](https://github.com/dynamic-labs/dynamic-auth/commit/1587cd833370e18fa383f942521500e4c1576390))
|
|
26
|
+
|
|
2
27
|
### [4.96.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.96.3...v4.96.4) (2026-08-26)
|
|
3
28
|
|
|
4
29
|
|
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.98.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.98.0",
|
|
24
|
+
"@dynamic-labs/logger": "4.98.0",
|
|
25
|
+
"@dynamic-labs/types": "4.98.0",
|
|
26
26
|
"buffer": "6.0.3",
|
|
27
27
|
"eventemitter3": "5.0.1"
|
|
28
28
|
},
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var DynamicError = require('./DynamicError.cjs');
|
|
7
|
+
var errorCodes = require('./errorCodes.cjs');
|
|
8
|
+
|
|
9
|
+
class TransactionScreeningBlockedError extends DynamicError.DynamicError {
|
|
10
|
+
constructor(blockedAddresses) {
|
|
11
|
+
super('This transaction destination is not approved', errorCodes.TRANSACTION_SCREENING_BLOCKED_ERROR_CODE);
|
|
12
|
+
this.blockedAddresses = blockedAddresses;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
exports.TransactionScreeningBlockedError = TransactionScreeningBlockedError;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import { DynamicError } from './DynamicError.js';
|
|
3
|
+
import { TRANSACTION_SCREENING_BLOCKED_ERROR_CODE } from './errorCodes.js';
|
|
4
|
+
|
|
5
|
+
class TransactionScreeningBlockedError extends DynamicError {
|
|
6
|
+
constructor(blockedAddresses) {
|
|
7
|
+
super('This transaction destination is not approved', TRANSACTION_SCREENING_BLOCKED_ERROR_CODE);
|
|
8
|
+
this.blockedAddresses = blockedAddresses;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { TransactionScreeningBlockedError };
|
|
@@ -6,8 +6,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
6
6
|
var SdkErrorCode = require('./SdkErrorCode.cjs');
|
|
7
7
|
|
|
8
8
|
const RATE_LIMIT_ERROR_CODE = 'rate_limit_error';
|
|
9
|
+
const TRANSACTION_SCREENING_BLOCKED_ERROR_CODE = 'transaction_screening_blocked';
|
|
9
10
|
/** @deprecated Use SdkErrorCode.UNKNOWN_ERROR instead */
|
|
10
11
|
const UNKNOWN_ERROR_CODE = SdkErrorCode.SdkErrorCode.UNKNOWN_ERROR;
|
|
11
12
|
|
|
12
13
|
exports.RATE_LIMIT_ERROR_CODE = RATE_LIMIT_ERROR_CODE;
|
|
14
|
+
exports.TRANSACTION_SCREENING_BLOCKED_ERROR_CODE = TRANSACTION_SCREENING_BLOCKED_ERROR_CODE;
|
|
13
15
|
exports.UNKNOWN_ERROR_CODE = UNKNOWN_ERROR_CODE;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare const RATE_LIMIT_ERROR_CODE = "rate_limit_error";
|
|
2
|
+
export declare const TRANSACTION_SCREENING_BLOCKED_ERROR_CODE = "transaction_screening_blocked";
|
|
2
3
|
/** @deprecated Use SdkErrorCode.UNKNOWN_ERROR instead */
|
|
3
4
|
export declare const UNKNOWN_ERROR_CODE: string;
|
package/src/errors/errorCodes.js
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { SdkErrorCode } from './SdkErrorCode.js';
|
|
3
3
|
|
|
4
4
|
const RATE_LIMIT_ERROR_CODE = 'rate_limit_error';
|
|
5
|
+
const TRANSACTION_SCREENING_BLOCKED_ERROR_CODE = 'transaction_screening_blocked';
|
|
5
6
|
/** @deprecated Use SdkErrorCode.UNKNOWN_ERROR instead */
|
|
6
7
|
const UNKNOWN_ERROR_CODE = SdkErrorCode.UNKNOWN_ERROR;
|
|
7
8
|
|
|
8
|
-
export { RATE_LIMIT_ERROR_CODE, UNKNOWN_ERROR_CODE };
|
|
9
|
+
export { RATE_LIMIT_ERROR_CODE, TRANSACTION_SCREENING_BLOCKED_ERROR_CODE, UNKNOWN_ERROR_CODE };
|
package/src/errors/index.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export * from './TooManyEmailVerificationsError';
|
|
|
39
39
|
export * from './TransactionConfirmationTimeoutError';
|
|
40
40
|
export * from './TransactionFailedError';
|
|
41
41
|
export * from './TransactionGasCannotBeSponsoredError';
|
|
42
|
+
export * from './TransactionScreeningBlockedError';
|
|
42
43
|
export * from './UserHasAccountWithEmailError';
|
|
43
44
|
export * from './UsernameAlreadyExistsError';
|
|
44
45
|
export * from './UserRejectedRequestError';
|
package/src/index.cjs
CHANGED
|
@@ -50,6 +50,7 @@ var TooManyEmailVerificationsError = require('./errors/TooManyEmailVerifications
|
|
|
50
50
|
var TransactionConfirmationTimeoutError = require('./errors/TransactionConfirmationTimeoutError.cjs');
|
|
51
51
|
var TransactionFailedError = require('./errors/TransactionFailedError.cjs');
|
|
52
52
|
var TransactionGasCannotBeSponsoredError = require('./errors/TransactionGasCannotBeSponsoredError.cjs');
|
|
53
|
+
var TransactionScreeningBlockedError = require('./errors/TransactionScreeningBlockedError.cjs');
|
|
53
54
|
var UserHasAccountWithEmailError = require('./errors/UserHasAccountWithEmailError.cjs');
|
|
54
55
|
var UsernameAlreadyExistsError = require('./errors/UsernameAlreadyExistsError.cjs');
|
|
55
56
|
var UserRejectedRequestError = require('./errors/UserRejectedRequestError.cjs');
|
|
@@ -170,6 +171,7 @@ Object.defineProperty(exports, 'SdkErrorCode', {
|
|
|
170
171
|
get: function () { return SdkErrorCode.SdkErrorCode; }
|
|
171
172
|
});
|
|
172
173
|
exports.RATE_LIMIT_ERROR_CODE = errorCodes.RATE_LIMIT_ERROR_CODE;
|
|
174
|
+
exports.TRANSACTION_SCREENING_BLOCKED_ERROR_CODE = errorCodes.TRANSACTION_SCREENING_BLOCKED_ERROR_CODE;
|
|
173
175
|
exports.UNKNOWN_ERROR_CODE = errorCodes.UNKNOWN_ERROR_CODE;
|
|
174
176
|
exports.SeiNotEnabledInKeplrWalletError = SeiNotEnabledInKeplrWalletError.SeiNotEnabledInKeplrWalletError;
|
|
175
177
|
exports.SmsVerificationError = SmsVerificationError.SmsVerificationError;
|
|
@@ -178,6 +180,7 @@ exports.TooManyEmailVerificationsError = TooManyEmailVerificationsError.TooManyE
|
|
|
178
180
|
exports.TransactionConfirmationTimeoutError = TransactionConfirmationTimeoutError.TransactionConfirmationTimeoutError;
|
|
179
181
|
exports.TransactionFailedError = TransactionFailedError.TransactionFailedError;
|
|
180
182
|
exports.TransactionGasCannotBeSponsoredError = TransactionGasCannotBeSponsoredError.TransactionGasCannotBeSponsoredError;
|
|
183
|
+
exports.TransactionScreeningBlockedError = TransactionScreeningBlockedError.TransactionScreeningBlockedError;
|
|
181
184
|
exports.UserHasAccountWithEmailError = UserHasAccountWithEmailError.UserHasAccountWithEmailError;
|
|
182
185
|
exports.UsernameAlreadyExistsError = UsernameAlreadyExistsError.UsernameAlreadyExistsError;
|
|
183
186
|
exports.UserRejectedRequestError = UserRejectedRequestError.UserRejectedRequestError;
|
package/src/index.js
CHANGED
|
@@ -38,7 +38,7 @@ export { RequestChannelNotHandledError } from './errors/RequestChannelNotHandled
|
|
|
38
38
|
export { ResponseError } from './errors/ResponseError.js';
|
|
39
39
|
export { SandboxMaximumThresholdReachedError } from './errors/SandboxMaximumThresholdReachedError.js';
|
|
40
40
|
export { SdkErrorCode } from './errors/SdkErrorCode.js';
|
|
41
|
-
export { RATE_LIMIT_ERROR_CODE, UNKNOWN_ERROR_CODE } from './errors/errorCodes.js';
|
|
41
|
+
export { RATE_LIMIT_ERROR_CODE, TRANSACTION_SCREENING_BLOCKED_ERROR_CODE, UNKNOWN_ERROR_CODE } from './errors/errorCodes.js';
|
|
42
42
|
export { SeiNotEnabledInKeplrWalletError } from './errors/SeiNotEnabledInKeplrWalletError.js';
|
|
43
43
|
export { SmsVerificationError } from './errors/SmsVerificationError.js';
|
|
44
44
|
export { SocialAccountAlreadyExistsError } from './errors/SocialAccountAlreadyExistsError.js';
|
|
@@ -46,6 +46,7 @@ export { TooManyEmailVerificationsError } from './errors/TooManyEmailVerificatio
|
|
|
46
46
|
export { TransactionConfirmationTimeoutError } from './errors/TransactionConfirmationTimeoutError.js';
|
|
47
47
|
export { TransactionFailedError } from './errors/TransactionFailedError.js';
|
|
48
48
|
export { TransactionGasCannotBeSponsoredError } from './errors/TransactionGasCannotBeSponsoredError.js';
|
|
49
|
+
export { TransactionScreeningBlockedError } from './errors/TransactionScreeningBlockedError.js';
|
|
49
50
|
export { UserHasAccountWithEmailError } from './errors/UserHasAccountWithEmailError.js';
|
|
50
51
|
export { UsernameAlreadyExistsError } from './errors/UsernameAlreadyExistsError.js';
|
|
51
52
|
export { UserRejectedRequestError } from './errors/UserRejectedRequestError.js';
|