Neon add-on depends on deprecated vite-plugin-neon-new
維護者通常 1 天內回覆
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 57/100
- Issue 類型
- 功能
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- typescript, vite
- 領域
- devtools
研究方向
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.
由索引模型根據 Issue 內容生成。
描述
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
npx @tanstack/cli@latest create neon-demo --add-ons start,neon- The generated
package.jsondepends onvite-plugin-neon-new. npm view [email protected] deprecatedprints 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-newfrompackage.json, and removeneon-vite-plugin.tswith itsvite-pluginintegration ininfo.json. - Tell users to run
npx neon@latest claim create --file .envin the README and on the demo page, or run it after scaffolding.--file .envkeeps the file the plugin writes today. - Seed
db/init.sqlas 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/cli0.72.16, andmain
Additional context
No response
- 主要語言
- TypeScript
- 星號
- 1.3k
- 分支
- 188
- 平均合併
- 5 小時 30 分鐘
- 30 天內合併 PR
- 42
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
TanStack/cli 的其他 Issue
-
[Bug] Inconsistent settings in biome.json可能已有人在做 @tannerlinsley 於 11 天前認領。 未關閉
難度 1/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
Proposal: PocketBase add-on可能已有人在做 @akanyane 於 13 天前認領。 未關閉
難度 4/5 3-5 天 新手友好度 25/100
TanStack/cli#527 · 2 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
tanstack-cli --router-only project tanstack-query add on scaffolds a tanstack-start router.tsx可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 3/5 1-2 天 新手友好度 45/100
維護者通常 1 天內回覆
-
enhancement
難度 5/5 一週以上 新手友好度 35/100
維護者通常 1 天內回覆
-
create with bun says Intent is configured but never writes AGENTS.md可能已有人在做 @cfngc4594 於 63 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 68/100
維護者通常 1 天內回覆
相似的 Issue
-
inference/go type/feature
難度 1/5 1-3 小時 新手友好度 72/100
anomalyco/opencode#65148 · 1 則留言 ·
維護者通常 1 天內回覆
-
truapi-release
難度 2/5 1-3 小時 新手友好度 72/100
paritytech/product-sdk#529 ·
維護者通常 1 天內回覆
-
Add: Mansudae TV未關閉approved check:passed streams:add
難度 2/5 1-3 小時 新手友好度 64/100
維護者通常 1 天內回覆
-
[Perf] Canvas layer composition is quadratic: splitRenderLayers re-copies the node array per node未關閉
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 77/100
devlikeapro/waha#2369 ·
維護者通常 5 天內回覆