Skip to content

Commit f6950b1

Browse files
chore(smart-sessions-demo): update dependencies and fix security vulnerabilities (#996)
- Remove 8 unused deps: @shadcn/ui, axios, @wagmi/connectors, @wagmi/core, autoprefixer, permissionless, vaul, @radix-ui/react-toast - Update all minor/patch deps (radix-ui, react-hook-form, tanstack, etc.) - Update @reown/appkit ecosystem 1.6.8 → 1.8.18 - Update wagmi 2.12.2 → 2.19.5, viem 2.17.8 → 2.45.3 - Update UI libs: lucide-react, next-themes, sonner 2.x, tailwind-merge 3.x - Update zod 3.22.4 → 3.25.76 - Upgrade Next.js 14.2.35 → 15.5.12 and eslint-config-next to match - Add pnpm overrides for transitive vulnerabilities (base-x, glob, h3, lodash, js-yaml) - Fix lint issues: remove stale eslint-disable comments, convert empty interface to type alias, add React version detection to eslint config Reduces audit from 28 vulnerabilities to 2 low-severity. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 4a72f83 commit f6950b1

File tree

7 files changed

+4519
-6863
lines changed

7 files changed

+4519
-6863
lines changed

advanced/dapps/smart-sessions-demo/eslint.config.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,11 @@ export default [
1010
pluginJs.configs.recommended,
1111
...tseslint.configs.recommended,
1212
pluginReact.configs.flat.recommended,
13+
{
14+
settings: { react: { version: "detect" } },
15+
rules: {
16+
"react/prop-types": "off",
17+
"react/react-in-jsx-scope": "off",
18+
},
19+
},
1320
];

advanced/dapps/smart-sessions-demo/package.json

Lines changed: 35 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -12,58 +12,50 @@
1212
"dependencies": {
1313
"@hookform/resolvers": "^3.9.0",
1414
"@radix-ui/react-icons": "^1.3.0",
15-
"@radix-ui/react-label": "^2.1.0",
16-
"@radix-ui/react-progress": "^1.1.0",
17-
"@radix-ui/react-select": "^2.1.1",
18-
"@radix-ui/react-separator": "^1.1.0",
19-
"@radix-ui/react-slot": "^1.1.0",
20-
"@radix-ui/react-tabs": "^1.1.0",
21-
"@radix-ui/react-toast": "^1.2.1",
22-
"@radix-ui/react-tooltip": "^1.1.2",
23-
"@reown/appkit": "1.6.8",
24-
"@reown/appkit-adapter-wagmi": "1.6.8",
25-
"@reown/appkit-experimental": "1.6.8",
26-
"@shadcn/ui": "^0.0.4",
27-
"@tanstack/react-query": "5.24.8",
28-
"@wagmi/connectors": "5.1.9",
29-
"@wagmi/core": "2.13.4",
30-
"autoprefixer": "10.4.18",
31-
"axios": "1.8.2",
15+
"@radix-ui/react-label": "^2.1.8",
16+
"@radix-ui/react-progress": "^1.1.8",
17+
"@radix-ui/react-select": "^2.2.6",
18+
"@radix-ui/react-separator": "^1.1.8",
19+
"@radix-ui/react-slot": "^1.2.4",
20+
"@radix-ui/react-tabs": "^1.1.13",
21+
"@radix-ui/react-tooltip": "^1.2.8",
22+
"@reown/appkit": "1.8.18",
23+
"@reown/appkit-adapter-wagmi": "1.8.18",
24+
"@reown/appkit-experimental": "1.8.18",
25+
"@tanstack/react-query": "5.90.21",
3226
"bs58": "^6.0.0",
3327
"class-variance-authority": "^0.7.0",
34-
"clsx": "2.1.0",
35-
"lucide-react": "^0.427.0",
36-
"next": "14.2.35",
37-
"next-themes": "^0.3.0",
38-
"permissionless": "0.1.31",
39-
"pino-pretty": "^11.2.2",
28+
"clsx": "2.1.1",
29+
"lucide-react": "^0.563.0",
30+
"next": "15.5.12",
31+
"next-themes": "^0.4.6",
32+
"pino-pretty": "^13.1.3",
4033
"react": "^18",
4134
"react-dom": "^18",
42-
"react-hook-form": "^7.52.2",
43-
"sonner": "1.4.3",
44-
"tailwind-merge": "2.2.1",
35+
"react-hook-form": "^7.71.1",
36+
"sonner": "2.0.7",
37+
"tailwind-merge": "3.4.0",
4538
"tailwindcss-animate": "^1.0.7",
46-
"vaul": "0.9.0",
47-
"viem": "2.17.8",
48-
"wagmi": "2.12.2",
49-
"zod": "3.22.4"
39+
"viem": "2.45.3",
40+
"wagmi": "2.19.5",
41+
"zod": "3.25.76"
5042
},
5143
"devDependencies": {
5244
"@eslint/js": "^9.9.0",
5345
"@types/node": "^20",
5446
"@types/react": "^18",
5547
"@types/react-dom": "^18",
5648
"eslint": "^9.9.0",
57-
"eslint-config-next": "14.2.25",
49+
"eslint-config-next": "15.5.12",
5850
"eslint-config-prettier": "^9.1.0",
59-
"eslint-plugin-prettier": "^5.2.1",
60-
"eslint-plugin-react": "^7.35.0",
51+
"eslint-plugin-prettier": "^5.5.5",
52+
"eslint-plugin-react": "^7.37.5",
6153
"globals": "^15.9.0",
62-
"postcss": "^8",
63-
"prettier": "^3.3.3",
54+
"postcss": "^8.5.6",
55+
"prettier": "^3.8.1",
6456
"tailwindcss": "^3.4.1",
65-
"typescript": "^5",
66-
"typescript-eslint": "^8.2.0"
57+
"typescript": "^5.9.3",
58+
"typescript-eslint": "^8.55.0"
6759
},
6860
"pnpm": {
6961
"overrides": {
@@ -74,7 +66,12 @@
7466
"elliptic@<6.5.6": ">=6.5.6",
7567
"@coinbase/wallet-sdk@>=4.0 <4.3.0": ">=4.3.0",
7668
"elliptic@<=6.6.0": ">=6.6.1",
77-
"@babel/runtime@<7.26.10": ">=7.26.10"
69+
"@babel/runtime@<7.26.10": ">=7.26.10",
70+
"base-x@=5.0.0": ">=5.0.1",
71+
"glob@>=10.2.0 <10.5.0": ">=10.5.0",
72+
"h3@<=1.15.4": ">=1.15.5",
73+
"lodash@>=4.0.0 <=4.17.22": ">=4.17.23",
74+
"js-yaml@>=4.0.0 <4.1.1": ">=4.1.1"
7875
}
7976
}
8077
}

0 commit comments

Comments
 (0)