mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
fix: bump all 15.x examples to Next 15.5.15 (security patches)
24 examples bumped from various 15.0-15.4 versions to 15.5.15. chat-with-your-data bumped from 15.6.0-canary to 16.1.7. next-openai: moved OpenAI client init into handlers (15.5 evaluates edge routes at build time). Remaining on 14.x: next-pages-router(v1), state-machine, travel, banking, enterprise-brex, presentation, todo — require major rewrite.
This commit is contained in:
committed by
Jordan Ritter
parent
976855939b
commit
ac66995bf8
@@ -57,7 +57,7 @@
|
||||
"geist": "^1.3.1",
|
||||
"input-otp": "1.4.1",
|
||||
"lucide-react": "^0.454.0",
|
||||
"next": "15.2.4",
|
||||
"next": "15.5.15",
|
||||
"next-themes": "^0.4.6",
|
||||
"react": "^19",
|
||||
"react-day-picker": "9.8.0",
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
"lodash": "^4.17.21",
|
||||
"lucide-react": "^0.542.0",
|
||||
"motion": "^12.23.12",
|
||||
"next": "^15.3.3",
|
||||
"next": "^15.5.15",
|
||||
"next-themes": "^0.4.6",
|
||||
"react": "^19.1.1",
|
||||
"react-day-picker": "^9.9.0",
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
"lodash": "^4.17.21",
|
||||
"lucide-react": "^0.542.0",
|
||||
"motion": "^12.23.12",
|
||||
"next": "^15.3.3",
|
||||
"next": "^15.5.15",
|
||||
"next-themes": "^0.4.6",
|
||||
"react": "^19.1.1",
|
||||
"react-day-picker": "^9.9.0",
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
"lodash": "^4.17.21",
|
||||
"lucide-react": "^0.542.0",
|
||||
"motion": "^12.23.12",
|
||||
"next": "^15.3.3",
|
||||
"next": "^15.5.15",
|
||||
"next-themes": "^0.4.6",
|
||||
"react": "^19.1.1",
|
||||
"react-day-picker": "^9.9.0",
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
"dotenv": "^17.2.1",
|
||||
"libsql": "^0.5.13",
|
||||
"mastra": "0.12.0",
|
||||
"next": ">=15.3.3",
|
||||
"next": ">=15.5.15",
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0",
|
||||
"zod": "^3.24.4"
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
"lucide-react": "^0.542.0",
|
||||
"mastra": "0.12.0",
|
||||
"motion": "^12.23.12",
|
||||
"next": "^15.3.3",
|
||||
"next": "^15.5.15",
|
||||
"react": "^19.1.1",
|
||||
"react-dom": "^19.1.1",
|
||||
"react-shiki": "^0.7.3",
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
"geist": "^1.4.2",
|
||||
"lucide-react": "^0.542.0",
|
||||
"motion": "^12.23.12",
|
||||
"next": "^15.3.3",
|
||||
"next": "^15.5.15",
|
||||
"react": "^19.1.1",
|
||||
"react-dom": "^19.1.1",
|
||||
"react-shiki": "^0.7.3",
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"@copilotkit/react-core": "latest",
|
||||
"@copilotkit/react-ui": "latest",
|
||||
"@copilotkit/runtime": "latest",
|
||||
"next": "15.1.6",
|
||||
"next": "15.5.15",
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0"
|
||||
},
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
"@copilotkit/react-core": "1.55.2",
|
||||
"@copilotkit/react-ui": "1.55.2",
|
||||
"@copilotkit/runtime": "1.55.2",
|
||||
"next": "^15.3.8",
|
||||
"next": "^15.5.15",
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0",
|
||||
"zod": "^3.24.4"
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
"clsx": "^2.1.1",
|
||||
"dedent": "^1.7.0",
|
||||
"lucide-react": "^0.477.0",
|
||||
"next": "15.1.6",
|
||||
"next": "15.5.15",
|
||||
"next-themes": "^0.4.6",
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0",
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
"flowtoken": "^1.0.40",
|
||||
"geist": "^1.5.1",
|
||||
"lucide-react": "^0.544.0",
|
||||
"next": "15.3.2",
|
||||
"next": "15.5.15",
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0",
|
||||
"recharts": "^2.15.4",
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
"leaflet": "^1.9.4",
|
||||
"leaflet-defaulticon-compatibility": "^0.1.2",
|
||||
"lucide-react": "^0.474.0",
|
||||
"next": "15.1.6",
|
||||
"next": "15.5.15",
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0",
|
||||
"react-leaflet": "^5.0.0",
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
"clsx": "^2.1.1",
|
||||
"lucide-react": "^0.548.0",
|
||||
"motion": "^12.23.24",
|
||||
"next": "15.3.2",
|
||||
"next": "15.5.15",
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0",
|
||||
"react-shiki": "^0.9.0",
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
"leaflet": "^1.9.4",
|
||||
"leaflet-defaulticon-compatibility": "^0.1.2",
|
||||
"lucide-react": "^0.474.0",
|
||||
"next": "15.1.6",
|
||||
"next": "15.5.15",
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0",
|
||||
"react-leaflet": "^5.0.0",
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
"embla-carousel-react": "8.5.1",
|
||||
"input-otp": "1.4.1",
|
||||
"lucide-react": "^0.454.0",
|
||||
"next": "15.2.4",
|
||||
"next": "15.5.15",
|
||||
"next-themes": "latest",
|
||||
"react": "^19",
|
||||
"react-day-picker": "8.10.1",
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"@copilotkit/react-core": "1.10.6",
|
||||
"@copilotkit/react-ui": "1.10.6",
|
||||
"@copilotkit/runtime": "1.10.6",
|
||||
"next": "15.3.2",
|
||||
"next": "15.5.15",
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0",
|
||||
"zod": "^3.24.4"
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
"class-variance-authority": "^0.7.0",
|
||||
"clsx": "^2.1.1",
|
||||
"lucide-react": "^0.454.0",
|
||||
"next": "15.0.2",
|
||||
"next": "15.5.15",
|
||||
"openai": "^4.70.2",
|
||||
"react": "19.0.0-rc-02c0e824-20241028",
|
||||
"react-dom": "19.0.0-rc-02c0e824-20241028",
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
"@langchain/openai": "^0.3.14",
|
||||
"@syncfusion/ej2-react-spreadsheet": "^29.1.39",
|
||||
"langchain": "^0.3.6",
|
||||
"next": "15.0.3",
|
||||
"next": "15.5.15",
|
||||
"openai": "^4.96.2",
|
||||
"react": "^18",
|
||||
"react-dom": "^18",
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"axios": "^1.12.0",
|
||||
"lucide-react": "^0.475.0",
|
||||
"mongodb": "^6.13.0",
|
||||
"next": "15.4.10",
|
||||
"next": "15.5.15",
|
||||
"product-knowledge-base": "file:",
|
||||
"react": "^19",
|
||||
"react-dom": "^19"
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
"clsx": "^2.1.1",
|
||||
"date-fns": "^4.1.0",
|
||||
"lucide-react": "^0.476.0",
|
||||
"next": "15.6.0-canary.61",
|
||||
"next": "16.1.7",
|
||||
"react": "^19.0.0",
|
||||
"react-day-picker": "8.10.1",
|
||||
"react-dom": "^19.0.0",
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
"clsx": "^2.1.1",
|
||||
"date-fns": "^4.1.0",
|
||||
"lucide-react": "^0.476.0",
|
||||
"next": "15.4.10",
|
||||
"next": "15.5.15",
|
||||
"react": "^19.0.0",
|
||||
"react-day-picker": "8.10.1",
|
||||
"react-dom": "^19.0.0",
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
"flowtoken": "^1.0.40",
|
||||
"groq-sdk": ">=0.3.0 <1.0.0",
|
||||
"langchain": "^0.3.3",
|
||||
"next": "15.0.7",
|
||||
"next": "15.5.15",
|
||||
"next-themes": "^0.2.1",
|
||||
"openai": "^4.85.1",
|
||||
"react": "19.0.0-rc-0bc30748-20241028",
|
||||
|
||||
@@ -2,9 +2,8 @@ import { OpenAI } from "openai";
|
||||
|
||||
export const runtime = "edge";
|
||||
|
||||
const openai = new OpenAI();
|
||||
|
||||
export async function POST(req: Request): Promise<Response> {
|
||||
const openai = new OpenAI();
|
||||
try {
|
||||
const formData = await req.formData();
|
||||
const file = formData.get("file") as File;
|
||||
|
||||
@@ -2,9 +2,8 @@ import { OpenAI } from "openai";
|
||||
|
||||
export const runtime = "edge";
|
||||
|
||||
const openai = new OpenAI();
|
||||
|
||||
export async function GET(req: Request): Promise<Response> {
|
||||
const openai = new OpenAI();
|
||||
const url = new URL(req.url);
|
||||
const text = url.searchParams.get("text"); // 'text' is the query parameter name
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
"class-variance-authority": "^0.7.0",
|
||||
"clsx": "^2.1.1",
|
||||
"lucide-react": "^0.451.0",
|
||||
"next": "15.4.10",
|
||||
"next": "15.5.15",
|
||||
"openai": "^4.85.1",
|
||||
"react": "19.0.0",
|
||||
"react-dom": "19.0.0",
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@copilotkit/react-core": "workspace:*",
|
||||
"next": "15.4.4",
|
||||
"next": "15.5.15",
|
||||
"react": "19.1.0",
|
||||
"react-dom": "19.1.0"
|
||||
},
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
"cors": "^2.8.5",
|
||||
"express": "^4.21.0",
|
||||
"hono": "^4.11.4",
|
||||
"next": "15.4.4",
|
||||
"next": "15.5.15",
|
||||
"openai": "^5.9.0",
|
||||
"react": "19.1.0",
|
||||
"react-dom": "19.1.0",
|
||||
|
||||
Reference in New Issue
Block a user