@dynamic-labs/wallet-connector-core 4.44.2 → 4.44.4
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,27 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.44.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.44.3...v4.44.4) (2025-11-11)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **react-native:** add mfa modals ([5f79b6a](https://github.com/dynamic-labs/dynamic-auth/commit/5f79b6a1be5eb8fc3fbf37890ea5028003c38e93))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* allow aptos chain ids to be normalized to number ([#9860](https://github.com/dynamic-labs/dynamic-auth/issues/9860)) ([1dbaaec](https://github.com/dynamic-labs/dynamic-auth/commit/1dbaaecb74316ea1a33b587acebe27c1cdac663f))
|
|
13
|
+
* ensure even late announced aptos wallets are returned in wallet list ([#9855](https://github.com/dynamic-labs/dynamic-auth/issues/9855)) ([c807a5f](https://github.com/dynamic-labs/dynamic-auth/commit/c807a5f0c519948ae94a14055bddac9b679c98eb))
|
|
14
|
+
|
|
15
|
+
### [4.44.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.44.2...v4.44.3) (2025-11-10)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* correctly connect wallet in connect only with wallet connect svm ([#9851](https://github.com/dynamic-labs/dynamic-auth/issues/9851)) ([7ab0d37](https://github.com/dynamic-labs/dynamic-auth/commit/7ab0d3744b776b31882d8eac8dd2634456acf95d))
|
|
21
|
+
* linkSocialAccount not properly optimized ([#9853](https://github.com/dynamic-labs/dynamic-auth/issues/9853)) ([76b807e](https://github.com/dynamic-labs/dynamic-auth/commit/76b807e4e0c1d3a86578bd24c7eb01c779b11129))
|
|
22
|
+
* solflare wallet on mobile ([#9841](https://github.com/dynamic-labs/dynamic-auth/issues/9841)) ([039d2e3](https://github.com/dynamic-labs/dynamic-auth/commit/039d2e3bb463944d18fc36c6434be3cea16b8009))
|
|
23
|
+
* wallet connect svm transaction signature ([#9857](https://github.com/dynamic-labs/dynamic-auth/issues/9857)) ([6fb8b03](https://github.com/dynamic-labs/dynamic-auth/commit/6fb8b030bc25c0c7e5d6f8a12de9718f8924d1ed))
|
|
24
|
+
|
|
2
25
|
### [4.44.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.44.1...v4.44.2) (2025-11-08)
|
|
3
26
|
|
|
4
27
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/wallet-connector-core",
|
|
3
|
-
"version": "4.44.
|
|
3
|
+
"version": "4.44.4",
|
|
4
4
|
"description": "Core package for utilities and types for handling multiple wallet/chain support Dynamic SDK",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@dynamic-labs/sdk-api-core": "0.0.821",
|
|
22
|
-
"@dynamic-labs/assert-package-version": "4.44.
|
|
23
|
-
"@dynamic-labs/logger": "4.44.
|
|
24
|
-
"@dynamic-labs/rpc-providers": "4.44.
|
|
25
|
-
"@dynamic-labs/types": "4.44.
|
|
26
|
-
"@dynamic-labs/utils": "4.44.
|
|
27
|
-
"@dynamic-labs/wallet-book": "4.44.
|
|
22
|
+
"@dynamic-labs/assert-package-version": "4.44.4",
|
|
23
|
+
"@dynamic-labs/logger": "4.44.4",
|
|
24
|
+
"@dynamic-labs/rpc-providers": "4.44.4",
|
|
25
|
+
"@dynamic-labs/types": "4.44.4",
|
|
26
|
+
"@dynamic-labs/utils": "4.44.4",
|
|
27
|
+
"@dynamic-labs/wallet-book": "4.44.4",
|
|
28
28
|
"eventemitter3": "5.0.1"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {}
|
|
@@ -3,13 +3,14 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
-
const filterWalletsByKey = (wallets, keys) => keys
|
|
7
|
-
.flatMap((key) => wallets.find((w) => walletHasKey(w, key)))
|
|
6
|
+
const filterWalletsByKey = (wallets, keys, chain) => keys
|
|
7
|
+
.flatMap((key) => wallets.find((w) => walletHasKey(w, key, chain)))
|
|
8
8
|
.filter(isWalletConnector);
|
|
9
|
-
const walletHasKey = (wallet, key) => wallet.key === key;
|
|
9
|
+
const walletHasKey = (wallet, key, chain) => wallet.key === key && (chain ? wallet.connectedChain === chain : true);
|
|
10
10
|
const isWalletConnector = (item) => Boolean(item);
|
|
11
|
-
const getWalletConnectorByKey = (wallets, key
|
|
12
|
-
|
|
13
|
-
: null;
|
|
11
|
+
const getWalletConnectorByKey = (wallets, key, chain) => {
|
|
12
|
+
const filteredWallets = filterWalletsByKey(wallets, [key], chain);
|
|
13
|
+
return filteredWallets.length > 0 ? filteredWallets[0] : null;
|
|
14
|
+
};
|
|
14
15
|
|
|
15
16
|
exports.getWalletConnectorByKey = getWalletConnectorByKey;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InternalWalletConnector } from '..';
|
|
2
|
-
export declare const getWalletConnectorByKey: (wallets: InternalWalletConnector[], key: string) => InternalWalletConnector | null;
|
|
1
|
+
import { InternalWalletConnector, WalletConnectorBase } from '..';
|
|
2
|
+
export declare const getWalletConnectorByKey: (wallets: InternalWalletConnector[], key: string, chain?: WalletConnectorBase['connectedChain']) => InternalWalletConnector | null;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
const filterWalletsByKey = (wallets, keys) => keys
|
|
3
|
-
.flatMap((key) => wallets.find((w) => walletHasKey(w, key)))
|
|
2
|
+
const filterWalletsByKey = (wallets, keys, chain) => keys
|
|
3
|
+
.flatMap((key) => wallets.find((w) => walletHasKey(w, key, chain)))
|
|
4
4
|
.filter(isWalletConnector);
|
|
5
|
-
const walletHasKey = (wallet, key) => wallet.key === key;
|
|
5
|
+
const walletHasKey = (wallet, key, chain) => wallet.key === key && (chain ? wallet.connectedChain === chain : true);
|
|
6
6
|
const isWalletConnector = (item) => Boolean(item);
|
|
7
|
-
const getWalletConnectorByKey = (wallets, key
|
|
8
|
-
|
|
9
|
-
: null;
|
|
7
|
+
const getWalletConnectorByKey = (wallets, key, chain) => {
|
|
8
|
+
const filteredWallets = filterWalletsByKey(wallets, [key], chain);
|
|
9
|
+
return filteredWallets.length > 0 ? filteredWallets[0] : null;
|
|
10
|
+
};
|
|
10
11
|
|
|
11
12
|
export { getWalletConnectorByKey };
|