@dynamic-labs/wallet-connect 4.100.5 → 4.101.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 +8 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +3 -3
- package/src/getSignClientSingleton/getSignClientSingleton.cjs +2 -4
- package/src/getSignClientSingleton/getSignClientSingleton.js +2 -4
- package/src/getSignClientSingleton/walletConnectStorage.cjs +19 -0
- package/src/getSignClientSingleton/walletConnectStorage.d.ts +3 -0
- package/src/getSignClientSingleton/walletConnectStorage.js +14 -0
- package/src/index.cjs +7 -0
- package/src/index.d.ts +3 -0
- package/src/index.js +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.101.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.100.5...v4.101.0) (2026-10-16)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **embedded-wallet:** show chain and wallet in private key export modal (V4 backport) ([#12508](https://github.com/dynamic-labs/dynamic-auth/issues/12508)) ([83d3db3](https://github.com/dynamic-labs/dynamic-auth/commit/83d3db33a27db86a175d5305b892620910205093))
|
|
8
|
+
* **wallet-connect:** back WalletConnect storage with native secure storage on mobile [v4 backport] ([#12516](https://github.com/dynamic-labs/dynamic-auth/issues/12516)) ([60ddd32](https://github.com/dynamic-labs/dynamic-auth/commit/60ddd32e2419e83babfeea5628de751ad3269045))
|
|
9
|
+
|
|
2
10
|
### [4.100.5](https://github.com/dynamic-labs/dynamic-auth/compare/v4.100.4...v4.100.5) (2026-10-14)
|
|
3
11
|
|
|
4
12
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/wallet-connect",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.101.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,10 +18,10 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs/logger": "4.
|
|
21
|
+
"@dynamic-labs/logger": "4.101.0",
|
|
22
22
|
"@walletconnect/keyvaluestorage": "1.1.1",
|
|
23
23
|
"@walletconnect/sign-client": "2.21.5",
|
|
24
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
24
|
+
"@dynamic-labs/assert-package-version": "4.101.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {}
|
|
27
27
|
}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
|
|
6
6
|
var _tslib = require('../../_virtual/_tslib.cjs');
|
|
7
7
|
var SignClient = require('@walletconnect/sign-client');
|
|
8
|
-
var
|
|
8
|
+
var walletConnectStorage = require('./walletConnectStorage.cjs');
|
|
9
9
|
var ensureWalletConnectStore = require('./ensureWalletConnectStore.cjs');
|
|
10
10
|
var reconcileOrphanedPairings = require('./reconcileOrphanedPairings.cjs');
|
|
11
11
|
|
|
@@ -37,9 +37,7 @@ const getSignClientSingleton = (_a) => _tslib.__awaiter(void 0, [_a], void 0, fu
|
|
|
37
37
|
url: '',
|
|
38
38
|
},
|
|
39
39
|
projectId,
|
|
40
|
-
|
|
41
|
-
// life of the page; this wrapper reopens it when the browser closes it.
|
|
42
|
-
storage: createResilientStorage.createResilientStorage(),
|
|
40
|
+
storage: walletConnectStorage.createWalletConnectStorage(),
|
|
43
41
|
});
|
|
44
42
|
// Drain any pairings left over from a prior page load that never got
|
|
45
43
|
// cleaned up (closed tabs, crashes, abandoned QR scans). Without this,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { __awaiter } from '../../_virtual/_tslib.js';
|
|
3
3
|
import SignClient from '@walletconnect/sign-client';
|
|
4
|
-
import {
|
|
4
|
+
import { createWalletConnectStorage } from './walletConnectStorage.js';
|
|
5
5
|
import { ensureWalletConnectStore } from './ensureWalletConnectStore.js';
|
|
6
6
|
import { reconcileOrphanedPairings } from './reconcileOrphanedPairings.js';
|
|
7
7
|
|
|
@@ -29,9 +29,7 @@ const getSignClientSingleton = (_a) => __awaiter(void 0, [_a], void 0, function*
|
|
|
29
29
|
url: '',
|
|
30
30
|
},
|
|
31
31
|
projectId,
|
|
32
|
-
|
|
33
|
-
// life of the page; this wrapper reopens it when the browser closes it.
|
|
34
|
-
storage: createResilientStorage(),
|
|
32
|
+
storage: createWalletConnectStorage(),
|
|
35
33
|
});
|
|
36
34
|
// Drain any pairings left over from a prior page load that never got
|
|
37
35
|
// cleaned up (closed tabs, crashes, abandoned QR scans). Without this,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var createResilientStorage = require('./createResilientStorage.cjs');
|
|
7
|
+
|
|
8
|
+
let customStorage;
|
|
9
|
+
// Lets native platforms inject platform storage (e.g. the webview
|
|
10
|
+
// controller's native secure-storage bridge on react-native/flutter)
|
|
11
|
+
// instead of web storage. Must be called before SDK init; passing
|
|
12
|
+
// undefined clears the override.
|
|
13
|
+
const setWalletConnectStorage = (storage) => {
|
|
14
|
+
customStorage = storage;
|
|
15
|
+
};
|
|
16
|
+
const createWalletConnectStorage = () => customStorage !== null && customStorage !== void 0 ? customStorage : createResilientStorage.createResilientStorage();
|
|
17
|
+
|
|
18
|
+
exports.createWalletConnectStorage = createWalletConnectStorage;
|
|
19
|
+
exports.setWalletConnectStorage = setWalletConnectStorage;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import { createResilientStorage } from './createResilientStorage.js';
|
|
3
|
+
|
|
4
|
+
let customStorage;
|
|
5
|
+
// Lets native platforms inject platform storage (e.g. the webview
|
|
6
|
+
// controller's native secure-storage bridge on react-native/flutter)
|
|
7
|
+
// instead of web storage. Must be called before SDK init; passing
|
|
8
|
+
// undefined clears the override.
|
|
9
|
+
const setWalletConnectStorage = (storage) => {
|
|
10
|
+
customStorage = storage;
|
|
11
|
+
};
|
|
12
|
+
const createWalletConnectStorage = () => customStorage !== null && customStorage !== void 0 ? customStorage : createResilientStorage();
|
|
13
|
+
|
|
14
|
+
export { createWalletConnectStorage, setWalletConnectStorage };
|
package/src/index.cjs
CHANGED
|
@@ -5,8 +5,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
|
|
6
6
|
var assertPackageVersion = require('@dynamic-labs/assert-package-version');
|
|
7
7
|
var _package = require('../package.cjs');
|
|
8
|
+
var createResilientStorage = require('./getSignClientSingleton/createResilientStorage.cjs');
|
|
9
|
+
var walletConnectStorage = require('./getSignClientSingleton/walletConnectStorage.cjs');
|
|
10
|
+
var ensureWalletConnectStore = require('./getSignClientSingleton/ensureWalletConnectStore.cjs');
|
|
8
11
|
var getSignClientSingleton = require('./getSignClientSingleton/getSignClientSingleton.cjs');
|
|
9
12
|
|
|
10
13
|
assertPackageVersion.assertPackageVersion('@dynamic-labs/wallet-connect', _package.version);
|
|
11
14
|
|
|
15
|
+
exports.createResilientStorage = createResilientStorage.createResilientStorage;
|
|
16
|
+
exports.createWalletConnectStorage = walletConnectStorage.createWalletConnectStorage;
|
|
17
|
+
exports.setWalletConnectStorage = walletConnectStorage.setWalletConnectStorage;
|
|
18
|
+
exports.ensureWalletConnectStore = ensureWalletConnectStore.ensureWalletConnectStore;
|
|
12
19
|
exports.getSignClientSingleton = getSignClientSingleton.getSignClientSingleton;
|
package/src/index.d.ts
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
+
export { createResilientStorage } from './getSignClientSingleton/createResilientStorage';
|
|
2
|
+
export { createWalletConnectStorage, setWalletConnectStorage, } from './getSignClientSingleton/walletConnectStorage';
|
|
3
|
+
export { ensureWalletConnectStore } from './getSignClientSingleton/ensureWalletConnectStore';
|
|
1
4
|
export { getSignClientSingleton } from './getSignClientSingleton';
|
package/src/index.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { assertPackageVersion } from '@dynamic-labs/assert-package-version';
|
|
3
3
|
import { version } from '../package.js';
|
|
4
|
+
export { createResilientStorage } from './getSignClientSingleton/createResilientStorage.js';
|
|
5
|
+
export { createWalletConnectStorage, setWalletConnectStorage } from './getSignClientSingleton/walletConnectStorage.js';
|
|
6
|
+
export { ensureWalletConnectStore } from './getSignClientSingleton/ensureWalletConnectStore.js';
|
|
4
7
|
export { getSignClientSingleton } from './getSignClientSingleton/getSignClientSingleton.js';
|
|
5
8
|
|
|
6
9
|
assertPackageVersion('@dynamic-labs/wallet-connect', version);
|