@dynamic-labs/utils 4.25.5 → 4.25.7

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,14 @@
1
1
 
2
+ ### [4.25.7](https://github.com/dynamic-labs/dynamic-auth/compare/v4.25.6...v4.25.7) (2025-07-28)
3
+
4
+ ### [4.25.6](https://github.com/dynamic-labs/dynamic-auth/compare/v4.25.5...v4.25.6) (2025-07-28)
5
+
6
+
7
+ ### Bug Fixes
8
+
9
+ * don't create a new user when linking a wallet to a user with no wallets ([#9252](https://github.com/dynamic-labs/dynamic-auth/issues/9252)) ([30f846e](https://github.com/dynamic-labs/dynamic-auth/commit/30f846e89f2dffd112e656201bfa1cc24b787f03))
10
+ * Nufi EVM wallet showing up twice in wallet list ([#9256](https://github.com/dynamic-labs/dynamic-auth/issues/9256)) ([213488e](https://github.com/dynamic-labs/dynamic-auth/commit/213488e2226ef55965e12a1a548845cb100e859f))
11
+
2
12
  ### [4.25.5](https://github.com/dynamic-labs/dynamic-auth/compare/v4.25.4...v4.25.5) (2025-07-27)
3
13
 
4
14
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.25.5";
6
+ var version = "4.25.7";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.25.5";
2
+ var version = "4.25.7";
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.25.5",
3
+ "version": "4.25.7",
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.728",
22
22
  "tldts": "6.0.16",
23
- "@dynamic-labs/assert-package-version": "4.25.5",
24
- "@dynamic-labs/logger": "4.25.5",
25
- "@dynamic-labs/types": "4.25.5",
23
+ "@dynamic-labs/assert-package-version": "4.25.7",
24
+ "@dynamic-labs/logger": "4.25.7",
25
+ "@dynamic-labs/types": "4.25.7",
26
26
  "buffer": "6.0.3",
27
27
  "eventemitter3": "5.0.1"
28
28
  },
@@ -20,6 +20,10 @@ class StorageService {
20
20
  };
21
21
  }
22
22
  static registerSourceStorage(source, implementation) {
23
+ logger.logger.logVerboseTroubleshootingMessage('StorageService.registerSourceStorage', {
24
+ implementation,
25
+ source,
26
+ });
23
27
  StorageService.registry[source] = implementation;
24
28
  }
25
29
  static getSourceStorage(source) {
@@ -27,6 +31,10 @@ class StorageService {
27
31
  }
28
32
  static resolveStorage(options) {
29
33
  const priority = (options === null || options === void 0 ? void 0 : options.priority) || ['localStorage'];
34
+ logger.logger.logVerboseTroubleshootingMessage('StorageService.resolveStorage', {
35
+ options,
36
+ priority,
37
+ });
30
38
  for (const source of priority) {
31
39
  const storage = StorageService.getSourceStorage(source);
32
40
  if (storage) {
@@ -34,17 +42,24 @@ class StorageService {
34
42
  }
35
43
  }
36
44
  /**
37
- * Temporary fallback until we ensure that one instance of the utils package is
45
+ * Temporary fallbacks until we ensure that one instance of the utils package is
38
46
  * installed
39
47
  *
40
48
  * thread https://dynamiclabsgroup.slack.com/archives/C03HMTUCXRR/p1752662470299459
41
49
  */
42
50
  if (priority.includes('localStorage')) {
43
- logger.logger.info('No available storage found based on the specified priority, default to localStorage');
51
+ logger.logger.info('No available storage found based on the specified priority, defaulting to localStorage');
44
52
  return createStorageService.createStorageService({
45
53
  storage: localStorage,
46
54
  });
47
55
  }
56
+ if (priority.includes('sessionStorage')) {
57
+ logger.logger.info('No available storage found based on the specified priority, defaulting to sessionStorage');
58
+ return createStorageService.createStorageService({
59
+ storage: sessionStorage,
60
+ });
61
+ }
62
+ logger.logger.logVerboseTroubleshootingMessage('No storage found — StorageService.registry:', StorageService.registry);
48
63
  throw new Error('No available storage found based on the specified priority');
49
64
  }
50
65
  static getItem(key, options) {
@@ -12,6 +12,10 @@ class StorageService {
12
12
  };
13
13
  }
14
14
  static registerSourceStorage(source, implementation) {
15
+ logger.logVerboseTroubleshootingMessage('StorageService.registerSourceStorage', {
16
+ implementation,
17
+ source,
18
+ });
15
19
  StorageService.registry[source] = implementation;
16
20
  }
17
21
  static getSourceStorage(source) {
@@ -19,6 +23,10 @@ class StorageService {
19
23
  }
20
24
  static resolveStorage(options) {
21
25
  const priority = (options === null || options === void 0 ? void 0 : options.priority) || ['localStorage'];
26
+ logger.logVerboseTroubleshootingMessage('StorageService.resolveStorage', {
27
+ options,
28
+ priority,
29
+ });
22
30
  for (const source of priority) {
23
31
  const storage = StorageService.getSourceStorage(source);
24
32
  if (storage) {
@@ -26,17 +34,24 @@ class StorageService {
26
34
  }
27
35
  }
28
36
  /**
29
- * Temporary fallback until we ensure that one instance of the utils package is
37
+ * Temporary fallbacks until we ensure that one instance of the utils package is
30
38
  * installed
31
39
  *
32
40
  * thread https://dynamiclabsgroup.slack.com/archives/C03HMTUCXRR/p1752662470299459
33
41
  */
34
42
  if (priority.includes('localStorage')) {
35
- logger.info('No available storage found based on the specified priority, default to localStorage');
43
+ logger.info('No available storage found based on the specified priority, defaulting to localStorage');
36
44
  return createStorageService({
37
45
  storage: localStorage,
38
46
  });
39
47
  }
48
+ if (priority.includes('sessionStorage')) {
49
+ logger.info('No available storage found based on the specified priority, defaulting to sessionStorage');
50
+ return createStorageService({
51
+ storage: sessionStorage,
52
+ });
53
+ }
54
+ logger.logVerboseTroubleshootingMessage('No storage found — StorageService.registry:', StorageService.registry);
40
55
  throw new Error('No available storage found based on the specified priority');
41
56
  }
42
57
  static getItem(key, options) {