@dynamic-labs/utils 4.9.4 → 4.9.6

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,32 @@
1
1
 
2
+ ### [4.9.6](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.5...v4.9.6) (2025-03-21)
3
+
4
+
5
+ ### Features
6
+
7
+ * add initial sui support ([#8317](https://github.com/dynamic-labs/dynamic-auth/issues/8317)) ([88c0234](https://github.com/dynamic-labs/dynamic-auth/commit/88c023483bad5736f38cb313b035279460f6e256))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * allow metmask sdk to retry connection ([#8322](https://github.com/dynamic-labs/dynamic-auth/issues/8322)) ([603ed99](https://github.com/dynamic-labs/dynamic-auth/commit/603ed99de3b5d90ac4f5eabcdcd3b2e90863298f))
13
+ * css for profile page without embedded wallets ([#8339](https://github.com/dynamic-labs/dynamic-auth/issues/8339)) ([7f696e9](https://github.com/dynamic-labs/dynamic-auth/commit/7f696e9986ddd899d140640f9af7cfd2dcd7c37a))
14
+ * ensure metamask connector can get display uri for multiple connections ([#8324](https://github.com/dynamic-labs/dynamic-auth/issues/8324)) ([1d95f08](https://github.com/dynamic-labs/dynamic-auth/commit/1d95f089589779e8ef078b80bd84fa0754179696))
15
+ * pass HttpTransportConfig to WalletClient, not just PublicClient ([#8333](https://github.com/dynamic-labs/dynamic-auth/issues/8333)) ([a0ddd10](https://github.com/dynamic-labs/dynamic-auth/commit/a0ddd10f1df57555cf0a3ed777f5d354eb140582))
16
+
17
+ ### [4.9.5](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.4...v4.9.5) (2025-03-19)
18
+
19
+
20
+ ### Features
21
+
22
+ * add support for AA to Global Wallet ([#8294](https://github.com/dynamic-labs/dynamic-auth/issues/8294)) ([173dfb9](https://github.com/dynamic-labs/dynamic-auth/commit/173dfb9c00e4307feec6ab11913f1a80310885eb))
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * Remove the usage of random uuid in Global Wallet ([#8314](https://github.com/dynamic-labs/dynamic-auth/issues/8314)) ([79a7a64](https://github.com/dynamic-labs/dynamic-auth/commit/79a7a640b9ce470051a3c877ea46e8d4c94ea542))
28
+ * Fix UI when token balance is 0 ([#8299](https://github.com/dynamic-labs/dynamic-auth/issues/8299)) ([e8a2eca](https://github.com/dynamic-labs/dynamic-auth/commit/e8a2eca9876d914db738557a74751537eee2e129))
29
+
2
30
  ### [4.9.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.3...v4.9.4) (2025-03-17)
3
31
 
4
32
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.9.4";
6
+ var version = "4.9.6";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.9.4";
2
+ var version = "4.9.6";
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.9.4",
3
+ "version": "4.9.6",
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.642",
21
+ "@dynamic-labs/sdk-api-core": "0.0.644",
22
22
  "tldts": "6.0.16",
23
- "@dynamic-labs/assert-package-version": "4.9.4",
24
- "@dynamic-labs/logger": "4.9.4",
25
- "@dynamic-labs/types": "4.9.4",
23
+ "@dynamic-labs/assert-package-version": "4.9.6",
24
+ "@dynamic-labs/logger": "4.9.6",
25
+ "@dynamic-labs/types": "4.9.6",
26
26
  "buffer": "6.0.3",
27
27
  "eventemitter3": "5.0.1"
28
28
  },
@@ -0,0 +1,22 @@
1
+ 'use client'
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var CustomError = require('./CustomError.cjs');
7
+
8
+ /**
9
+ * Error thrown when a get address call is cancelled due to being outdated.
10
+ *
11
+ * This error is used specifically in the sdk-react-core to handle cases where
12
+ * a get address promise needs to be discarded without setting an error state.
13
+ * Common use case is when retrying the get address method - the original call
14
+ * is cancelled to allow the SDK to handle the new request cleanly.
15
+ */
16
+ class GetAddressCancelledError extends CustomError.CustomError {
17
+ constructor() {
18
+ super('Get address call was cancelled');
19
+ }
20
+ }
21
+
22
+ exports.GetAddressCancelledError = GetAddressCancelledError;
@@ -0,0 +1,12 @@
1
+ import { CustomError } from './CustomError';
2
+ /**
3
+ * Error thrown when a get address call is cancelled due to being outdated.
4
+ *
5
+ * This error is used specifically in the sdk-react-core to handle cases where
6
+ * a get address promise needs to be discarded without setting an error state.
7
+ * Common use case is when retrying the get address method - the original call
8
+ * is cancelled to allow the SDK to handle the new request cleanly.
9
+ */
10
+ export declare class GetAddressCancelledError extends CustomError {
11
+ constructor();
12
+ }
@@ -0,0 +1,18 @@
1
+ 'use client'
2
+ import { CustomError } from './CustomError.js';
3
+
4
+ /**
5
+ * Error thrown when a get address call is cancelled due to being outdated.
6
+ *
7
+ * This error is used specifically in the sdk-react-core to handle cases where
8
+ * a get address promise needs to be discarded without setting an error state.
9
+ * Common use case is when retrying the get address method - the original call
10
+ * is cancelled to allow the SDK to handle the new request cleanly.
11
+ */
12
+ class GetAddressCancelledError extends CustomError {
13
+ constructor() {
14
+ super('Get address call was cancelled');
15
+ }
16
+ }
17
+
18
+ export { GetAddressCancelledError };
@@ -39,3 +39,4 @@ export * from './WalletAddressMismatchError';
39
39
  export * from './UserRejectedRequestError';
40
40
  export * from './InvalidEmbeddedWalletSessionKeyError';
41
41
  export * from './EmbeddedWalletExistsError';
42
+ export * from './GetAddressCancelledError';
package/src/index.cjs CHANGED
@@ -50,6 +50,7 @@ var WalletAddressMismatchError = require('./errors/WalletAddressMismatchError.cj
50
50
  var UserRejectedRequestError = require('./errors/UserRejectedRequestError.cjs');
51
51
  var InvalidEmbeddedWalletSessionKeyError = require('./errors/InvalidEmbeddedWalletSessionKeyError.cjs');
52
52
  var EmbeddedWalletExistsError = require('./errors/EmbeddedWalletExistsError.cjs');
53
+ var GetAddressCancelledError = require('./errors/GetAddressCancelledError.cjs');
53
54
  var eventTimeline = require('./eventTimeline/eventTimeline.cjs');
54
55
  var formatNumberText = require('./formatNumberText/formatNumberText.cjs');
55
56
  var getProvidersFromWindow = require('./getProvidersFromWindow/getProvidersFromWindow.cjs');
@@ -157,6 +158,7 @@ exports.WalletAddressMismatchError = WalletAddressMismatchError.WalletAddressMis
157
158
  exports.UserRejectedRequestError = UserRejectedRequestError.UserRejectedRequestError;
158
159
  exports.InvalidEmbeddedWalletSessionKeyError = InvalidEmbeddedWalletSessionKeyError.InvalidEmbeddedWalletSessionKeyError;
159
160
  exports.EmbeddedWalletExistsError = EmbeddedWalletExistsError.EmbeddedWalletExistsError;
161
+ exports.GetAddressCancelledError = GetAddressCancelledError.GetAddressCancelledError;
160
162
  exports.createEventTimeline = eventTimeline.createEventTimeline;
161
163
  exports.formatNumberText = formatNumberText.formatNumberText;
162
164
  exports.getProvidersFromWindow = getProvidersFromWindow.getProvidersFromWindow;
package/src/index.js CHANGED
@@ -46,6 +46,7 @@ export { WalletAddressMismatchError } from './errors/WalletAddressMismatchError.
46
46
  export { UserRejectedRequestError } from './errors/UserRejectedRequestError.js';
47
47
  export { InvalidEmbeddedWalletSessionKeyError } from './errors/InvalidEmbeddedWalletSessionKeyError.js';
48
48
  export { EmbeddedWalletExistsError } from './errors/EmbeddedWalletExistsError.js';
49
+ export { GetAddressCancelledError } from './errors/GetAddressCancelledError.js';
49
50
  export { createEventTimeline } from './eventTimeline/eventTimeline.js';
50
51
  export { formatNumberText } from './formatNumberText/formatNumberText.js';
51
52
  export { getProvidersFromWindow } from './getProvidersFromWindow/getProvidersFromWindow.js';