Skip to content

chore(plugin-prisma): accept generator-helper 8.x and document Prisma 8 - #1655

Closed
hayes wants to merge 1 commit into
mainfrom
feat/prisma-8
Closed

chore(plugin-prisma): accept generator-helper 8.x and document Prisma 8#1655
hayes wants to merge 1 commit into
mainfrom
feat/prisma-8

Conversation

@hayes

@hayes hayes commented Aug 25, 2026

Copy link
Copy Markdown
Owner

Summary

Investigated what "Prisma 8 support" means for the Prisma plugins. Short version: Prisma 8 is not a version bump the plugin can follow, and nothing in the plugin needs to change to keep working with the ORM it targets.

  • Prisma 8 (prisma@latest, currently 8.0.0-rc.10) is Prisma Next — a from-scratch, contract-first rewrite with its own db.orm.<Model> client. It has no schema.prisma generators, no DMMF, and no @prisma/client; the unified prisma@8 CLI has no generate command at all (CLI.UNKNOWN_COMMAND). There is nothing for prisma-pothos-types to plug into.
  • Prisma ORM 7 (@prisma/client, generators) continues on the v7 branch, published under the prev dist-tag, with a new @prisma/prisma7 CLI wrapper and prisma7.config.ts for running side by side with Prisma 8.
  • I ran the whole Prisma-dependent surface of this repo (plugin-prisma, plugin-prisma-utils, plugin-scope-auth, plugin-with-input) against the v7 branch's current dev builds (8.1.0-dev.1 of prisma, @prisma/client, @prisma/generator-helper, adapters, runtime-utils): generate, typecheck, and tests all pass with no code changes.

Changes

  • Widen @prisma/generator-helper to ^7.7.0 || ^8.0.0 in plugin-prisma and plugin-prisma-utils. The v7 branch is already publishing 8.x dev builds of the classic generator packages; without this, an 8.x classic release would install a second copy of generator-helper next to the user's.
  • Add a "Prisma versions" note to the plugin README and the website setup page explaining the above and pointing users to ^7 / @prisma/prisma7.
  • Changeset (patch for both packages).

Dev dependencies are left on stable ^7.7.0; the 8.1.0-dev.1 verification was local only.

Test plan

  • plugin-prisma: generate, tsc, 89/89 tests — against both 7.7.0 and 8.1.0-dev.1
  • plugin-scope-auth (108/108) and plugin-with-input (3/3) — against 8.1.0-dev.1
  • plugin-prisma-utils: generate + tsc against both; DB tests need Postgres, so relying on CI
  • biome check on changed files

🤖 Generated with Claude Code

https://claude.ai/code/session_01KbY4nojGaaVYDzhr21QfFw

Prisma 8 (prisma@latest) is Prisma Next, a rewrite with its own client
and no schema.prisma generators or @prisma/client, so the plugin cannot
target it. Prisma ORM 7 continues on Prisma's v7 branch; the plugin is
verified against that branch's current builds, and the generator-helper
range is widened so an 8.x release of the classic packages does not
install a second copy.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KbY4nojGaaVYDzhr21QfFw
@changeset-bot

changeset-bot Bot commented Aug 25, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 092336c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
@pothos/plugin-prisma Patch
@pothos/plugin-prisma-utils Patch
@pothos-examples/complex-app Patch
@pothos-examples/prisma-federation Patch
@pothos-examples/prisma-relay Patch
@pothos-examples/prisma-smart-subscriptions Patch
@pothos-examples/prisma-subscriptions Patch
@pothos-examples/prisma Patch

Not sure what this means? Click here to learn what changesets are.

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

@vercel

vercel Bot commented Aug 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pothos Ready Ready Preview Aug 25, 2026 4:45pm

@pkg-pr-new

pkg-pr-new Bot commented Aug 25, 2026

Copy link
Copy Markdown

Open in StackBlitz

@pothos/core

npm i https://pkg.pr.new/@pothos/core@1655

@pothos/plugin-add-graphql

npm i https://pkg.pr.new/@pothos/plugin-add-graphql@1655

@pothos/plugin-complexity

npm i https://pkg.pr.new/@pothos/plugin-complexity@1655

@pothos/plugin-dataloader

npm i https://pkg.pr.new/@pothos/plugin-dataloader@1655

@pothos/plugin-directives

npm i https://pkg.pr.new/@pothos/plugin-directives@1655

@pothos/plugin-drizzle

npm i https://pkg.pr.new/@pothos/plugin-drizzle@1655

@pothos/plugin-errors

npm i https://pkg.pr.new/@pothos/plugin-errors@1655

@pothos/plugin-example

npm i https://pkg.pr.new/@pothos/plugin-example@1655

@pothos/plugin-federation

npm i https://pkg.pr.new/@pothos/plugin-federation@1655

@pothos/plugin-grafast

npm i https://pkg.pr.new/@pothos/plugin-grafast@1655

@pothos/plugin-mocks

npm i https://pkg.pr.new/@pothos/plugin-mocks@1655

@pothos/plugin-prisma

npm i https://pkg.pr.new/@pothos/plugin-prisma@1655

@pothos/plugin-prisma-utils

npm i https://pkg.pr.new/@pothos/plugin-prisma-utils@1655

@pothos/plugin-relay

npm i https://pkg.pr.new/@pothos/plugin-relay@1655

@pothos/plugin-scope-auth

npm i https://pkg.pr.new/@pothos/plugin-scope-auth@1655

@pothos/plugin-simple-objects

npm i https://pkg.pr.new/@pothos/plugin-simple-objects@1655

@pothos/plugin-smart-subscriptions

npm i https://pkg.pr.new/@pothos/plugin-smart-subscriptions@1655

@pothos/plugin-sub-graph

npm i https://pkg.pr.new/@pothos/plugin-sub-graph@1655

@pothos/plugin-tracing

npm i https://pkg.pr.new/@pothos/plugin-tracing@1655

@pothos/plugin-validation

npm i https://pkg.pr.new/@pothos/plugin-validation@1655

@pothos/plugin-with-input

npm i https://pkg.pr.new/@pothos/plugin-with-input@1655

@pothos/plugin-zod

npm i https://pkg.pr.new/@pothos/plugin-zod@1655

@pothos/tracing-newrelic

npm i https://pkg.pr.new/@pothos/tracing-newrelic@1655

@pothos/tracing-opentelemetry

npm i https://pkg.pr.new/@pothos/tracing-opentelemetry@1655

@pothos/tracing-sentry

npm i https://pkg.pr.new/@pothos/tracing-sentry@1655

@pothos/tracing-xray

npm i https://pkg.pr.new/@pothos/tracing-xray@1655

commit: 092336c

@hayes hayes closed this Aug 25, 2026
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.

1 participant