@dynamic-labs/sdk-react-core 4.98.0 → 4.99.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 CHANGED
@@ -1,4 +1,18 @@
1
1
 
2
+ ## [4.99.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.98.0...v4.99.0) (2026-09-10)
3
+
4
+
5
+ ### Features
6
+
7
+ * **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))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * 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))
13
+ * **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))
14
+ * **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)
15
+
2
16
  ## [4.98.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.97.0...v4.98.0) (2026-09-02)
3
17
 
4
18
 
package/package.cjs CHANGED
@@ -3,12 +3,12 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.98.0";
6
+ var version = "4.99.0";
7
7
  var dependencies = {
8
8
  "@dynamic-labs/sdk-api-core": "0.12.0",
9
9
  "@dynamic-labs-sdk/client": "1.27.1",
10
- "@dynamic-labs-wallet/browser-wallet-client": "1.1.2",
11
- "@dynamic-labs-wallet/forward-mpc-client": "2.0.1",
10
+ "@dynamic-labs-wallet/browser-wallet-client": "1.1.8",
11
+ "@dynamic-labs-wallet/forward-mpc-client": "2.0.2",
12
12
  "@hcaptcha/react-hcaptcha": "1.4.4",
13
13
  "@marsidev/react-turnstile": "1.5.2",
14
14
  "@thumbmarkjs/thumbmarkjs": "0.16.0",
package/package.js CHANGED
@@ -1,10 +1,10 @@
1
1
  'use client'
2
- var version = "4.98.0";
2
+ var version = "4.99.0";
3
3
  var dependencies = {
4
4
  "@dynamic-labs/sdk-api-core": "0.12.0",
5
5
  "@dynamic-labs-sdk/client": "1.27.1",
6
- "@dynamic-labs-wallet/browser-wallet-client": "1.1.2",
7
- "@dynamic-labs-wallet/forward-mpc-client": "2.0.1",
6
+ "@dynamic-labs-wallet/browser-wallet-client": "1.1.8",
7
+ "@dynamic-labs-wallet/forward-mpc-client": "2.0.2",
8
8
  "@hcaptcha/react-hcaptcha": "1.4.4",
9
9
  "@marsidev/react-turnstile": "1.5.2",
10
10
  "@thumbmarkjs/thumbmarkjs": "0.16.0",
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-react-core",
3
- "version": "4.98.0",
3
+ "version": "4.99.0",
4
4
  "dependencies": {
5
5
  "@dynamic-labs/sdk-api-core": "0.12.0",
6
6
  "@dynamic-labs-sdk/client": "1.27.1",
7
- "@dynamic-labs-wallet/browser-wallet-client": "1.1.2",
8
- "@dynamic-labs-wallet/forward-mpc-client": "2.0.1",
7
+ "@dynamic-labs-wallet/browser-wallet-client": "1.1.8",
8
+ "@dynamic-labs-wallet/forward-mpc-client": "2.0.2",
9
9
  "@hcaptcha/react-hcaptcha": "1.4.4",
10
10
  "@marsidev/react-turnstile": "1.5.2",
11
11
  "@thumbmarkjs/thumbmarkjs": "0.16.0",
@@ -18,17 +18,17 @@
18
18
  "react-i18next": "13.5.0",
19
19
  "react-international-phone": "4.5.0",
20
20
  "yup": "0.32.11",
21
- "@dynamic-labs/assert-package-version": "4.98.0",
22
- "@dynamic-labs/iconic": "4.98.0",
23
- "@dynamic-labs/locale": "4.98.0",
24
- "@dynamic-labs/logger": "4.98.0",
25
- "@dynamic-labs/multi-wallet": "4.98.0",
26
- "@dynamic-labs/rpc-providers": "4.98.0",
27
- "@dynamic-labs/store": "4.98.0",
28
- "@dynamic-labs/types": "4.98.0",
29
- "@dynamic-labs/utils": "4.98.0",
30
- "@dynamic-labs/wallet-book": "4.98.0",
31
- "@dynamic-labs/wallet-connector-core": "4.98.0",
21
+ "@dynamic-labs/assert-package-version": "4.99.0",
22
+ "@dynamic-labs/iconic": "4.99.0",
23
+ "@dynamic-labs/locale": "4.99.0",
24
+ "@dynamic-labs/logger": "4.99.0",
25
+ "@dynamic-labs/multi-wallet": "4.99.0",
26
+ "@dynamic-labs/rpc-providers": "4.99.0",
27
+ "@dynamic-labs/store": "4.99.0",
28
+ "@dynamic-labs/types": "4.99.0",
29
+ "@dynamic-labs/utils": "4.99.0",
30
+ "@dynamic-labs/wallet-book": "4.99.0",
31
+ "@dynamic-labs/wallet-connector-core": "4.99.0",
32
32
  "eventemitter3": "5.0.1"
33
33
  },
34
34
  "devDependencies": {
@@ -268,12 +268,20 @@ const useDynamicWaas = () => {
268
268
  return true;
269
269
  }
270
270
  catch (error) {
271
- walletConnectorCore.logger.error('Error initializing waas wallet client', {
271
+ const failureDetails = {
272
272
  chain,
273
273
  error,
274
274
  sessionId: user.sessionId,
275
275
  userId: user.id,
276
- });
276
+ };
277
+ // A pending auth scope means the token has not upgraded yet, so
278
+ // initialization is retried once it does.
279
+ if (utils.isWaasAuthScopePendingError(error)) {
280
+ walletConnectorCore.logger.debug('Waas wallet client not initialized yet', failureDetails);
281
+ }
282
+ else {
283
+ walletConnectorCore.logger.error('Error initializing waas wallet client', failureDetails);
284
+ }
277
285
  return false;
278
286
  }
279
287
  })));
@@ -2,7 +2,7 @@
2
2
  import { __awaiter } from '../../../../../_virtual/_tslib.js';
3
3
  import { useMemo, useRef, useState, useCallback } from 'react';
4
4
  import { EmbeddedWalletVersionEnum, JwtVerifiedCredentialFormatEnum, WalletProviderEnum, ChainEnum } from '@dynamic-labs/sdk-api-core';
5
- import { DynamicError } from '@dynamic-labs/utils';
5
+ import { DynamicError, isWaasAuthScopePendingError } from '@dynamic-labs/utils';
6
6
  import { logger } from '@dynamic-labs/wallet-connector-core';
7
7
  import { dynamicEvents } from '../../../events/dynamicEvents.js';
8
8
  import '@dynamic-labs-sdk/client/core';
@@ -264,12 +264,20 @@ const useDynamicWaas = () => {
264
264
  return true;
265
265
  }
266
266
  catch (error) {
267
- logger.error('Error initializing waas wallet client', {
267
+ const failureDetails = {
268
268
  chain,
269
269
  error,
270
270
  sessionId: user.sessionId,
271
271
  userId: user.id,
272
- });
272
+ };
273
+ // A pending auth scope means the token has not upgraded yet, so
274
+ // initialization is retried once it does.
275
+ if (isWaasAuthScopePendingError(error)) {
276
+ logger.debug('Waas wallet client not initialized yet', failureDetails);
277
+ }
278
+ else {
279
+ logger.error('Error initializing waas wallet client', failureDetails);
280
+ }
273
281
  return false;
274
282
  }
275
283
  })));
@@ -67,15 +67,14 @@ const createLinkedWalletsFromWalletOptions = ({ user, walletConnectorOptions, pr
67
67
  // common pre-MFA case, but as defense in depth swallow the WaaS
68
68
  // "scope still pending" error specifically (recognizable via its
69
69
  // stable code) so a late token regression doesn't spam the console.
70
- // Anything else is surfaced as before.
70
+ // Anything else is surfaced as an error.
71
71
  void smartWallet.initializeSmartWallet({
72
72
  account,
73
73
  primaryWalletId,
74
74
  verifiedCredentials: user.verifiedCredentials,
75
75
  walletConnectorOptions,
76
76
  }).catch((error) => {
77
- if (error instanceof Error &&
78
- error.code === utils.WAAS_AUTH_SCOPE_PENDING_CODE) {
77
+ if (utils.isWaasAuthScopePendingError(error)) {
79
78
  logger.logger.debug('[createLinkedWalletsFromWalletOptions] Swallowed WaaS scope-pending error during smart-wallet init');
80
79
  return;
81
80
  }
@@ -1,6 +1,6 @@
1
1
  'use client'
2
2
  import { HardwareWalletEnum, WalletProviderEnum } from '@dynamic-labs/sdk-api-core';
3
- import { WAAS_AUTH_SCOPE_PENDING_CODE } from '@dynamic-labs/utils';
3
+ import { isWaasAuthScopePendingError } from '@dynamic-labs/utils';
4
4
  import { isHardwareWalletConnector } from '@dynamic-labs/wallet-connector-core';
5
5
  import '@dynamic-labs/iconic';
6
6
  import 'react';
@@ -63,15 +63,14 @@ const createLinkedWalletsFromWalletOptions = ({ user, walletConnectorOptions, pr
63
63
  // common pre-MFA case, but as defense in depth swallow the WaaS
64
64
  // "scope still pending" error specifically (recognizable via its
65
65
  // stable code) so a late token regression doesn't spam the console.
66
- // Anything else is surfaced as before.
66
+ // Anything else is surfaced as an error.
67
67
  void initializeSmartWallet({
68
68
  account,
69
69
  primaryWalletId,
70
70
  verifiedCredentials: user.verifiedCredentials,
71
71
  walletConnectorOptions,
72
72
  }).catch((error) => {
73
- if (error instanceof Error &&
74
- error.code === WAAS_AUTH_SCOPE_PENDING_CODE) {
73
+ if (isWaasAuthScopePendingError(error)) {
75
74
  logger.debug('[createLinkedWalletsFromWalletOptions] Swallowed WaaS scope-pending error during smart-wallet init');
76
75
  return;
77
76
  }