@dynamic-labs/utils 4.100.0 → 4.100.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 +15 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +5 -5
- package/src/errors/errorCodes.cjs +13 -0
- package/src/errors/errorCodes.d.ts +7 -0
- package/src/errors/errorCodes.js +11 -1
- package/src/index.cjs +3 -0
- package/src/index.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.100.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.100.1...v4.100.2) (2026-09-17)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* **webview-controller:** route MetaMask connector storage through native secure storage [V4 backport] ([#12418](https://github.com/dynamic-labs/dynamic-auth/issues/12418)) ([0a9047c](https://github.com/dynamic-labs/dynamic-auth/commit/0a9047c72f184fca3fd27116d0a9eaa0a5bc69e6)), closes [#12304](https://github.com/dynamic-labs/dynamic-auth/issues/12304)
|
|
8
|
+
|
|
9
|
+
### [4.100.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.100.0...v4.100.1) (2026-09-16)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **ethereum-core:** prefer dashboard-saved RPC urls when mapping viem chains ([#12407](https://github.com/dynamic-labs/dynamic-auth/issues/12407)) ([e794605](https://github.com/dynamic-labs/dynamic-auth/commit/e79460541f5d99caee64e9f4699baa1bf1b36544))
|
|
15
|
+
* **wallet-connect:** fix Rabby WalletConnect connection on Mobile [V4 backport] ([#12387](https://github.com/dynamic-labs/dynamic-auth/issues/12387)) ([a2f137f](https://github.com/dynamic-labs/dynamic-auth/commit/a2f137f5dc203f7fbfc4399b9999751c22851654))
|
|
16
|
+
|
|
2
17
|
## [4.100.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.99.0...v4.100.0) (2026-09-10)
|
|
3
18
|
|
|
4
19
|
|
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.100.
|
|
3
|
+
"version": "4.100.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",
|
|
@@ -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.40.0",
|
|
22
22
|
"tldts": "6.0.16",
|
|
23
|
-
"@dynamic-labs/assert-package-version": "4.100.
|
|
24
|
-
"@dynamic-labs/logger": "4.100.
|
|
25
|
-
"@dynamic-labs/types": "4.100.
|
|
23
|
+
"@dynamic-labs/assert-package-version": "4.100.2",
|
|
24
|
+
"@dynamic-labs/logger": "4.100.2",
|
|
25
|
+
"@dynamic-labs/types": "4.100.2",
|
|
26
26
|
"buffer": "6.0.3",
|
|
27
27
|
"eventemitter3": "5.0.1"
|
|
28
28
|
},
|
|
@@ -6,10 +6,23 @@ 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 SCREENING_BLOCKED_WALLET_ERROR_CODE = 'screening_blocked_wallet';
|
|
10
|
+
/**
|
|
11
|
+
* Legacy provider-specific code, kept so backends that still emit it are
|
|
12
|
+
* recognized. New code should use SCREENING_BLOCKED_WALLET_ERROR_CODE.
|
|
13
|
+
*/
|
|
14
|
+
const LEGACY_SCREENING_BLOCKED_WALLET_ERROR_CODE = 'chainalysis_blocked_wallet';
|
|
15
|
+
const SCREENING_BLOCKED_WALLET_ERROR_CODES = [
|
|
16
|
+
SCREENING_BLOCKED_WALLET_ERROR_CODE,
|
|
17
|
+
LEGACY_SCREENING_BLOCKED_WALLET_ERROR_CODE,
|
|
18
|
+
];
|
|
9
19
|
const TRANSACTION_SCREENING_BLOCKED_ERROR_CODE = 'transaction_screening_blocked';
|
|
10
20
|
/** @deprecated Use SdkErrorCode.UNKNOWN_ERROR instead */
|
|
11
21
|
const UNKNOWN_ERROR_CODE = SdkErrorCode.SdkErrorCode.UNKNOWN_ERROR;
|
|
12
22
|
|
|
23
|
+
exports.LEGACY_SCREENING_BLOCKED_WALLET_ERROR_CODE = LEGACY_SCREENING_BLOCKED_WALLET_ERROR_CODE;
|
|
13
24
|
exports.RATE_LIMIT_ERROR_CODE = RATE_LIMIT_ERROR_CODE;
|
|
25
|
+
exports.SCREENING_BLOCKED_WALLET_ERROR_CODE = SCREENING_BLOCKED_WALLET_ERROR_CODE;
|
|
26
|
+
exports.SCREENING_BLOCKED_WALLET_ERROR_CODES = SCREENING_BLOCKED_WALLET_ERROR_CODES;
|
|
14
27
|
exports.TRANSACTION_SCREENING_BLOCKED_ERROR_CODE = TRANSACTION_SCREENING_BLOCKED_ERROR_CODE;
|
|
15
28
|
exports.UNKNOWN_ERROR_CODE = UNKNOWN_ERROR_CODE;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
export declare const RATE_LIMIT_ERROR_CODE = "rate_limit_error";
|
|
2
|
+
export declare const SCREENING_BLOCKED_WALLET_ERROR_CODE = "screening_blocked_wallet";
|
|
3
|
+
/**
|
|
4
|
+
* Legacy provider-specific code, kept so backends that still emit it are
|
|
5
|
+
* recognized. New code should use SCREENING_BLOCKED_WALLET_ERROR_CODE.
|
|
6
|
+
*/
|
|
7
|
+
export declare const LEGACY_SCREENING_BLOCKED_WALLET_ERROR_CODE = "chainalysis_blocked_wallet";
|
|
8
|
+
export declare const SCREENING_BLOCKED_WALLET_ERROR_CODES: string[];
|
|
2
9
|
export declare const TRANSACTION_SCREENING_BLOCKED_ERROR_CODE = "transaction_screening_blocked";
|
|
3
10
|
/** @deprecated Use SdkErrorCode.UNKNOWN_ERROR instead */
|
|
4
11
|
export declare const UNKNOWN_ERROR_CODE: string;
|
package/src/errors/errorCodes.js
CHANGED
|
@@ -2,8 +2,18 @@
|
|
|
2
2
|
import { SdkErrorCode } from './SdkErrorCode.js';
|
|
3
3
|
|
|
4
4
|
const RATE_LIMIT_ERROR_CODE = 'rate_limit_error';
|
|
5
|
+
const SCREENING_BLOCKED_WALLET_ERROR_CODE = 'screening_blocked_wallet';
|
|
6
|
+
/**
|
|
7
|
+
* Legacy provider-specific code, kept so backends that still emit it are
|
|
8
|
+
* recognized. New code should use SCREENING_BLOCKED_WALLET_ERROR_CODE.
|
|
9
|
+
*/
|
|
10
|
+
const LEGACY_SCREENING_BLOCKED_WALLET_ERROR_CODE = 'chainalysis_blocked_wallet';
|
|
11
|
+
const SCREENING_BLOCKED_WALLET_ERROR_CODES = [
|
|
12
|
+
SCREENING_BLOCKED_WALLET_ERROR_CODE,
|
|
13
|
+
LEGACY_SCREENING_BLOCKED_WALLET_ERROR_CODE,
|
|
14
|
+
];
|
|
5
15
|
const TRANSACTION_SCREENING_BLOCKED_ERROR_CODE = 'transaction_screening_blocked';
|
|
6
16
|
/** @deprecated Use SdkErrorCode.UNKNOWN_ERROR instead */
|
|
7
17
|
const UNKNOWN_ERROR_CODE = SdkErrorCode.UNKNOWN_ERROR;
|
|
8
18
|
|
|
9
|
-
export { RATE_LIMIT_ERROR_CODE, TRANSACTION_SCREENING_BLOCKED_ERROR_CODE, UNKNOWN_ERROR_CODE };
|
|
19
|
+
export { LEGACY_SCREENING_BLOCKED_WALLET_ERROR_CODE, RATE_LIMIT_ERROR_CODE, SCREENING_BLOCKED_WALLET_ERROR_CODE, SCREENING_BLOCKED_WALLET_ERROR_CODES, TRANSACTION_SCREENING_BLOCKED_ERROR_CODE, UNKNOWN_ERROR_CODE };
|
package/src/index.cjs
CHANGED
|
@@ -170,7 +170,10 @@ Object.defineProperty(exports, 'SdkErrorCode', {
|
|
|
170
170
|
enumerable: true,
|
|
171
171
|
get: function () { return SdkErrorCode.SdkErrorCode; }
|
|
172
172
|
});
|
|
173
|
+
exports.LEGACY_SCREENING_BLOCKED_WALLET_ERROR_CODE = errorCodes.LEGACY_SCREENING_BLOCKED_WALLET_ERROR_CODE;
|
|
173
174
|
exports.RATE_LIMIT_ERROR_CODE = errorCodes.RATE_LIMIT_ERROR_CODE;
|
|
175
|
+
exports.SCREENING_BLOCKED_WALLET_ERROR_CODE = errorCodes.SCREENING_BLOCKED_WALLET_ERROR_CODE;
|
|
176
|
+
exports.SCREENING_BLOCKED_WALLET_ERROR_CODES = errorCodes.SCREENING_BLOCKED_WALLET_ERROR_CODES;
|
|
174
177
|
exports.TRANSACTION_SCREENING_BLOCKED_ERROR_CODE = errorCodes.TRANSACTION_SCREENING_BLOCKED_ERROR_CODE;
|
|
175
178
|
exports.UNKNOWN_ERROR_CODE = errorCodes.UNKNOWN_ERROR_CODE;
|
|
176
179
|
exports.SeiNotEnabledInKeplrWalletError = SeiNotEnabledInKeplrWalletError.SeiNotEnabledInKeplrWalletError;
|
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, TRANSACTION_SCREENING_BLOCKED_ERROR_CODE, UNKNOWN_ERROR_CODE } from './errors/errorCodes.js';
|
|
41
|
+
export { LEGACY_SCREENING_BLOCKED_WALLET_ERROR_CODE, RATE_LIMIT_ERROR_CODE, SCREENING_BLOCKED_WALLET_ERROR_CODE, SCREENING_BLOCKED_WALLET_ERROR_CODES, 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';
|