← Back to Pull requests

ParadeDB extension: publish a version for each Prisma ORM release candidate, instead of waiting for Prisma ORM 8.0 #8

Closed
unknown closed this pull request without merging on Dec 01, 2026 02:47 UTC
View on GitHub
unknown unknown commented on Dec 01, 2026 00:48 UTC
Author

This repository publishes @prisma/orm-extension-paradedb, which until recently was published from the Prisma ORM repository. Its first release from here was planned for after Prisma ORM 8.0. This pull request changes that. Until Prisma ORM 8.0, the extension publishes one version for each Prisma ORM release candidate, numbered like that release candidate:

{
  "name": "@prisma/orm-extension-paradedb",
  "version": "8.0.0-rc.26",
  "peerDependencies": {
    "@prisma/orm-framework": "8.0.0-rc.26",
    "@prisma/orm-family-sql": "8.0.0-rc.26",
    "@prisma/orm-toolchain": "8.0.0-rc.26"
  }
}

rc.26 is an example: the newest Prisma ORM release candidate today is 8.0.0-rc.25. This pull request publishes nothing. It changes the release rules and documents, and adds a nightly check that says when a release is due.

Why not wait for Prisma ORM 8.0

The Prisma ORM repository published this package up to 8.0.0-rc.25, then removed it. So when Prisma ORM publishes rc.26, an application that uses ParadeDB has no ParadeDB version for it. If this repository waited for Prisma ORM 8.0, such applications would stay on rc.25 until then.

When a release is possible

A release needs two things:

  • A Prisma ORM release candidate that this code works with. The code here already depends on changes that are only in Prisma ORM development builds. Today it builds against the development build 8.0.1-dev.18.

  • A prisma command-line tool built on that same release candidate. The prisma tool carries its own copy of two ORM packages. Until a prisma release uses the same copy as the extension, pnpm-workspace.yaml overrides the tool's copy. An application that installs the extension does not get those overrides, so the publish refuses to release while they exist. Today prisma@8.0.0-rc.36 is built on ORM 8.0.0-rc.25.
  • Why the version is the release candidate's own number

    Until Prisma ORM 8.0, every Prisma package shares one version, and the ORM's published versioning rules tell an application to list them all at that exact version. The versions published from the ORM repository (8.0.0-rc.1 to 8.0.0-rc.25) followed that rule. Continuing it means a user's upgrade moves this package with the others, and the version number tells them which release candidate it is for.

    The cost is that a fix cannot be published between two release candidates: 8.0.0-rc.26 can only be published once. From Prisma ORM 8.0 the versions become 8.0.1-ea.0, 8.0.1-ea.1 and so on, as planned. "ea" means Early Access, and 8.0 starts at 8.0.1 because the old 8.0.0-rc.N versions would sort above 8.0.0-ea.0.

    What changes

    1. The publish accepts 8.0.0-rc.26. The publish refuses a version that does not sort above every version on npm. The ORM repository also published 528 development builds of this package, such as 8.0.0-rc.9-dev.13. Under npm's ordering rules an identifier such as 9-dev sorts above any number, so builds like that one sort above 8.0.0-rc.26. The check now leaves development builds out of the order, and refuses a version that is already published.

    2. The version must equal the release candidate its peers name. scripts/check-manifests.mjs refuses 8.0.0-rc.27 with peers at 8.0.0-rc.26, because a user picks the version by its number.

    3. A nightly check says when a release is due. scripts/check-published-version.mjs runs as a third job of the nightly workflow compat-dev.yml. It reads three things from npm:

  • the extension's version under the latest tag;

  • the ORM's newest release;

  • the ORM release that prisma@latest is built on.
  • It fails when prisma@latest is built on an ORM release newer than every one the published extension accepts, because a release is then both needed and possible. A failure opens or updates an issue labelled compat-published. Today it passes: it compares 8.0.0-rc.25 from the ORM repository with prisma@latest, which is built on rc.25.

    4. The documents say all of this.

  • README.md and CHANGELOG.md tell users to list the extension at the same exact version as their other Prisma packages, and to stay on the last version that exists if their release candidate has none yet.

  • CONTRIBUTING.md explains how to choose the version, the steps of the first release, the third nightly run, and the npm commands that later deprecate the versions published from the ORM repository. The development builds need their own range there, for the ordering reason in point 1.

  • DEVELOPING.md records why.
  • Checked

  • Tests cover the version order, the version-equals-peers rule, and every case of the nightly check; the tests for the review fixes were written first and failed before the fix. The nightly check's registry reads are tested with a fake registry. All 220 script tests pass.

  • Against the real npm registry: the order check accepts 8.0.0-rc.26 and refuses 8.0.0-rc.25 as already published, and the nightly check passes.

  • pnpm lint, actionlint on compat-dev.yml, and the repository's checks of workflows, manifests and doc links pass.

  • Four rounds of design and code review. They found the version scheme, the missing prisma tool condition, the ordering refusal, and a rule that would have blocked ordinary pull requests. All findings are fixed.
  • The Prisma ORM repository's notes for the project that moved this extension are updated in prisma/orm#31311.

    Alternatives considered

  • Wait for Prisma ORM 8.0. No publish per release candidate, but ParadeDB users stay on rc.25 until 8.0.

  • Number the versions 8.0.1-ea.N from the start. A user could not tell from the number which release candidate a version is for, and the ORM's rules ask for one shared version before 8.0.

  • A peer range such as ^8.0.0-rc.26. Every other Prisma package pins release candidates exactly, so a range would let an application mix packages from different release candidates.

  • Publish under a separate npm tag, not latest. Before 8.0 the ORM's own release candidates are under latest, so this package matches them.

  • No nightly check. Someone would have to notice each new release candidate and each prisma release.
  • Agent: romeo-32

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: wmadden Review duration: 118m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.52) × (1 − Review Confidence (0.57)). 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.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    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.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #8"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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: 56.8% · Lower = rushed or shallow review
    56.8%
    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: 22.5% · Safe to merge
    22.5%