From 5450096e96e0cc973c5e7f617673b7803d9d5536 Mon Sep 17 00:00:00 2001 From: Thuc Pham <51660321+thucpn@users.noreply.github.com> Date: Fri, 27 Dec 2024 13:01:59 +0700 Subject: [PATCH] bump: react 19 stable (#476) --- .changeset/smart-bears-confess.md | 5 +++++ e2e/utils.ts | 2 +- templates/types/streaming/express/package.json | 8 ++++---- .../components/ui/chat/tools/weather-card.tsx | 2 +- templates/types/streaming/nextjs/package.json | 16 ++++++++-------- 5 files changed, 19 insertions(+), 14 deletions(-) create mode 100644 .changeset/smart-bears-confess.md diff --git a/.changeset/smart-bears-confess.md b/.changeset/smart-bears-confess.md new file mode 100644 index 000000000..9575ef532 --- /dev/null +++ b/.changeset/smart-bears-confess.md @@ -0,0 +1,5 @@ +--- +"create-llama": patch +--- + +bump: react 19 stable diff --git a/e2e/utils.ts b/e2e/utils.ts index a2d290830..1e308d4c3 100644 --- a/e2e/utils.ts +++ b/e2e/utils.ts @@ -88,7 +88,7 @@ export async function runCreateLlama({ ...dataSourceArgs, "--vector-db", vectorDb, - "--use-pnpm", + "--use-npm", "--port", port, "--post-install-action", diff --git a/templates/types/streaming/express/package.json b/templates/types/streaming/express/package.json index c7a65882b..e7df817d3 100644 --- a/templates/types/streaming/express/package.json +++ b/templates/types/streaming/express/package.json @@ -16,15 +16,15 @@ "lint": "eslint ." }, "dependencies": { - "ai": "4.0.3", + "ai": "^4.0.3", "cors": "^2.8.5", "dotenv": "^16.3.1", "duck-duck-scrape": "^2.2.5", "express": "^4.18.2", "llamaindex": "0.8.2", - "pdf2json": "3.0.5", + "pdf2json": "^3.0.5", "ajv": "^8.12.0", - "@e2b/code-interpreter": "1.0.4", + "@e2b/code-interpreter": "^1.0.4", "got": "^14.4.1", "@apidevtools/swagger-parser": "^10.1.0", "formdata-node": "^6.0.3", @@ -45,7 +45,7 @@ "prettier": "^3.2.5", "prettier-plugin-organize-imports": "^3.2.4", "tsx": "^4.7.2", - "tsup": "8.1.0", + "tsup": "^8.1.0", "typescript": "^5.3.2" } } diff --git a/templates/types/streaming/nextjs/app/components/ui/chat/tools/weather-card.tsx b/templates/types/streaming/nextjs/app/components/ui/chat/tools/weather-card.tsx index f2115ae0e..8720c042a 100644 --- a/templates/types/streaming/nextjs/app/components/ui/chat/tools/weather-card.tsx +++ b/templates/types/streaming/nextjs/app/components/ui/chat/tools/weather-card.tsx @@ -42,7 +42,7 @@ export interface WeatherData { const weatherCodeDisplayMap: Record< string, { - icon: JSX.Element; + icon: React.ReactNode; status: string; } > = { diff --git a/templates/types/streaming/nextjs/package.json b/templates/types/streaming/nextjs/package.json index 59b2cbfca..4fc21b41f 100644 --- a/templates/types/streaming/nextjs/package.json +++ b/templates/types/streaming/nextjs/package.json @@ -11,13 +11,13 @@ }, "dependencies": { "@apidevtools/swagger-parser": "^10.1.0", - "@e2b/code-interpreter": "1.0.4", + "@e2b/code-interpreter": "^1.0.4", "@radix-ui/react-collapsible": "^1.0.3", "@radix-ui/react-select": "^2.1.1", "@radix-ui/react-slot": "^1.0.2", "@radix-ui/react-tabs": "^1.1.0", "@llamaindex/chat-ui": "0.0.12", - "ai": "4.0.3", + "ai": "^4.0.3", "ajv": "^8.12.0", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1", @@ -27,9 +27,9 @@ "got": "^14.4.1", "llamaindex": "0.8.2", "lucide-react": "^0.460.0", - "next": "^15.0.3", - "react": "19.0.0-rc-66855b96-20241106", - "react-dom": "19.0.0-rc-66855b96-20241106", + "next": "^15.1.3", + "react": "^19.0.0", + "react-dom": "^19.0.0", "papaparse": "^5.4.1", "supports-color": "^8.1.1", "tailwind-merge": "^2.1.0", @@ -39,15 +39,15 @@ }, "devDependencies": { "@types/node": "^20.10.3", - "@types/react": "^18.2.42", - "@types/react-dom": "^18.2.17", + "@types/react": "^19.0.2", + "@types/react-dom": "^19.0.2", "@types/uuid": "^9.0.8", "@llamaindex/workflow": "^0.0.3", "@types/papaparse": "^5.3.15", "autoprefixer": "^10.4.16", "cross-env": "^7.0.3", "eslint": "^9.14.0", - "eslint-config-next": "^15.0.3", + "eslint-config-next": "^15.1.3", "eslint-config-prettier": "^9.1.0", "postcss": "^8.4.32", "prettier": "^3.2.5",