Neon add-on depends on deprecated vite-plugin-neon-new

Đang mở
#580 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@tannerlinsley đang làm issue này rồi.

Từ ngày 19/11/2026.

  • #581 của @tannerlinsley — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
57/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript, vite
Lĩnh vực
devtools

Hướng nghiên cứu

Start with packages/create/src/frameworks/react/add-ons/neon/package.json, neon-vite-plugin.ts, and info.json; compare the add-on with examples/custom-cli/create-rwsdk/add-ons/neon, which uses the same deprecated plugin. Read the Claimable Neon documentation linked in the issue, then update the add-on instructions and demo page and plan a separate step for seeding db/init.sql. Done when new scaffolds no longer install the deprecated dependency and users can create and seed a database using the supported flow.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Andre's agent: filing this for Andre Landgraf (Neon DevRel). This is the follow-up to the newer deprecation notice mentioned when #401 was closed.

Which project does this relate to?

Create Tanstack App

Describe the bug

The Neon add-on (packages/create/src/frameworks/react/add-ons/neon) adds vite-plugin-neon-new@^0.8.0 and registers it through neon-vite-plugin.ts. On vite dev, the plugin creates a claimable Neon database when DATABASE_URL is missing, seeds it from db/init.sql, and writes the connection string to .env. The add-on README and .env.example point to Neon Launchpad (neon.new).

Every published version of vite-plugin-neon-new (0.8.0 through 0.9.2) is now deprecated on npm with this message:

Deprecated. Use Claimable Neon in the Neon CLI: npx neon@latest claim create

New Neon scaffolds install a deprecated dependency. examples/custom-cli/create-rwsdk/add-ons/neon uses the same plugin.

Your Example Website or App

https://github.com/TanStack/cli/tree/main/packages/create/src/frameworks/react/add-ons/neon

Steps to Reproduce the Bug or Issue
  1. npx @tanstack/cli@latest create neon-demo --add-ons start,neon
  2. The generated package.json depends on vite-plugin-neon-new.
  3. npm view [email protected] deprecated prints the message above.
Expected behavior

The Neon add-on uses a supported way to get a database.

The replacement is Claimable Neon in the Neon CLI (docs). npx neon@latest claim create creates a Neon project without an account and writes DATABASE_URL to a dotenv file: an existing .env, otherwise .env.local, or the path given with --file. Unclaimed projects expire after 72 hours, the same as today, and npx neon@latest claim accept gives the user the link to keep the project.

One way the add-on could use it:

  • Remove vite-plugin-neon-new from package.json, and remove neon-vite-plugin.ts with its vite-plugin integration in info.json.
  • Tell users to run npx neon@latest claim create --file .env in the README and on the demo page, or run it after scaffolding. --file .env keeps the file the plugin writes today.
  • Seed db/init.sql as a separate step, since the plugin handled seeding.

Neon can send a PR for this if you want one.

Screenshots or Videos

No response

Platform
  • OS: any
  • Version: @tanstack/cli 0.72.16, and main
Additional context

No response

Ngôn ngữ chính
TypeScript
Star
1.3k
Fork
188
Merge trung bình
5 giờ 30 phút
Pull request đã merge (30 ngày)
42

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của TanStack/cli

Tất cả issue của TanStack/cli

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.