← Back to Pull requests

docs: Prisma ORM 8 versioning policy page: no breaking change to GA packages within a major, 18 months of Prisma ORM 7 fixes #8959

Open
unknown opened this pull request with 650 lines diff across 8 files
View on GitHub
unknown unknown commented on Nov 28, 2026 09:38 UTC
Author

This pull request gives Prisma ORM users one page that says what they can rely on when they upgrade Prisma ORM 8: Versioning and support policy (source: apps/docs/content/docs/orm/versioning-and-support.mdx). It takes effect at release 8.0, which is not out yet. The page opens:

From release 8.0, a Prisma ORM version number tells you what an upgrade may change. Within a major version, upgrading a Generally Available package needs no change to your code, to the files Prisma ORM generated, or to your database. Breaking changes wait for the next major version, apart from the few listed under What may still change.

What you are reviewing

The policy itself was decided in prisma/orm, in docs/oss/versioning.md and the decision record on maturity levels, ADR 330. Those are written for Prisma's engineers. This page states the same policy for users. So the review question is whether the page says the policy correctly and plainly, not whether the policy is right. Every statement was checked against prisma/orm main.

What the page says

The page is modelled on Rails' Maintenance Policy and Django's API stability page. It names Prisma ORM, opens with the promise, and gives each topic one short section.

The level of a package shows in its version. A user on SQLite, which is Early Access at 8.0, sees this in package.json:

"@prisma/orm-sqlite": "~8.0.1-ea.0",
"@prisma/orm-framework": "~8.0.1"

The -ea.0 says @prisma/orm-sqlite is Early Access, so any release may break it. @prisma/orm-framework has no suffix, so it is Generally Available (GA). The tildes keep both on release 8.0 until the user moves them to 8.1 together. On PostgreSQL, which is GA, every line takes a caret instead, and npm update moves them all.

The commitments a reviewer should know about:

  • No breaking change to anything GA within a major, apart from bug fixes, security fixes, detail the reference documentation does not describe, and dropping a Node.js, TypeScript or database version its maker no longer supports.

  • No patch releases today. A fix ships in the next minor. Release 8.0 is version 8.0.1, because the earlier 8.0.0-rc.N test versions would sort above an 8.0.0-ea.0.

  • Support. Prisma ORM 7 gets bug and security fixes until 18 months after 8.0. When Prisma ORM 9 ships, Prisma ORM 8 gets critical and security fixes for at least 12 months.

  • Levels at 8.0, from prisma/orm's levels.ts: PostgreSQL and its extensions, apart from Supabase, are GA; MySQL, MariaDB, SQLite, MongoDB and the Supabase extension are Early Access.
  • The 8.0.0-rc.N release candidates published today are builds of 8.0 for testing. Their rc predates the policy and does not mean the Release Candidate level, and a note at the top of the page says they promise nothing.

    Other changes

  • The page replaces the earlier "Versions and compatibility" draft, at a URL that matches its title. Neither page is live yet, so no redirect is needed.

  • Fourteen pages that call a database or extension "Early Access from release 8.0" now link "Early Access" to the page's level table. Among them are Supported databases, the extensions overview, and the SQL query builder reference. Four of them grouped MongoDB with PostgreSQL as if it were GA; they now say it is Early Access.

  • Supported databases defines "Generally Available" beside "Early Access", and says today's 8.0.0-rc.N release candidates are not the Release Candidate level.

  • The extension registry, packages/ui/src/data/extensions/official.json, lists MariaDB for the query cache again, so the generated tables match the query cache page. A merge from main had dropped it. The script that generates the extension tables, apps/docs/scripts/generate-extensions-catalog.mjs, writes the same link.

  • The Release status page links the policy.
  • Left out

  • The prisma command-line tool, which has its own version numbers, and Prisma Composer. What their policy is has not been agreed yet. The page covers the Prisma ORM commands the tool runs, which come from @prisma/orm-toolchain, and says it does not cover the rest of the tool. It does not yet say that the tool must carry the same Prisma ORM release as the application; that waits for the fix to the tool's pinned toolchain version.

  • How a level shows on a command flag, a configuration field or an attribute in the schema: prisma/orm has not decided it.

  • Upgrade tooling: none is built.
  • On release day

    These go out of date when 8.0 is published, and Linear ticket TML-3988 lists them:

  • this page's "Not in effect yet" note and its last paragraph, on 8.0.0-rc.N versions;

  • the level table, against levels.ts, and the copy of it in generate-extensions-catalog.mjs;

  • the "from release 8.0" wording on the fourteen pages above;

  • Release status and Supported databases, which say Prisma ORM 8 is a release candidate today;

  • the llms.txt description of the Prisma ORM section;

  • the extension badges on prisma.io/extensions, which a separate pull request moves to levels on release day.
  • The promises about new built-in names and new error codes depend on work in prisma/orm due before 8.0; check it shipped.

    Alternatives considered

  • A general policy for all of Prisma's open-source products, plus one page per product. It would let the prisma tool and Composer share the policy later. We tried it, and the general page had to speak of "a product" and send the reader to "the product page" for every concrete fact. The policies we compared, from Rails, Django and Angular, each name their own product. When the prisma tool or Composer reaches GA, it gets the same policy by name, or the page is generalised then.

  • Putting the policy under the site's /legal pages. Developers read it next to the docs, and llms.txt indexes the docs.
  • Agent: horace-65

    🤖 Generated with Claude Code

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: wmadden-electric Review duration: 1159m
    All Vouch review confidence checks passed
    Residual risk 0.28 = Change Risk (0.52) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #8959"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52% (MEDIUM) · Higher = larger blast radius
    52%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 27.7% · Safe to merge
    27.7%
    Repository