@dynamic-labs/utils 4.38.0 → 4.40.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,25 @@
1
1
 
2
+ ## [4.40.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.39.0...v4.40.0) (2025-10-22)
3
+
4
+
5
+ ### Features
6
+
7
+ * add Wallet Connect Solana as a wallet option ([#9719](https://github.com/dynamic-labs/dynamic-auth/issues/9719)) ([ece5f6b](https://github.com/dynamic-labs/dynamic-auth/commit/ece5f6b36c1fbefdf05cf8203fe0fee0b2e8ed3d))
8
+ * make updates to crypto.com onramp flow ([#9746](https://github.com/dynamic-labs/dynamic-auth/issues/9746)) ([22040d2](https://github.com/dynamic-labs/dynamic-auth/commit/22040d28d0d66b84f5c3be9bed4cfce7f1978944))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * return undefined if json payload is undefined in parse token ([#9750](https://github.com/dynamic-labs/dynamic-auth/issues/9750)) ([5751198](https://github.com/dynamic-labs/dynamic-auth/commit/575119867c93f89062e96e30c02b128161fb9675))
14
+
15
+ ## [4.39.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.38.0...v4.39.0) (2025-10-17)
16
+
17
+
18
+ ### Features
19
+
20
+ * add crypto.com as an onramp option in deposit ([#9580](https://github.com/dynamic-labs/dynamic-auth/issues/9580)) ([4988acc](https://github.com/dynamic-labs/dynamic-auth/commit/4988accfeafa5556297ad6e9873073e30c504c7f)), closes [#3](https://github.com/dynamic-labs/dynamic-auth/issues/3)
21
+ * add sui non-native token sending thru dynamic widget ([#9715](https://github.com/dynamic-labs/dynamic-auth/issues/9715)) ([9d9ea3b](https://github.com/dynamic-labs/dynamic-auth/commit/9d9ea3b233706766516b89d725a52d63cceb01f6))
22
+
2
23
  ## [4.38.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.37.2...v4.38.0) (2025-10-14)
3
24
 
4
25
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.38.0";
6
+ var version = "4.40.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.38.0";
2
+ var version = "4.40.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.38.0",
3
+ "version": "4.40.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.805",
21
+ "@dynamic-labs/sdk-api-core": "0.0.813",
22
22
  "tldts": "6.0.16",
23
- "@dynamic-labs/assert-package-version": "4.38.0",
24
- "@dynamic-labs/logger": "4.38.0",
25
- "@dynamic-labs/types": "4.38.0",
23
+ "@dynamic-labs/assert-package-version": "4.40.0",
24
+ "@dynamic-labs/logger": "4.40.0",
25
+ "@dynamic-labs/types": "4.40.0",
26
26
  "buffer": "6.0.3",
27
27
  "eventemitter3": "5.0.1"
28
28
  },
@@ -0,0 +1,12 @@
1
+ 'use client'
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ /**
7
+ * Filter duplicates from an array by equality.
8
+ * Uses a Set internally.
9
+ */
10
+ const filterDuplicates = (array) => Array.from(new Set(array));
11
+
12
+ exports.filterDuplicates = filterDuplicates;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Filter duplicates from an array by equality.
3
+ * Uses a Set internally.
4
+ */
5
+ export declare const filterDuplicates: <T>(array: T[]) => T[];
@@ -0,0 +1,8 @@
1
+ 'use client'
2
+ /**
3
+ * Filter duplicates from an array by equality.
4
+ * Uses a Set internally.
5
+ */
6
+ const filterDuplicates = (array) => Array.from(new Set(array));
7
+
8
+ export { filterDuplicates };
@@ -0,0 +1 @@
1
+ export { filterDuplicates } from './filterDuplicates';
package/src/index.cjs CHANGED
@@ -85,6 +85,7 @@ var isEncryptedMessage = require('./encryption/isEncryptedMessage/isEncryptedMes
85
85
  var cryptoAvailability = require('./encryption/cryptoAvailability/cryptoAvailability.cjs');
86
86
  var uint8ArrayToBase64 = require('./uint8ArrayToBase64/uint8ArrayToBase64.cjs');
87
87
  var assertDefined = require('./assertDefined/assertDefined.cjs');
88
+ var filterDuplicates = require('./filterDuplicates/filterDuplicates.cjs');
88
89
  var cloneObjectWithOverrides = require('./cloneObjectWithOverrides/cloneObjectWithOverrides.cjs');
89
90
  var get = require('./get/get.cjs');
90
91
  var hexToString = require('./hexToString/hexToString.cjs');
@@ -215,6 +216,7 @@ exports.isCryptoSubtleAvailable = cryptoAvailability.isCryptoSubtleAvailable;
215
216
  exports.uint8ArrayFromBase64 = uint8ArrayToBase64.uint8ArrayFromBase64;
216
217
  exports.uint8ArrayToBase64 = uint8ArrayToBase64.uint8ArrayToBase64;
217
218
  exports.assertDefined = assertDefined.assertDefined;
219
+ exports.filterDuplicates = filterDuplicates.filterDuplicates;
218
220
  exports.cloneObjectWithOverrides = cloneObjectWithOverrides.cloneObjectWithOverrides;
219
221
  exports.get = get.get;
220
222
  exports.hexToString = hexToString.hexToString;
package/src/index.d.ts CHANGED
@@ -28,6 +28,7 @@ export * from './wrapMethodWithCallback';
28
28
  export * from './encryption';
29
29
  export * from './uint8ArrayToBase64';
30
30
  export * from './assertDefined';
31
+ export * from './filterDuplicates';
31
32
  export { cloneObjectWithOverrides } from './cloneObjectWithOverrides';
32
33
  export { get } from './get';
33
34
  export { hexToString } from './hexToString';
package/src/index.js CHANGED
@@ -81,6 +81,7 @@ export { isEncryptedMessage } from './encryption/isEncryptedMessage/isEncryptedM
81
81
  export { CryptoNotAvailableError, assertCryptoSubtleAvailable, isCryptoSubtleAvailable } from './encryption/cryptoAvailability/cryptoAvailability.js';
82
82
  export { uint8ArrayFromBase64, uint8ArrayToBase64 } from './uint8ArrayToBase64/uint8ArrayToBase64.js';
83
83
  export { assertDefined } from './assertDefined/assertDefined.js';
84
+ export { filterDuplicates } from './filterDuplicates/filterDuplicates.js';
84
85
  export { cloneObjectWithOverrides } from './cloneObjectWithOverrides/cloneObjectWithOverrides.js';
85
86
  export { get } from './get/get.js';
86
87
  export { hexToString } from './hexToString/hexToString.js';