Commit 594b503
fix(wallet): address dependency vulnerabilities and upgrade to Next.js 16 (#979)
* fix(wallet): address dependency vulnerabilities
- Update direct dependencies to patch transitive vulnerabilities
- Add pnpm overrides for protobufjs, elliptic, prismjs, @babel/runtime
- Remove @solana/spl-token to eliminate bigint-buffer vulnerability
- Remove SPL token transfer functionality (not critical)
Reduces vulnerabilities from 30 to 2 (both without stable patches).
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(wallet): fix breaking changes from dependency updates
- Update MultiversX SDK to v15: replace SignableMessage with Message/MessageComputer,
replace Transaction.fromPlainObject with newFromPlainObject, use TransactionComputer
- Update Sui SDK to v2: replace SuiClient with SuiJsonRpcClient, add network param
- Update permissionless imports: use permissionless/types instead of internal paths
- Add TypeScript 5.4.5 and moduleResolution: bundler for ESM support
- Fix NextUI Tooltip props for stricter types
- Add explicit event types for onClick handlers
- Define local KeySigner type to replace viem internal import
Co-authored-by: Cursor <cursoragent@cursor.com>
* feat(wallet): upgrade to Next.js 16 and React 19
- Upgrade next 15.5.10 → 16.1.6
- Upgrade react/react-dom 18.2.0 → 19.1.0
- Upgrade framer-motion 6.5.1 → 11.18.x (React 19 compatible)
- Upgrade valtio 1.13.2 → 2.1.x (React 19 compatible)
- Add turbopack config with empty object for webpack compat
- Fix AnimatePresence: replace deprecated exitBeforeEnter with mode="wait"
- Fix JSX.Element type annotations (removed for React 19 compat)
- Use --webpack flag for build (turbopack has fs module issues)
This resolves the moderate Next.js PPR Resume Endpoint vulnerability.
Remaining: 1 low-severity elliptic vulnerability (no patch available).
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(wallet): use webpack for build to fix Vercel deployment
Turbopack (default in Next.js 16) doesn't support the fs fallback
needed by @multiversx/sdk-core. Use --webpack flag explicitly.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(wallet): fix UI styling issues for React 19 compatibility
- Create StyledDivider component with explicit background for visibility
- Replace all Divider usages with StyledDivider throughout the app
- Fix PageHeader flex alignment for Account picker dropdown
- Fix Input border styling on walletconnect page
- Constrain Modal max-width to 420px to match main content area
NextUI v1 components lose some default styles in React 19 due to
CSS-in-JS (Stitches) rendering differences.
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent ee5434b commit 594b503
File tree
59 files changed
+4004
-3304
lines changed- advanced/wallets/react-wallet-v2
- src
- components
- PaymentCheckout
- PaymentModal
- lib
- smart-accounts
- pages
- accounts/[eip155Address]
- utils
- views
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
59 files changed
+4004
-3304
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
3 | 9 | | |
4 | 10 | | |
5 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | | - | |
29 | | - | |
| 28 | + | |
| 29 | + | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | 41 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
49 | 48 | | |
50 | 49 | | |
51 | | - | |
52 | | - | |
| 50 | + | |
| 51 | + | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
| |||
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
62 | | - | |
| 61 | + | |
63 | 62 | | |
64 | 63 | | |
65 | | - | |
| 64 | + | |
66 | 65 | | |
67 | 66 | | |
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
71 | 70 | | |
72 | 71 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
77 | 76 | | |
78 | | - | |
| 77 | + | |
79 | 78 | | |
80 | | - | |
| 79 | + | |
81 | 80 | | |
82 | | - | |
83 | | - | |
| 81 | + | |
| 82 | + | |
84 | 83 | | |
85 | 84 | | |
86 | | - | |
87 | | - | |
| 85 | + | |
| 86 | + | |
88 | 87 | | |
89 | | - | |
| 88 | + | |
90 | 89 | | |
91 | 90 | | |
92 | | - | |
| 91 | + | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
103 | 102 | | |
104 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
105 | 113 | | |
106 | 114 | | |
0 commit comments