[PR #7620] [CLOSED] chore: bump prisma to v7 #7446

Closed
opened 2026-03-13 13:36:44 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7620
Author: @himself65
Created: 1/26/2026
Status: Closed

Base: canaryHead: himself65/2026/01/26/prisma


📝 Commits (2)

📊 Changes

10 files changed (+468 additions, -316 deletions)

View changed files

📝 e2e/adapter/test/mongo-adapter/package.json (+0 -1)
📝 e2e/adapter/test/prisma-adapter/base.prisma (+0 -2)
📝 e2e/adapter/test/prisma-adapter/generate-prisma-schema.ts (+5 -11)
📝 e2e/adapter/test/prisma-adapter/get-prisma-client.ts (+32 -2)
📝 e2e/adapter/test/prisma-adapter/package.json (+10 -2)
e2e/adapter/test/prisma-adapter/prisma.config.ts (+8 -0)
📝 e2e/adapter/test/prisma-adapter/push-prisma-schema.ts (+26 -5)
📝 packages/cli/package.json (+1 -1)
📝 packages/prisma-adapter/package.json (+3 -5)
📝 pnpm-lock.yaml (+383 -287)

📄 Description

Summary by cubic

Upgraded Prisma (client and CLI) to v7.3.0 and adopted Prisma’s v7 adapter API in the e2e Prisma tests. Updated configs and schema generation to match v7 patterns.

  • Dependencies

    • Bumped @prisma/client and prisma to 7.3.0; added @prisma/adapter-pg, @prisma/adapter-mariadb, @prisma/adapter-better-sqlite3 and db drivers in the e2e Prisma adapter.
    • Prisma adapter package: expanded peer support to ^5 || ^6 || ^7, removed runtime @prisma/client, added @prisma/client and prisma 7.3.0 as dev deps.
    • Refreshed pnpm-lock.yaml.
  • Refactors

    • getPrismaClient now uses a dialect-specific adapter (sqlite uses a file DB); moved datasource URL to prisma.config.ts and removed it from the schema.
    • Switched to pnpm exec for db push/generate; dropped @prisma/client from the Mongo adapter test.

Written for commit fadb40db45. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/7620 **Author:** [@himself65](https://github.com/himself65) **Created:** 1/26/2026 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `himself65/2026/01/26/prisma` --- ### 📝 Commits (2) - [`43e72f1`](https://github.com/better-auth/better-auth/commit/43e72f1a6f123890ee3eb69f16b6cb0c1c6e2e7a) chore: bump prisma to v7 - [`fadb40d`](https://github.com/better-auth/better-auth/commit/fadb40db457e825f58cd33033278e868c51818c5) chore: fix test ### 📊 Changes **10 files changed** (+468 additions, -316 deletions) <details> <summary>View changed files</summary> 📝 `e2e/adapter/test/mongo-adapter/package.json` (+0 -1) 📝 `e2e/adapter/test/prisma-adapter/base.prisma` (+0 -2) 📝 `e2e/adapter/test/prisma-adapter/generate-prisma-schema.ts` (+5 -11) 📝 `e2e/adapter/test/prisma-adapter/get-prisma-client.ts` (+32 -2) 📝 `e2e/adapter/test/prisma-adapter/package.json` (+10 -2) ➕ `e2e/adapter/test/prisma-adapter/prisma.config.ts` (+8 -0) 📝 `e2e/adapter/test/prisma-adapter/push-prisma-schema.ts` (+26 -5) 📝 `packages/cli/package.json` (+1 -1) 📝 `packages/prisma-adapter/package.json` (+3 -5) 📝 `pnpm-lock.yaml` (+383 -287) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Upgraded Prisma (client and CLI) to v7.3.0 and adopted Prisma’s v7 adapter API in the e2e Prisma tests. Updated configs and schema generation to match v7 patterns. - **Dependencies** - Bumped @prisma/client and prisma to 7.3.0; added @prisma/adapter-pg, @prisma/adapter-mariadb, @prisma/adapter-better-sqlite3 and db drivers in the e2e Prisma adapter. - Prisma adapter package: expanded peer support to ^5 || ^6 || ^7, removed runtime @prisma/client, added @prisma/client and prisma 7.3.0 as dev deps. - Refreshed pnpm-lock.yaml. - **Refactors** - getPrismaClient now uses a dialect-specific adapter (sqlite uses a file DB); moved datasource URL to prisma.config.ts and removed it from the schema. - Switched to pnpm exec for db push/generate; dropped @prisma/client from the Mongo adapter test. <sup>Written for commit fadb40db457e825f58cd33033278e868c51818c5. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 13:36:44 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#7446