@dynamic-labs/wallet-connector-core 4.44.2 → 4.44.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 CHANGED
@@ -1,4 +1,14 @@
1
1
 
2
+ ### [4.44.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.44.2...v4.44.3) (2025-11-10)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * 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))
8
+ * linkSocialAccount not properly optimized ([#9853](https://github.com/dynamic-labs/dynamic-auth/issues/9853)) ([76b807e](https://github.com/dynamic-labs/dynamic-auth/commit/76b807e4e0c1d3a86578bd24c7eb01c779b11129))
9
+ * solflare wallet on mobile ([#9841](https://github.com/dynamic-labs/dynamic-auth/issues/9841)) ([039d2e3](https://github.com/dynamic-labs/dynamic-auth/commit/039d2e3bb463944d18fc36c6434be3cea16b8009))
10
+ * 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))
11
+
2
12
  ### [4.44.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.44.1...v4.44.2) (2025-11-08)
3
13
 
4
14
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.44.2";
6
+ var version = "4.44.3";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.44.2";
2
+ var version = "4.44.3";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/wallet-connector-core",
3
- "version": "4.44.2",
3
+ "version": "4.44.3",
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.2",
23
- "@dynamic-labs/logger": "4.44.2",
24
- "@dynamic-labs/rpc-providers": "4.44.2",
25
- "@dynamic-labs/types": "4.44.2",
26
- "@dynamic-labs/utils": "4.44.2",
27
- "@dynamic-labs/wallet-book": "4.44.2",
22
+ "@dynamic-labs/assert-package-version": "4.44.3",
23
+ "@dynamic-labs/logger": "4.44.3",
24
+ "@dynamic-labs/rpc-providers": "4.44.3",
25
+ "@dynamic-labs/types": "4.44.3",
26
+ "@dynamic-labs/utils": "4.44.3",
27
+ "@dynamic-labs/wallet-book": "4.44.3",
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) => filterWalletsByKey(wallets, [key]).length > 0
12
- ? filterWalletsByKey(wallets, [key])[0]
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) => filterWalletsByKey(wallets, [key]).length > 0
8
- ? filterWalletsByKey(wallets, [key])[0]
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 };