@dynamic-labs/wallet-connect 5.12.1 → 5.12.3
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 +30 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +3 -3
- package/src/getSignClientSingleton/getRedirectMetadata.cjs +19 -0
- package/src/getSignClientSingleton/getRedirectMetadata.d.ts +6 -0
- package/src/getSignClientSingleton/getRedirectMetadata.js +15 -0
- package/src/getSignClientSingleton/getSignClientSingleton.cjs +2 -2
- package/src/getSignClientSingleton/getSignClientSingleton.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,34 @@
|
|
|
1
1
|
|
|
2
|
+
### [5.12.3](https://github.com/dynamic-labs/dynamic-auth/compare/v5.12.2...v5.12.3) (2026-10-23)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* accept recoveryEncryptionPublicKey in createOfflineRecoveryShares ([#12417](https://github.com/dynamic-labs/dynamic-auth/issues/12417)) ([7bb6dac](https://github.com/dynamic-labs/dynamic-auth/commit/7bb6dac56f4509fba46bc2afc9a37bcfb52aecc5))
|
|
8
|
+
* **client:** add loadId and sdk_bootstrap sub-stage to webview load failure meta ([#12576](https://github.com/dynamic-labs/dynamic-auth/issues/12576)) ([4f5254e](https://github.com/dynamic-labs/dynamic-auth/commit/4f5254e011afbaa20deb10300ea5fa92ae85e56d))
|
|
9
|
+
* **sui:** migrate SDK clients to gRPC ([#12446](https://github.com/dynamic-labs/dynamic-auth/issues/12446)) ([b6c04f3](https://github.com/dynamic-labs/dynamic-auth/commit/b6c04f32bead909439f1e24fb684eeaadd1692d2))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **client:** derive webview bootstrapStage from raw manifest timestamp ([#12578](https://github.com/dynamic-labs/dynamic-auth/issues/12578)) ([965263f](https://github.com/dynamic-labs/dynamic-auth/commit/965263f553d9b83d0fab7f42ed1e76053b514e45))
|
|
15
|
+
* **deps:** bump next 16.4.1 + toml/image-size floors (crit/high vulns) ([#12582](https://github.com/dynamic-labs/dynamic-auth/issues/12582)) ([ac732e4](https://github.com/dynamic-labs/dynamic-auth/commit/ac732e443d450be15f3362c9b59fc29dbe1f1727)), closes [#1163](https://github.com/dynamic-labs/dynamic-auth/issues/1163) [-#1166](https://github.com/dynamic-labs/-/issues/1166) [#1171](https://github.com/dynamic-labs/dynamic-auth/issues/1171) [#1172](https://github.com/dynamic-labs/dynamic-auth/issues/1172) [#1168](https://github.com/dynamic-labs/dynamic-auth/issues/1168) [-#1170](https://github.com/dynamic-labs/-/issues/1170) [#1014](https://github.com/dynamic-labs/dynamic-auth/issues/1014) [-#1019](https://github.com/dynamic-labs/-/issues/1019)
|
|
16
|
+
* **emudhra-fix:** move Maestro Cloud action off Node 20 (v1.9.9 to v3.0.1) ([#12568](https://github.com/dynamic-labs/dynamic-auth/issues/12568)) ([8282d84](https://github.com/dynamic-labs/dynamic-auth/commit/8282d8436edd2c5d7e339884e04a41922fc2581e))
|
|
17
|
+
* **sdk-react-core:** show signing wallet's network in SendBalanceTransactionCard [DYNT-2337] ([#12573](https://github.com/dynamic-labs/dynamic-auth/issues/12573)) ([4f78456](https://github.com/dynamic-labs/dynamic-auth/commit/4f78456b6100075156465b3f5efd0c760b2465ef)), closes [#12063](https://github.com/dynamic-labs/dynamic-auth/issues/12063)
|
|
18
|
+
* **wallet-book:** add a separate OKX Exchange entry ([#12564](https://github.com/dynamic-labs/dynamic-auth/issues/12564)) ([b4dc2ad](https://github.com/dynamic-labs/dynamic-auth/commit/b4dc2adab5a6bc75a1ba96c4f5d6b713dc0fc217))
|
|
19
|
+
* **wallet-book:** open OKX Wallet app for OKX Wallet connections ([#12563](https://github.com/dynamic-labs/dynamic-auth/issues/12563)) ([182bfa7](https://github.com/dynamic-labs/dynamic-auth/commit/182bfa714c883d010333a9d2e4cd748888a2a0d9))
|
|
20
|
+
* **wallet-connect:** send http(s) redirect URLs as universal redirects ([#12565](https://github.com/dynamic-labs/dynamic-auth/issues/12565)) ([ae11460](https://github.com/dynamic-labs/dynamic-auth/commit/ae11460a6d07c843e150932a895ca1462192ef28))
|
|
21
|
+
|
|
22
|
+
### [5.12.2](https://github.com/dynamic-labs/dynamic-auth/compare/v5.12.1...v5.12.2) (2026-10-21)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* **deps:** patch follow-redirects GHSA-8r9p-f939-6h3c and bump test-app next to 16.3.8 ([#12554](https://github.com/dynamic-labs/dynamic-auth/issues/12554)) ([a4df20f](https://github.com/dynamic-labs/dynamic-auth/commit/a4df20f5c5742b2d042c6bd6304843352dbc83bd))
|
|
28
|
+
* **eMudhra-fix:** bump @dynamic-labs-wallet/* to 1.1.47 (eMudhra CA distrust) ([#12561](https://github.com/dynamic-labs/dynamic-auth/issues/12561)) ([6f6a9ce](https://github.com/dynamic-labs/dynamic-auth/commit/6f6a9ce310db000af38b3411d60776b2fa5f9e89))
|
|
29
|
+
* **emudhra-fix:** bump Node to 22.23.4 in CI and actions to Node 24 runtimes ([#12559](https://github.com/dynamic-labs/dynamic-auth/issues/12559)) ([af1a97f](https://github.com/dynamic-labs/dynamic-auth/commit/af1a97fc12629a31a1297aa910fab155f9317163))
|
|
30
|
+
* **wallet-book:** detect TokenPocket EVM via window.tokenpocket and isTokenPocket ([#12546](https://github.com/dynamic-labs/dynamic-auth/issues/12546)) ([bd4f01a](https://github.com/dynamic-labs/dynamic-auth/commit/bd4f01a0b8c4180c1b4a5a5d891c84f8af7f0269))
|
|
31
|
+
|
|
2
32
|
### [5.12.1](https://github.com/dynamic-labs/dynamic-auth/compare/v5.12.0...v5.12.1) (2026-10-20)
|
|
3
33
|
|
|
4
34
|
|
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": "5.12.
|
|
3
|
+
"version": "5.12.3",
|
|
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": "5.12.
|
|
21
|
+
"@dynamic-labs/logger": "5.12.3",
|
|
22
22
|
"@walletconnect/keyvaluestorage": "1.1.1",
|
|
23
23
|
"@walletconnect/sign-client": "2.21.5",
|
|
24
|
-
"@dynamic-labs/assert-package-version": "5.12.
|
|
24
|
+
"@dynamic-labs/assert-package-version": "5.12.3"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {}
|
|
27
27
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
// Wallets open `native` redirects right after connecting, so an http(s) URL
|
|
7
|
+
// there sends a phone's browser to the dapp when the connection was started by
|
|
8
|
+
// scanning a QR code from another device. http(s) URLs are universal links.
|
|
9
|
+
const getRedirectMetadata = (redirectUrl) => {
|
|
10
|
+
if (!redirectUrl) {
|
|
11
|
+
return undefined;
|
|
12
|
+
}
|
|
13
|
+
if (/^https?:\/\//i.test(redirectUrl)) {
|
|
14
|
+
return { universal: redirectUrl };
|
|
15
|
+
}
|
|
16
|
+
return { native: redirectUrl };
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
exports.getRedirectMetadata = getRedirectMetadata;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
// Wallets open `native` redirects right after connecting, so an http(s) URL
|
|
3
|
+
// there sends a phone's browser to the dapp when the connection was started by
|
|
4
|
+
// scanning a QR code from another device. http(s) URLs are universal links.
|
|
5
|
+
const getRedirectMetadata = (redirectUrl) => {
|
|
6
|
+
if (!redirectUrl) {
|
|
7
|
+
return undefined;
|
|
8
|
+
}
|
|
9
|
+
if (/^https?:\/\//i.test(redirectUrl)) {
|
|
10
|
+
return { universal: redirectUrl };
|
|
11
|
+
}
|
|
12
|
+
return { native: redirectUrl };
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { getRedirectMetadata };
|
|
@@ -7,6 +7,7 @@ var _tslib = require('../../_virtual/_tslib.cjs');
|
|
|
7
7
|
var SignClient = require('@walletconnect/sign-client');
|
|
8
8
|
var walletConnectStorage = require('./walletConnectStorage.cjs');
|
|
9
9
|
var ensureWalletConnectStore = require('./ensureWalletConnectStore.cjs');
|
|
10
|
+
var getRedirectMetadata = require('./getRedirectMetadata.cjs');
|
|
10
11
|
var reconcileOrphanedPairings = require('./reconcileOrphanedPairings.cjs');
|
|
11
12
|
|
|
12
13
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -22,7 +23,6 @@ var SignClient__default = /*#__PURE__*/_interopDefaultLegacy(SignClient);
|
|
|
22
23
|
let signClientSingleton = undefined;
|
|
23
24
|
const getSignClientSingleton = (_a) => _tslib.__awaiter(void 0, [_a], void 0, function* ({ projectId, appIcon, appName, redirectUrl, }) {
|
|
24
25
|
if (!signClientSingleton) {
|
|
25
|
-
const redirect = redirectUrl ? { native: redirectUrl } : undefined;
|
|
26
26
|
// Repair WalletConnect's IndexedDB object store before SignClient opens it,
|
|
27
27
|
// so an interrupted upgrade (iOS WebKit reload) that left the store missing
|
|
28
28
|
// can't make every subsequent read/write throw NotFoundError.
|
|
@@ -33,7 +33,7 @@ const getSignClientSingleton = (_a) => _tslib.__awaiter(void 0, [_a], void 0, fu
|
|
|
33
33
|
description: '',
|
|
34
34
|
icons: [appIcon],
|
|
35
35
|
name: appName,
|
|
36
|
-
redirect,
|
|
36
|
+
redirect: getRedirectMetadata.getRedirectMetadata(redirectUrl),
|
|
37
37
|
url: '',
|
|
38
38
|
},
|
|
39
39
|
projectId,
|
|
@@ -3,6 +3,7 @@ import { __awaiter } from '../../_virtual/_tslib.js';
|
|
|
3
3
|
import SignClient from '@walletconnect/sign-client';
|
|
4
4
|
import { createWalletConnectStorage } from './walletConnectStorage.js';
|
|
5
5
|
import { ensureWalletConnectStore } from './ensureWalletConnectStore.js';
|
|
6
|
+
import { getRedirectMetadata } from './getRedirectMetadata.js';
|
|
6
7
|
import { reconcileOrphanedPairings } from './reconcileOrphanedPairings.js';
|
|
7
8
|
|
|
8
9
|
/**
|
|
@@ -14,7 +15,6 @@ import { reconcileOrphanedPairings } from './reconcileOrphanedPairings.js';
|
|
|
14
15
|
let signClientSingleton = undefined;
|
|
15
16
|
const getSignClientSingleton = (_a) => __awaiter(void 0, [_a], void 0, function* ({ projectId, appIcon, appName, redirectUrl, }) {
|
|
16
17
|
if (!signClientSingleton) {
|
|
17
|
-
const redirect = redirectUrl ? { native: redirectUrl } : undefined;
|
|
18
18
|
// Repair WalletConnect's IndexedDB object store before SignClient opens it,
|
|
19
19
|
// so an interrupted upgrade (iOS WebKit reload) that left the store missing
|
|
20
20
|
// can't make every subsequent read/write throw NotFoundError.
|
|
@@ -25,7 +25,7 @@ const getSignClientSingleton = (_a) => __awaiter(void 0, [_a], void 0, function*
|
|
|
25
25
|
description: '',
|
|
26
26
|
icons: [appIcon],
|
|
27
27
|
name: appName,
|
|
28
|
-
redirect,
|
|
28
|
+
redirect: getRedirectMetadata(redirectUrl),
|
|
29
29
|
url: '',
|
|
30
30
|
},
|
|
31
31
|
projectId,
|