Skip to content

fix(create): replace deprecated neon db package#411

Open
ryan-ludwig wants to merge 1 commit intoTanStack:mainfrom
ryan-ludwig:fix-neon-db
Open

fix(create): replace deprecated neon db package#411
ryan-ludwig wants to merge 1 commit intoTanStack:mainfrom
ryan-ludwig:fix-neon-db

Conversation

@ryan-ludwig
Copy link

@ryan-ludwig ryan-ludwig commented Mar 15, 2026

Closes #410
Closes #401

@neondatabase/vite-plugin-postgres is deprecated in favor of
vite-plugin-db, which is deprecated and renamed to
vite-plugin-neon-new.

This PR updates the relevant package.jsons and updates the neon-vite-plugin to point to the new package.

Summary by CodeRabbit

  • Chores
    • Updated the Neon database plugin dependency to a newer version. All projects using the Neon add-on will automatically use the updated plugin for database initialization, configuration, and seeding operations. This change applies across both fresh project templates and example implementations.

@changeset-bot
Copy link

changeset-bot bot commented Mar 15, 2026

⚠️ No Changeset found

Latest commit: f47c221

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link

coderabbitai bot commented Mar 15, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 08bb6432-2dc7-4e08-9e48-69f47ca8aad3

📥 Commits

Reviewing files that changed from the base of the PR and between b8f4e63 and f47c221.

📒 Files selected for processing (5)
  • examples/custom-cli/create-rwsdk/add-ons/neon/README.md
  • examples/custom-cli/create-rwsdk/add-ons/neon/assets/neon-vite-plugin.ts
  • examples/custom-cli/create-rwsdk/add-ons/neon/package.json
  • packages/create/src/frameworks/react/add-ons/neon/assets/neon-vite-plugin.ts
  • packages/create/src/frameworks/react/add-ons/neon/package.json

📝 Walkthrough

Walkthrough

This PR migrates the deprecated @neondatabase/vite-plugin-postgres plugin to vite-plugin-neon-new across Neon add-on files. The migration updates package dependencies, import statements, and function calls from postgresPlugin to postgres while maintaining the same seed configuration.

Changes

Cohort / File(s) Summary
Neon Plugin Implementation Updates
examples/custom-cli/create-rwsdk/add-ons/neon/assets/neon-vite-plugin.ts, packages/create/src/frameworks/react/add-ons/neon/assets/neon-vite-plugin.ts
Replaced import from @neondatabase/vite-plugin-postgres to vite-plugin-neon-new and updated function call from postgresPlugin() to postgres() while preserving seed configuration.
Neon Dependency Declarations
examples/custom-cli/create-rwsdk/add-ons/neon/package.json, packages/create/src/frameworks/react/add-ons/neon/package.json
Updated dependencies: removed @neondatabase/vite-plugin-postgres (v0.2.0 and v0.7.0 respectively) and added vite-plugin-neon-new (v0.8.0).
Neon Documentation
examples/custom-cli/create-rwsdk/add-ons/neon/README.md
Updated plugin name reference from @neondatabase/vite-plugin-postgres to vite-plugin-neon-new.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 The old plugin wouldn't export, a tangled web we'd weave,
So we hopped to a newer branch where the dev servers believe!
From postgresPlugin to postgres, the migration's complete,
vite-plugin-neon-new makes the setup sweet! 🥕✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: replacing a deprecated Neon database package with a new one across multiple files.
Linked Issues check ✅ Passed The PR successfully addresses both linked issues by replacing the deprecated @neondatabase/vite-plugin-postgres with vite-plugin-neon-new across all relevant files and package.json entries.
Out of Scope Changes check ✅ Passed All changes are directly in-scope, consistently replacing the deprecated Neon plugin package with the new one in both examples and packages directories.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

CodeRabbit can scan for known vulnerabilities in your dependencies using OSV Scanner.

OSV Scanner will automatically detect and report security vulnerabilities in your project's dependencies. No additional configuration is required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error when creating a tanstack CLI project with neon db @neondatabase/vite-plugin-postgres deprecated

1 participant