@dynamic-labs/utils 4.62.0 → 4.63.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 +13 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +5 -5
- package/src/index.cjs +2 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/walletReturnRoute/index.d.ts +1 -0
- package/src/walletReturnRoute/walletReturnRoute.cjs +41 -0
- package/src/walletReturnRoute/walletReturnRoute.d.ts +20 -0
- package/src/walletReturnRoute/walletReturnRoute.js +37 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.63.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.62.0...v4.63.0) (2026-02-24)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **react-native:** raise walletReturnFromDeepLink event to allow redirecting back to the same route as before ([#10364](https://github.com/dynamic-labs/dynamic-auth/issues/10364)) ([cd56fd0](https://github.com/dynamic-labs/dynamic-auth/commit/cd56fd089e867bb5ed09a7c999b04480d8f59f81))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **react-native:** include redirectUrl in WalletConnect connection deep links on iOS and add session redirect metadata for Solana ([#10479](https://github.com/dynamic-labs/dynamic-auth/issues/10479)) ([68829f9](https://github.com/dynamic-labs/dynamic-auth/commit/68829f9ef39c845917ce49bfd63922e5252c2299))
|
|
13
|
+
* ton external wallet connection ([#10460](https://github.com/dynamic-labs/dynamic-auth/issues/10460)) ([7431a74](https://github.com/dynamic-labs/dynamic-auth/commit/7431a74fcd0bcd04755e6a81b49aa24dfc261f09))
|
|
14
|
+
|
|
2
15
|
## [4.62.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.61.7...v4.62.0) (2026-02-23)
|
|
3
16
|
|
|
4
17
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/utils",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.63.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.
|
|
21
|
+
"@dynamic-labs/sdk-api-core": "0.0.875",
|
|
22
22
|
"tldts": "6.0.16",
|
|
23
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
24
|
-
"@dynamic-labs/logger": "4.
|
|
25
|
-
"@dynamic-labs/types": "4.
|
|
23
|
+
"@dynamic-labs/assert-package-version": "4.63.0",
|
|
24
|
+
"@dynamic-labs/logger": "4.63.0",
|
|
25
|
+
"@dynamic-labs/types": "4.63.0",
|
|
26
26
|
"buffer": "6.0.3",
|
|
27
27
|
"eventemitter3": "5.0.1"
|
|
28
28
|
},
|
package/src/index.cjs
CHANGED
|
@@ -86,6 +86,7 @@ var cryptoAvailability = require('./encryption/cryptoAvailability/cryptoAvailabi
|
|
|
86
86
|
var uint8ArrayToBase64 = require('./uint8ArrayToBase64/uint8ArrayToBase64.cjs');
|
|
87
87
|
var assertDefined = require('./assertDefined/assertDefined.cjs');
|
|
88
88
|
var filterDuplicates = require('./filterDuplicates/filterDuplicates.cjs');
|
|
89
|
+
var walletReturnRoute = require('./walletReturnRoute/walletReturnRoute.cjs');
|
|
89
90
|
var cloneObjectWithOverrides = require('./cloneObjectWithOverrides/cloneObjectWithOverrides.cjs');
|
|
90
91
|
var get = require('./get/get.cjs');
|
|
91
92
|
var hexToString = require('./hexToString/hexToString.cjs');
|
|
@@ -217,6 +218,7 @@ exports.uint8ArrayFromBase64 = uint8ArrayToBase64.uint8ArrayFromBase64;
|
|
|
217
218
|
exports.uint8ArrayToBase64 = uint8ArrayToBase64.uint8ArrayToBase64;
|
|
218
219
|
exports.assertDefined = assertDefined.assertDefined;
|
|
219
220
|
exports.filterDuplicates = filterDuplicates.filterDuplicates;
|
|
221
|
+
exports.walletReturnRoute = walletReturnRoute.walletReturnRoute;
|
|
220
222
|
exports.cloneObjectWithOverrides = cloneObjectWithOverrides.cloneObjectWithOverrides;
|
|
221
223
|
exports.get = get.get;
|
|
222
224
|
exports.hexToString = hexToString.hexToString;
|
package/src/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export * from './encryption';
|
|
|
29
29
|
export * from './uint8ArrayToBase64';
|
|
30
30
|
export * from './assertDefined';
|
|
31
31
|
export * from './filterDuplicates';
|
|
32
|
+
export * from './walletReturnRoute';
|
|
32
33
|
export { cloneObjectWithOverrides } from './cloneObjectWithOverrides';
|
|
33
34
|
export { get } from './get';
|
|
34
35
|
export { hexToString } from './hexToString';
|
package/src/index.js
CHANGED
|
@@ -82,6 +82,7 @@ export { CryptoNotAvailableError, assertCryptoSubtleAvailable, isCryptoSubtleAva
|
|
|
82
82
|
export { uint8ArrayFromBase64, uint8ArrayToBase64 } from './uint8ArrayToBase64/uint8ArrayToBase64.js';
|
|
83
83
|
export { assertDefined } from './assertDefined/assertDefined.js';
|
|
84
84
|
export { filterDuplicates } from './filterDuplicates/filterDuplicates.js';
|
|
85
|
+
export { walletReturnRoute } from './walletReturnRoute/walletReturnRoute.js';
|
|
85
86
|
export { cloneObjectWithOverrides } from './cloneObjectWithOverrides/cloneObjectWithOverrides.js';
|
|
86
87
|
export { get } from './get/get.js';
|
|
87
88
|
export { hexToString } from './hexToString/hexToString.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { walletReturnRoute } from './walletReturnRoute';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var StorageService = require('../services/StorageService/StorageService.cjs');
|
|
7
|
+
require('../logger/logger.cjs');
|
|
8
|
+
|
|
9
|
+
const WALLET_RETURN_ROUTE_KEY = 'dynamic-wallet-return-route';
|
|
10
|
+
/**
|
|
11
|
+
* Utility for storing and retrieving the route to return to after
|
|
12
|
+
* a wallet deep link operation completes.
|
|
13
|
+
*/
|
|
14
|
+
const walletReturnRoute = {
|
|
15
|
+
/**
|
|
16
|
+
* Clear any stored return route without retrieving it.
|
|
17
|
+
*/
|
|
18
|
+
clear: () => {
|
|
19
|
+
StorageService.StorageService.removeItem(WALLET_RETURN_ROUTE_KEY);
|
|
20
|
+
},
|
|
21
|
+
/**
|
|
22
|
+
* Get and clear the stored return route.
|
|
23
|
+
* Returns undefined if no route was stored.
|
|
24
|
+
*/
|
|
25
|
+
getAndClear: () => {
|
|
26
|
+
const route = StorageService.StorageService.getItem(WALLET_RETURN_ROUTE_KEY);
|
|
27
|
+
if (route) {
|
|
28
|
+
StorageService.StorageService.removeItem(WALLET_RETURN_ROUTE_KEY);
|
|
29
|
+
}
|
|
30
|
+
return route !== null && route !== void 0 ? route : undefined;
|
|
31
|
+
},
|
|
32
|
+
/**
|
|
33
|
+
* Store the current route before opening a wallet deep link.
|
|
34
|
+
* This will be retrieved when the app returns from the wallet.
|
|
35
|
+
*/
|
|
36
|
+
set: (route) => {
|
|
37
|
+
StorageService.StorageService.setItem(WALLET_RETURN_ROUTE_KEY, route);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
exports.walletReturnRoute = walletReturnRoute;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility for storing and retrieving the route to return to after
|
|
3
|
+
* a wallet deep link operation completes.
|
|
4
|
+
*/
|
|
5
|
+
export declare const walletReturnRoute: {
|
|
6
|
+
/**
|
|
7
|
+
* Clear any stored return route without retrieving it.
|
|
8
|
+
*/
|
|
9
|
+
clear: () => void;
|
|
10
|
+
/**
|
|
11
|
+
* Get and clear the stored return route.
|
|
12
|
+
* Returns undefined if no route was stored.
|
|
13
|
+
*/
|
|
14
|
+
getAndClear: () => string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Store the current route before opening a wallet deep link.
|
|
17
|
+
* This will be retrieved when the app returns from the wallet.
|
|
18
|
+
*/
|
|
19
|
+
set: (route: string) => void;
|
|
20
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import { StorageService } from '../services/StorageService/StorageService.js';
|
|
3
|
+
import '../logger/logger.js';
|
|
4
|
+
|
|
5
|
+
const WALLET_RETURN_ROUTE_KEY = 'dynamic-wallet-return-route';
|
|
6
|
+
/**
|
|
7
|
+
* Utility for storing and retrieving the route to return to after
|
|
8
|
+
* a wallet deep link operation completes.
|
|
9
|
+
*/
|
|
10
|
+
const walletReturnRoute = {
|
|
11
|
+
/**
|
|
12
|
+
* Clear any stored return route without retrieving it.
|
|
13
|
+
*/
|
|
14
|
+
clear: () => {
|
|
15
|
+
StorageService.removeItem(WALLET_RETURN_ROUTE_KEY);
|
|
16
|
+
},
|
|
17
|
+
/**
|
|
18
|
+
* Get and clear the stored return route.
|
|
19
|
+
* Returns undefined if no route was stored.
|
|
20
|
+
*/
|
|
21
|
+
getAndClear: () => {
|
|
22
|
+
const route = StorageService.getItem(WALLET_RETURN_ROUTE_KEY);
|
|
23
|
+
if (route) {
|
|
24
|
+
StorageService.removeItem(WALLET_RETURN_ROUTE_KEY);
|
|
25
|
+
}
|
|
26
|
+
return route !== null && route !== void 0 ? route : undefined;
|
|
27
|
+
},
|
|
28
|
+
/**
|
|
29
|
+
* Store the current route before opening a wallet deep link.
|
|
30
|
+
* This will be retrieved when the app returns from the wallet.
|
|
31
|
+
*/
|
|
32
|
+
set: (route) => {
|
|
33
|
+
StorageService.setItem(WALLET_RETURN_ROUTE_KEY, route);
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export { walletReturnRoute };
|