@dynamic-labs/utils 4.5.3 → 4.6.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.6.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.5.3...v4.6.0) (2025-02-10)
3
+
4
+
5
+ ### Features
6
+
7
+ * expose method to refetch project settings ([#8048](https://github.com/dynamic-labs/dynamic-auth/issues/8048)) ([10af30c](https://github.com/dynamic-labs/dynamic-auth/commit/10af30cb5caf39b95eaae39ad831466f6f73b98a))
8
+ * add new hook to delete user ([#8013](https://github.com/dynamic-labs/dynamic-auth/issues/8013)) ([c312285](https://github.com/dynamic-labs/dynamic-auth/commit/c312285b4e4663eedf83a4c8c043715ba6c1a9ed))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * add memos and fix state updates to prevent rerenders ([#8024](https://github.com/dynamic-labs/dynamic-auth/issues/8024)) ([89504c0](https://github.com/dynamic-labs/dynamic-auth/commit/89504c0efa29ed846a55d7eb3213a1b9b070368a))
14
+ * back button not working properly in the farcaster connect view ([#8051](https://github.com/dynamic-labs/dynamic-auth/issues/8051)) ([5fe4631](https://github.com/dynamic-labs/dynamic-auth/commit/5fe463105ce43dd7ec31cd90ee6922bd917ed9de))
15
+ * update wallet address when switching networks in cosmos ([#8016](https://github.com/dynamic-labs/dynamic-auth/issues/8016)) ([2925784](https://github.com/dynamic-labs/dynamic-auth/commit/29257846fa99600a67cf010447248451cd17ae60))
16
+
2
17
  ### [4.5.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.5.2...v4.5.3) (2025-02-09)
3
18
 
4
19
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.5.3";
6
+ var version = "4.6.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.5.3";
2
+ var version = "4.6.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.5.3",
3
+ "version": "4.6.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.613",
21
+ "@dynamic-labs/sdk-api-core": "0.0.615",
22
22
  "tldts": "6.0.16",
23
- "@dynamic-labs/assert-package-version": "4.5.3",
24
- "@dynamic-labs/logger": "4.5.3",
25
- "@dynamic-labs/types": "4.5.3",
23
+ "@dynamic-labs/assert-package-version": "4.6.0",
24
+ "@dynamic-labs/logger": "4.6.0",
25
+ "@dynamic-labs/types": "4.6.0",
26
26
  "buffer": "6.0.3",
27
27
  "eventemitter3": "5.0.1"
28
28
  },
@@ -0,0 +1,8 @@
1
+ 'use client'
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ const PHANTOM_REDIRECT_CONNECTION_TYPE_KEY = 'phantom-redirect-connection-type';
7
+
8
+ exports.PHANTOM_REDIRECT_CONNECTION_TYPE_KEY = PHANTOM_REDIRECT_CONNECTION_TYPE_KEY;
@@ -0,0 +1,11 @@
1
+ export declare const PHANTOM_REDIRECT_CONNECTION_TYPE_KEY = "phantom-redirect-connection-type";
2
+ export type PhantomRedirectConnectionType = {
3
+ /**
4
+ * Reason for this connection
5
+ */
6
+ type: 'default' | 'external-wallet-funding';
7
+ /**
8
+ * Whether connector has already consumed and validated this connection type
9
+ */
10
+ connectorConsumed: boolean;
11
+ };
@@ -0,0 +1,4 @@
1
+ 'use client'
2
+ const PHANTOM_REDIRECT_CONNECTION_TYPE_KEY = 'phantom-redirect-connection-type';
3
+
4
+ export { PHANTOM_REDIRECT_CONNECTION_TYPE_KEY };
package/src/index.cjs CHANGED
@@ -86,6 +86,7 @@ var isInIframe = require('./isInIframe/isInIframe.cjs');
86
86
  var promiseWithTimeout = require('./promiseWithTimeout/promiseWithTimeout.cjs');
87
87
  var runSafe = require('./runSafe/runSafe.cjs');
88
88
  var template = require('./template/template.cjs');
89
+ var phantomRedirect = require('./consts/phantomRedirect.cjs');
89
90
  var PlatformService = require('./services/PlatformService/PlatformService.cjs');
90
91
  var createBrowserPlatformService = require('./services/PlatformService/createBrowserPlatformService/createBrowserPlatformService.cjs');
91
92
  var FetchService = require('./services/FetchService/FetchService.cjs');
@@ -199,6 +200,7 @@ exports.isInIframe = isInIframe.isInIframe;
199
200
  exports.promiseWithTimeout = promiseWithTimeout.promiseWithTimeout;
200
201
  exports.runSafe = runSafe.runSafe;
201
202
  exports.template = template.template;
203
+ exports.PHANTOM_REDIRECT_CONNECTION_TYPE_KEY = phantomRedirect.PHANTOM_REDIRECT_CONNECTION_TYPE_KEY;
202
204
  exports.PlatformService = PlatformService.PlatformService;
203
205
  exports.createBrowserPlatformService = createBrowserPlatformService.createBrowserPlatformService;
204
206
  exports.FetchService = FetchService.FetchService;
package/src/index.d.ts CHANGED
@@ -36,6 +36,7 @@ export { isInIframe } from './isInIframe';
36
36
  export { promiseWithTimeout } from './promiseWithTimeout';
37
37
  export { runSafe } from './runSafe';
38
38
  export { template } from './template';
39
+ export { PHANTOM_REDIRECT_CONNECTION_TYPE_KEY, type PhantomRedirectConnectionType, } from './consts/phantomRedirect';
39
40
  export { PlatformService, createBrowserPlatformService, type IPlatformService, } from './services/PlatformService';
40
41
  export { FetchService } from './services/FetchService';
41
42
  export { Oauth2Service, type GetOauthCodeError, type GetOauthCodeProps, type IOauth2Service, createWindowOauth2Service, } from './services/Oauth2Service';
package/src/index.js CHANGED
@@ -82,6 +82,7 @@ export { isInIframe } from './isInIframe/isInIframe.js';
82
82
  export { promiseWithTimeout } from './promiseWithTimeout/promiseWithTimeout.js';
83
83
  export { runSafe } from './runSafe/runSafe.js';
84
84
  export { template } from './template/template.js';
85
+ export { PHANTOM_REDIRECT_CONNECTION_TYPE_KEY } from './consts/phantomRedirect.js';
85
86
  export { PlatformService } from './services/PlatformService/PlatformService.js';
86
87
  export { createBrowserPlatformService } from './services/PlatformService/createBrowserPlatformService/createBrowserPlatformService.js';
87
88
  export { FetchService } from './services/FetchService/FetchService.js';