@dynamic-labs/multi-wallet 3.0.0-alpha.14 → 3.0.0-alpha.16
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 +28 -0
- package/package.json +6 -6
- package/src/multi-wallet.cjs +11 -2
- package/src/multi-wallet.js +12 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,32 @@
|
|
|
1
1
|
|
|
2
|
+
## [3.0.0-alpha.16](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.15...v3.0.0-alpha.16) (2024-07-11)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### ⚠ BREAKING CHANGES
|
|
6
|
+
|
|
7
|
+
* remove isConnected prop from wallets and have it as a method instead (#6265)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* add bundlerRpc and paymasterRpc parameters to zerodev ([#6304](https://github.com/dynamic-labs/DynamicAuth/issues/6304)) ([156469b](https://github.com/dynamic-labs/DynamicAuth/commit/156469bf703f0c7fa455a24b8e4e328d3a0c58fc))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* headless embedded wallet export session refresh ([#6307](https://github.com/dynamic-labs/DynamicAuth/issues/6307)) ([5423cc1](https://github.com/dynamic-labs/DynamicAuth/commit/5423cc14c370968acf718b7deff6ea8df9228189))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
* remove isConnected prop from wallets and have it as a method instead ([#6265](https://github.com/dynamic-labs/DynamicAuth/issues/6265)) ([652dcc2](https://github.com/dynamic-labs/DynamicAuth/commit/652dcc2d34c9a9719238606c67f600e40621183b))
|
|
20
|
+
|
|
21
|
+
## [3.0.0-alpha.15](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.14...v3.0.0-alpha.15) (2024-07-11)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* catch third party wallet construction errors ([#6268](https://github.com/dynamic-labs/DynamicAuth/issues/6268)) ([badef39](https://github.com/dynamic-labs/DynamicAuth/commit/badef39d753c7d29925c6c8680053027bd99b69b))
|
|
27
|
+
* decode all solana transactions ([#6294](https://github.com/dynamic-labs/DynamicAuth/issues/6294)) ([5220ab2](https://github.com/dynamic-labs/DynamicAuth/commit/5220ab29381f3a7f1afc7043332b5a018b47eb0a))
|
|
28
|
+
* passkey cta ([#6255](https://github.com/dynamic-labs/DynamicAuth/issues/6255)) ([1b1b152](https://github.com/dynamic-labs/DynamicAuth/commit/1b1b152a24b409c5d941a9c92a003daf0bbe48a1))
|
|
29
|
+
|
|
2
30
|
## [3.0.0-alpha.14](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.13...v3.0.0-alpha.14) (2024-07-09)
|
|
3
31
|
|
|
4
32
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/multi-wallet",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.16",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@dynamic-labs/sdk-api-core": "0.0.470",
|
|
11
11
|
"tslib": "2.4.1",
|
|
12
|
-
"@dynamic-labs/rpc-providers": "3.0.0-alpha.
|
|
13
|
-
"@dynamic-labs/types": "3.0.0-alpha.
|
|
14
|
-
"@dynamic-labs/utils": "3.0.0-alpha.
|
|
15
|
-
"@dynamic-labs/wallet-book": "3.0.0-alpha.
|
|
16
|
-
"@dynamic-labs/wallet-connector-core": "3.0.0-alpha.
|
|
12
|
+
"@dynamic-labs/rpc-providers": "3.0.0-alpha.16",
|
|
13
|
+
"@dynamic-labs/types": "3.0.0-alpha.16",
|
|
14
|
+
"@dynamic-labs/utils": "3.0.0-alpha.16",
|
|
15
|
+
"@dynamic-labs/wallet-book": "3.0.0-alpha.16",
|
|
16
|
+
"@dynamic-labs/wallet-connector-core": "3.0.0-alpha.16"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@walletconnect/types": "2.10.6"
|
package/src/multi-wallet.cjs
CHANGED
|
@@ -62,8 +62,17 @@ const getSupportedWallets = (args) => {
|
|
|
62
62
|
const allWallets = walletConnectorsProp
|
|
63
63
|
.map((walletConnector) => walletConnector(opts))
|
|
64
64
|
.flat()
|
|
65
|
-
.map((wallet) =>
|
|
66
|
-
|
|
65
|
+
.map((wallet) => {
|
|
66
|
+
try {
|
|
67
|
+
// This may contain third party code so we must be ready for anything
|
|
68
|
+
return new wallet(opts);
|
|
69
|
+
}
|
|
70
|
+
catch (error) {
|
|
71
|
+
walletConnectorCore.logger.error(`Failed to construct wallet ${wallet.name}`, error);
|
|
72
|
+
return undefined;
|
|
73
|
+
}
|
|
74
|
+
})
|
|
75
|
+
.filter((wallet) => wallet === null || wallet === void 0 ? void 0 : wallet.filter())
|
|
67
76
|
.map((wallet) => wallet.getMobileOrInstalledWallet());
|
|
68
77
|
// Memoize the wallets
|
|
69
78
|
const filteredWallets = filterWalletsForPlatform(walletBook, allWallets);
|
package/src/multi-wallet.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
import { isEmbeddedConnector } from '@dynamic-labs/wallet-connector-core';
|
|
2
|
+
import { logger, isEmbeddedConnector } from '@dynamic-labs/wallet-connector-core';
|
|
3
3
|
import { getWalletBookWallet, getWalletLinks } from '@dynamic-labs/wallet-book';
|
|
4
4
|
import { isMobile, isIPad, isIPhone } from '@dynamic-labs/utils';
|
|
5
5
|
import { ProviderEnum } from '@dynamic-labs/sdk-api-core';
|
|
@@ -58,8 +58,17 @@ const getSupportedWallets = (args) => {
|
|
|
58
58
|
const allWallets = walletConnectorsProp
|
|
59
59
|
.map((walletConnector) => walletConnector(opts))
|
|
60
60
|
.flat()
|
|
61
|
-
.map((wallet) =>
|
|
62
|
-
|
|
61
|
+
.map((wallet) => {
|
|
62
|
+
try {
|
|
63
|
+
// This may contain third party code so we must be ready for anything
|
|
64
|
+
return new wallet(opts);
|
|
65
|
+
}
|
|
66
|
+
catch (error) {
|
|
67
|
+
logger.error(`Failed to construct wallet ${wallet.name}`, error);
|
|
68
|
+
return undefined;
|
|
69
|
+
}
|
|
70
|
+
})
|
|
71
|
+
.filter((wallet) => wallet === null || wallet === void 0 ? void 0 : wallet.filter())
|
|
63
72
|
.map((wallet) => wallet.getMobileOrInstalledWallet());
|
|
64
73
|
// Memoize the wallets
|
|
65
74
|
const filteredWallets = filterWalletsForPlatform(walletBook, allWallets);
|