@dynamic-labs/utils 4.23.0 → 4.24.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,16 @@
1
1
 
2
+ ## [4.24.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.23.1...v4.24.0) (2025-07-15)
3
+
4
+ ### Features
5
+
6
+ * add useMultichainTokenBalances hook ([#9171](https://github.com/dynamic-labs/dynamic-auth/issues/9171)) ([7890182](https://github.com/dynamic-labs/dynamic-auth/commit/7890182a45139c0ebcb4273ca717cf7ced0fd652))
7
+
8
+ ### Bug Fixes
9
+
10
+ * improve error for invalid embedded wallet action due to missing primary wallet or connector ([#9174](https://github.com/dynamic-labs/dynamic-auth/issues/9174)) ([8459728](https://github.com/dynamic-labs/dynamic-auth/commit/84597289ecad17bcbeccfda532bc2490373c0ab5))
11
+
12
+ ### [4.23.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.23.0...v4.23.1) (2025-07-15)
13
+
2
14
  ## [4.23.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.22.8...v4.23.0) (2025-07-11)
3
15
 
4
16
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.23.0";
6
+ var version = "4.24.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.23.0";
2
+ var version = "4.24.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.23.0",
3
+ "version": "4.24.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.706",
21
+ "@dynamic-labs/sdk-api-core": "0.0.715",
22
22
  "tldts": "6.0.16",
23
- "@dynamic-labs/assert-package-version": "4.23.0",
24
- "@dynamic-labs/logger": "4.23.0",
25
- "@dynamic-labs/types": "4.23.0",
23
+ "@dynamic-labs/assert-package-version": "4.24.0",
24
+ "@dynamic-labs/logger": "4.24.0",
25
+ "@dynamic-labs/types": "4.24.0",
26
26
  "buffer": "6.0.3",
27
27
  "eventemitter3": "5.0.1"
28
28
  },
@@ -0,0 +1,14 @@
1
+ 'use client'
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var DynamicError = require('./DynamicError.cjs');
7
+
8
+ class InvalidPrimaryWalletOrConnectorError extends DynamicError.DynamicError {
9
+ constructor(code) {
10
+ super('Primary wallet is not properly set or the wallet connector is missing from DynamicContextProvider settings.', code);
11
+ }
12
+ }
13
+
14
+ exports.InvalidPrimaryWalletOrConnectorError = InvalidPrimaryWalletOrConnectorError;
@@ -0,0 +1,5 @@
1
+ import { DynamicError } from './DynamicError';
2
+ import { ErrorCode } from './ErrorCode';
3
+ export declare class InvalidPrimaryWalletOrConnectorError extends DynamicError {
4
+ constructor(code?: ErrorCode | string);
5
+ }
@@ -0,0 +1,10 @@
1
+ 'use client'
2
+ import { DynamicError } from './DynamicError.js';
3
+
4
+ class InvalidPrimaryWalletOrConnectorError extends DynamicError {
5
+ constructor(code) {
6
+ super('Primary wallet is not properly set or the wallet connector is missing from DynamicContextProvider settings.', code);
7
+ }
8
+ }
9
+
10
+ export { InvalidPrimaryWalletOrConnectorError };
@@ -17,6 +17,7 @@ export * from './GetAddressCancelledError';
17
17
  export * from './InsufficientFundsError';
18
18
  export * from './InvalidEmbeddedWalletSessionKeyError';
19
19
  export * from './InvalidPhoneNumberError';
20
+ export * from './InvalidPrimaryWalletOrConnectorError';
20
21
  export * from './MergeAccountsConfirmationError';
21
22
  export * from './MetaMaskError';
22
23
  export * from './MissingEnvironmentIdError';
package/src/index.cjs CHANGED
@@ -29,6 +29,7 @@ var GetAddressCancelledError = require('./errors/GetAddressCancelledError.cjs');
29
29
  var InsufficientFundsError = require('./errors/InsufficientFundsError.cjs');
30
30
  var InvalidEmbeddedWalletSessionKeyError = require('./errors/InvalidEmbeddedWalletSessionKeyError.cjs');
31
31
  var InvalidPhoneNumberError = require('./errors/InvalidPhoneNumberError.cjs');
32
+ var InvalidPrimaryWalletOrConnectorError = require('./errors/InvalidPrimaryWalletOrConnectorError.cjs');
32
33
  var MergeAccountsConfirmationError = require('./errors/MergeAccountsConfirmationError.cjs');
33
34
  var MetaMaskError = require('./errors/MetaMaskError.cjs');
34
35
  var MissingEnvironmentIdError = require('./errors/MissingEnvironmentIdError.cjs');
@@ -138,6 +139,7 @@ exports.GetAddressCancelledError = GetAddressCancelledError.GetAddressCancelledE
138
139
  exports.InsufficientFundsError = InsufficientFundsError.InsufficientFundsError;
139
140
  exports.InvalidEmbeddedWalletSessionKeyError = InvalidEmbeddedWalletSessionKeyError.InvalidEmbeddedWalletSessionKeyError;
140
141
  exports.InvalidPhoneNumberError = InvalidPhoneNumberError.InvalidPhoneNumberError;
142
+ exports.InvalidPrimaryWalletOrConnectorError = InvalidPrimaryWalletOrConnectorError.InvalidPrimaryWalletOrConnectorError;
141
143
  exports.MergeAccountsConfirmationError = MergeAccountsConfirmationError.MergeAccountsConfirmationError;
142
144
  exports.MetaMaskError = MetaMaskError.MetaMaskError;
143
145
  exports.metaMaskErrorMap = MetaMaskError.metaMaskErrorMap;
package/src/index.js CHANGED
@@ -25,6 +25,7 @@ export { GetAddressCancelledError } from './errors/GetAddressCancelledError.js';
25
25
  export { InsufficientFundsError } from './errors/InsufficientFundsError.js';
26
26
  export { InvalidEmbeddedWalletSessionKeyError } from './errors/InvalidEmbeddedWalletSessionKeyError.js';
27
27
  export { InvalidPhoneNumberError } from './errors/InvalidPhoneNumberError.js';
28
+ export { InvalidPrimaryWalletOrConnectorError } from './errors/InvalidPrimaryWalletOrConnectorError.js';
28
29
  export { MergeAccountsConfirmationError } from './errors/MergeAccountsConfirmationError.js';
29
30
  export { MetaMaskError, metaMaskErrorMap } from './errors/MetaMaskError.js';
30
31
  export { MissingEnvironmentIdError } from './errors/MissingEnvironmentIdError.js';