@dynamic-labs/utils 4.91.1 → 4.91.3

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 CHANGED
@@ -1,4 +1,40 @@
1
1
 
2
+ ### [4.91.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.91.2...v4.91.3) (2026-06-30)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * **bitcoin:** detect late-registering wallet-standard wallets (DYNT-1210) ([#11747](https://github.com/dynamic-labs/dynamic-auth/issues/11747)) ([17809f6](https://github.com/dynamic-labs/dynamic-auth/commit/17809f6e811fe101367cc31a2d899a8d0b0d107e))
8
+ * fetch onramp providers lazily instead of eagerly on mount ([#11767](https://github.com/dynamic-labs/dynamic-auth/issues/11767)) ([3ee6708](https://github.com/dynamic-labs/dynamic-auth/commit/3ee67087142ae1942f865e0ab37b7108700b3327))
9
+ * **iframe-setup:** sync parent URL to iframe on pushState/replaceState ([#11751](https://github.com/dynamic-labs/dynamic-auth/issues/11751)) ([c8be3af](https://github.com/dynamic-labs/dynamic-auth/commit/c8be3afc301f77b349f23398bed940ce40f93b73))
10
+ * **nonce:** fetch nonce on demand when missing before wallet verification ([#11753](https://github.com/dynamic-labs/dynamic-auth/issues/11753)) ([4f01a21](https://github.com/dynamic-labs/dynamic-auth/commit/4f01a21b6081c852f32868c8a5e04d70aaf280a2)), closes [#1](https://github.com/dynamic-labs/dynamic-auth/issues/1)
11
+ * **react-native-extension:** arm loading timer before setUrl to cover pre-onLoadStart gap ([#11764](https://github.com/dynamic-labs/dynamic-auth/issues/11764)) ([31f2015](https://github.com/dynamic-labs/dynamic-auth/commit/31f20151a4b59279f9c133b723e50de771b06436))
12
+ * **webview-controller:** unwrap ZeroDev smart wallet for native gasless ([#11758](https://github.com/dynamic-labs/dynamic-auth/issues/11758)) ([989714e](https://github.com/dynamic-labs/dynamic-auth/commit/989714e414556868c8e0c54401aac1ed7354331b))
13
+
14
+ ### [4.91.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.91.1...v4.91.2) (2026-06-26)
15
+
16
+
17
+ ### ⚠ BREAKING CHANGES
18
+
19
+ * **waas:** require expectedAddresses on migrateFromFireblocks (#11730)
20
+
21
+ ### Features
22
+
23
+ * **midnight:** support shielded/unshielded transfers and dust states in the embedded Send flow ([#11731](https://github.com/dynamic-labs/dynamic-auth/issues/11731)) ([663d171](https://github.com/dynamic-labs/dynamic-auth/commit/663d171a9628c634586831ee35c234e9331e3f80))
24
+ * **react-native-extension:** instrument all embedded webview failure paths ([#11737](https://github.com/dynamic-labs/dynamic-auth/issues/11737)) ([172998b](https://github.com/dynamic-labs/dynamic-auth/commit/172998b56e9bee04fbb8da71e83ce8885bc378ff))
25
+ * **waas:** migrateFromFireblocks connector method + demo panel (browser-wallet-client 1.0.46) ([#11702](https://github.com/dynamic-labs/dynamic-auth/issues/11702)) ([6bfc844](https://github.com/dynamic-labs/dynamic-auth/commit/6bfc8443fbaedabe1e7bee0ed78742cbbe5d0084))
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * add coverage for scenario with passkey re-login and smart account ([#11726](https://github.com/dynamic-labs/dynamic-auth/issues/11726)) ([5364a72](https://github.com/dynamic-labs/dynamic-auth/commit/5364a72a750d835b9b2da602a91e8b5d7d305db7))
31
+ * remediate high-severity dependency vulnerabilities ([#11721](https://github.com/dynamic-labs/dynamic-auth/issues/11721)) ([cdb9306](https://github.com/dynamic-labs/dynamic-auth/commit/cdb93061365a20b8f73a1f8bea8352332e282c1e))
32
+ * replace node-fetch v2 with native fetch to fix Node 22 stream failure ([#11732](https://github.com/dynamic-labs/dynamic-auth/issues/11732)) ([b98f801](https://github.com/dynamic-labs/dynamic-auth/commit/b98f801e307b52dbd7e4b241a9a4a2d34d89118e))
33
+ * **zerodev-extension:** derive kernel 7702 vs 4337 per-wallet, not from global dashboard flag ([#11735](https://github.com/dynamic-labs/dynamic-auth/issues/11735)) ([72cf6a7](https://github.com/dynamic-labs/dynamic-auth/commit/72cf6a70a4857a4ea469faa555c485dbad8d0217))
34
+
35
+
36
+ * **waas:** require expectedAddresses on migrateFromFireblocks ([#11730](https://github.com/dynamic-labs/dynamic-auth/issues/11730)) ([c94824e](https://github.com/dynamic-labs/dynamic-auth/commit/c94824ebe11e0433a6ffbd2a5a9dd4283aeed31e))
37
+
2
38
  ### [4.91.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.91.0...v4.91.1) (2026-06-24)
3
39
 
4
40
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.91.1";
6
+ var version = "4.91.3";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.91.1";
2
+ var version = "4.91.3";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/utils",
3
- "version": "4.91.1",
3
+ "version": "4.91.3",
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.0.1046",
22
22
  "tldts": "6.0.16",
23
- "@dynamic-labs/assert-package-version": "4.91.1",
24
- "@dynamic-labs/logger": "4.91.1",
25
- "@dynamic-labs/types": "4.91.1",
23
+ "@dynamic-labs/assert-package-version": "4.91.3",
24
+ "@dynamic-labs/logger": "4.91.3",
25
+ "@dynamic-labs/types": "4.91.3",
26
26
  "buffer": "6.0.3",
27
27
  "eventemitter3": "5.0.1"
28
28
  },
@@ -0,0 +1,24 @@
1
+ 'use client'
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ /**
7
+ * String error codes actively used by the SDK for control flow,
8
+ * type annotations, and error-message mapping.
9
+ *
10
+ * Only codes that the SDK checks or propagates belong here.
11
+ * API-only response codes that are caught and re-thrown as specific
12
+ * Error sub-classes should stay as plain string literals.
13
+ */
14
+ exports.SdkErrorCode = void 0;
15
+ (function (SdkErrorCode) {
16
+ SdkErrorCode["CONNECTION_REJECTED"] = "connection_rejected";
17
+ SdkErrorCode["INVALID_EMAIL_VERIFICATION"] = "invalid_email_verification";
18
+ SdkErrorCode["MISSING_NONCE"] = "missing-nonce";
19
+ SdkErrorCode["TOO_MANY_EMAIL_VERIFICATION_ATTEMPTS"] = "too_many_email_verification_attempts";
20
+ SdkErrorCode["UNKNOWN_ERROR"] = "unknown_error";
21
+ SdkErrorCode["USER_CANCELLED"] = "user-cancelled";
22
+ SdkErrorCode["USER_CANCELLED_OAUTH"] = "user_cancelled";
23
+ SdkErrorCode["WALLET_NOT_DEPLOYED"] = "wallet_not_deployed";
24
+ })(exports.SdkErrorCode || (exports.SdkErrorCode = {}));
@@ -0,0 +1,18 @@
1
+ /**
2
+ * String error codes actively used by the SDK for control flow,
3
+ * type annotations, and error-message mapping.
4
+ *
5
+ * Only codes that the SDK checks or propagates belong here.
6
+ * API-only response codes that are caught and re-thrown as specific
7
+ * Error sub-classes should stay as plain string literals.
8
+ */
9
+ export declare enum SdkErrorCode {
10
+ CONNECTION_REJECTED = "connection_rejected",
11
+ INVALID_EMAIL_VERIFICATION = "invalid_email_verification",
12
+ MISSING_NONCE = "missing-nonce",
13
+ TOO_MANY_EMAIL_VERIFICATION_ATTEMPTS = "too_many_email_verification_attempts",
14
+ UNKNOWN_ERROR = "unknown_error",
15
+ USER_CANCELLED = "user-cancelled",
16
+ USER_CANCELLED_OAUTH = "user_cancelled",
17
+ WALLET_NOT_DEPLOYED = "wallet_not_deployed"
18
+ }
@@ -0,0 +1,22 @@
1
+ 'use client'
2
+ /**
3
+ * String error codes actively used by the SDK for control flow,
4
+ * type annotations, and error-message mapping.
5
+ *
6
+ * Only codes that the SDK checks or propagates belong here.
7
+ * API-only response codes that are caught and re-thrown as specific
8
+ * Error sub-classes should stay as plain string literals.
9
+ */
10
+ var SdkErrorCode;
11
+ (function (SdkErrorCode) {
12
+ SdkErrorCode["CONNECTION_REJECTED"] = "connection_rejected";
13
+ SdkErrorCode["INVALID_EMAIL_VERIFICATION"] = "invalid_email_verification";
14
+ SdkErrorCode["MISSING_NONCE"] = "missing-nonce";
15
+ SdkErrorCode["TOO_MANY_EMAIL_VERIFICATION_ATTEMPTS"] = "too_many_email_verification_attempts";
16
+ SdkErrorCode["UNKNOWN_ERROR"] = "unknown_error";
17
+ SdkErrorCode["USER_CANCELLED"] = "user-cancelled";
18
+ SdkErrorCode["USER_CANCELLED_OAUTH"] = "user_cancelled";
19
+ SdkErrorCode["WALLET_NOT_DEPLOYED"] = "wallet_not_deployed";
20
+ })(SdkErrorCode || (SdkErrorCode = {}));
21
+
22
+ export { SdkErrorCode };
@@ -3,8 +3,11 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
+ var SdkErrorCode = require('./SdkErrorCode.cjs');
7
+
6
8
  const RATE_LIMIT_ERROR_CODE = 'rate_limit_error';
7
- const UNKNOWN_ERROR_CODE = 'unknown_error';
9
+ /** @deprecated Use SdkErrorCode.UNKNOWN_ERROR instead */
10
+ const UNKNOWN_ERROR_CODE = SdkErrorCode.SdkErrorCode.UNKNOWN_ERROR;
8
11
 
9
12
  exports.RATE_LIMIT_ERROR_CODE = RATE_LIMIT_ERROR_CODE;
10
13
  exports.UNKNOWN_ERROR_CODE = UNKNOWN_ERROR_CODE;
@@ -1,2 +1,3 @@
1
1
  export declare const RATE_LIMIT_ERROR_CODE = "rate_limit_error";
2
- export declare const UNKNOWN_ERROR_CODE = "unknown_error";
2
+ /** @deprecated Use SdkErrorCode.UNKNOWN_ERROR instead */
3
+ export declare const UNKNOWN_ERROR_CODE: string;
@@ -1,5 +1,8 @@
1
1
  'use client'
2
+ import { SdkErrorCode } from './SdkErrorCode.js';
3
+
2
4
  const RATE_LIMIT_ERROR_CODE = 'rate_limit_error';
3
- const UNKNOWN_ERROR_CODE = 'unknown_error';
5
+ /** @deprecated Use SdkErrorCode.UNKNOWN_ERROR instead */
6
+ const UNKNOWN_ERROR_CODE = SdkErrorCode.UNKNOWN_ERROR;
4
7
 
5
8
  export { RATE_LIMIT_ERROR_CODE, UNKNOWN_ERROR_CODE };
@@ -10,7 +10,6 @@ export * from './EmailAlreadyExistsError';
10
10
  export * from './EmailProviderError';
11
11
  export * from './EmailVerificationError';
12
12
  export * from './EmbeddedWalletException';
13
- export * from './errorCodes';
14
13
  export * from './EmbeddedWalletExistsError';
15
14
  export * from './ErrorCode';
16
15
  export * from './ExternalAuthError';
@@ -31,6 +30,8 @@ export * from './RateLimitError';
31
30
  export * from './RequestChannelNotHandledError';
32
31
  export * from './ResponseError';
33
32
  export * from './SandboxMaximumThresholdReachedError';
33
+ export * from './SdkErrorCode';
34
+ export * from './errorCodes';
34
35
  export * from './SeiNotEnabledInKeplrWalletError';
35
36
  export * from './SmsVerificationError';
36
37
  export * from './SocialAccountAlreadyExistsError';
package/src/index.cjs CHANGED
@@ -22,7 +22,6 @@ var EmailAlreadyExistsError = require('./errors/EmailAlreadyExistsError.cjs');
22
22
  var EmailProviderError = require('./errors/EmailProviderError.cjs');
23
23
  var EmailVerificationError = require('./errors/EmailVerificationError.cjs');
24
24
  var EmbeddedWalletException = require('./errors/EmbeddedWalletException.cjs');
25
- var errorCodes = require('./errors/errorCodes.cjs');
26
25
  var EmbeddedWalletExistsError = require('./errors/EmbeddedWalletExistsError.cjs');
27
26
  var ErrorCode = require('./errors/ErrorCode.cjs');
28
27
  var ExternalAuthError = require('./errors/ExternalAuthError.cjs');
@@ -42,6 +41,8 @@ var RateLimitError = require('./errors/RateLimitError.cjs');
42
41
  var RequestChannelNotHandledError = require('./errors/RequestChannelNotHandledError.cjs');
43
42
  var ResponseError = require('./errors/ResponseError.cjs');
44
43
  var SandboxMaximumThresholdReachedError = require('./errors/SandboxMaximumThresholdReachedError.cjs');
44
+ var SdkErrorCode = require('./errors/SdkErrorCode.cjs');
45
+ var errorCodes = require('./errors/errorCodes.cjs');
45
46
  var SeiNotEnabledInKeplrWalletError = require('./errors/SeiNotEnabledInKeplrWalletError.cjs');
46
47
  var SmsVerificationError = require('./errors/SmsVerificationError.cjs');
47
48
  var SocialAccountAlreadyExistsError = require('./errors/SocialAccountAlreadyExistsError.cjs');
@@ -140,8 +141,6 @@ exports.EmailAlreadyExistsError = EmailAlreadyExistsError.EmailAlreadyExistsErro
140
141
  exports.EmailProviderError = EmailProviderError.EmailProviderError;
141
142
  exports.EmailVerificationError = EmailVerificationError.EmailVerificationError;
142
143
  exports.EmbeddedWalletException = EmbeddedWalletException.EmbeddedWalletException;
143
- exports.RATE_LIMIT_ERROR_CODE = errorCodes.RATE_LIMIT_ERROR_CODE;
144
- exports.UNKNOWN_ERROR_CODE = errorCodes.UNKNOWN_ERROR_CODE;
145
144
  exports.EmbeddedWalletExistsError = EmbeddedWalletExistsError.EmbeddedWalletExistsError;
146
145
  Object.defineProperty(exports, 'ErrorCode', {
147
146
  enumerable: true,
@@ -165,6 +164,12 @@ exports.RateLimitError = RateLimitError.RateLimitError;
165
164
  exports.RequestChannelNotHandledError = RequestChannelNotHandledError.RequestChannelNotHandledError;
166
165
  exports.ResponseError = ResponseError.ResponseError;
167
166
  exports.SandboxMaximumThresholdReachedError = SandboxMaximumThresholdReachedError.SandboxMaximumThresholdReachedError;
167
+ Object.defineProperty(exports, 'SdkErrorCode', {
168
+ enumerable: true,
169
+ get: function () { return SdkErrorCode.SdkErrorCode; }
170
+ });
171
+ exports.RATE_LIMIT_ERROR_CODE = errorCodes.RATE_LIMIT_ERROR_CODE;
172
+ exports.UNKNOWN_ERROR_CODE = errorCodes.UNKNOWN_ERROR_CODE;
168
173
  exports.SeiNotEnabledInKeplrWalletError = SeiNotEnabledInKeplrWalletError.SeiNotEnabledInKeplrWalletError;
169
174
  exports.SmsVerificationError = SmsVerificationError.SmsVerificationError;
170
175
  exports.SocialAccountAlreadyExistsError = SocialAccountAlreadyExistsError.SocialAccountAlreadyExistsError;
package/src/index.js CHANGED
@@ -18,7 +18,6 @@ export { EmailAlreadyExistsError } from './errors/EmailAlreadyExistsError.js';
18
18
  export { EmailProviderError } from './errors/EmailProviderError.js';
19
19
  export { EmailVerificationError } from './errors/EmailVerificationError.js';
20
20
  export { EmbeddedWalletException } from './errors/EmbeddedWalletException.js';
21
- export { RATE_LIMIT_ERROR_CODE, UNKNOWN_ERROR_CODE } from './errors/errorCodes.js';
22
21
  export { EmbeddedWalletExistsError } from './errors/EmbeddedWalletExistsError.js';
23
22
  export { ErrorCode } from './errors/ErrorCode.js';
24
23
  export { ExternalAuthError } from './errors/ExternalAuthError.js';
@@ -38,6 +37,8 @@ export { RateLimitError } from './errors/RateLimitError.js';
38
37
  export { RequestChannelNotHandledError } from './errors/RequestChannelNotHandledError.js';
39
38
  export { ResponseError } from './errors/ResponseError.js';
40
39
  export { SandboxMaximumThresholdReachedError } from './errors/SandboxMaximumThresholdReachedError.js';
40
+ export { SdkErrorCode } from './errors/SdkErrorCode.js';
41
+ export { RATE_LIMIT_ERROR_CODE, UNKNOWN_ERROR_CODE } from './errors/errorCodes.js';
41
42
  export { SeiNotEnabledInKeplrWalletError } from './errors/SeiNotEnabledInKeplrWalletError.js';
42
43
  export { SmsVerificationError } from './errors/SmsVerificationError.js';
43
44
  export { SocialAccountAlreadyExistsError } from './errors/SocialAccountAlreadyExistsError.js';