chore(deps): bump next from 14.2.21 to 15.5.18#3695
Conversation
|
Bumps [next](https://github.com/vercel/next.js) from 14.2.21 to 15.5.18. - [Release notes](https://github.com/vercel/next.js/releases) - [Changelog](https://github.com/vercel/next.js/blob/canary/release.js) - [Commits](vercel/next.js@v14.2.21...v15.5.18) --- updated-dependencies: - dependency-name: next dependency-version: 15.5.18 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
9fa381b to
d034dac
Compare
| "langsmith": "^0.2.15", | ||
| "lucide-react": "^0.451.0", | ||
| "next": "14.2.21", | ||
| "next": "15.5.18", |
There was a problem hiding this comment.
🔴 Next.js 14→15 major version bump without updating async API usage (cookies, params, searchParams)
The references/nextjs-realtime project is upgraded from Next.js 14.2.21 to 15.5.18 (a major version bump), but the source code still uses Next.js 14 synchronous patterns for cookies(), params, and searchParams — all of which became asynchronous (Promise-based) in Next.js 15.
Affected files and patterns
cookies() not awaited:
references/nextjs-realtime/src/app/runs/[id]/page.tsx:6:const cookieStore = cookies()— needsawaitreferences/nextjs-realtime/src/app/batches/[id]/page.tsx:6:const cookieStore = cookies()— needsawaitreferences/nextjs-realtime/src/app/actions.ts:15:cookies().set(...)— needs(await cookies()).set(...)references/nextjs-realtime/src/app/actions.ts:38:cookies().set(...)— needs(await cookies()).set(...)
params not a Promise:
references/nextjs-realtime/src/app/runs/[id]/page.tsx:5:{ params: { id: string } }— should bePromise<{ id: string }>references/nextjs-realtime/src/app/batches/[id]/page.tsx:5: samereferences/nextjs-realtime/src/app/csv/[id]/page.tsx:8: same (alsosearchParams)references/nextjs-realtime/src/app/ai/[id]/page.tsx:7: same (alsosearchParams)references/nextjs-realtime/src/app/uploads/[id]/page.tsx:8: same (alsosearchParams)references/nextjs-realtime/src/app/realtime/[id]/page.tsx:4: same
Other reference projects already on Next.js 15 (e.g., references/realtime-hooks-test, references/ai-chat) correctly use params: Promise<{...}> with await params.
Prompt for agents
The nextjs-realtime reference project is being upgraded from Next.js 14 to 15, but the source code still uses synchronous Next.js 14 API patterns. In Next.js 15, cookies(), params, and searchParams are all Promise-based and must be awaited.
Files that need updating:
1. src/app/actions.ts: Change cookies().set(...) to (await cookies()).set(...) on lines 15 and 38.
2. src/app/runs/[id]/page.tsx: Change params type to Promise<{ id: string }> and await it. Change cookies() to await cookies().
3. src/app/batches/[id]/page.tsx: Same changes as runs page.
4. src/app/csv/[id]/page.tsx: Change both params and searchParams types to Promises and await them.
5. src/app/ai/[id]/page.tsx: Same as csv page.
6. src/app/uploads/[id]/page.tsx: Same as csv page.
7. src/app/realtime/[id]/page.tsx: Change params type to Promise<{ id: string }> and await it.
See references/realtime-hooks-test/src/app/run/[id]/page.tsx and references/ai-chat/src/app/chats/[chatId]/page.tsx for correct Next.js 15 patterns already used in this repo.
Was this helpful? React with 👍 or 👎 to provide feedback.
Bumps next from 14.2.21 to 15.5.18.
Release notes
Sourced from next's releases.
... (truncated)
Commits
9ff92cev15.5.1800ebe23[backport] Disable build caches for production/staging/force-preview deploys ...62c97abv15.5.17423623aTurbopack: Match proxy matchers with webpack implementation (#93594)fa78739Turbopack: Fix middleware matcher suffix (#93590)36e62c6[backport] Turbopack: more strict vergen setup (#93588)36589b5[backport][test] Pin package manager to patch versions (#93596)ad6fd4ev15.5.1679d7dffIgnore malformed CSP nonce headers (#103)c4f6908router-server: guard upgrade proxy against absolute-url SSRF (#77) (#102)Maintainer changes
This version was pushed to npm by GitHub Actions, a new releaser for next since your current version.