-
-
Notifications
You must be signed in to change notification settings - Fork 141
feat(cli): Upgrade to Prisma 6.13.0 #431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"create-better-t-stack": patch | ||
--- | ||
|
||
Upgrade to Prisma 6.13.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
{{#if (eq dbSetup "prisma-postgres")}} | ||
// import "dotenv/config"; uncomment this to load .env | ||
{{else}} | ||
{{#unless (eq dbSetup "prisma-postgres")}} | ||
import "dotenv/config"; | ||
{{/if}} | ||
{{/unless}} | ||
import path from "node:path"; | ||
import type { PrismaConfig } from "prisma"; | ||
|
||
export default { | ||
earlyAccess: true, | ||
schema: path.join("prisma", "schema"), | ||
migrations: { | ||
path: path.join("prisma", "migrations"), | ||
} | ||
} satisfies PrismaConfig; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Verify Prisma 6.13.0 compatibility and changelog.
The Prisma version upgrade to 6.13.0 aligns with the PR objectives. Ensure this version is compatible with the configuration changes made to the templates.
🌐 Web query:
💡 Result:
As of July 29, 2025, Prisma ORM has not released a version 6.13.0. The latest stable release is 6.12.0, which introduced several notable features and improvements.
Key Changes in Prisma ORM 6.12.0:
ESM-Compatible
prisma-client
Generator (Preview): The newprisma-client
generator offers enhanced flexibility and control over the generated Prisma Client code. It supports ECMAScript Modules (ESM) and allows developers to specify the output directory, moving away from the previous automatic generation intonode_modules
. (prisma.io)TypeScript-Based Configuration with
prisma.config.ts
(Early Access): Prisma ORM now supports a TypeScript-based configuration file,prisma.config.ts
, enabling developers to write custom code for configuration purposes. This feature is in Early Access and provides greater flexibility in managing Prisma's settings. (prisma.io)Case-Insensitive Mode in JSON Filters: Developers can now perform case-insensitive filtering on JSON data using the
mode
option with values like"insensitive"
. This enhancement simplifies queries that need to be case-insensitive. (prisma.io)Improved CockroachDB Migration Speed: Optimizations have been made to the migration engine, resulting in significantly faster migrations for CockroachDB. (prisma.io)
Breaking Changes:
Deprecation of
NotFoundError
: TheNotFoundError
has been removed in favor ofPrismaClientKnownRequestError
with error codeP2025
in methods likefindUniqueOrThrow()
andfindFirstOrThrow()
. Developers should update their error handling code accordingly. (github.com)Reserved Keywords for Model Names: The keywords
async
,await
, andusing
are now reserved and cannot be used as model names in the Prisma schema. (github.com)For a comprehensive list of changes and detailed information, please refer to the official Prisma changelog. (prisma.io)
Citations:
Action Required: Correct Prisma dependency versions
It looks like Prisma 6.13.0 isn’t publicly released yet—the latest stable is 6.12.0. Please update your dependencies to a valid version or confirm you intend to use a prerelease.
• File: apps/cli/src/constants.ts
Lines 47–48
Current:
Suggested fix:
• If you’re on an early-access or alpha build of 6.13.0, switch to the correct prerelease tag (e.g.
6.13.0-alpha.x
) and document it.• Verify compatibility against the official changelog once 6.13.0 is formally released.
🤖 Prompt for AI Agents