Skip to content

Commit 0fa56e3

Browse files
committed
security: fix Hono vulnerabilities and upgrade Tailwind CSS
- Pin `hono` to `4.11.4` in root overrides and `client` dependencies to resolve high-severity CVEs (GHSA-3vhc-576x-3qv4, GHSA-f67f-6cw9-8mq4) - Upgrade `tailwindcss` to v4 (`^4.1.17`) in `client` and `client/ui` packages - Upgrade `nativewind` to `^4.2.1` in `client/ui` - Add `peerDependencyRules` to root `package.json` to allow `tailwindcss` v4 for `nativewind` - Fix `darkMode` configuration in `client/tailwind.config.ts` to align with Tailwind v4 API
1 parent 07679aa commit 0fa56e3

5 files changed

Lines changed: 45 additions & 253 deletions

File tree

client/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@
2222
"@types/node": "^22.0.0",
2323
"@types/react": "^18.3.3",
2424
"@types/react-dom": "^18.3.0",
25-
"tailwindcss": "^3.4.1",
25+
"tailwindcss": "^4.1.17",
2626
"typescript": "^5.5.3"
2727
},
2828
"dependencies": {
29+
"hono": "4.11.4",
2930
"@hookform/resolvers": "^5.2.2",
3031
"@radix-ui/react-avatar": "^1.1.11",
3132
"@radix-ui/react-checkbox": "^1.3.3",

client/tailwind.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { Config } from "tailwindcss";
22
import tailwindcssAnimate from "tailwindcss-animate";
33

44
const config: Config = {
5-
darkMode: ["class"],
5+
darkMode: "class",
66
content: ["./src/**/*.{ts,tsx}"],
77
theme: {
88
extend: {

client/ui/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
"class-variance-authority": "^0.7.0",
3232
"clsx": "^2.1.1",
3333
"lucide-react-native": "^0.314.0",
34-
"nativewind": "^4.0.1",
34+
"nativewind": "^4.2.1",
3535
"react-native-reanimated": "^3.6.1",
3636
"react-native-screens": "^3.29.0",
3737
"tailwind-merge": "^2.3.0",
38-
"tailwindcss": "^3.4.1"
38+
"tailwindcss": "^4.1.17"
3939
},
4040
"devDependencies": {
4141
"@types/react": "^18.3.3",

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@
1212
"undici": ">=5.29.0",
1313
"@modelcontextprotocol/sdk": "1.25.2",
1414
"path-to-regexp@6": "6.3.0",
15-
"send": ">=0.19.0"
15+
"send": ">=0.19.0",
16+
"hono": "4.11.4"
17+
},
18+
"peerDependencyRules": {
19+
"allowedVersions": {
20+
"tailwindcss": "4"
21+
}
1622
}
1723
}
1824
}

0 commit comments

Comments
 (0)