@dynamic-labs/utils 4.7.0 → 4.7.2

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,23 @@
1
1
 
2
+ ### [4.7.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.7.1...v4.7.2) (2025-02-22)
3
+
4
+ ### Features
5
+
6
+ * add bitcoin rune support for token balances ([95640](https://github.com/dynamic-labs/dynamic-auth/commit/956403dc0e427e9a99c62e189fc59de0d8b11e1b))
7
+
8
+ ### Bug Fixes
9
+
10
+ * hidrate the user state when a valid token is present ([#8116](https://github.com/dynamic-labs/dynamic-auth/issues/8116)) ([dad5837](https://github.com/dynamic-labs/dynamic-auth/commit/dad58373c4c2fe0c870d918474d6a1f541eae659))
11
+ * prompt to re-establish wallet connect session for secondary wallets ([#8111](https://github.com/dynamic-labs/dynamic-auth/issues/8111)) ([c713ead](https://github.com/dynamic-labs/dynamic-auth/commit/c713ead0611c658aea3d7aca534c2ba2c3cab584))
12
+ * upgrade elliptic ([#8106](https://github.com/dynamic-labs/dynamic-auth/issues/8106)) ([359c873](https://github.com/dynamic-labs/dynamic-auth/commit/359c8733fdd8c0510c2f0018ee0fefa337847aae))
13
+
14
+ ### [4.7.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.7.0...v4.7.1) (2025-02-20)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * remove user logout when sdk version change ([#8112](https://github.com/dynamic-labs/dynamic-auth/issues/8112)) ([b1a321f](https://github.com/dynamic-labs/dynamic-auth/commit/b1a321f18231f083aeb365d4dc92e992897a7e1b))
20
+
2
21
  ## [4.7.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.6.3...v4.7.0) (2025-02-20)
3
22
 
4
23
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.7.0";
6
+ var version = "4.7.2";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.7.0";
2
+ var version = "4.7.2";
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.7.0",
3
+ "version": "4.7.2",
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.628",
22
22
  "tldts": "6.0.16",
23
- "@dynamic-labs/assert-package-version": "4.7.0",
24
- "@dynamic-labs/logger": "4.7.0",
25
- "@dynamic-labs/types": "4.7.0",
23
+ "@dynamic-labs/assert-package-version": "4.7.2",
24
+ "@dynamic-labs/logger": "4.7.2",
25
+ "@dynamic-labs/types": "4.7.2",
26
26
  "buffer": "6.0.3",
27
27
  "eventemitter3": "5.0.1"
28
28
  },
package/src/index.cjs CHANGED
@@ -77,7 +77,6 @@ var decryptMessage = require('./encryption/decryptMessage/decryptMessage.cjs');
77
77
  var encryptMessage = require('./encryption/encryptMessage/encryptMessage.cjs');
78
78
  var isEncryptedMessage = require('./encryption/isEncryptedMessage/isEncryptedMessage.cjs');
79
79
  var uint8ArrayToBase64 = require('./uint8ArrayToBase64/uint8ArrayToBase64.cjs');
80
- var formatVersion = require('./formatVersion/formatVersion.cjs');
81
80
  var assertDefined = require('./assertDefined/assertDefined.cjs');
82
81
  var cloneObjectWithOverrides = require('./cloneObjectWithOverrides/cloneObjectWithOverrides.cjs');
83
82
  var get = require('./get/get.cjs');
@@ -192,7 +191,6 @@ exports.encryptMessage = encryptMessage.encryptMessage;
192
191
  exports.isEncryptedMessage = isEncryptedMessage.isEncryptedMessage;
193
192
  exports.uint8ArrayFromBase64 = uint8ArrayToBase64.uint8ArrayFromBase64;
194
193
  exports.uint8ArrayToBase64 = uint8ArrayToBase64.uint8ArrayToBase64;
195
- exports.formatVersion = formatVersion.formatVersion;
196
194
  exports.assertDefined = assertDefined.assertDefined;
197
195
  exports.cloneObjectWithOverrides = cloneObjectWithOverrides.cloneObjectWithOverrides;
198
196
  exports.get = get.get;
package/src/index.d.ts CHANGED
@@ -27,7 +27,6 @@ export * from './uniq';
27
27
  export * from './wrapMethodWithCallback';
28
28
  export * from './encryption';
29
29
  export * from './uint8ArrayToBase64';
30
- export * from './formatVersion';
31
30
  export * from './assertDefined';
32
31
  export { cloneObjectWithOverrides } from './cloneObjectWithOverrides';
33
32
  export { get } from './get';
package/src/index.js CHANGED
@@ -73,7 +73,6 @@ export { decryptMessage } from './encryption/decryptMessage/decryptMessage.js';
73
73
  export { encryptMessage } from './encryption/encryptMessage/encryptMessage.js';
74
74
  export { isEncryptedMessage } from './encryption/isEncryptedMessage/isEncryptedMessage.js';
75
75
  export { uint8ArrayFromBase64, uint8ArrayToBase64 } from './uint8ArrayToBase64/uint8ArrayToBase64.js';
76
- export { formatVersion } from './formatVersion/formatVersion.js';
77
76
  export { assertDefined } from './assertDefined/assertDefined.js';
78
77
  export { cloneObjectWithOverrides } from './cloneObjectWithOverrides/cloneObjectWithOverrides.js';
79
78
  export { get } from './get/get.js';
@@ -1,29 +0,0 @@
1
- 'use client'
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, '__esModule', { value: true });
5
-
6
- /**
7
- * Formats a version string according to the specified format pattern.
8
- *
9
- * @param version - The version string in the format "x.y.z" (e.g., "1.2.3")
10
- * @param format - The desired output format using combinations of "major", "minor", and "patch"
11
- * @returns The formatted version string
12
- *
13
- * @example
14
- * formatVersion("1.2.3", "major.minor") // returns "1.2"
15
- * formatVersion("1.2.3", "major") // returns "1"
16
- * formatVersion("1.2.3", "major.minor.patch") // returns "1.2.3"
17
- */
18
- const formatVersion = (version, format) => {
19
- const versionMap = Object.fromEntries(['major', 'minor', 'patch'].map((unit, index) => [
20
- unit,
21
- version.split('.')[index],
22
- ]));
23
- return format
24
- .split('.')
25
- .map((unit) => versionMap[unit])
26
- .join('.');
27
- };
28
-
29
- exports.formatVersion = formatVersion;
@@ -1,16 +0,0 @@
1
- type VersionFormatUnit = 'major' | 'minor' | 'patch';
2
- type Format = `${VersionFormatUnit}.${VersionFormatUnit}.${VersionFormatUnit}` | `${VersionFormatUnit}.${VersionFormatUnit}` | `${VersionFormatUnit}`;
3
- /**
4
- * Formats a version string according to the specified format pattern.
5
- *
6
- * @param version - The version string in the format "x.y.z" (e.g., "1.2.3")
7
- * @param format - The desired output format using combinations of "major", "minor", and "patch"
8
- * @returns The formatted version string
9
- *
10
- * @example
11
- * formatVersion("1.2.3", "major.minor") // returns "1.2"
12
- * formatVersion("1.2.3", "major") // returns "1"
13
- * formatVersion("1.2.3", "major.minor.patch") // returns "1.2.3"
14
- */
15
- export declare const formatVersion: (version: string, format: Format) => string;
16
- export {};
@@ -1,25 +0,0 @@
1
- 'use client'
2
- /**
3
- * Formats a version string according to the specified format pattern.
4
- *
5
- * @param version - The version string in the format "x.y.z" (e.g., "1.2.3")
6
- * @param format - The desired output format using combinations of "major", "minor", and "patch"
7
- * @returns The formatted version string
8
- *
9
- * @example
10
- * formatVersion("1.2.3", "major.minor") // returns "1.2"
11
- * formatVersion("1.2.3", "major") // returns "1"
12
- * formatVersion("1.2.3", "major.minor.patch") // returns "1.2.3"
13
- */
14
- const formatVersion = (version, format) => {
15
- const versionMap = Object.fromEntries(['major', 'minor', 'patch'].map((unit, index) => [
16
- unit,
17
- version.split('.')[index],
18
- ]));
19
- return format
20
- .split('.')
21
- .map((unit) => versionMap[unit])
22
- .join('.');
23
- };
24
-
25
- export { formatVersion };
@@ -1 +0,0 @@
1
- export { formatVersion } from './formatVersion';