Skip to content

Conversation

@waveplay-sage
Copy link
Contributor

@waveplay-sage waveplay-sage commented Nov 19, 2025

Automated PR for... Branch: templates/web-apps/next-auth-ts

Summary by CodeRabbit

  • Chores
    • Updated core dependencies including authentication and server framework packages for improved security and functionality.
    • Introduced database management and SQLite storage capabilities for enhanced data persistence.
    • Configured dependency resolution to ensure stable and compatible package versions.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link

coderabbitai bot commented Nov 23, 2025

Walkthrough

Updated the Next.js + Auth TypeScript template's package.json to migrate from Robo's authentication system to Prisma with SQLite. Added Prisma adapter, better-sqlite3 driver, and corresponding type definitions. Updated Robo.js dependencies and introduced pnpm dependency overrides for better-sqlite3 version consistency.

Changes

Cohort / File(s) Summary
Dependency Configuration
templates/web-apps/next-auth-ts/package.json
Added pnpm overrides for better-sqlite3 resolution; replaced @robojs/auth and @robojs/server with new remote URLs; updated robo.js commit reference; introduced @auth/prisma-adapter, @prisma/adapter-better-sqlite3, @prisma/client, and better-sqlite3; added @types/better-sqlite3 and prisma to devDependencies

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • Verify pnpm overrides configuration syntax and necessity for better-sqlite3 version pinning
  • Confirm compatibility between @prisma/adapter-better-sqlite3, @prisma/client, and better-sqlite3 versions
  • Validate that new Robo.js dependency URLs (ef0c000 commit) are correct and stable

Poem

🐰 A package.json update hops into view,
Prisma and SQLite, a database rendezvous!
Better-sqlite3 joins the crew so fine,
Robo's auth steps back—new deps align!
Type safety and adapters, a perfect dance! 📦✨

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Title check ⚠️ Warning The title describes updating 'robo dependencies', but the actual changes primarily involve introducing Prisma and SQLite dependencies, with Robo dependencies being only partially updated. The title is misleading about the main scope of changes. Consider a more accurate title like 'templates(web-apps/next-auth-ts): migrate to Prisma with SQLite' or 'templates(web-apps/next-auth-ts): add Prisma and SQLite support' to reflect the primary changes.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch templates/web-apps/next-auth-ts

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.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 744e3a9 and 65b3cc2.

⛔ Files ignored due to path filters (1)
  • templates/web-apps/next-auth-ts/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • templates/web-apps/next-auth-ts/package.json (1 hunks)
🔇 Additional comments (2)
templates/web-apps/next-auth-ts/package.json (2)

39-48: Verify Prisma + better-sqlite3 integration and version compatibility.

The migration to Prisma with SQLite adapter introduces several new dependencies. Please verify:

  1. Prisma v7.0.0 and @prisma/adapter-better-sqlite3 v7.0.0 are compatible
  2. better-sqlite3 v12.4.6 works correctly with the Prisma adapter
  3. The @auth/prisma-adapter is compatible with your auth flow

Consider running pnpm install and testing the integration locally to catch any runtime issues.


52-52: LGTM!

Type definitions and CLI tooling for the new dependencies are appropriately included. The @types/better-sqlite3 and prisma CLI additions support development workflow well.

Also applies to: 59-59

Comment on lines +32 to +37
"pnpm": {
"overrides": {
"@prisma/adapter-better-sqlite3>better-sqlite3": "^12.4.6",
"better-sqlite3": "^12.4.6"
}
},
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Fix indentation in pnpm overrides block.

The pnpm.overrides block uses spaces for indentation while the rest of the file uses tabs, creating inconsistency. Please align the formatting with the file's tab-based convention.

Apply this diff to fix the indentation:

-	"pnpm": {
-        "overrides": {
-          "@prisma/adapter-better-sqlite3>better-sqlite3": "^12.4.6",
-          "better-sqlite3": "^12.4.6"
-        }
+	"pnpm": {
+		"overrides": {
+			"@prisma/adapter-better-sqlite3>better-sqlite3": "^12.4.6",
+			"better-sqlite3": "^12.4.6"
+		}
      },
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"pnpm": {
"overrides": {
"@prisma/adapter-better-sqlite3>better-sqlite3": "^12.4.6",
"better-sqlite3": "^12.4.6"
}
},
"pnpm": {
"overrides": {
"@prisma/adapter-better-sqlite3>better-sqlite3": "^12.4.6",
"better-sqlite3": "^12.4.6"
}
},
🤖 Prompt for AI Agents
In templates/web-apps/next-auth-ts/package.json around lines 32 to 37, the
pnpm.overrides block is indented with spaces while the rest of the file uses
tabs; change the indentation of the "pnpm", "overrides" and their nested keys to
use tabs to match the file's tab-based convention so the block aligns with
surrounding lines.

Comment on lines +42 to +43
"@robojs/auth": "https://pkg.pr.new/Wave-Play/robo.js/@robojs/auth@3ec5b2a",
"@robojs/server": "https://pkg.pr.new/Wave-Play/robo.js/@robojs/server@3ec5b2a",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

Replace temporary pkg.pr.new URLs with stable versions before merging.

The dependencies are using pkg.pr.new temporary preview URLs, which are designed for testing pull requests and will break once the source PR is closed or merged. This is problematic for a template that needs to remain functional and reproducible.

For a production-ready template, either:

  1. Use the stable published versions from npm (if available)
  2. Ensure these changes are merged to main and reference the stable commits directly
  3. Document the temporary nature and add a migration plan if this is intentional

Can you clarify the intent of using pkg.pr.new URLs? If these are meant to reference a specific pending PR, ensure the source PR is merged before this template is released.

Also applies to: 48-48


I'll verify the concerns raised in this review comment by examining the file and researching the nature of pkg.pr.new URLs.Now let me examine the actual package.json file to verify the details mentioned:


Let me search the repository to find the file:



Temporary pkg.pr.new URLs will break once packages are removed; unsuitable for stable template.

pkg.pr.new publishes unreleased packages to a temporary npm-compatible registry. pkg.pr.new stays true to its purpose of providing temporary, on-demand preview releases rather than serving as a permanent registry, automatically removing unused or old builds—packages are automatically removed if they haven't been downloaded in over a month, or are older than six months.

Using these temporary URLs in a released template creates a reliability problem:

  • When a commit is pushed or pull request created, pkg.pr.new creates an instantly usable version that can be installed from a unique npm compatible URL, allowing users and contributors to test changes before official release. This is appropriate for PR testing but not for distributed templates.
  • Once the cleanup policy removes the packages (unused for 1+ month or older than 6 months), users and cloners of this template will encounter installation failures.

Recommendation: Replace these URLs with either stable npm package versions or ensure the source changes are merged to main and reference commits that remain available long-term.

Lines affected: 42-43, 48


🏁 Script executed:

#!/bin/bash
# Examine the package.json file to verify the pkg.pr.new URLs and indentation
cat templates/web-apps/next-auth-ts/package.json | head -60

Length of output: 1506


🏁 Script executed:

#!/bin/bash
# Find the package.json file
find . -type f -name "package.json" -path "*next-auth-ts*" 2>/dev/null | head -5

Length of output: 46


Replace temporary pkg.pr.new URLs with stable versions before merging.

The @robojs/auth, @robojs/server, and robo.js dependencies reference temporary pkg.pr.new URLs, which will break when packages are automatically removed. pkg.pr.new publishes unreleased packages to a temporary npm-compatible registry, and packages are automatically removed if they haven't been downloaded in over a month, or are older than six months. Using these temporary URLs in a template compromises reproducibility and will cause installation failures for users who clone this template after the packages are removed.

Action required: Replace with either stable npm versions (if available) or ensure the source changes are merged and reference commits that will remain accessible long-term.

Lines affected: 42-43, 48

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.

2 participants