GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(prisma7): add side-by-side CLI wrapper by StevenMcClankerton · Pull Request #29949 · prisma/orm

Conversation

@StevenMcClankerton

@StevenMcClankerton StevenMcClankerton commented Aug 10, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

Overview

Add an unpublished prisma7 compatibility package that runs the exact matching Prisma 7 CLI alongside a direct Prisma dependency, without copying CLI implementation or assets. The wrapper's distinctive executable target lets the CLI derive its distribution identity from the invoked script while ordinary prisma invocations retain their existing default.

Changes

  • CLI identity and delegation: Derive the immutable distribution identity from the normalized process.argv[1] filename stem: exact prisma7 selects the compatibility identity and every other value defaults to prisma. The prisma7 wrapper forwards arguments and exit behavior to prisma/build/index.js through its declared dependency.
  • Wrapper package surfaces: Add the buildable prisma7 workspace package with the distinctive build/prisma7.js bin target, an exact same-version packed Prisma dependency, root type forwarding, and prisma7/config runtime/type forwarding. The package contains only wrapper outputs and remains private/unpublished.
  • End-to-end coverage: Add one client Docker E2E installed from the packed prisma7 and workspace dependency tarballs. It imports and typechecks prisma7/config, proves the CLI honors a non-default schema and output, runs prisma7 --version and prisma7 generate, then executes the generated client through a real SQLite write/read.

Why

Keeping prisma@7 as the sole implementation avoids divergent CLI behavior and duplicated engines while giving package managers a declared dependency edge to resolve. A real-tarball probe across npm, pnpm, Yarn node-modules/PnP, Bun, package scripts/exec, direct Node execution, and npm-global launches found either a prisma7 shim path or the prisma7.js target in process.argv[1]; normalizing that stem provides the same identity without package.json lookup or physical dependency-path parsing.

Only the exact prisma7 stem selects the compatibility identity. Custom renamed symlinks and programmatic require() callers default to prisma because they do not represent the supported binary-invocation contract. Windows execution remains unverified; the client E2E runs in the standard Linux Docker harness.

Scope

This slice intentionally does not yet provide exhaustive prisma7 branding across help, warnings, initialization, generated output, completion guidance, version/update handling, or update-prompt suppression. It also does not add release mirroring, publish ordering/recovery, release-channel policy, or the full cross-package-manager acceptance matrix; those belong to later slices. The artifact remains unpublished.

Summary by CodeRabbit

  • New Features
    • Added a Prisma 7 compatibility package with CLI, configuration, and type exports.
    • Added support for identifying Prisma and Prisma 7 CLI invocations.
    • Added Prisma 7 build and package configuration.
  • Tests
    • Added end-to-end compatibility coverage, including configuration validation, client generation, SQLite operations, and smoke testing.
    • Added support for packaging Prisma 7 in compatibility test environments.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@coderabbitai

coderabbitai Bot commented Aug 10, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

This change adds a private prisma7 package with CLI, module, and configuration entry points. It resolves CLI distribution identities from executable names and adds an end-to-end test that builds, generates, and exercises a SQLite-backed client.

Changes

Prisma 7 CLI wrapper

Layer / File(s) Summary
Distribution identity resolution
packages/cli/src/utils/cli-distribution-identity.ts
Adds immutable prisma and prisma7 identities. The resolver selects prisma7 only when the executable stem is prisma7.
Prisma 7 package runtime and build wiring
packages/prisma7/package.json, packages/prisma7/src/*, packages/prisma7/helpers/build.ts, packages/prisma7/tsconfig*.json, tsconfig.build.bundle.json, packages/prisma7/.gitignore
Adds package metadata, conditional exports, CLI and configuration entry points, bundled build targets, executable permissions, and TypeScript path configuration.
Prisma 7 end-to-end validation
packages/client/tests/e2e/_utils/run.ts, packages/client/tests/e2e/prisma7-compatibility/*
Adds tarball and Docker volume handling, configuration and schema fixtures, setup steps, and a SQLite smoke test for generated Prisma Client operations.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant E2ETest
  participant TemporaryProject
  participant Prisma7Wrapper
  participant GeneratedClient
  participant SQLite
  E2ETest->>TemporaryProject: create config, schema, and consumer files
  E2ETest->>TemporaryProject: type-check configuration
  E2ETest->>Prisma7Wrapper: run version and generation commands
  Prisma7Wrapper->>GeneratedClient: generate SQLite client
  E2ETest->>GeneratedClient: run smoke test
  GeneratedClient->>SQLite: create table, insert note, and read note
Loading

Possibly related PRs

  • prisma/prisma#29864: Adds related Prisma distribution identity and CLI facade support.

Suggested reviewers: wmadden, aqrln, tensordreams

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the Prisma 7 side-by-side CLI wrapper, which is the main change in the pull request.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch prisma7-side-by-side-wrapper

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

coderabbitai[bot]
coderabbitai Bot reviewed Aug 10, 2026
View reviewed changes

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

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.

Actionable comments posted: 4

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/cli/src/utils/cli-distribution-identity.ts`:
- Line 29: Update initializeCliDistributionIdentity’s existingIdentity handling
to avoid the bare production `as` cast from Reflect.get’s unknown result. Narrow
or validate the retrieved value before using it, and define the returned
identity object with `as const` while typing it as CliDistributionIdentity;
preserve the existing stored-identity behavior.

In `@packages/prisma7/package.json`:
- Around line 54-60: Update the scripts in package.json by adding a prepack
lifecycle entry that runs pnpm run build before packaging. Keep the existing
prepublishOnly behavior unchanged.

In `@packages/prisma7/src/forwarded-surface.typecheck.ts`:
- Around line 1-10: Extend the type assertions in _ForwardedSurface to import
the wrapper exports from ./index and ./config, then compare their types and
values against the corresponding prisma and prisma/config surfaces. Ensure
missing or mismatched forwarding exports from the wrapper entry points cause the
typecheck to fail, while preserving the existing upstream type comparisons.

In `@packages/prisma7/src/package-contract.test.ts`:
- Around line 237-252: Add a pnpm typecheck script that accepts the fixture file
argument and performs the same noEmit Node16 module/moduleResolution checks.
Update the spawnSync invocation in the package contract test to run pnpm with
that script and pass consumer, removing the direct
require.resolve('typescript/bin/tsc') usage while preserving the fixture working
directory and output handling.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 51b76873-aa84-49ce-9f65-0dff04a0babe

📥 Commits

Reviewing files that changed from the base of the PR and between 668b2dd and 92e784d.

⛔ Files ignored due to path filters (9)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
  • projects/prisma7-compatibility-cli/plan.md is excluded by !projects/**
  • projects/prisma7-compatibility-cli/reviews/code-review.md is excluded by !projects/**
  • projects/prisma7-compatibility-cli/rollups/2026-08-10-opening-rollup.md is excluded by !projects/**
  • projects/prisma7-compatibility-cli/slices/side-by-side-wrapper/plan.md is excluded by !projects/**
  • projects/prisma7-compatibility-cli/slices/side-by-side-wrapper/pr-description.md is excluded by !projects/**
  • projects/prisma7-compatibility-cli/slices/side-by-side-wrapper/spec.md is excluded by !projects/**
  • projects/prisma7-compatibility-cli/slices/side-by-side-wrapper/walkthrough.md is excluded by !projects/**
  • projects/prisma7-compatibility-cli/spec.md is excluded by !projects/**
📒 Files selected for processing (18)
  • .github/workflows/test-template.yml
  • packages/cli/src/bin-dispatcher.ts
  • packages/cli/src/bin-dispatcher.vitest.ts
  • packages/cli/src/utils/cli-distribution-identity.ts
  • packages/cli/src/utils/cli-distribution-identity.vitest.ts
  • packages/prisma7/.gitignore
  • packages/prisma7/helpers/build.ts
  • packages/prisma7/package.json
  • packages/prisma7/src/bin.ts
  • packages/prisma7/src/config.ts
  • packages/prisma7/src/delegate-to-prisma-cli.test.ts
  • packages/prisma7/src/delegate-to-prisma-cli.ts
  • packages/prisma7/src/forwarded-surface.typecheck.ts
  • packages/prisma7/src/index.ts
  • packages/prisma7/src/package-contract.test.ts
  • packages/prisma7/tsconfig.build.json
  • packages/prisma7/tsconfig.json
  • tsconfig.build.bundle.json

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread packages/cli/src/utils/cli-distribution-identity.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/prisma7/package.json Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/prisma7/src/forwarded-surface.typecheck.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/prisma7/src/package-contract.test.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

SevInf
SevInf reviewed Aug 10, 2026
View reviewed changes
Comment thread packages/cli/src/utils/cli-distribution-identity.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

coderabbitai[bot]
coderabbitai Bot reviewed Aug 10, 2026
View reviewed changes

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/prisma7/helpers/build.ts`:
- Around line 9-14: Update the build.onEnd callback to accept the build result
and return immediately when result.errors.length is greater than zero, before
calling fs.statSync. Preserve the existing permission update for successful
builds where build/prisma7.js exists.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: efbd8baa-0a6f-4036-b4f6-9be3976618bf

📥 Commits

Reviewing files that changed from the base of the PR and between 92e784d and fa96866.

⛔ Files ignored due to path filters (6)
  • projects/prisma7-compatibility-cli/design-decisions.md is excluded by !projects/**
  • projects/prisma7-compatibility-cli/reviews/code-review.md is excluded by !projects/**
  • projects/prisma7-compatibility-cli/slices/side-by-side-wrapper/plan.md is excluded by !projects/**
  • projects/prisma7-compatibility-cli/slices/side-by-side-wrapper/pr-description.md is excluded by !projects/**
  • projects/prisma7-compatibility-cli/slices/side-by-side-wrapper/spec.md is excluded by !projects/**
  • projects/prisma7-compatibility-cli/slices/side-by-side-wrapper/walkthrough.md is excluded by !projects/**
📒 Files selected for processing (8)
  • packages/cli/src/bin-dispatcher.vitest.ts
  • packages/cli/src/utils/cli-distribution-identity.ts
  • packages/cli/src/utils/cli-distribution-identity.vitest.ts
  • packages/prisma7/helpers/build.ts
  • packages/prisma7/package.json
  • packages/prisma7/src/delegate-to-prisma-cli.test.ts
  • packages/prisma7/src/delegate-to-prisma-cli.ts
  • packages/prisma7/src/package-contract.test.ts
💤 Files with no reviewable changes (1)
  • packages/prisma7/src/delegate-to-prisma-cli.ts

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread packages/prisma7/helpers/build.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

coderabbitai[bot]
coderabbitai Bot reviewed Aug 10, 2026
View reviewed changes

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/prisma7/src/e2e.test.ts`:
- Around line 24-28: Update the run function’s spawnSync options to include a
finite timeout for child processes, ensuring hung Prisma, TypeScript, or tsx
commands fail the test instead of blocking the Vitest worker. Preserve the
existing cwd and utf8 encoding behavior.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 5036143c-9d38-408f-9699-db3b3f3f96ed

📥 Commits

Reviewing files that changed from the base of the PR and between 2befee7 and 1c9d274.

⛔ Files ignored due to path filters (5)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
  • projects/prisma7-compatibility-cli/reviews/code-review.md is excluded by !projects/**
  • projects/prisma7-compatibility-cli/slices/side-by-side-wrapper/plan.md is excluded by !projects/**
  • projects/prisma7-compatibility-cli/slices/side-by-side-wrapper/pr-description.md is excluded by !projects/**
  • projects/prisma7-compatibility-cli/slices/side-by-side-wrapper/walkthrough.md is excluded by !projects/**
📒 Files selected for processing (2)
  • packages/prisma7/package.json
  • packages/prisma7/src/e2e.test.ts

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread packages/prisma7/src/e2e.test.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

SevInf
SevInf reviewed Aug 10, 2026
View reviewed changes
Comment thread packages/client/tests/e2e/prisma7-compatibility/smoke.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

coderabbitai[bot]
coderabbitai Bot reviewed Aug 10, 2026
View reviewed changes

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

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.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/client/tests/e2e/prisma7-compatibility/package.json`:
- Line 5: Update packages/client/tests/e2e/prisma7-compatibility/package.json at
lines 5 and 12-15 to define local scripts for TypeScript checking and the smoke
test, using “tsc --noEmit” and “tsx smoke.ts”. Update _steps.ts at lines 8 and
13-14 to invoke those package scripts instead of directly calling pnpm exec tsc
or a local tsx command.

In `@packages/client/tests/e2e/prisma7-compatibility/smoke.ts`:
- Around line 13-16: Reset the SQLite Note fixture before creating the table in
the smoke test, such as dropping the existing Note table before CREATE TABLE.
Capture the result of client.note.create and use its returned record for the
assertion instead of querying findUniqueOrThrow with hard-coded id 1.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 3c74f25c-9c8c-4b4f-b646-54809ec625ef

📥 Commits

Reviewing files that changed from the base of the PR and between 1c9d274 and befb69e.

⛔ Files ignored due to path filters (6)
  • packages/client/tests/e2e/prisma7-compatibility/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
  • projects/prisma7-compatibility-cli/reviews/code-review.md is excluded by !projects/**
  • projects/prisma7-compatibility-cli/slices/side-by-side-wrapper/plan.md is excluded by !projects/**
  • projects/prisma7-compatibility-cli/slices/side-by-side-wrapper/pr-description.md is excluded by !projects/**
  • projects/prisma7-compatibility-cli/slices/side-by-side-wrapper/walkthrough.md is excluded by !projects/**
📒 Files selected for processing (10)
  • packages/client/tests/e2e/_utils/run.ts
  • packages/client/tests/e2e/prisma7-compatibility/.gitignore
  • packages/client/tests/e2e/prisma7-compatibility/_steps.ts
  • packages/client/tests/e2e/prisma7-compatibility/config-consumer.ts
  • packages/client/tests/e2e/prisma7-compatibility/package.json
  • packages/client/tests/e2e/prisma7-compatibility/prisma.config.ts
  • packages/client/tests/e2e/prisma7-compatibility/project-models/non-default.prisma
  • packages/client/tests/e2e/prisma7-compatibility/smoke.ts
  • packages/client/tests/e2e/prisma7-compatibility/tsconfig.json
  • packages/prisma7/package.json
💤 Files with no reviewable changes (1)
  • packages/prisma7/package.json

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread packages/client/tests/e2e/prisma7-compatibility/package.json Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/client/tests/e2e/prisma7-compatibility/smoke.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

SevInf
SevInf approved these changes Aug 10, 2026
View reviewed changes
@SevInf
SevInf enabled auto-merge (squash) August 10, 2026 14:36
SevInf added 18 commits August 11, 2026 08:11
@SevInf
feat(cli): add prisma7 compatibility wrapper
95e97a8
@SevInf
fix(cli): preserve distribution identity initialization
6e9930e
@SevInf
feat(prisma7): forward Prisma package surfaces
62f32b5
@SevInf
docs(project): record prisma7 wrapper slice
0eb3445
@SevInf
docs(project): add prisma7 wrapper PR materials
2e871b2
@SevInf
refactor(cli): infer prisma7 identity from executable
cde2d1b
@SevInf
docs(project): record argv identity decision
ed0dbe0
@SevInf
refactor(prisma7): inline CLI delegation
82069bc
@SevInf
docs(project): record inline wrapper delegation
0bf6c64
@SevInf
test(prisma7): remove redundant forwarding typecheck
f534ebd
@SevInf
docs(project): remove stale forwarding test link
3568740
@SevInf
test(prisma7): cover wrapper with one real project
ddc75db
@SevInf
test(prisma7): make end-to-end fixture reliable
67b0eef
@SevInf
docs(project): record single prisma7 end-to-end test
badef30
@SevInf
test(client): cover prisma7 compatibility in e2e
9b0e88e
@SevInf
docs(project): record prisma7 client e2e
63f077e
@SevInf
fix(prisma7): address compatibility CLI review feedback
b022088
@SevInf
docs(project): record prisma7 review fixes
f730e97
@SevInf
SevInf force-pushed the prisma7-side-by-side-wrapper branch from 2c0a023 to f730e97 Compare August 11, 2026 08:11
@SevInf
SevInf merged commit 179ba0c into v7 Aug 11, 2026
7 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@SevInf
SevInf deleted the prisma7-side-by-side-wrapper branch August 11, 2026 08:11
@github-actions

github-actions Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
packages/client/runtime/index-browser.js 2.29 KB (0%)
packages/client/runtime/index-browser.d.ts 3.37 KB (0%)
packages/cli/build/index.js 110 B (0%)
packages/client/prisma-client-0.0.0.tgz 25.59 MB (0%)
packages/cli/prisma-0.0.0.tgz 13.51 MB (0%)
packages/bundle-size/da-workers-libsql/output.tgz 1.28 MB (0%)
packages/bundle-size/da-workers-neon/output.tgz 1.35 MB (0%)
packages/bundle-size/da-workers-pg/output.tgz 1.34 MB (0%)
packages/bundle-size/da-workers-planetscale/output.tgz 1.28 MB (0%)
packages/bundle-size/da-workers-d1/output.tgz 1.26 MB (0%)
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Aug 11, 2026
Complete CLI-owned prisma7 distribution identity #29969
Merged
Complete downstream actionable Prisma 7 guidance propagation #29994
Merged
The publish path gains three conformance checks: packed imports, a validator that never throws, and a tarball that installs #29998
Merged
@StevenMcClankerton StevenMcClankerton mentioned this pull request Aug 12, 2026
Add prisma7 README and remove completed project artifacts #30001
Open
This was referenced Aug 12, 2026
Rename prisma7 package to @prisma/prisma7 #30002
Merged
Teach Prisma 7 to prefer versioned config files #30020
Merged
OIRNOIR pushed a commit to OIRNOIR/YouTube-Helper-Server that referenced this pull request Sep 1, 2026
Renovate Bot git.oirnoir.dev Instance
Update prisma monorepo to v7.10.0 (#41)
bdb1583
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@prisma/adapter-pg](https://github.com/prisma/prisma) ([source](https://github.com/prisma/prisma/tree/HEAD/packages/adapter-pg)) | imports | minor | [`7.9.1` -> `7.10.0`](https://renovatebot.com/diffs/npm/@prisma%2fadapter-pg/7.9.1/7.10.0) |
| [@prisma/client](https://www.prisma.io) ([source](https://github.com/prisma/prisma/tree/HEAD/packages/client)) | imports | minor | [`7.9.1` -> `7.10.0`](https://renovatebot.com/diffs/npm/@prisma%2fclient/7.9.1/7.10.0) |

---

### Release Notes

<details>
<summary>prisma/prisma (@&#8203;prisma/adapter-pg)</summary>

### [`v7.10.0`](https://github.com/prisma/orm/releases/tag/7.10.0)

[Compare Source](prisma/orm@7.9.1...7.10.0)

##### Prisma ORM 7.10.0

Prisma ORM 7.10.0 introduces a compatibility package for running Prisma 7 alongside newer Prisma versions, secures Prisma Studio's local server, and includes fixes across Prisma Client and the PostgreSQL, MariaDB, Neon, SQLite, and Prisma Postgres Serverless adapters.

##### Highlights

##### Run Prisma 7 alongside Prisma 8

This release introduces `@prisma/prisma7`, a compatibility package that lets you retain a matching Prisma 7 CLI and configuration while installing Prisma 8 in the same project.

Once 7.10.0 is released, a side-by-side installation can use:

```sh
npm install --save-dev prisma@8 @prisma/[email protected]
npm install @prisma/[email protected]
```

Use `prisma` for the directly installed Prisma 8 CLI and `prisma7` for Prisma 7:

```sh
npx prisma --version
npx prisma7 --version

npx prisma7 generate
npx prisma7 migrate dev
npx prisma7 db push
```

Prisma 7 now prefers version-specific configuration files, allowing its configuration to coexist with Prisma 8's `prisma.config.*` files:

```ts
// prisma7.config.ts
import { defineConfig } from '@prisma/prisma7/config'

export default defineConfig({
  schema: 'prisma/schema.prisma',
  migrations: {
    path: 'prisma/migrations',
  },
})
```

Without an explicit `--config` option, Prisma 7 searches for:

1. Root-level `prisma7.config.*` files.
2. `.config/prisma7.*` files.
3. Existing `prisma.config.*` files as a backwards-compatible fallback.

The supported extensions are `.js`, `.ts`, `.mjs`, `.cjs`, `.mts`, and `.cts`. An explicit config path always takes precedence:

```sh
npx prisma7 generate --config ./custom/prisma7.config.ts
```

New projects initialized by the Prisma 7 CLI use `prisma7.config.ts`. Existing projects containing only `prisma.config.*` continue to work without migration or additional warnings. If a `prisma7.config.*` file exists but cannot be loaded, Prisma reports the error rather than silently falling back to another configuration.

The `prisma7` identity is carried through CLI help, version output, shell completion, initialization, migration, database, and generation guidance. Stable Prisma concepts such as `schema.prisma`, Prisma Migrate, `@prisma/client`, and `PRISMA_*` environment variables remain unchanged.

Together, the separate executable and configuration namespace make it possible to operate Prisma 7 and Prisma 8 side by side without command or config-file collisions.

[#&#8203;29949](prisma/orm#29949), [#&#8203;29969](prisma/orm#29969), [#&#8203;29994](prisma/orm#29994), [#&#8203;30000](prisma/orm#30000), [#&#8203;30002](prisma/orm#30002), [#&#8203;30020](prisma/orm#30020)

##### Prisma Studio security hardening

Prisma Studio's local HTTP server now:

- Binds explicitly to `127.0.0.1` instead of all network interfaces.
- Rejects browser requests from origins other than the active `localhost` or `127.0.0.1` Studio URL.
- No longer returns wildcard CORS headers.
- Applies the same protections across Node.js, Bun, and Deno.

This prevents network clients or malicious websites from accessing Studio's database endpoints while Studio is running.

[#&#8203;29890](prisma/orm#29890)

##### Prisma Client

- Fixed `P2002` errors from nested writes so `meta.modelName` identifies the model where the unique constraint violation occurred, including models using `@@map` and `@@schema`. [#&#8203;29628](prisma/orm#29628)
- Fixed automatically batched `findUniqueOrThrow()` calls so every missing record rejects with `P2025`; later misses no longer resolve to `undefined`. [#&#8203;29654](prisma/orm#29654)
- Parameter-chunked statements are now executed atomically in a transaction and rolled back if a later chunk fails. [#&#8203;29771](prisma/orm#29771)
- Improved interactive transaction cleanup during `$disconnect()`, including transactions whose driver-level startup is still in progress. [#&#8203;28768](prisma/orm#28768)
- Prevented transaction cleanup failures after a timeout or backend termination from becoming unhandled promise rejections. [#&#8203;29611](prisma/orm#29611)
- Fixed fluent relation queries when relation fields are literally named `select` or `include`. [#&#8203;29683](prisma/orm#29683)
- Fixed handling of `Date` and `Uint8Array` values created in other JavaScript realms, such as iframes, jsdom, and Node.js `vm` contexts. [#&#8203;29177](prisma/orm#29177)
- Invalid `Date` values passed to `$queryRaw` or `$executeRaw` now throw `PrismaClientValidationError` instead of a generic error. [#&#8203;29718](prisma/orm#29718)
- Fixed `moduleFormat` inference for the `prisma-client` generator in TypeScript projects using `module: "node16"` or `"nodenext"`. Generated output now follows the nearest `package.json` `type`, defaulting to CommonJS when absent. [#&#8203;29712](prisma/orm#29712)
- Deserialized `Bytes` values now own standalone `ArrayBuffer`s rather than exposing unrelated contents from Node.js's shared `Buffer` pool. This applies to both regular and raw query results. [#&#8203;29701](prisma/orm#29701)
- Fixed an incorrect logging context in the remote executor, including Accelerate-backed query execution. [#&#8203;28892](prisma/orm#28892)

##### Client extensions and observability

- Result-extension `compute` callbacks now receive the current model name as a typed second argument:

  ```ts
  compute(data, modelName) {
    // ...
  }
  ```

  The model name is also preserved when multiple extensions compose the same computed field. [#&#8203;29782](prisma/orm#29782)

- Improved OpenTelemetry context for remotely executed queries:

  - `$on('query')` callbacks run within the matching `db_query` span.
  - Events from one operation share the same trace.
  - Error events are recorded as span exceptions.
  - Log events continue to be emitted when tracing is disabled or their reported span is unavailable.

  [#&#8203;28892](prisma/orm#28892)

##### Driver adapters

##### MariaDB

- `@prisma/adapter-mariadb` now accepts an existing `mariadb` pool. External pools remain caller-owned unless `disposeExternalPool: true` is supplied. [#&#8203;27992](prisma/orm#27992)
- Fixed pooled connection leaks during commit, rollback, and failed transaction startup. Connections are now returned with `release()` and transaction-specific listeners are removed before reuse. [#&#8203;29612](prisma/orm#29612)
- Added support for bracketed IPv6 addresses in both `mysql://` and `mariadb://` connection strings. [#&#8203;29026](prisma/orm#29026)
- Prevented malformed connection strings from exposing embedded passwords in retained debug output and diagnostic reports. [#&#8203;27992](prisma/orm#27992)

##### PostgreSQL, Neon, and Prisma Postgres Serverless

- PostgreSQL deadlocks using SQLSTATE `40P01` are now reported as `P2034` transaction write conflicts. [#&#8203;29717](prisma/orm#29717)
- PostgreSQL `RESTRICT` violations using SQLSTATE `23001` are now reported as `P2003`, preserving an available field or constraint name. [#&#8203;29554](prisma/orm#29554)
- `@prisma/adapter-pg` now preserves database constraint names when reporting unique constraint violations through `P2002`. [#&#8203;29587](prisma/orm#29587)
- Prisma Postgres Serverless now prefers the named constraint for `P2002`, falling back to parsed field names when no constraint name is available. [#&#8203;29801](prisma/orm#29801)
- Fixed Neon HTTP adapter serialization for typed parameters such as `Bytes` and `DateTime`. [#&#8203;29747](prisma/orm#29747)

##### SQLite

- `@prisma/adapter-better-sqlite3` now converts previously unhandled SQLite result codes into typed database errors instead of exposing raw driver errors.
- The complete `SQLITE_BUSY` family is now mapped to socket timeout errors, with numeric extended result codes preserved where available.

[#&#8203;29794](prisma/orm#29794)

##### CLI and Migrate

- `prisma generate` can now offer to install Prisma's agent skills. The opt-in prompt:

  - Is shown at most once per machine.
  - Is skipped in CI, containers, Git hooks, npm lifecycle scripts, and watch mode.
  - Is skipped when `--no-hints` is used or Prisma skills are already installed.
  - Times out after 30 seconds.
  - Never causes generation to fail if installation is unsuccessful.

  [#&#8203;29690](prisma/orm#29690)

- A globally installed CLI now warns during `prisma generate` when its version differs from the project's local `prisma` or `@prisma/client`, and recommends running the local CLI. The check is best-effort and does not fail generation. [#&#8203;29593](prisma/orm#29593)

- `prisma version` and `prisma version --json` now include the resolved Prisma CLI package path, making global-versus-local installation issues easier to diagnose. [#&#8203;29573](prisma/orm#29573)

- Empty or generator-only schema files now report `Schema must contain a datasource block` from `db pull`, `db push`, and `migrate dev`, rather than reaching the schema engine and potentially producing inconsistent errors. [#&#8203;29657](prisma/orm#29657)

- CLI commands now tolerate corrupt, unreadable, or unwritable command-state files. Invalid state is reinitialized, writes are atomic, and persistence failures fall back to in-memory state. [#&#8203;29609](prisma/orm#29609)

- Studio now recognizes semicolon-delimited `sqlserver://` connection strings before reporting the existing explicit message that SQL Server is not supported by Studio. [#&#8203;29623](prisma/orm#29623)

- The AI-agent safety checkpoint now also covers interactive `prisma db push` confirmations involving data-loss warnings, rather than only invocations using `--accept-data-loss`. [#&#8203;29793](prisma/orm#29793)

##### Performance and reliability

- Optimized query-plan execution by eagerly evaluating plans with one unconditional database operation and synchronously interpreting the remaining pure plan. Cached plans remain immutable. [#&#8203;29004](prisma/orm#29004)
- Prevented call-stack overflows when rendering very large parameter lists or combining chunked results containing hundreds of thousands of rows. [#&#8203;29751](prisma/orm#29751)
- Reduced ordinary query setup overhead by constructing fluent-relation field maps lazily and in linear time. Non-fluent queries no longer build this map. [#&#8203;29752](prisma/orm#29752)

##### Dependencies

- Updated the transitive `fast-uri` dependency to a patched release addressing production audit advisories affecting versions through `3.1.3`. [#&#8203;29758](prisma/orm#29758)

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4zMC4zIiwidXBkYXRlZEluVmVyIjoiNDQuMzAuMyIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Reviewed-on: https://git.oirnoir.dev/OIRNOIR/YouTube-Helper-Server/pulls/41
@github-actions github-actions Bot mentioned this pull request Sep 8, 2026
chore(deps): update dependency prisma to v7.10.0 victoraugustoas/finance-manager#125
Merged
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@coderabbitai coderabbitai[bot] coderabbitai[bot] left review comments
@SevInf SevInf SevInf approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@StevenMcClankerton @SevInf
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.