@dynamic-labs/utils 4.24.0 → 4.25.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,19 @@
1
1
 
2
+ ## [4.25.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.24.0...v4.25.0) (2025-07-17)
3
+
4
+
5
+ ### Features
6
+
7
+ * add passkey 1fa to react native ([#9167](https://github.com/dynamic-labs/dynamic-auth/issues/9167)) ([8f9b166](https://github.com/dynamic-labs/dynamic-auth/commit/8f9b166de3e0ab329c1539597c350681f1254bfb))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * add waas iframe retry ([#9185](https://github.com/dynamic-labs/dynamic-auth/issues/9185)) ([ebe40d5](https://github.com/dynamic-labs/dynamic-auth/commit/ebe40d5ecdf214362b013502b4ac1313ba356aeb))
13
+ * ensure storage service defaults to local storage ([#9182](https://github.com/dynamic-labs/dynamic-auth/issues/9182)) ([d6ce48e](https://github.com/dynamic-labs/dynamic-auth/commit/d6ce48e8c1d2edb32d8db41efe3f56b97275c32a))
14
+ * add account address to wallet properties ([#9172](https://github.com/dynamic-labs/dynamic-auth/issues/9172)) ([61de8ca](https://github.com/dynamic-labs/dynamic-auth/commit/61de8caccb95c5d52126283ac7a1ebd5a36aa33c))
15
+ * show hcaptcha for headless social sign in ([#9154](https://github.com/dynamic-labs/dynamic-auth/issues/9154)) ([262b752](https://github.com/dynamic-labs/dynamic-auth/commit/262b75257ec6dcc05f67804b71f7285ec5919f91))
16
+
2
17
  ## [4.24.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.23.1...v4.24.0) (2025-07-15)
3
18
 
4
19
  ### Features
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.24.0";
6
+ var version = "4.25.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.24.0";
2
+ var version = "4.25.0";
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.24.0",
3
+ "version": "4.25.0",
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.0.715",
21
+ "@dynamic-labs/sdk-api-core": "0.0.718",
22
22
  "tldts": "6.0.16",
23
- "@dynamic-labs/assert-package-version": "4.24.0",
24
- "@dynamic-labs/logger": "4.24.0",
25
- "@dynamic-labs/types": "4.24.0",
23
+ "@dynamic-labs/assert-package-version": "4.25.0",
24
+ "@dynamic-labs/logger": "4.25.0",
25
+ "@dynamic-labs/types": "4.25.0",
26
26
  "buffer": "6.0.3",
27
27
  "eventemitter3": "5.0.1"
28
28
  },
@@ -4,6 +4,8 @@
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
6
  var EventEmitter = require('eventemitter3');
7
+ var logger = require('../../logger/logger.cjs');
8
+ var createStorageService = require('./createStorageService/createStorageService.cjs');
7
9
 
8
10
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
9
11
 
@@ -31,6 +33,18 @@ class StorageService {
31
33
  return storage;
32
34
  }
33
35
  }
36
+ /**
37
+ * Temporary fallback until we ensure that one instance of the utils package is
38
+ * installed
39
+ *
40
+ * thread https://dynamiclabsgroup.slack.com/archives/C03HMTUCXRR/p1752662470299459
41
+ */
42
+ if (priority.includes('localStorage')) {
43
+ logger.logger.info('No available storage found based on the specified priority, default to localStorage');
44
+ return createStorageService.createStorageService({
45
+ storage: localStorage,
46
+ });
47
+ }
34
48
  throw new Error('No available storage found based on the specified priority');
35
49
  }
36
50
  static getItem(key, options) {
@@ -1,5 +1,7 @@
1
1
  'use client'
2
2
  import EventEmitter from 'eventemitter3';
3
+ import { logger } from '../../logger/logger.js';
4
+ import { createStorageService } from './createStorageService/createStorageService.js';
3
5
 
4
6
  class StorageService {
5
7
  static clearRegistry() {
@@ -23,6 +25,18 @@ class StorageService {
23
25
  return storage;
24
26
  }
25
27
  }
28
+ /**
29
+ * Temporary fallback until we ensure that one instance of the utils package is
30
+ * installed
31
+ *
32
+ * thread https://dynamiclabsgroup.slack.com/archives/C03HMTUCXRR/p1752662470299459
33
+ */
34
+ if (priority.includes('localStorage')) {
35
+ logger.info('No available storage found based on the specified priority, default to localStorage');
36
+ return createStorageService({
37
+ storage: localStorage,
38
+ });
39
+ }
26
40
  throw new Error('No available storage found based on the specified priority');
27
41
  }
28
42
  static getItem(key, options) {