Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,624 changes: 559 additions & 1,065 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion references/ai-chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@trigger.dev/sdk": "workspace:*",
"serialize-error": "^11.0.3",
"ai": "^6.0.0",
"next": "15.3.3",
"next": "15.5.18",
"pg": "^8.16.3",
"react": "^19.0.0",
"react-dom": "^19.0.0",
Expand Down
2 changes: 1 addition & 1 deletion references/d3-chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"lucide-react": "^0.486.0",
"marked": "^4.0.18",
"nanoid": "^5.1.5",
"next": "15.4.8",
"next": "15.5.18",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-markdown": "^10.1.0",
Expand Down
2 changes: 1 addition & 1 deletion references/d3-openai-agents/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"clsx": "^2.1.1",
"lucide-react": "^0.484.0",
"nanoid": "^5.1.5",
"next": "15.2.4",
"next": "15.5.18",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"tailwind-merge": "^3.0.2",
Expand Down
2 changes: 1 addition & 1 deletion references/nextjs-realtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"date-fns": "^4.1.0",
"langsmith": "^0.2.15",
"lucide-react": "^0.451.0",
"next": "14.2.21",
"next": "15.5.18",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 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() — needs await
  • references/nextjs-realtime/src/app/batches/[id]/page.tsx:6: const cookieStore = cookies() — needs await
  • references/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 be Promise<{ id: string }>
  • references/nextjs-realtime/src/app/batches/[id]/page.tsx:5: same
  • references/nextjs-realtime/src/app/csv/[id]/page.tsx:8: same (also searchParams)
  • references/nextjs-realtime/src/app/ai/[id]/page.tsx:7: same (also searchParams)
  • references/nextjs-realtime/src/app/uploads/[id]/page.tsx:8: same (also searchParams)
  • 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.
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

"openai": "^4.68.4",
"react": "^18",
"react-dom": "^18",
Expand Down
2 changes: 1 addition & 1 deletion references/realtime-hooks-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@trigger.dev/react-hooks": "workspace:*",
"@trigger.dev/sdk": "workspace:*",
"next": "15.5.6",
"next": "15.5.18",
"react": "19.1.0",
"react-dom": "19.1.0",
"zod": "3.25.76"
Expand Down
2 changes: 1 addition & 1 deletion references/realtime-streams/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@trigger.dev/react-hooks": "workspace:*",
"@trigger.dev/sdk": "workspace:*",
"ai": "^5.0.76",
"next": "15.5.6",
"next": "15.5.18",
"react": "19.1.0",
"react-dom": "19.1.0",
"shiki": "^3.13.0",
Expand Down
Loading