Repository navigation
Comparing changes
Open a pull request
base repository: prisma/orm
base: 7.10.0
head repository: prisma/orm
compare: 7.10.1
- 8 commits
- 60 files changed
- 7 contributors
Commits on Aug 27, 2026
-
chore: update npm provenance repository (#30146)
## Summary - update package repository metadata from `prisma/prisma` to `prisma/orm` - keep npm provenance metadata aligned with the renamed GitHub repository on the `v7` release line ## Validation - verified no package manifests reference `https://github.com/prisma/prisma.git` - parsed all 173 package manifests as JSON - `git diff --check` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated repository links across Prisma packages to point to the new ORM repository. * No functional behavior or public APIs changed. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Steven McClankerton <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 312e543 - Browse repository at this point
Copy the full SHA 312e543View commit details
Commits on Sep 1, 2026
-
ci: update github.repository checks for the rename to prisma/orm (#30180
) ## Summary The repository was renamed from prisma/prisma to prisma/orm, so `github.repository == 'prisma/prisma'` is now always false. Two things have been silently skipped on this branch since the rename: - the eight BuildPulse upload steps in `.github/workflows/test-template.yml` - the benchmark job in `.github/workflows/benchmark.yml` This PR updates those guards to `'prisma/orm'`. The guards keep their purpose: forks still see a different `github.repository`, so they still skip these steps. Also updated, cosmetic only: the Slack release titles in `publish.yml` and one comment in `v7-update-engines-version.yml`. ## Testing performed - `grep -rP "prisma/prisma(?![-_A-Za-z])" .github/workflows/` finds no remaining bare references. `@prisma/prisma-schema-wasm` and `prisma/prisma-engines` references are intentionally untouched. - The diff changes only string literals inside existing expressions and one comment; no YAML structure changed. ## Related PRs Companion rename fixes: #30179 (`main` publish notification), prisma/engines-wrapper#539 (workflow dispatch target), prisma/prisma-engines#5859 (Makefile clone URL). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Updated automated workflows to reference the current repository. - Benchmarking and build metrics uploads now run under the correct repository context. - Release notifications now identify the correct repository. - Updated integration-testing workflow documentation to reflect the current repository. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Oleksii Orlenko <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9028ed8 - Browse repository at this point
Copy the full SHA 9028ed8View commit details -
test(e2e): run prisma init from the local tarball in the corepack test (
#30183) ## Summary The `prisma-init-corepack` e2e test fails on every CI run (for example, [this shard on #30180](https://github.com/prisma/orm/actions/runs/33404519109/job/99528741843), and the same shard on the `v7` tip's own CI run from 2026-08-27, before that PR existed). Cause: the test runs `pnpm dlx prisma init`. `dlx` ignores the locally installed package and fetches `prisma@latest` from the registry — and `latest` is Prisma 8 (`8.0.0-rc.12` today; Prisma 7 moved to the `prev` dist-tag). The v8 CLI rejects the fixture's Prisma 7 `prisma.config.ts` with `CLI.CONFIG_MISSING_MARKER`. The test was green on 2026-08-17 and red by 2026-08-27, matching the dist-tag transition, and can never be green again in this form. Fix: run `pnpm exec prisma init` instead. The fixture already installs the `prisma` tarball under test as a devDependency, so `exec` makes the test hermetic and exercises the v7 CLI this branch builds. This matches the sibling `prisma-init-bun` test, which also runs the locally installed CLI. The corepack regression coverage this test exists for (#28504) is unchanged: `prisma init` still executes in a `corepack enable`d container through a corepack-managed pnpm (`packageManager: [email protected]`). ## Testing performed - Read the failing job log: the error envelope comes from the v8 CLI (`CLI.CONFIG_MISSING_MARKER`, "most likely a Prisma 7 config"), immediately after `dlx` downloads `prisma` from the registry. - Verified registry state: `prisma` dist-tags are `latest: 8.0.0-rc.12`, `prev: 7.10.0`. - The e2e shard on this PR's CI is the verification that the test passes again. ## Related PRs - #30180 (v7 `github.repository` guards) — its failing e2e check is this same pre-existing test failure, plus a `pnpm audit` Lint failure that is advisory-driven and unrelated. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Tests** * Updated the Prisma initialization end-to-end test to run the locally installed Prisma package. * Improved test reliability by avoiding unexpected package retrieval during setup. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Oleksii Orlenko <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9cb9c08 - Browse repository at this point
Copy the full SHA 9cb9c08View commit details -
chore(deps): bump deepmerge-ts and mariadb past audited vulnerabiliti…
…es (#30189) ## Summary `pnpm audit --prod` (the "Run pnpm audit (production dependencies only)" step of the Lint job) fails on every PR to this branch with four advisories: - `deepmerge-ts` < 8.0.0 — stack exhaustion on recursive object graphs ([GHSA-ggr8-5vv4-36mx](GHSA-ggr8-5vv4-36mx)), high - `mariadb` >= 3.4.0 < 3.4.6 — cleartext password leak to a MitM despite `ssl: true` ([GHSA-cqhc-2h57-wpxf](GHSA-cqhc-2h57-wpxf), high), cleartext transmission of sensitive information ([GHSA-42r5-vhpq-m858](GHSA-42r5-vhpq-m858), moderate), and possible SQL injection in Buffer parameter escaping under multibyte client charsets ([GHSA-g5xc-5w98-jfvm](GHSA-g5xc-5w98-jfvm), moderate) This PR bumps: - `deepmerge-ts` 7.1.5 → 8.0.2 in `packages/config`. The v8 breaking changes are Map deep-merging and a `deepmergeInto` mutation fix; `@prisma/config` uses neither — it only calls the basic `deepmerge` export on plain config objects (`loadConfigFromFile.ts`). v8 still ships dual CJS/ESM. - `mariadb` 3.4.5 → 3.5.3 in `packages/adapter-mariadb`. The advisories say "patched >= 3.4.6", but npm has no 3.4.6 — the 3.4.x line ends at 3.4.5; 3.5.3 is the current release satisfying the range. Lockfile updated with the repo-pinned pnpm 11.13.1. ## Testing performed - `pnpm audit --prod` against the updated lockfile: "No known vulnerabilities found". - `pnpm --filter @prisma/config test`: 4 files, 142 passed, 2 skipped — includes the config-merge tests that exercise `deepmerge`. - `pnpm --filter @prisma/adapter-mariadb test`: 45 passed. ## Notes for the reviewer - After this merges, the Lint job on this branch should go fully green again (its other failure mode, prettier-check, is unaffected here). - Related branch-health PRs: #30180 (rename guards), #30183 (corepack e2e test). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated the MariaDB integration dependency to a newer version. * Updated the configuration merge dependency to a newer version. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Oleksii Orlenko <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 93118fd - Browse repository at this point
Copy the full SHA 93118fdView commit details -
chore(deps): update engines to 8.1.0-1.d1b3f377ca835d73fd50954a5e2212…
…8b9ebdd6b8 (#30188) The base branch for this PR is: v7 This automatic PR updates the engines to version `8.1.0-1.d1b3f377ca835d73fd50954a5e22128b9ebdd6b8`. This will get automatically merged if all the tests pass. :warning: If this PR needs to be updated, first remove the `automerge` label before pushing to avoid automerge to merge without waiting for tests. ## Packages | Package | NPM URL | |---------|---------| |`@prisma/engines-version`| https://npmjs.com/package/@prisma/engines-version/v/8.1.0-1.d1b3f377ca835d73fd50954a5e22128b9ebdd6b8| |`@prisma/prisma-schema-wasm`| https://npmjs.com/package/@prisma/prisma-schema-wasm/v/8.1.0-1.d1b3f377ca835d73fd50954a5e22128b9ebdd6b8| |`@prisma/query-compiler-wasm`| https://npmjs.com/package/@prisma/query-compiler-wasm/v/8.1.0-1.d1b3f377ca835d73fd50954a5e22128b9ebdd6b8| |`@prisma/schema-engine-wasm`| https://npmjs.com/package/@prisma/schema-engine-wasm/v/8.1.0-1.d1b3f377ca835d73fd50954a5e22128b9ebdd6b8| ## Engines commit [`prisma/prisma-engines@d1b3f377ca835d73fd50954a5e22128b9ebdd6b8`](prisma/prisma-engines@d1b3f37) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Maintenance** * Updated internal engine, schema, and query compiler components to the latest 8.1.0 release versions. * Aligned client generation, migration, schema loading, and engine tooling with the updated components. * Added the new component versions to the approved release configuration. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Configuration menu - View commit details
-
Copy full SHA for 3dcc5b3 - Browse repository at this point
Copy the full SHA 3dcc5b3View commit details
Commits on Sep 16, 2026
-
chore(deps): bump mysql2 and fast-uri past audited vulnerabilities (#…
…30314) ## Summary `npm audit` on `[email protected]` reports high-severity findings in dependencies that Prisma pins (#30295). The `deepmerge-ts` finding is already fixed on this branch by #30189 but is unreleased. This PR fixes the rest: - **`mysql2` 3.15.3 → 3.24.4** in `packages/cli`. Prisma Studio's MySQL connection is its only consumer. - [GHSA-3f6p-5ww8-9rcr](GHSA-3f6p-5ww8-9rcr) (high): a server can downgrade authentication to `mysql_clear_password` and read the password in plaintext. Fixed in 3.22.0. - [GHSA-rgwj-5xj2-c3m3](GHSA-rgwj-5xj2-c3m3) (moderate): unbounded zlib inflate in the compressed protocol handler. Fixed in 3.23.1. - **`fast-uri` override floor 3.1.5 → 3.1.6** in `pnpm-workspace.yaml`. Four `fast-uri` advisories reach the lockfile through `@prisma/dev` → `@prisma/streams-local` → `ajv`, and they fail the `pnpm audit --prod` step on every PR to `v7`. Users are not affected, because a fresh install already resolves `fast-uri` to 3.1.8. The lockfile diff is limited to `mysql2`, its dependencies, and `fast-uri`. ## Behavior changes for Studio users - **Cleartext authentication is off by default.** `mysql2` 3.22.0 stops accepting a server's request for `mysql_clear_password`. That is the fix for the high-severity advisory. Servers that require it, such as AWS RDS IAM authentication, now need `?enableCleartextPlugin=true` on the URL. `normalizeMySQLConnectionString` keeps that parameter, and `mysql2` parses it to `true`. - **`@types/node` becomes a peer dependency of `prisma`'s dependency tree.** Starting with 3.18.0, `mysql2` declares `@types/node: ">= 8"` as a required peer dependency, and no fixed version drops it. npm 7+ and pnpm install required peers automatically, so projects without `@types/node` will get it after upgrading. It is types only. If that is unwanted, the alternative is to move `mysql2` to `devDependencies` so the CLI build bundles it, which is a larger change to the bundle. ## Testing performed - `pnpm audit --prod`: before, 6 findings (2 `mysql2`, 4 `fast-uri`). After, "No known vulnerabilities found". - `vitest run src/__tests__/Studio.vitest.ts` in `packages/cli`: 31 passed. These tests mock `mysql2`, so they don't exercise the new version. - `pnpm run tsc` in `packages/cli`: passes. - Manual check against MySQL 9.0 in Docker. I built the CLI, ran `prisma studio --url "mysql://…?connection_limit=2"`, and confirmed from `packages/cli` that `mysql2` resolves to 3.24.4. I then posted to Studio's `/bff` endpoint: - a plain `SELECT` with a `json-parse` transformation, which returned the rows with parsed JSON - a parameterized `SELECT`, which returned the matching row - a `transaction` that inserts a value containing a single quote and reads it back, which round-tripped the value - a query against a missing table, which returned `ER_NO_SUCH_TABLE` as a serialized error ## Release Users only get these fixes, and the `deepmerge-ts` fix from #30189, from a new `7.x` release. Merging into `v7` does not close #30295 or #30052, so close them when that release ships. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated the MySQL client dependency used by the CLI. * Updated the fast-uri version override to require a newer compatible release. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9afb1a4 - Browse repository at this point
Copy the full SHA 9afb1a4View commit details
Commits on Oct 9, 2026
-
fix(v7): repair CI on every v7 pull request, and update mariadb to 3.…
…5.4 with its IPv6 parsing change (#30668) Every pull request to `v7` currently fails CI, whatever it changes. Here is what [#30368](#30368), a one-line client fix, gets today: ``` Lint pnpm audit --prod -> 7 vulnerabilities found (5 high, 2 moderate) macOS (3 jobs) brew install mysql -> compiles MySQL 26.7.0 from source -> make: *** [all] Error 2 ``` This PR makes `v7` CI pass again in three ways: 1. It updates the two vulnerable dependencies that have patched releases: `mariadb` and `source-map-js`. 2. It tells `pnpm audit` to ignore two advisories, for `braces` and `sprintf-js`. These have no patched release, and Prisma can't be attacked through them. 3. It moves the macOS jobs from the deprecated `macos-14` runner to `macos-latest`. The `mariadb` update reaches users. `@prisma/adapter-mariadb` now depends on `mariadb` 3.5.4 instead of 3.5.3, and it stops rewriting IPv6 hosts in connection strings, because 3.5.4 accepts them as written. Without that second change, the update would break IPv6 connections. ## Why CI broke without a code change `v7` last passed CI on 16 September. Nothing in the repository broke it. Two things outside the repository changed after that date. ### New security advisories fail the audit step The Lint job ends with `pnpm audit --prod`. That step fails when any production dependency has a known advisory. Since 16 September, advisories were published against four packages in our lockfile: | Package | Reached through | Advisories | What this PR does | | --- | --- | --- | --- | | `mariadb` 3.5.3 | `@prisma/adapter-mariadb`, a direct dependency | 4 (3 high) | Bumps it to 3.5.4, a patch release with the fixes | | `source-map-js` 1.2.1 | `@prisma/config` > `c12` > `magicast` | 1 (high) | Adds a pnpm override that forces at least 1.2.2 | | `braces` 3.0.3 | `@prisma/client-generator-ts` > `fast-glob` > `micromatch` | [GHSA-vfj7-8cjw-p6xm](GHSA-vfj7-8cjw-p6xm) (high) | Ignores it | | `sprintf-js` 1.1.3 | `@prisma/adapter-mssql` > `mssql` > `tedious` | [GHSA-hp3w-g68c-fv3c](GHSA-hp3w-g68c-fv3c) (moderate) | Ignores it | The first two have fixes, so we take them. The overrides follow the same pattern as [#30314](#30314), the previous audit fix on `v7`. The last two can't be fixed by upgrading. Their advisories name 3.0.4 and 1.1.4 as the patched versions, but neither version exists on npm: 3.0.3 and 1.1.3 are the latest releases. Both advisories describe a crash that happens only when an attacker controls the input string, and in Prisma no attacker can: - The generator calls `fast-glob`, which uses `braces`, only with patterns built from the user's own output folder (`generateClient.ts`). - `tedious`, the SQL Server driver, calls `sprintf` only with its own fixed message templates, for debug output and error messages. So `pnpm-workspace.yaml` now lists both advisory IDs under `auditConfig.ignoreGhsas`, with this reason written next to them. Once fixed releases exist, the ignores can go. ### Updating `mariadb` needs a change to the adapter `mariadb` 3.5.3 parsed connection strings with a regular expression that rejected the colons in a bracketed IPv6 host such as `[::1]`. So `@prisma/adapter-mariadb` rewrote that host to a percent-encoded form, which the old parser decoded back into `::1` ([#29026](#29026)): ``` mariadb://user:pass@[::1]:3306/db -> mariadb://user:pass@%3A%3A1:3306/db ``` `mariadb` 3.5.4 parses connection strings with the standard `URL` parser instead, and it accepts `[::1]` as written. It no longer decodes the host, so the rewritten string made the driver look up a host literally named `%3A%3A1`. The adapter's IPv6 tests caught this. The adapter now passes the bracketed host through unchanged, and the tests check that the driver accepts it and connects to a server listening on `::1`. The release notes for 3.5.4 don't mention this parser change. Its other changes are security limits, such as the new `maxAllowedColumns` option, and bug fixes. ### Homebrew dropped macOS 14 The cross-platform test jobs run on Windows and macOS, and on macOS they install MySQL with `brew install mysql`. Homebrew no longer ships prebuilt packages for macOS 14, so that command now compiles MySQL from source, and the compile fails. GitHub has deprecated the `macos-14` runner as well. We pinned `macos-14` in [#22904](#22904) in March 2024, when it was the newest runner, and nobody moved the pin after that. This PR switches those jobs, and `build-engine-branch.yml`, to `macos-latest`, which is macOS 26 on Apple Silicon today. The same jobs already use `windows-latest`, and one other macOS job in `test-template.yml` already used `macos-latest`. ## How it was checked - `pnpm audit --prod` exits 0 locally. The lockfile diff touches only `mariadb`, `source-map-js` and `iconv-lite`, which `mariadb` 3.5.4 depends on. - The `@prisma/adapter-mariadb` unit tests pass locally, including the IPv6 test that connects to a server on `::1`. - ESLint and Prettier pass on every changed file. - The macOS change can only be checked by this PR's own CI run. Agent: nestor-69 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d329959 - Browse repository at this point
Copy the full SHA d329959View commit details -
fix(client): stop nested $transaction from mutating the caller's opti…
…ons object (#30368) ## Problem `_transactionWithCallback` writes `newTxId` into the `options` object the caller passed when the call is nested, then reads `newTxId` back off that same object on every call, top-level ones included. An application that keeps a shared options constant — `const TX_OPTIONS = { timeout: 30_000, maxWait: 10_000 }` — and passes it to a nested `tx.$transaction(cb, TX_OPTIONS)` once leaves that object permanently stamped with the outer transaction's id. Every later top-level `prisma.$transaction(cb, TX_OPTIONS)` in the process is then sent to the engine as a nested start against that id: it fails with P2028 if the outer transaction has committed, or silently opens as a savepoint inside another request's still-open transaction if it has not. ## Change The nested transaction id is no longer written into the caller's object. `optionsWithDefaults` derives `newTxId` from the itx scope context of the client the method was called on, so it is set only when the call is actually nested and a polluted options object can no longer make a root-client call join someone else's transaction. ## Tests Added `sql: nested transaction does not mutate the options object` to `packages/client/tests/functional/interactive-transactions`. It reuses one options object across a nested transaction and a later top-level one, asserting the object is unchanged and that both transactions committed. It fails on the current code (the object gains `newTxId`) and passes with the fix. The full `interactive-transactions` suite passes on sqlite/better-sqlite3 (38 tests), as do the other transaction suites (47) and `@prisma/client-engine-runtime` (234). Fixes #30367 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved nested transaction handling so shared transaction options remain unchanged. * Preserved reliable behavior for nested and top-level interactive transactions, including safe transaction identifier handling. * **Tests** * Added coverage confirming transaction options can be reused safely across nested and subsequent transactions. * Verified that multiple transactions using the same options complete successfully and preserve all expected data. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Lazizbek Ergashev <[email protected]> Co-authored-by: willbot <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 97ea359 - Browse repository at this point
Copy the full SHA 97ea359View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 7.10.0...7.10.1