Skip to content

Commit ba5fc70

Browse files
committed
update dependencies
Bring in-range patch and minor releases up to date via bun update, and bump the exact-pinned packages where a safe patch/minor was available (@ai-sdk/gateway, @clerk/clerk-react, ai, react, react-dom, @types/react). Knock-on fixes required by the bumps: - @base-ui/react 1.4: DrawerPreview graduated to Drawer, rename the import - eslint-plugin-react-hooks 7.1 added immutability and effect-cascade rules: * useOnlineStatus moves its event handlers inside the effect so they aren't referenced before declaration * useIsMobile switches to useSyncExternalStore so it no longer calls setState synchronously inside useEffect - @types/react 19.2.14 tightened ChangeEvent/InputEvent: drop the unused onInput→onChange shim in Textarea so the underlying handler types match Skipped majors that need separate consideration: astro 5→6, eslint 9→10, typescript 5→6, jsdom 27→29, knip 5→6, @types/node 22→25, @astrojs/{node, react,vercel} majors, @vitejs/plugin-react 5→6, vercel 50→53, satori 0.19→0.26, prettier-plugin-tailwindcss 0.7→0.8, @clack/prompts 0→1, @hugeicons/core-free-icons 3→4, @vercel/config 0.0→0.3.
1 parent 788c6d0 commit ba5fc70

6 files changed

Lines changed: 911 additions & 490 deletions

File tree

bun.lock

Lines changed: 820 additions & 400 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -19,98 +19,98 @@
1919
"knip:fix": "knip --fix --no-config-hints"
2020
},
2121
"dependencies": {
22-
"@ai-sdk/gateway": "3.0.76",
23-
"@base-ui/react": "^1.2.0",
22+
"@ai-sdk/gateway": "3.0.110",
23+
"@base-ui/react": "^1.4.1",
2424
"@ccssmnn/intl": "^0.1.1",
25-
"@clerk/backend": "^3.2.1",
26-
"@clerk/clerk-react": "5.59.6",
25+
"@clerk/backend": "^3.4.5",
26+
"@clerk/clerk-react": "5.61.3",
2727
"@fontsource-variable/geist": "^5.2.8",
2828
"@hono/zod-validator": "^0.7.6",
2929
"@hookform/resolvers": "^5.2.2",
30-
"@hugeicons/core-free-icons": "^3.1.1",
31-
"@hugeicons/react": "^1.1.5",
30+
"@hugeicons/core-free-icons": "^3.3.0",
31+
"@hugeicons/react": "^1.1.6",
3232
"@tailwindcss/typography": "^0.5.19",
33-
"@tanstack/react-router": "^1.157.3",
34-
"@tanstack/react-virtual": "^3.13.18",
33+
"@tanstack/react-router": "^1.169.2",
34+
"@tanstack/react-virtual": "^3.13.24",
3535
"@vercel/config": "^0.0.26",
36-
"ai": "6.0.131",
37-
"astro": "^5.16.15",
38-
"better-result": "^2.7.0",
36+
"ai": "6.0.175",
37+
"astro": "^5.18.1",
38+
"better-result": "^2.9.2",
3939
"class-variance-authority": "^0.7.1",
4040
"clsx": "^2.1.1",
4141
"cmdk": "^1.1.1",
4242
"date-fns": "^4.1.0",
4343
"date-fns-tz": "^3.2.0",
44-
"hono": "^4.11.5",
44+
"hono": "^4.12.17",
4545
"idb-keyval": "^6.2.2",
46-
"jazz-tools": "^0.20.4",
47-
"motion": "^12.29.0",
48-
"nanoid": "^5.1.6",
49-
"react": "19.2.3",
46+
"jazz-tools": "^0.20.18",
47+
"motion": "^12.38.0",
48+
"nanoid": "^5.1.11",
49+
"react": "19.2.5",
5050
"react-bootstrap-icons": "^1.11.6",
51-
"react-dom": "19.2.3",
52-
"react-easy-crop": "^5.5.6",
53-
"react-hook-form": "^7.71.1",
51+
"react-dom": "19.2.5",
52+
"react-easy-crop": "^5.5.7",
53+
"react-hook-form": "^7.75.0",
5454
"react-markdown": "^10.1.0",
5555
"react-textarea-autosize": "^8.5.9",
5656
"rehype-raw": "^7.0.0",
5757
"remark-gfm": "^4.0.1",
5858
"sonner": "^2.0.7",
59-
"tailwind-merge": "^3.4.0",
59+
"tailwind-merge": "^3.5.0",
6060
"web-haptics": "^0.0.6",
6161
"web-push": "^3.6.7",
62-
"workbox-window": "^7.4.0",
63-
"zod": "^4.3.6",
64-
"zustand": "^5.0.10"
62+
"workbox-window": "^7.4.1",
63+
"zod": "^4.4.3",
64+
"zustand": "^5.0.13"
6565
},
6666
"devDependencies": {
67-
"@astrojs/check": "^0.9.6",
68-
"@astrojs/node": "^9.5.2",
67+
"@astrojs/check": "^0.9.9",
68+
"@astrojs/node": "^9.5.5",
6969
"@astrojs/react": "^4.4.2",
70-
"@astrojs/ts-plugin": "^1.10.6",
71-
"@astrojs/vercel": "^9.0.4",
70+
"@astrojs/ts-plugin": "^1.10.7",
71+
"@astrojs/vercel": "^9.0.5",
7272
"@clack/prompts": "^0.11.0",
73-
"@eslint/js": "^9.39.2",
73+
"@eslint/js": "^9.39.4",
7474
"@fontsource/inter": "^5.2.8",
7575
"@resvg/resvg-js": "^2.6.2",
76-
"@tailwindcss/vite": "^4.1.18",
77-
"@tanstack/react-router-devtools": "^1.157.3",
78-
"@tanstack/router-cli": "^1.157.3",
79-
"@tanstack/router-plugin": "^1.157.3",
76+
"@tailwindcss/vite": "^4.2.4",
77+
"@tanstack/react-router-devtools": "^1.166.13",
78+
"@tanstack/router-cli": "^1.166.42",
79+
"@tanstack/router-plugin": "^1.167.34",
8080
"@testing-library/jest-dom": "^6.9.1",
8181
"@testing-library/react": "^16.3.2",
82-
"@types/node": "^22.19.7",
83-
"@types/react": "19.2.9",
82+
"@types/node": "^22.19.17",
83+
"@types/react": "19.2.14",
8484
"@types/react-dom": "19.2.3",
8585
"@types/web-push": "^3.6.4",
86-
"@typescript-eslint/eslint-plugin": "^8.53.1",
87-
"@typescript-eslint/parser": "^8.53.1",
86+
"@typescript-eslint/eslint-plugin": "^8.59.2",
87+
"@typescript-eslint/parser": "^8.59.2",
8888
"@vite-pwa/astro": "^1.2.0",
89-
"@vitejs/plugin-react": "^5.1.2",
90-
"@vitest/ui": "^4.0.18",
89+
"@vitejs/plugin-react": "^5.2.0",
90+
"@vitest/ui": "^4.1.5",
9191
"babel-plugin-react-compiler": "^1.0.0",
9292
"concurrently": "^9.2.1",
9393
"dotenv-cli": "^11.0.0",
94-
"eslint": "^9.39.2",
94+
"eslint": "^9.39.4",
9595
"eslint-plugin-architecture": "file:tools/eslint-plugin-architecture",
96-
"eslint-plugin-astro": "^1.5.0",
96+
"eslint-plugin-astro": "^1.7.0",
9797
"eslint-plugin-react": "^7.37.5",
98-
"eslint-plugin-react-hooks": "^7.0.1",
99-
"globals": "^17.1.0",
98+
"eslint-plugin-react-hooks": "^7.1.1",
99+
"globals": "^17.6.0",
100100
"jsdom": "^27.4.0",
101-
"knip": "^5.88.0",
102-
"prettier": "^3.8.1",
101+
"knip": "^5.88.1",
102+
"prettier": "^3.8.3",
103103
"prettier-plugin-astro": "^0.14.1",
104-
"prettier-plugin-tailwindcss": "^0.7.2",
105-
"satori": "^0.19.1",
106-
"tailwindcss": "^4.1.18",
104+
"prettier-plugin-tailwindcss": "^0.7.4",
105+
"satori": "^0.19.3",
106+
"tailwindcss": "^4.2.4",
107107
"tsx": "^4.21.0",
108108
"tw-animate-css": "^1.4.0",
109109
"typescript": "5.9.3",
110-
"vercel": "^50.5.0",
111-
"vitest": "^4.0.18",
112-
"workbox-precaching": "^7.4.0",
113-
"workbox-routing": "^7.4.0",
114-
"workbox-strategies": "^7.4.0"
110+
"vercel": "^50.44.0",
111+
"vitest": "^4.1.5",
112+
"workbox-precaching": "^7.4.1",
113+
"workbox-routing": "^7.4.1",
114+
"workbox-strategies": "^7.4.1"
115115
}
116116
}

src/app/hooks/use-mobile.ts

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1-
import * as React from "react"
1+
import { useSyncExternalStore } from "react"
22

33
let MOBILE_BREAKPOINT = 768
4+
let MOBILE_QUERY = `(max-width: ${MOBILE_BREAKPOINT - 1}px)`
45

56
export function useIsMobile() {
6-
let [isMobile, setIsMobile] = React.useState<boolean | undefined>(undefined)
7+
return useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot)
8+
}
9+
10+
function subscribe(onStoreChange: () => void) {
11+
let mql = window.matchMedia(MOBILE_QUERY)
12+
mql.addEventListener("change", onStoreChange)
13+
return () => mql.removeEventListener("change", onStoreChange)
14+
}
715

8-
React.useEffect(() => {
9-
let mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`)
10-
let onChange = () => {
11-
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)
12-
}
13-
mql.addEventListener("change", onChange)
14-
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)
15-
return () => mql.removeEventListener("change", onChange)
16-
}, [])
16+
function getSnapshot() {
17+
return window.matchMedia(MOBILE_QUERY).matches
18+
}
1719

18-
return !!isMobile
20+
function getServerSnapshot() {
21+
return false
1922
}

src/app/hooks/use-online-status.ts

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,29 @@ function useOnlineStatus(): boolean {
77
let [hasCheckedConnectivity, setHasCheckedConnectivity] = useState(false)
88

99
useEffect(() => {
10+
async function checkConnectivity() {
11+
try {
12+
await fetch("/online-check", {
13+
method: "GET",
14+
cache: "no-cache",
15+
signal: AbortSignal.timeout(2000),
16+
})
17+
setIsOnline(true)
18+
} catch {
19+
setIsOnline(false)
20+
} finally {
21+
setHasCheckedConnectivity(true)
22+
}
23+
}
24+
25+
function handleOnline() {
26+
setIsOnline(true)
27+
}
28+
29+
function handleOffline() {
30+
setIsOnline(false)
31+
}
32+
1033
if (navigator.onLine && !hasCheckedConnectivity) {
1134
checkConnectivity()
1235
}
@@ -20,28 +43,5 @@ function useOnlineStatus(): boolean {
2043
}
2144
}, [hasCheckedConnectivity])
2245

23-
async function checkConnectivity() {
24-
try {
25-
await fetch("/online-check", {
26-
method: "GET",
27-
cache: "no-cache",
28-
signal: AbortSignal.timeout(2000),
29-
})
30-
setIsOnline(true)
31-
} catch {
32-
setIsOnline(false)
33-
} finally {
34-
setHasCheckedConnectivity(true)
35-
}
36-
}
37-
38-
function handleOnline() {
39-
setIsOnline(true)
40-
}
41-
42-
function handleOffline() {
43-
setIsOnline(false)
44-
}
45-
4646
return isOnline
4747
}

src/shared/ui/drawer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use client"
22

33
import * as React from "react"
4-
import { DrawerPreview as DrawerPrimitive } from "@base-ui/react/drawer"
4+
import { Drawer as DrawerPrimitive } from "@base-ui/react/drawer"
55

66
import { cn } from "#app/lib/utils"
77

src/shared/ui/textarea.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ function Textarea({
1010
className,
1111
autoResize: _enableAutoResize = true,
1212
maxHeight,
13-
onInput,
1413
ref,
1514
...props
1615
}: Omit<TextareaAutosizeProps, "maxRows" | "style"> & {
@@ -28,7 +27,6 @@ function Textarea({
2827
"border-input bg-input/30 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 placeholder:text-muted-foreground flex field-sizing-content min-h-16 w-full resize-none rounded-xl border px-3 py-3 text-base transition-colors outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-[3px] md:text-sm",
2928
className,
3029
)}
31-
onChange={onInput}
3230
{...props}
3331
/>
3432
)

0 commit comments

Comments
 (0)