@dynamic-labs/sdk-react-core 4.47.2 → 4.47.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,6 @@
1
1
 
2
+ ### [4.47.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.47.2...v4.47.3) (2025-11-27)
3
+
2
4
  ### [4.47.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.47.1...v4.47.2) (2025-11-27)
3
5
 
4
6
 
package/package.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.47.2";
6
+ var version = "4.47.3";
7
7
  var dependencies = {
8
8
  "@dynamic-labs/sdk-api-core": "0.0.823",
9
9
  "@dynamic-labs-sdk/client": "0.1.0-alpha.32",
package/package.js CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client'
2
- var version = "4.47.2";
2
+ var version = "4.47.3";
3
3
  var dependencies = {
4
4
  "@dynamic-labs/sdk-api-core": "0.0.823",
5
5
  "@dynamic-labs-sdk/client": "0.1.0-alpha.32",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-react-core",
3
- "version": "4.47.2",
3
+ "version": "4.47.3",
4
4
  "dependencies": {
5
5
  "@dynamic-labs/sdk-api-core": "0.0.823",
6
6
  "@dynamic-labs-sdk/client": "0.1.0-alpha.32",
@@ -15,17 +15,17 @@
15
15
  "yup": "0.32.11",
16
16
  "react-international-phone": "4.5.0",
17
17
  "bs58": "5.0.0",
18
- "@dynamic-labs/assert-package-version": "4.47.2",
19
- "@dynamic-labs/iconic": "4.47.2",
20
- "@dynamic-labs/locale": "4.47.2",
21
- "@dynamic-labs/logger": "4.47.2",
22
- "@dynamic-labs/multi-wallet": "4.47.2",
23
- "@dynamic-labs/rpc-providers": "4.47.2",
24
- "@dynamic-labs/store": "4.47.2",
25
- "@dynamic-labs/types": "4.47.2",
26
- "@dynamic-labs/utils": "4.47.2",
27
- "@dynamic-labs/wallet-book": "4.47.2",
28
- "@dynamic-labs/wallet-connector-core": "4.47.2",
18
+ "@dynamic-labs/assert-package-version": "4.47.3",
19
+ "@dynamic-labs/iconic": "4.47.3",
20
+ "@dynamic-labs/locale": "4.47.3",
21
+ "@dynamic-labs/logger": "4.47.3",
22
+ "@dynamic-labs/multi-wallet": "4.47.3",
23
+ "@dynamic-labs/rpc-providers": "4.47.3",
24
+ "@dynamic-labs/store": "4.47.3",
25
+ "@dynamic-labs/types": "4.47.3",
26
+ "@dynamic-labs/utils": "4.47.3",
27
+ "@dynamic-labs/wallet-book": "4.47.3",
28
+ "@dynamic-labs/wallet-connector-core": "4.47.3",
29
29
  "eventemitter3": "5.0.1"
30
30
  },
31
31
  "devDependencies": {
@@ -3,7 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var React = require('react');
7
6
  var client = require('@dynamic-labs-sdk/client');
8
7
  var core = require('@dynamic-labs-sdk/client/core');
9
8
  var client$1 = require('../../../client.cjs');
@@ -11,6 +10,7 @@ var constants = require('../../constants.cjs');
11
10
  var ApiEndpoint = require('../../../../config/ApiEndpoint.cjs');
12
11
  require('@dynamic-labs/iconic');
13
12
  require('@dynamic-labs/wallet-connector-core');
13
+ require('react');
14
14
  require('react/jsx-runtime');
15
15
  require('../../../../context/ViewContext/ViewContext.cjs');
16
16
  var logger = require('../../../../shared/logger.cjs');
@@ -23,8 +23,8 @@ require('../../../../shared/consts/index.cjs');
23
23
  var getApiHeaders = require('./getApiHeaders/getApiHeaders.cjs');
24
24
  var syncEvents = require('./syncEvents/syncEvents.cjs');
25
25
 
26
+ let lastClientDependencyKey = null;
26
27
  const useInitializeSdkClient = ({ settings, client: clientFromProps, }) => {
27
- const lastClientDependencyKey = React.useRef(null);
28
28
  /**
29
29
  * Sets the client to the state and setup the extensions.
30
30
  */
@@ -52,11 +52,12 @@ const useInitializeSdkClient = ({ settings, client: clientFromProps, }) => {
52
52
  ].join('-');
53
53
  logger.logger.logVerboseTroubleshootingMessage('[useInitializeSdkClient] Checking if DynamicClient needs to be created...', {
54
54
  clientDependencyKey,
55
- lastClientDependencyKey: lastClientDependencyKey.current,
55
+ lastClientDependencyKey,
56
56
  });
57
- if (lastClientDependencyKey.current === clientDependencyKey)
57
+ if (lastClientDependencyKey === clientDependencyKey) {
58
58
  return;
59
- lastClientDependencyKey.current = clientDependencyKey;
59
+ }
60
+ lastClientDependencyKey = clientDependencyKey;
60
61
  logger.logger.logVerboseTroubleshootingMessage('[useInitializeSdkClient] Creating DynamicClient...');
61
62
  const client$2 = client.createDynamicClient({
62
63
  coreConfig: {
@@ -1,5 +1,4 @@
1
1
  'use client'
2
- import { useRef } from 'react';
3
2
  import { createDynamicClient, hasExtension } from '@dynamic-labs-sdk/client';
4
3
  import { registerExtension } from '@dynamic-labs-sdk/client/core';
5
4
  import { setDynamicClient, hasDynamicClient, getDynamicClient } from '../../../client.js';
@@ -7,6 +6,7 @@ import { CLIENT_EXTENSION_NAME } from '../../constants.js';
7
6
  import ApiEndpoint from '../../../../config/ApiEndpoint.js';
8
7
  import '@dynamic-labs/iconic';
9
8
  import '@dynamic-labs/wallet-connector-core';
9
+ import 'react';
10
10
  import 'react/jsx-runtime';
11
11
  import '../../../../context/ViewContext/ViewContext.js';
12
12
  import { logger } from '../../../../shared/logger.js';
@@ -19,8 +19,8 @@ import '../../../../shared/consts/index.js';
19
19
  import { getApiHeaders } from './getApiHeaders/getApiHeaders.js';
20
20
  import { syncEvents } from './syncEvents/syncEvents.js';
21
21
 
22
+ let lastClientDependencyKey = null;
22
23
  const useInitializeSdkClient = ({ settings, client: clientFromProps, }) => {
23
- const lastClientDependencyKey = useRef(null);
24
24
  /**
25
25
  * Sets the client to the state and setup the extensions.
26
26
  */
@@ -48,11 +48,12 @@ const useInitializeSdkClient = ({ settings, client: clientFromProps, }) => {
48
48
  ].join('-');
49
49
  logger.logVerboseTroubleshootingMessage('[useInitializeSdkClient] Checking if DynamicClient needs to be created...', {
50
50
  clientDependencyKey,
51
- lastClientDependencyKey: lastClientDependencyKey.current,
51
+ lastClientDependencyKey,
52
52
  });
53
- if (lastClientDependencyKey.current === clientDependencyKey)
53
+ if (lastClientDependencyKey === clientDependencyKey) {
54
54
  return;
55
- lastClientDependencyKey.current = clientDependencyKey;
55
+ }
56
+ lastClientDependencyKey = clientDependencyKey;
56
57
  logger.logVerboseTroubleshootingMessage('[useInitializeSdkClient] Creating DynamicClient...');
57
58
  const client = createDynamicClient({
58
59
  coreConfig: {