@prisma/orm-mongo 8.0.1-dev.5 → 8.0.1-dev.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (215) hide show
  1. package/README.md +6 -5
  2. package/dist/bson.d.mts +2 -1
  3. package/dist/components__runtime.d.mts +3 -1
  4. package/dist/config.d.mts +2 -1
  5. package/dist/config.d.mts.map +1 -1
  6. package/dist/contract-builder.d.mts +11 -12
  7. package/dist/contract-builder.d.mts.map +1 -1
  8. package/dist/contract-types.d.mts +5 -3
  9. package/dist/contract__types.d.mts +3 -1
  10. package/dist/control.d.mts +2 -1
  11. package/dist/control.d.mts.map +1 -1
  12. package/dist/family-contract.d.mts +3 -1
  13. package/dist/family-runtime.d.mts +3 -1
  14. package/dist/family.d.mts +2 -1
  15. package/dist/family__control.d.mts +3 -1
  16. package/dist/init.d.mts +2 -1
  17. package/dist/init.d.mts.map +1 -1
  18. package/dist/migration-tools__aggregate.d.mts +3 -1
  19. package/dist/migration-tools__hash.d.mts +3 -1
  20. package/dist/migration-tools__io.d.mts +3 -1
  21. package/dist/migration-tools__spaces.d.mts +3 -1
  22. package/dist/migration.d.mts +3 -1
  23. package/dist/{mongo-static-CsA9y8_L-Bd252BaW.mjs → mongo-static-b_EkTdd5-xWveruVP.mjs} +4 -4
  24. package/dist/mongo-static-b_EkTdd5-xWveruVP.mjs.map +1 -0
  25. package/dist/orm.d.mts +3 -1
  26. package/dist/query-ast__execution.d.mts +3 -1
  27. package/dist/query-builder.d.mts +3 -1
  28. package/dist/runtime.d.mts +3 -1
  29. package/dist/runtime.d.mts.map +1 -1
  30. package/dist/runtime.mjs +6 -6
  31. package/dist/runtime.mjs.map +1 -1
  32. package/dist/static.d.mts +2 -1
  33. package/dist/static.d.mts.map +1 -1
  34. package/dist/static.mjs +1 -1
  35. package/dist/target.d.mts +2 -1
  36. package/dist/target__codec-ids.d.mts +3 -1
  37. package/dist/target__codec-types.d.mts +3 -1
  38. package/dist/target__migration.d.mts +3 -1
  39. package/dist/target__runtime.d.mts +2 -1
  40. package/dist/value.d.mts +3 -1
  41. package/dist/vite-plugin-contract-emit.d.mts +3 -1
  42. package/package.json +12 -81
  43. package/skills/prisma-8/SKILL.md +9 -9
  44. package/skills/prisma-8/references/contract.md +2 -2
  45. package/skills/prisma-8/references/debug.md +13 -13
  46. package/skills/prisma-8/references/migration-model.md +17 -17
  47. package/skills/prisma-8/references/migration-review.md +21 -21
  48. package/skills/prisma-8/references/migrations.md +58 -42
  49. package/skills/prisma-8/references/queries-mongo.md +9 -8
  50. package/skills/prisma-8/references/queries-postgres.md +59 -16
  51. package/skills/prisma-8/references/queries.md +2 -2
  52. package/skills/prisma-8/references/quickstart.md +11 -11
  53. package/skills/prisma-8/references/runtime.md +5 -5
  54. package/skills/prisma-8/references/scripts/find-detection-hits.ts +57 -0
  55. package/skills/prisma-8/references/upgrade-app.md +81 -24
  56. package/skills/prisma-8/references/upgrade-extension.md +57 -17
  57. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.25-to-8.0.0-rc.26/instructions.md +2482 -0
  58. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.25-to-8.0.0-rc.26/scripts/contract-hash-inputs/contract-hash-inputs.ts +2200 -0
  59. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.25-to-8.0.0-rc.26/scripts/contract-signature-names/contract-signature-names.ts +759 -0
  60. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.25-to-8.0.0-rc.26/scripts/facade-paths-an-application-uses/facade-paths-an-application-uses.ts +689 -0
  61. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.25-to-8.0.0-rc.26/scripts/platform-paths-an-extension-uses/platform-paths-an-extension-uses.ts +2053 -0
  62. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.25-to-8.0.0-rc.26/scripts/stored-files-format-version/stored-files-format-version.ts +671 -0
  63. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.26-to-8.0.0-rc.27/instructions.md +102 -0
  64. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.27-to-8.0.0-rc.28/instructions.md +5 -0
  65. package/skills/prisma-8/upgrading/extension/upgrades/0.10-to-0.11/instructions.md +2 -1
  66. package/skills/prisma-8/upgrading/extension/upgrades/0.11-to-0.12/instructions.md +1 -1
  67. package/skills/prisma-8/upgrading/extension/upgrades/0.8-to-0.9/instructions.md +1 -1
  68. package/skills/prisma-8/upgrading/extension/upgrades/0.9-to-0.10/instructions.md +1 -1
  69. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.25-to-8.0.0-rc.26/instructions.md +2057 -0
  70. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.25-to-8.0.0-rc.26/scripts/contract-hash-inputs/contract-hash-inputs.ts +2200 -0
  71. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.25-to-8.0.0-rc.26/scripts/contract-signature-names/contract-signature-names.ts +759 -0
  72. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.25-to-8.0.0-rc.26/scripts/facade-paths-an-application-uses/facade-paths-an-application-uses.ts +689 -0
  73. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.25-to-8.0.0-rc.26/scripts/platform-paths-an-extension-uses/platform-paths-an-extension-uses.ts +2053 -0
  74. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.25-to-8.0.0-rc.26/scripts/stored-files-format-version/stored-files-format-version.ts +671 -0
  75. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.26-to-8.0.0-rc.27/instructions.md +56 -0
  76. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.27-to-8.0.0-rc.28/instructions.md +5 -0
  77. package/dist/adapter.d.mts +0 -1
  78. package/dist/adapter.mjs +0 -2
  79. package/dist/adapter__control.d.mts +0 -3
  80. package/dist/adapter__control.mjs +0 -3
  81. package/dist/adapter__runtime.d.mts +0 -3
  82. package/dist/adapter__runtime.mjs +0 -3
  83. package/dist/components.d.mts +0 -1
  84. package/dist/components.mjs +0 -2
  85. package/dist/components__authoring.d.mts +0 -1
  86. package/dist/components__authoring.mjs +0 -2
  87. package/dist/components__codec.d.mts +0 -1
  88. package/dist/components__codec.mjs +0 -2
  89. package/dist/components__components.d.mts +0 -1
  90. package/dist/components__components.mjs +0 -2
  91. package/dist/components__control.d.mts +0 -1
  92. package/dist/components__control.mjs +0 -2
  93. package/dist/components__emission.d.mts +0 -1
  94. package/dist/components__emission.mjs +0 -2
  95. package/dist/components__execution.d.mts +0 -1
  96. package/dist/components__execution.mjs +0 -2
  97. package/dist/components__ir.d.mts +0 -1
  98. package/dist/components__ir.mjs +0 -2
  99. package/dist/components__psl-ast.d.mts +0 -1
  100. package/dist/components__psl-ast.mjs +0 -2
  101. package/dist/components__utils.d.mts +0 -1
  102. package/dist/components__utils.mjs +0 -2
  103. package/dist/contract.d.mts +0 -1
  104. package/dist/contract.mjs +0 -2
  105. package/dist/contract__apply-specifier-default-control-policy.d.mts +0 -1
  106. package/dist/contract__apply-specifier-default-control-policy.mjs +0 -2
  107. package/dist/contract__contract-validation-error.d.mts +0 -1
  108. package/dist/contract__contract-validation-error.mjs +0 -2
  109. package/dist/contract__default-namespace.d.mts +0 -1
  110. package/dist/contract__default-namespace.mjs +0 -2
  111. package/dist/contract__enum-accessor.d.mts +0 -1
  112. package/dist/contract__enum-accessor.mjs +0 -2
  113. package/dist/contract__format-version.d.mts +0 -1
  114. package/dist/contract__format-version.mjs +0 -2
  115. package/dist/contract__hashing-utils.d.mts +0 -1
  116. package/dist/contract__hashing-utils.mjs +0 -2
  117. package/dist/contract__hashing.d.mts +0 -1
  118. package/dist/contract__hashing.mjs +0 -2
  119. package/dist/contract__internal__format-version.d.mts +0 -1
  120. package/dist/contract__internal__format-version.mjs +0 -2
  121. package/dist/contract__is-plain-record.d.mts +0 -1
  122. package/dist/contract__is-plain-record.mjs +0 -2
  123. package/dist/contract__resolve-domain-model.d.mts +0 -1
  124. package/dist/contract__resolve-domain-model.mjs +0 -2
  125. package/dist/contract__validate-domain.d.mts +0 -1
  126. package/dist/contract__validate-domain.mjs +0 -2
  127. package/dist/contract__validate-once.d.mts +0 -1
  128. package/dist/contract__validate-once.mjs +0 -2
  129. package/dist/contract__validate-storage.d.mts +0 -1
  130. package/dist/contract__validate-storage.mjs +0 -2
  131. package/dist/driver.d.mts +0 -1
  132. package/dist/driver.mjs +0 -2
  133. package/dist/driver__control.d.mts +0 -3
  134. package/dist/driver__control.mjs +0 -3
  135. package/dist/driver__runtime.d.mts +0 -3
  136. package/dist/driver__runtime.mjs +0 -3
  137. package/dist/family-contract__data-type.d.mts +0 -1
  138. package/dist/family-contract__data-type.mjs +0 -2
  139. package/dist/family-contract__entity-kinds.d.mts +0 -1
  140. package/dist/family-contract__entity-kinds.mjs +0 -2
  141. package/dist/family-contract__normal-form.d.mts +0 -1
  142. package/dist/family-contract__normal-form.mjs +0 -2
  143. package/dist/family__control-adapter.d.mts +0 -1
  144. package/dist/family__control-adapter.mjs +0 -2
  145. package/dist/family__ir.d.mts +0 -1
  146. package/dist/family__ir.mjs +0 -2
  147. package/dist/family__migration.d.mts +0 -1
  148. package/dist/family__migration.mjs +0 -2
  149. package/dist/family__pack.d.mts +0 -3
  150. package/dist/family__pack.mjs +0 -3
  151. package/dist/family__runtime.d.mts +0 -1
  152. package/dist/family__runtime.mjs +0 -2
  153. package/dist/family__schema-verify.d.mts +0 -1
  154. package/dist/family__schema-verify.mjs +0 -2
  155. package/dist/migration-tools__contract-snapshot-store.d.mts +0 -1
  156. package/dist/migration-tools__contract-snapshot-store.mjs +0 -2
  157. package/dist/mongo-static-CsA9y8_L-Bd252BaW.mjs.map +0 -1
  158. package/dist/query-ast.d.mts +0 -1
  159. package/dist/query-ast.mjs +0 -2
  160. package/dist/query-ast__control.d.mts +0 -1
  161. package/dist/query-ast__control.mjs +0 -2
  162. package/dist/query-builder__contract-free.d.mts +0 -1
  163. package/dist/query-builder__contract-free.mjs +0 -2
  164. package/dist/target__codecs.d.mts +0 -1
  165. package/dist/target__codecs.mjs +0 -2
  166. package/dist/target__control.d.mts +0 -1
  167. package/dist/target__control.mjs +0 -2
  168. package/dist/target__data-types.d.mts +0 -1
  169. package/dist/target__data-types.mjs +0 -2
  170. package/dist/target__pack.d.mts +0 -3
  171. package/dist/target__pack.mjs +0 -3
  172. package/dist/target__server-version.d.mts +0 -1
  173. package/dist/target__server-version.mjs +0 -2
  174. package/dist/utils.d.mts +0 -1
  175. package/dist/utils.mjs +0 -2
  176. package/dist/utils__abortable.d.mts +0 -1
  177. package/dist/utils__abortable.mjs +0 -2
  178. package/dist/utils__array-equal.d.mts +0 -1
  179. package/dist/utils__array-equal.mjs +0 -2
  180. package/dist/utils__assertions.d.mts +0 -1
  181. package/dist/utils__assertions.mjs +0 -2
  182. package/dist/utils__canonical-stringify.d.mts +0 -1
  183. package/dist/utils__canonical-stringify.mjs +0 -2
  184. package/dist/utils__casts.d.mts +0 -1
  185. package/dist/utils__casts.mjs +0 -2
  186. package/dist/utils__defined.d.mts +0 -1
  187. package/dist/utils__defined.mjs +0 -2
  188. package/dist/utils__guards.d.mts +0 -1
  189. package/dist/utils__guards.mjs +0 -2
  190. package/dist/utils__hash-content.d.mts +0 -1
  191. package/dist/utils__hash-content.mjs +0 -2
  192. package/dist/utils__internal-error.d.mts +0 -1
  193. package/dist/utils__internal-error.mjs +0 -2
  194. package/dist/utils__json.d.mts +0 -1
  195. package/dist/utils__json.mjs +0 -2
  196. package/dist/utils__promise.d.mts +0 -1
  197. package/dist/utils__promise.mjs +0 -2
  198. package/dist/utils__redact-db-url.d.mts +0 -1
  199. package/dist/utils__redact-db-url.mjs +0 -2
  200. package/dist/utils__result.d.mts +0 -1
  201. package/dist/utils__result.mjs +0 -2
  202. package/dist/utils__simplify-deep.d.mts +0 -1
  203. package/dist/utils__simplify-deep.mjs +0 -2
  204. package/dist/utils__structured-error.d.mts +0 -1
  205. package/dist/utils__structured-error.mjs +0 -2
  206. package/dist/utils__suppress-idle-connection-errors.d.mts +0 -1
  207. package/dist/utils__suppress-idle-connection-errors.mjs +0 -2
  208. package/dist/utils__text.d.mts +0 -1
  209. package/dist/utils__text.mjs +0 -2
  210. package/dist/utils__types.d.mts +0 -1
  211. package/dist/utils__types.mjs +0 -2
  212. package/dist/utils__upgrade-guides.d.mts +0 -1
  213. package/dist/utils__upgrade-guides.mjs +0 -2
  214. package/dist/value__mongodb-types.d.mts +0 -1
  215. package/dist/value__mongodb-types.mjs +0 -2
@@ -4,11 +4,22 @@ This reference upgrades a project that **consumes** Prisma 8 via the public pack
4
4
 
5
5
  The per-transition instructions this reference reads live under [`../upgrading/app/upgrades/`](../upgrading/app/upgrades/).
6
6
 
7
- ## Step 0 — Upgrade to the newest instructions, then re-read
7
+ ## Step 0 — Read the newest release's skill
8
8
 
9
- The upgrade instructions ship inside the installed Prisma packages, so the copy on disk describes the version currently installed — not the version being upgraded *to*. Bug fixes to *old* per-transition instructions ship with each release as part of the cumulative set, so the newest copy is the one to run.
9
+ The skill in the project describes the release installed now. Each release carries the guide of every earlier step, with the corrections made to it since, such as a fixed script, or an instruction to install a later release in place of a step's own `<to>`. An earlier copy lacks the corrections made after it. So read this reference and every step's guide from the skill of the newest published release, even when the user's target is older, and run the guides' scripts from that copy:
10
10
 
11
- Do the version bump first (step 1 of the per-step flow below), re-sync the skills from the newly installed packages (`prisma skills sync`), and re-read this reference and the per-transition instructions before applying any code translation. If the agent runtime supports an in-session refresh, perform it after the sync; otherwise finish the session's reasoning against the re-read files.
11
+ 1. **Find the newest published release.** Run `pnpm view <database package> dist-tags.latest dist-tags.next`, with the project's database package, such as `@prisma/orm-postgres`. Take the greater of the two versions: `8.0.0-rc.27` is greater than `8.0.0-rc.25`, so compare the numbers after `rc.`, not the text, and `8.0.1` is greater than every `8.0.0-rc.N`.
12
+ 2. **Download its skill.** Unpack that release's package in a new, empty folder outside the project and outside every agent skills folder (`.agents/skills/`, `.claude/skills/`, `.cursor/skills/`, `.windsurf/skills/`), which `prisma skills sync` writes:
13
+
14
+ ```sh
15
+ dir="$(mktemp -d)"
16
+ curl -fsSL "$(pnpm view <database package>@<newest> dist.tarball)" | tar -xz -C "$dir"
17
+ echo "$dir/package/skills/prisma-8"
18
+ ```
19
+
20
+ The folder it prints is the skill's folder, which this reference and the guides call `<skill>`. If the download fails, stop and tell the user: the upgrade's installs need the same registry.
21
+ 3. **Read from that copy.** Read this reference again from `<skill>/references/upgrade-app.md`, unless that is the copy you are reading, and follow it from here. Read each step's guide from `<skill>/upgrading/app/upgrades/<from>-to-<to>/instructions.md`. Where a guide runs a script from the project's skill copy, such as `node .agents/skills/prisma-8/upgrading/...`, run the same path under `<skill>`, still from the project root: `node <skill>/upgrading/...`.
22
+ 4. **Do not sync the skill until the chain is done.** During the upgrade, do not run `prisma skills sync`, and ignore the line a `prisma` command prints when the project's skill copy differs from the installed packages: a sync would bring back the installed release's copy. Sync once, when the chain is done.
12
23
 
13
24
  ## Pre-flight — extension compatibility
14
25
 
@@ -19,25 +30,34 @@ Before changing any code, work out how far the chain can go. The application can
19
30
 
20
31
  When the lines disagree, npm refuses the install if the packages that disagree are ones the application lists itself. pnpm, Yarn and Bun install anyway and print a peer dependency warning, so a successful install does not prove that the versions match.
21
32
 
22
- This pre-flight covers only extensions published by someone else. Every `@prisma/orm-*` package is published from the Prisma repository at every release: `@prisma/orm-extension-pgvector`, `@prisma/orm-postgres-contrib` and `@prisma/orm-better-auth`, for example. It moves to `<to>` together with the database package in the bump step below, so it does not limit how far the application can go.
33
+ **Which packages are released with the ORM.** Some Prisma packages are published from the Prisma ORM repository, `prisma/orm`, at every release, such as `@prisma/orm-extension-pgvector`, `@prisma/orm-postgres-contrib` and `@prisma/orm-better-auth`. Each lists the other Prisma packages at that release, so it moves to `<to>` together with the database package in the bump step below, and does not limit how far the application can go. Other packages have versions of their own and are published when their maintainer chooses, even when their name starts with `@prisma/orm-`: Prisma publishes some from other repositories, and a package released with the ORM can move to a repository of its own.
34
+
35
+ Each published version says where it came from, in the `repository.url` of its `package.json`. Decide at each step of the chain: a package is released with the ORM at that step when it has a version in that step's release (`<to>` itself on the `8.0.0` release candidates; from release 8.0, a version in the `<to>` release, as [Version detection](#version-detection) defines it, such as `8.0.1` or `8.0.1-ea.0` and never `8.0.0-rc.25`), and that version's `repository.url` names the repository `prisma/orm` itself, such as `https://github.com/prisma/orm.git`. A repository whose name only starts the same way, such as `prisma/orm-extension-<name>`, is another repository. `pnpm view <name> versions --json` lists the versions, and `pnpm view <name>@<version> repository.url` reads the field; for the installed version, read `node_modules/<name>/package.json`. Any other package has versions of its own at that step: treat it as an extension published by someone else, which this pre-flight covers. Never derive its version from `<to>`, which can name a version that was never published.
36
+
37
+ If you cannot tell which kind a package is, treat it as one with versions of its own. That is safe: the pre-flight takes the newest release that accepts the step, and for a package released with the ORM that is its version in `<to>`.
23
38
 
24
39
  Steps:
25
40
 
26
- 1. **Read `prisma.config.ts`** (or its TS-discoverable equivalent at the project root) and enumerate the list of extension packages it imports. Each `extensions: [...]` entry corresponds to an installed npm package. Leave out every `@prisma/orm-*` package.
27
- 2. **For each extension**, read its installed `package.json` from `node_modules/<extension-package-name>/package.json` and find every `@prisma/orm-*` entry under `dependencies`, `peerDependencies`, or `optionalDependencies` (`@prisma/orm-framework`, `@prisma/orm-family-sql` or `@prisma/orm-family-mongo`, `@prisma/orm-toolchain`, and a `@prisma/orm-target-*` package). Until release 8.0, by construction those entries are exact-version pins (e.g. `"8.0.0-rc.11"`), set when the extension author last ran their own upgrade.
28
- 3. **Find each extension's releases.** List its published versions with `pnpm view <extension> versions --json`. For each version, read the `@prisma/orm-*` entries it lists under `dependencies`, `peerDependencies` and `optionalDependencies`, as in step 2: `pnpm view <extension>@<version> dependencies peerDependencies optionalDependencies --json`. Then, for each step in the chain below, work out the version each of those Prisma packages has at that step, as the bump step of the per-step flow defines it:
41
+ 1. **Read `prisma.config.ts`** (or its TS-discoverable equivalent at the project root) and enumerate the list of extension packages it imports. Each `extensions: [...]` entry corresponds to an installed npm package. Add any other package in the project's `package.json` that names an `@prisma/orm-*` package as a peer dependency, such as a library integration. Leave out a package that is released with the ORM at every step of the chain, as described above.
42
+ 2. **For each extension**, read its installed `package.json` from `node_modules/<extension-package-name>/package.json` and find every `@prisma/orm-*` entry under `dependencies`, `peerDependencies`, or `optionalDependencies` (`@prisma/orm-framework`, `@prisma/orm-family-sql` or `@prisma/orm-family-mongo`, `@prisma/orm-toolchain`, and a `@prisma/orm-target-*` package), and every entry there on another package that step 1 listed, which has versions of its own whatever its name. Until release 8.0, by construction those entries are exact-version pins (e.g. `"8.0.0-rc.11"`), set when the extension author last ran their own upgrade.
43
+ 3. **Find each extension's releases.** List its published versions with `pnpm view <extension> versions --json`. For each version, read the entries step 2 names, under `dependencies`, `peerDependencies` and `optionalDependencies`: `pnpm view <extension>@<version> dependencies peerDependencies optionalDependencies --json`. Then, for each step in the chain below, work out the version each of those packages has at that step, as the bump step of the per-step flow defines it:
29
44
  - on the `8.0.0` release candidates, it is `<to>` itself;
30
- - from release 8.0, it is that package's first version in the `<to>` release, such as `8.0.1` for a GA package and `8.0.1-ea.0` for one below GA.
45
+ - from release 8.0, it is the version the install will take for the entry the bump step writes: the newest published version that entry accepts. The bump step writes the package's first version in the `<to>` release, as [Version detection](#version-detection) defines it, such as `8.0.1` for a GA package and `8.0.1-ea.0` for one below GA, with a caret or a tilde, so once `8.0.2` is published the install takes `8.0.2`, and an extension that names exactly `8.0.1` does not accept it;
46
+ - for a package with versions of its own, such as another extension, it is the release this pre-flight notes for that package at that step.
31
47
 
32
- Note the release of each extension whose every entry accepts its package's version at that step.
33
- 4. **Find the last step every extension allows.** Walk the chain from the first step. The chain can go as far as the last step before the first one for which some extension has no release. If that is short of the user's target, tell the user before installing anything: which extension has no release for which Prisma version, how far the upgrade can go, and their options:
48
+ Note, for each step, the newest release of each extension whose every entry accepts its package's version at that step. Several releases can accept the same step; take the newest.
49
+ 4. **Find the last step every extension allows.** Walk the chain from the first step. A step for which some extension has no release, while a later step of the chain has one for it, does not stop the chain: the steps up to that later step are taken together, as [Steps taken together](#steps-taken-together) describes. The chain can go as far as the last step for which every extension has a release. If that is short of the user's target, tell the user before installing anything: which extension has no release for which Prisma version, how far the upgrade can go, and their options:
34
50
  - (a) Wait for, or ask for, a release of the extension for that version, then re-run.
35
51
  - (b) Upgrade only as far as the last step every extension allows.
36
52
  - (c) Remove the extension, and upgrade without it.
37
53
 
38
- Do not skip a step, do not leave an extension at a release that names another Prisma version, and do not install past the last step every extension allows.
54
+ If an extension does have a release for the step, but that release pins another package with versions of its own exactly, at a version other than the one this pre-flight noted for that package, say that instead of reporting a missing release: name the extension's release, its pin, and the version noted for the other package.
39
55
 
40
- If `prisma.config.ts` is absent or names no extensions, skip the pre-flight.
56
+ 5. **Check the `prisma` command-line tool.** The project needs its own `prisma`: a `prisma` installed globally has its own copy of the ORM packages, and from the first `prisma` release with the check it refuses ORM commands in a project that has the ORM packages. If the project does not list `prisma`, the bump step adds it as a development dependency. Either way, find for each step the `prisma` version that fits it, as [Choosing the `prisma` version](#choosing-the-prisma-version) describes, and treat `prisma` like an extension with versions of its own. A step no `prisma` version fits, while a later step of the chain has one, is taken together with that later step. The chain goes no further than the last step a `prisma` version fits. If that is short of the user's target, tell the user before installing anything, as in step 4: which step has no `prisma` version, and how far the upgrade can go. When the step is to the newest release, a `prisma` version that carries it is normally published within a few days of the ORM, so the user can wait and re-run. For an older step none will come, so the user can only upgrade that far. Do this before steps 2 to 4 compare extensions with a step: the step installs `@prisma/orm-toolchain` and `@prisma/orm-framework` at exactly the versions its `prisma` depends on, so those are the versions each extension must accept.
57
+
58
+ Do not skip a step's upgrade instructions, do not install an extension at a release that names another Prisma version, and do not install past the last step every extension and `prisma` allow.
59
+
60
+ If step 1 finds no extension, skip steps 2 to 4. Step 5 always runs.
41
61
 
42
62
  ## Role detection
43
63
 
@@ -53,8 +73,9 @@ If the repository also holds an extension, in a `package.json` of its own, run *
53
73
  - **From-version.** Read the installed Prisma 8 version from `pnpm-lock.yaml` (or `package-lock.json` / `yarn.lock`): take the resolved version of the application's database package, which is `@prisma/orm-postgres`, `@prisma/orm-mongo`, `@prisma/orm-sqlite`, `@prisma/orm-mysql` or `@prisma/orm-mariadb`. Do not read it from an extension published by someone else. Such an extension has its own version, and the pre-flight above deals with it.
54
74
  - **On the `8.0.0` release candidates,** compare the full version strings, including the part after the hyphen. `8.0.0-rc.10` and `8.0.0-rc.11` are different versions, and different steps in the chain below.
55
75
  - **From release 8.0,** each package has its own patch number or level suffix, and a step is named by the release, which is the major and minor: `8.0-to-8.1`. So the from-version is the release that the database package's version belongs to. `8.0.1-ea.0`, `8.0.1` and `8.0.2` all belong to release `8.0`.
76
+ - **What counts as a version of a release.** Release 8.0 starts at `8.0.1` for a GA package and `8.0.1-ea.0` (or `-preview.0`, `-rc.0`) for one below GA. A version `8.0.0-rc.N` is a release candidate, which is a step of its own, not a version of release 8.0, although its major and minor are `8.0`. A version with `-dev.` in it is a development build and is not a version of any release. Wherever this reference says "a version in the `<to>` release" or "the first version in the `<to>` release", it means this.
56
77
  - If the lockfile shows the application's Prisma packages on different releases, which is already a broken state, the **lowest** is the from-version.
57
- - **To-version.** Either the version the user specified, or whatever `npm view @prisma/orm-postgres dist-tags.latest` reports. Do not assume that is a stable version: while Prisma 8 is a release candidate, `latest` tracks the newest release, `8.0.0-rc.N` included. If the user wants a stable version specifically, they must name it.
78
+ - **To-version.** Either the version the user specified, or whatever `npm view @prisma/orm-postgres dist-tags.latest` reports. Do not assume that is a stable version: `latest` is the newest release promoted to `latest`, which while Prisma 8 is a release candidate is an `8.0.0-rc.N`. If the user wants a stable version specifically, they must name it.
58
79
 
59
80
  Report both back to the user before continuing.
60
81
 
@@ -68,9 +89,22 @@ If the from-to delta spans more than one release (e.g. `0.6 → 0.8`), build the
68
89
 
69
90
  The [`../upgrading/app/upgrades/`](../upgrading/app/upgrades/) directories name the steps — read the chain off the directory names rather than deriving it arithmetically. Each directory is `<from>-to-<to>`. A step normally spans one stable minor (`0.7-to-0.8`) or one release candidate (`8.0.0-rc.1-to-8.0.0-rc.2`). When intermediate versions were not published, a guide may span a larger hop; follow the available directory chain rather than inventing missing steps. Moving onto the RC line from the last stable minor is a single step of its own (`0.17-to-8.0.0-rc.1`).
70
91
 
71
- Apply each step in order, fully: bump, install, run instructions, validate, commit — before moving to the next. Halt the chain on the first failed step; do not skip ahead.
92
+ Apply each step in order, fully: bump, install, run instructions, validate, commit — before moving to the next. The one exception is [steps taken together](#steps-taken-together), which the pre-flight, or a step's own guide, decides. Halt the chain on the first failed step; do not skip ahead.
93
+
94
+ The chain order does not depend on which extensions are installed; the pre-flight works out how far it can go and which steps are taken together, and a step's own guide can add to that.
95
+
96
+ ### Steps taken together
97
+
98
+ An extension with versions of its own may have no release for some steps of the chain and a release for a later one. A release candidate cut after the extension's last release is one such step. The extension at its old release names the old Prisma versions, so the project cannot install those steps with it. The `prisma` command-line tool is the same: for some steps no `prisma` version fits, and a `prisma` command must run on the toolchain of the packages installed at that time. Take those steps, and the later step, together, using the per-step flow's own parts:
72
99
 
73
- The chain order does not depend on which extensions are installed; the pre-flight has already worked out how far it can go.
100
+ - Do the bump once, to the later step's versions: the first later step for which every extension has a release and a `prisma` version fits.
101
+ - Install once.
102
+ - Read and apply the upgrade instructions of every step from the first of them to that later step, in the chain's order, with no install in between.
103
+ - Validate once, after the last of them, then commit. Name every step the commit covers in its message.
104
+
105
+ The `prisma` commands that the earlier steps' instructions run, such as `prisma contract emit`, `prisma db sign` and `prisma migration plan`, run on the installed toolchain, which is the later step's. So where an earlier step's guide says what such a command must or must not change, read that against the later step: the command writes the later step's format. If validation fails, report every step taken together, and the change ids whose files the failure names, because the failure can come from any of them.
106
+
107
+ A step's own guide can also tell you to install a later release in place of its own `<to>`, as the `8.0.0-rc.25` to `8.0.0-rc.26` app guide does in step 2 of its "Order of the steps"; the guide gives its reason. The pre-flight can read this in the newest guides before installing anything, and take the steps together from the start, so that the bump happens once. If you find it after installing `<to>`, do as the guide says at the point in its order where it says it: bump again, to the newest release up to the user's target that every extension and a `prisma` version fit, choose `prisma` for that release, and install. Then read this step's guide again, from the skill of the newest published release as [Step 0](#step-0--read-the-newest-releases-skill) describes (fetch it again if a later release has been published since), and continue from the same point in its order. The steps from this one to that release are taken together: apply this guide and each later step's guide in order, and validate and commit once, as above. If no later release fits, or the user's target is this step itself, take the step alone and tell the user; when the project later reaches the step that fixes the fault, that step's guide says how to repair what the fault left.
74
108
 
75
109
  ## Per-step flow
76
110
 
@@ -79,9 +113,9 @@ For each `(from, to)` step in the chain:
79
113
  1. **Bump the app's Prisma packages.** Change these entries in the project's `package.json`, under both `dependencies` and `devDependencies`:
80
114
  - the database package, such as `@prisma/orm-postgres`;
81
115
  - the platform packages that the database package lists as peer dependencies;
82
- - every extension or library integration published from the Prisma repository: `@prisma/orm-extension-*`, `@prisma/orm-postgres-contrib` and `@prisma/orm-better-auth`.
116
+ - every extension or library integration that is [released with the ORM](#pre-flight--extension-compatibility) at this step, such as `@prisma/orm-extension-pgvector`, `@prisma/orm-postgres-contrib` and `@prisma/orm-better-auth`.
83
117
 
84
- Each of these is published at every release and lists the other Prisma packages at that release, so one that is left behind disagrees with the rest.
118
+ Each of these is published at every release and lists the other Prisma packages at that release, so one that is left behind disagrees with the rest. A package whose name starts with `@prisma/orm-` but that has versions of its own at this step is not in this list. It moves as an extension published by someone else, below.
85
119
 
86
120
  **What to write, on the `8.0.0` release candidates.** Rewrite every entry to the exact `<to>` version, with no caret and no tilde. All entries move to the same version.
87
121
 
@@ -89,21 +123,29 @@ For each `(from, to)` step in the chain:
89
123
  - beside a GA database package, a GA entry gets a caret and an entry below GA gets a tilde;
90
124
  - beside a database package below GA, every entry gets a tilde.
91
125
 
92
- **Write a caret only when `<to>` is the newest published release,** which `pnpm view <database package> versions --json` shows. A caret accepts later releases, so at any other step the install would take a release later than `<to>`, whose instructions have not been applied. That is every step before the last one, and the last one too when the user's target is older than the newest release. At such a step write a tilde in place of the caret: a tilde stays within `<to>` and still takes its fixes. If the upgrade ends on a release that is not the newest, say in the final report that those entries have a tilde where [Versions and support](https://github.com/prisma/orm/blob/main/docs/oss/versioning.md#what-an-application-writes) gives a caret.
126
+ **Write a caret only when `<to>` is the newest published release of every package this step writes,** which `pnpm view <name> versions --json` shows for each: the database package, each platform package the application lists, and each extension or library integration released with the ORM at this step. The packages of a release are not all published at the same moment, so a platform package can have a later release before the database package does. A caret accepts later releases, so at any other step the install would take a release later than `<to>`, whose instructions have not been applied. That is every step before the last one, and the last one too when the user's target is older than the newest release. At such a step write a tilde in place of the caret: a tilde stays within `<to>` and still takes its fixes. If the upgrade ends on a release that is not the newest, say in the final report that those entries have a tilde where [Versions and support](https://github.com/prisma/orm/blob/main/docs/oss/versioning.md#what-an-application-writes) gives a caret.
93
127
 
94
128
  **A peer dependency the project does not list.** If the database package at `<to>` lists an `@prisma/orm-*` peer dependency that the project's `package.json` does not have, add it, written as that package's entry for `<to>` would be. The application lists every one of them, so that it has one copy of each. A monorepo whose applications are on different Prisma releases can still get two copies under npm workspaces and under Bun's hoisted linker; keep such applications on one release, or use pnpm, Yarn or Bun's isolated linker.
95
129
 
96
- **Extensions published by someone else.** Set each one to the release the pre-flight noted for this step: the one whose every Prisma entry accepts that package's version at the step. If an extension has no such release, halt before this step's install. The project stays at the last step that worked, and the user gets the pre-flight's message for that extension and step.
130
+ **Extensions published by someone else,** and Prisma packages with versions of their own. Set each one to the release the pre-flight noted for this step: the one whose every entry the pre-flight reads accepts that package's version at the step. On the `8.0.0` release candidates, write it exactly. From release 8.0, write it as [Versions and support](https://github.com/prisma/orm/blob/main/docs/oss/versioning.md#what-an-application-writes) gives for its level, by the same rules as the entries above: a caret on a GA version beside a GA database package, a tilde otherwise, such as `~8.0.1-ea.0` for a version below GA, and a tilde in place of the caret where the rule above allows no caret. If that range also accepts a later release of the package that the pre-flight did not note, because that release does not accept the step, write the noted release exactly instead: the install takes the newest release a range accepts. If an extension has no such release and the pre-flight did not take this step together with a later one, halt before this step's install. The project stays at the last step that worked, and the user gets the pre-flight's message for that extension and step.
131
+
132
+ **The `prisma` command-line tool.** Move `prisma` too, or add it as a development dependency if the project does not list it, at a version chosen as [Choosing the `prisma` version](#choosing-the-prisma-version) describes. Write the project's `@prisma/orm-toolchain` and `@prisma/orm-framework` lines exactly at the versions that `prisma` depends on, with no caret or tilde, in place of the caret or tilde the rules above give them, so that the install cannot take a later patch. `prisma` runs the ORM commands from its own copy of the toolchain, and that copy must be the application's, so the application's `@prisma/orm-toolchain` and `@prisma/orm-framework` must resolve to the versions `prisma` depends on. The pre-flight has already found the version for this step. A step no `prisma` version fits is taken together with a later one, or is past where the chain stops.
97
133
 
98
- The skill itself ships inside the Prisma packages, so bumping them is what updates it. There is no separate skill package to bump.
134
+ The skill itself ships inside the Prisma packages, so bumping them is what updates the project's copy, which you sync when the chain is done. There is no separate skill package to bump.
99
135
 
100
136
  2. **Install.** Run `pnpm install` (or the project's lockfile-managing command). The project's code is now broken against the new types — the upgrade instructions for `<from> → <to>` exist to fix it.
101
137
 
102
- 3. **Read the upgrade instructions.** Re-sync the skills (`prisma skills sync`) so the tree matches the version just installed, then load `../upgrading/app/upgrades/<from>-to-<to>/instructions.md`. Parse the YAML frontmatter and pay particular attention to its `changes[]` array.
138
+ 3. **Read the upgrade instructions.** Load `<skill>/upgrading/app/upgrades/<from>-to-<to>/instructions.md`, from the newest release's skill ([Step 0](#step-0--read-the-newest-releases-skill)). Parse the YAML frontmatter and pay particular attention to its `changes[]` array.
103
139
 
104
140
  4. **Apply each change.** When the guide's body has a section that orders the steps, such as `Order of the steps`, apply the changes in that order: it says which script runs before which, and when to sign the databases and when to plan and apply a migration. Where an entry's prose says to sign or migrate, do it at the step that section names. Otherwise take the entries in the order of `changes[]`. For each entry in `changes[]`:
105
141
  - If the entry has a `detection` block (glob + content predicate), run it; skip the change if no files match. No `detection` → apply unconditionally. Run the glob over the project's own files: skip `node_modules`, and build output such as `dist`, `build`, `.next` or `out` (whatever directories the project's build writes). A match there is generated code, which the next build rewrites; editing it changes nothing. Migration snapshots under `migrations/snapshots/` are committed files, not build output, so keep them.
106
- - How a `detection` block runs: `glob` selects files relative to the project root. Each `matches` entry, once read from the YAML, is a JavaScript regular expression, built as `new RegExp(pattern)` with no flags and tested against the whole content of one file at a time; each `contains` entry is a plain substring. A file is a hit when any entry matches it. Patterns may span lines, and some look at the whole file (for example, to skip a file that declares something elsewhere in it), so a line-by-line search such as `grep` or `rg` without `-U` is not the same test and can report files the pattern excludes. From a shell, `rg -U --pcre2 -l -e '<pattern>' <files>` tests whole files and gives the same hits.
142
+ - How a `detection` block runs: `glob` selects files relative to the project root. Each `matches` entry, once read from the YAML, is a JavaScript regular expression, built as `new RegExp(pattern)` with no flags and tested against the whole content of one file at a time; some older guides call these entries `regex`, which means the same. Each `contains` entry is a plain substring. A file is a hit when any entry matches it, or, when the block sets `anyMatch: false`, only when every entry matches it; `anyMatch: true` changes nothing. Patterns may span lines, and some look at the whole file (for example, to skip a file that declares something elsewhere in it), so a line-by-line search such as `grep` or `rg` without `-U` is not the same test and can report files the pattern excludes. Do not use `rg --pcre2` either: some patterns have a lookbehind of unbounded length, such as `(?<!\b(?:import|export)\s+(?:type\s+)?\{[^}]*)`, which PCRE2 refuses with "length of lookbehind assertion is not limited". From a shell, run the detection with the skill's script, with Node 24 or later, from the project root. For example, for the `boolean-codec-type-takes-codec-types` change of the `8.0.0-rc.26` to `8.0.0-rc.27` guide:
143
+
144
+ ```sh
145
+ node <skill>/references/scripts/find-detection-hits.ts '**/*.{ts,tsx,mts,cts}' '(?<!\b(?:import|export)\s+(?:type\s+)?\{[^}]*)\bBooleanCodecType\b(?!\s*<)'
146
+ ```
147
+
148
+ After the script's path, give `--all` if the block sets `anyMatch: false`, then the change's `glob`, then each of its `matches` or `regex` entries; if it has `contains` entries, add `--contains` and then each of them. Pass each entry as it reads once decoded from the YAML: in a single-quoted YAML entry, `''` stands for one `'`; in a double-quoted one, `\\` stands for one `\` and `\"` for one `"`, so `"(['\"])x\\1"` decodes to `(['"])x\1`. Put each argument in single quotes, so that the shell does not expand the glob or change the pattern, and write each `'` inside one as `'\''`. So the YAML entry `'[''"]'` becomes the argument `'['\''"]'`. The script prints each file that is a hit, relative to the project root. It skips `node_modules` and `.git`, and does not follow symbolic links; a `**` does not enter a folder whose name starts with a dot, but a glob that names one, such as `.github/workflows/*.yml`, does. Leave out the hits in build output yourself.
107
149
  - If the entry names a `script:` (a relative path next to `instructions.md`), invoke it from the project root:
108
150
  - `*.ts` → the command the guide's prose gives, such as `node <script>` (Node 24 or later runs TypeScript directly); with no command in the prose, `pnpm exec tsx <skill>/upgrading/app/upgrades/<from>-to-<to>/<script>`
109
151
  - `*.sh` → `bash <skill>/upgrading/app/upgrades/<from>-to-<to>/<script>`
@@ -121,13 +163,28 @@ For each `(from, to)` step in the chain:
121
163
  chore: upgrade @prisma/orm-* to <to-version>
122
164
  ```
123
165
 
124
- (Or the project's own commit-message convention.) Never squash steps. The user may squash on merge; the in-flight history must be per-step so a failed step is bisectable.
166
+ (Or the project's own commit-message convention.) Never squash steps, except that [steps taken together](#steps-taken-together) are one commit, which names each of them. The user may squash on merge; the in-flight history must be per-step so a failed step is bisectable.
125
167
 
126
168
  Then move on to the next step.
127
169
 
170
+ ## Choosing the `prisma` version
171
+
172
+ The `prisma` command-line tool is published from another repository, [`prisma/prisma-cli`](https://github.com/prisma/prisma-cli). Each of its versions for Prisma 8 depends on one exact version of `@prisma/orm-toolchain`, and runs the ORM commands, such as `prisma contract emit`, from that copy, not from the copy the project lists. So the files those commands write and read come from the toolchain the `prisma` version brings. From `prisma@8.0.0-rc.36` on, each version also lists `@prisma/orm-framework` at the same exact version. Earlier versions do not list it, and get it through the toolchain. Some ORM release candidates, such as `8.0.0-rc.1`, `8.0.0-rc.6`, `8.0.0-rc.9` and `8.0.0-rc.15`, have no `prisma` version that carries them.
173
+
174
+ Its version numbers are its own, though they look like the ORM's: `prisma@8.0.0-rc.36` carries the ORM at `8.0.0-rc.25`. Never choose `prisma` by its own number. Read its dependencies.
175
+
176
+ 1. Run `pnpm view prisma dist-tags.latest`, then `pnpm view prisma@<that version> dependencies`.
177
+ 2. That version fits the step when its `@prisma/orm-toolchain`, and its `@prisma/orm-framework` if it lists one, are:
178
+ - on the `8.0.0` release candidates, exactly `<to>`, because file formats changed between release candidates;
179
+ - from release 8.0, versions in the `<to>` release as [Version detection](#version-detection) defines it, with any patch number or level suffix. A `8.0.0-rc.N` version does not fit a step to release 8.0: on the day of release 8.0, `latest` may still carry `8.0.0-rc.25`. The tool is meant to stop an ORM command when the project's `@prisma/orm-toolchain` or `@prisma/orm-framework` is not the copy it would run itself, even at the same version ([ADR 329](https://github.com/prisma/orm/blob/main/docs/architecture%20docs/adrs/ADR%20329%20-%20An%20application%20lists%20the%20platform%20packages%20and%20our%20packages%20name%20each%20other%20as%20peers.md#the-prisma-command-line-tool)). So after the step is installed, those packages must resolve to the versions this `prisma` depends on, and `prisma` must be installed in the project, so that the package manager installs one copy for both. A `prisma` installed globally has a copy of its own and is refused.
180
+ 3. If `latest` does not fit, look through `pnpm view prisma versions --json` for the highest version that fits. Never take a version with `-dev.` in it, which is a development build, and never one whose dependencies name no `@prisma/orm-toolchain`, which is a Prisma 7 version.
181
+ 4. Write the version exactly, with no caret or tilde, so that a later `prisma` carrying another release is not installed. This has a cost: an ordinary update with the package manager moves the Prisma packages to a new release and leaves `prisma` carrying the old one. This upgrade flow moves `prisma` at each step. After an update made any other way, choose its version again by these steps.
182
+ 5. After the step is installed, check that the project has one copy of each package: `pnpm why @prisma/orm-toolchain` and `pnpm why @prisma/orm-framework` should each show one version, the one this `prisma` depends on. If either shows two, stop and report which package in the project requires the other version. One version can still be installed twice, in two folders; a `prisma` release with the copy check compares the folders and stops with `CLI.SECOND_PACKAGE_COPY`, whose message names both, so follow that message if an ORM command stops with it. An older `prisma` fails later instead, with an error that names no versions, such as `CONTRACT.SOURCE_LOAD_FAILED`.
183
+ 6. If no version fits a step, take it, and every step after it that no version fits either, together with the next step that a `prisma` version fits, as [Steps taken together](#steps-taken-together) describes. A `prisma` command must run on the toolchain of the packages installed at that time, so those steps cannot be installed one by one. If no `prisma` version fits any of the remaining steps, the run is taken together with the last step of the chain. The application flow then stops before installing that run, as step 5 of the pre-flight says, so the chain ends at the last step a `prisma` version fits. The extension flow instead installs it and uses the overrides stopgap that its bump step describes, because an extension author may need to prepare a release before `prisma` catches up. That is the one difference between the two flows.
184
+
128
185
  ## When the chain is done
129
186
 
130
- Report back to the user: the number of steps applied, the SHAs of the commits you made, and any open follow-ups (e.g. tests that were already red before the upgrade and still are).
187
+ Run `prisma skills sync`, so the project's copy of the skill matches the release now installed, and commit it if the project tracks it. Report back to the user: the number of steps applied, the SHAs of the commits you made, and any open follow-ups (e.g. tests that were already red before the upgrade and still are). If the chain stopped short of the user's target because no `prisma` version carries a later step, say so, and say which step to re-run from once one is published.
131
188
 
132
189
  ## Failure surfaces
133
190
 
@@ -6,11 +6,22 @@ If the project you are upgrading is a consumer **app** (it depends on a database
6
6
 
7
7
  The per-transition instructions this reference reads live under [`../upgrading/extension/upgrades/`](../upgrading/extension/upgrades/).
8
8
 
9
- ## Step 0 — Upgrade to the newest instructions, then re-read
9
+ ## Step 0 — Read the newest release's skill
10
10
 
11
- The upgrade instructions ship inside the installed Prisma packages, so the copy on disk describes the version currently installed — not the version being upgraded *to*. Bug fixes to *old* per-transition instructions ship with each release as part of the cumulative set, so the newest copy is the one to run.
11
+ The skill in the project describes the release installed now. Each release carries the guide of every earlier step, with the corrections made to it since, such as a fixed script, or an instruction to install a later release in place of a step's own `<to>`. An earlier copy lacks the corrections made after it. So read this reference and every step's guide from the skill of the newest published release, even when the user's target is older, and run the guides' scripts from that copy:
12
12
 
13
- Do the version bump first (step 1 of the per-step flow below), re-sync the skills from the newly installed packages (`prisma skills sync`), and re-read this reference and the per-transition instructions before applying any code translation.
13
+ 1. **Find the newest published release.** Run `pnpm view @prisma/orm-postgres dist-tags.latest dist-tags.next`. The skill ships only in the database packages, such as `@prisma/orm-postgres`, and each carries the same skill, so take it from `@prisma/orm-postgres` whatever database the extension serves. Take the greater of the two versions: `8.0.0-rc.27` is greater than `8.0.0-rc.25`, so compare the numbers after `rc.`, not the text, and `8.0.1` is greater than every `8.0.0-rc.N`.
14
+ 2. **Download its skill.** Unpack that release's package in a new, empty folder outside the project and outside every agent skills folder (`.agents/skills/`, `.claude/skills/`, `.cursor/skills/`, `.windsurf/skills/`), which `prisma skills sync` writes:
15
+
16
+ ```sh
17
+ dir="$(mktemp -d)"
18
+ curl -fsSL "$(pnpm view @prisma/orm-postgres@<newest> dist.tarball)" | tar -xz -C "$dir"
19
+ echo "$dir/package/skills/prisma-8"
20
+ ```
21
+
22
+ The folder it prints is the skill's folder, which this reference and the guides call `<skill>`. If the download fails, stop and tell the user: the upgrade's installs need the same registry.
23
+ 3. **Read from that copy.** Read this reference again from `<skill>/references/upgrade-extension.md`, unless that is the copy you are reading, and follow it from here. Read each step's guide from `<skill>/upgrading/extension/upgrades/<from>-to-<to>/instructions.md`. Where a guide runs a script from the project's skill copy, such as `node .agents/skills/prisma-8/upgrading/...`, run the same path under `<skill>`, still from the project root: `node <skill>/upgrading/...`.
24
+ 4. **Do not sync the skill until the chain is done.** During the upgrade, do not run `prisma skills sync`, and ignore the line a `prisma` command prints when the project's skill copy differs from the installed packages: a sync would bring back the installed release's copy. Sync once, when the chain is done.
14
25
 
15
26
  ## Role detection
16
27
 
@@ -30,8 +41,9 @@ If detection is ambiguous, ask the user which role to operate under.
30
41
  - **From-version.** Read the installed Prisma 8 version from `pnpm-lock.yaml` (or `package-lock.json` / `yarn.lock`): take the resolved version of any `@prisma/orm-*` platform package (`@prisma/orm-framework`, `@prisma/orm-family-*`, `@prisma/orm-target-*`, `@prisma/orm-toolchain`). Do not read it from an extension published by someone else, which has its own version.
31
42
  - **On the `8.0.0` release candidates,** compare the full version strings, including the part after the hyphen. `8.0.0-rc.10` and `8.0.0-rc.11` are different versions, and different steps in the chain below.
32
43
  - **From release 8.0,** a step is named by the release, which is the major and minor: `8.0-to-8.1`. So the from-version is the release that a package's version belongs to. `8.0.1-ea.0`, `8.0.1` and `8.0.2` all belong to release `8.0`. (A platform package below GA has a level suffix, such as `8.0.1-ea.0` for `@prisma/orm-family-mongo`.)
44
+ - **What counts as a version of a release.** Release 8.0 starts at `8.0.1` for a GA package and `8.0.1-ea.0` (or `-preview.0`, `-rc.0`) for one below GA. A version `8.0.0-rc.N` is a release candidate, which is a step of its own, not a version of release 8.0, although its major and minor are `8.0`. A version with `-dev.` in it is a development build and is not a version of any release. Wherever this reference says "a version in the `<to>` release" or "the first version in the `<to>` release", it means this.
33
45
  - If the lockfile shows the platform packages on different releases, the lowest is the from-version.
34
- - **To-version.** Either the version the user specified, or whatever `npm view @prisma/orm-framework dist-tags.latest` reports. Do not assume that is a stable version: while Prisma 8 is a release candidate, `latest` tracks the newest release, `8.0.0-rc.N` included. If the user wants a stable version specifically, they must name it.
46
+ - **To-version.** Either the version the user specified, or whatever `npm view @prisma/orm-framework dist-tags.latest` reports. Do not assume that is a stable version: `latest` is the newest release promoted to `latest`, which while Prisma 8 is a release candidate is an `8.0.0-rc.N`. If the user wants a stable version specifically, they must name it.
35
47
 
36
48
  Report both back to the user before continuing.
37
49
 
@@ -45,7 +57,7 @@ If the from-to delta spans more than one release (e.g. `0.6 → 0.8`), build the
45
57
 
46
58
  The [`../upgrading/extension/upgrades/`](../upgrading/extension/upgrades/) directories name the steps — read the chain off the directory names rather than deriving it arithmetically. Each directory is `<from>-to-<to>`. A step normally spans one stable minor (`0.7-to-0.8`) or one release candidate (`8.0.0-rc.1-to-8.0.0-rc.2`). When intermediate versions were not published, a guide may span a larger hop; follow the available directory chain rather than inventing missing steps. Moving onto the RC line from the last stable minor is a single step of its own (`0.17-to-8.0.0-rc.1`).
47
59
 
48
- Apply each step in order, fully: bump, install, run instructions, check pins, validate, commit — before moving to the next. Halt the chain on the first failed step.
60
+ Apply each step in order, fully: bump, install, run instructions, check pins, validate, commit — before moving to the next. The one exception is a step that a package with versions of its own, or `prisma`, has no release for; the bump step says when to take steps together. A step's own guide can also tell you to take it together with a later step; do so, as [Steps taken together](upgrade-app.md#steps-taken-together) describes for an application and the bump step below describes for this flow. Halt the chain on the first failed step.
49
61
 
50
62
  ## Per-step flow
51
63
 
@@ -54,16 +66,37 @@ This flow assumes you are an **external extension author**: your extension lives
54
66
  For each `(from, to)` step in the chain:
55
67
 
56
68
  1. **Bump `@prisma/orm-*` deps.** What to write depends on the release:
57
- - **On the `8.0.0` release candidates,** rewrite every `@prisma/orm-*` entry in the extension's `package.json` to the exact `<to>` version, such as `"8.0.0-rc.11"`: no caret, no tilde, no range, and no `workspace:` specifier. The exact-pin rule below says why. All entries move to the same version. That includes another extension published from the Prisma repository, such as `@prisma/orm-extension-pgvector`: every `@prisma/orm-*` package is published at every release, and each lists the others at that release's version.
69
+ - **On the `8.0.0` release candidates,** rewrite every `@prisma/orm-*` entry in the extension's `package.json` to the exact `<to>` version, such as `"8.0.0-rc.11"`, except a package with versions of its own (below): no caret, no tilde, no range, and no `workspace:` specifier. The exact-pin rule below says why. All entries move to the same version. That includes another extension [released with the ORM](upgrade-app.md#pre-flight--extension-compatibility), such as `@prisma/orm-extension-pgvector`: each of those lists the others at that release's version.
58
70
  - **From release 8.0,** the two sections of `package.json` differ.
59
- - Under `peerDependencies`, write the ranges that [the last section](#from-release-80-number-your-package-and-declare-ranges) gives. They say which releases your package accepts, and a caret there need not change at every step.
60
- - Under `devDependencies`, write each package's first version in the `<to>` release, so that your build and tests run against `<to>`: `8.2.0` for a GA package at the step to release 8.2, whatever the peer range says. Put a tilde in front of every one, such as `~8.2.0` or `~8.2.0-ea.0`. A tilde stays within `<to>` and still takes its fixes. A caret would let the install take a later release, whose instructions have not been applied, and would let a GA package move ahead of a package below GA that the tests use.
71
+ - Under `peerDependencies`, write the ranges that [the last section](#from-release-80-number-your-package-and-declare-ranges) gives, except for a package with versions of its own (below). They say which releases your package accepts, and a caret there need not change at every step.
72
+ - Under `devDependencies`, write each package's first version in the `<to>` release, again except for a package with versions of its own, so that your build and tests run against `<to>`: `8.2.0` for a GA package at the step to release 8.2, whatever the peer range says. Put a tilde in front of every one, such as `~8.2.0` or `~8.2.0-ea.0`. A tilde stays within `<to>` and still takes its fixes. A caret would let the install take a later release, whose instructions have not been applied, and would let a GA package move ahead of a package below GA that the tests use.
61
73
 
62
74
  Where each entry goes is the same on every release:
63
75
  - A package that the extension's shipped code imports belongs under `peerDependencies`, and again under `devDependencies`.
64
76
  - A package that only the extension's tests use, such as a database package the tests run against, belongs under `devDependencies` alone.
65
77
  - Move any entry that is still under `dependencies` or `optionalDependencies`. An extension written for an earlier release had the framework, the family and the toolchain as ordinary dependencies.
66
78
 
79
+ **A package with versions of its own.** A Prisma package is released with the ORM at this step only when it has a version in the `<to>` release, as [Version detection](#version-detection) defines it, whose `repository.url` names `prisma/orm` itself, as [the application pre-flight](upgrade-app.md#pre-flight--extension-compatibility) describes. Any other package your extension uses has versions of its own, even when its name starts with `@prisma/orm-`: an extension published by someone else, a package Prisma publishes from another repository, or one that moved out of the ORM repository. If you cannot tell which kind a package is, treat it as one with versions of its own; the search below finds the right version for either kind. Do not write `<to>`, or a version derived from it, for such a package: that version may never be published. Find the newest release of it whose every entry accepts this step's versions, reading its entries on `@prisma/orm-*` packages and on the other packages with versions of their own as step 3 of the application pre-flight does. If it has none, but has one for a later step of the chain, take the steps up to that later step together, as [Steps taken together](upgrade-app.md#steps-taken-together) describes for an application. In this flow that means: do step 1, the bump, once, to the later step's versions; step 2, the install, once; step 3, the pin check, once, after the install; then steps 4 and 5, reading and applying the upgrade instructions, for every step from the first of them to the later one, in order; then step 6, validation, and step 7, the commit, once. If no later step has one either, halt before this step's install and tell the user which package has no release for which Prisma version. Write the release you found:
80
+ - on the `8.0.0` release candidates, as its exact version, under `devDependencies`, and also under `peerDependencies` when the extension's shipped code imports it, as above;
81
+ - from release 8.0, under `devDependencies`, with a tilde on that release's version, such as `~8.0.1-ea.0`, or as the exact version when the tilde would also accept a later release of it that does not accept this step, because the install takes the newest release a range accepts; under `peerDependencies`, when the shipped code imports it, the range [the last section](#from-release-80-number-your-package-and-declare-ranges) gives for that package's level, taken from that release's version and not from `<to>`, such as `^8.0.1` for a GA version `8.0.1` or `~8.0.1-ea.0` for a version below GA.
82
+
83
+ **The `prisma` command-line tool.** If the extension lists `prisma` under `devDependencies`, to run `prisma` commands such as `prisma contract emit` in its build or tests, choose its version as [Choosing the `prisma` version](upgrade-app.md#choosing-the-prisma-version) describes: on the `8.0.0` release candidates its toolchain must be exactly `<to>`, and so must its framework where it lists one; from release 8.0 they must be in the `<to>` release, which no `8.0.0-rc.N` version is. This matters more for an extension than for an application: the files your build ships and the commands your tests run come from the toolchain that `prisma` brings, not from the one your extension lists.
84
+
85
+ If no `prisma` version fits a step that is not the last of the chain, take that step, and every step after it that no `prisma` version fits either, together with the next step that a `prisma` version fits, as for a package with versions of its own above: a `prisma` command must run on the toolchain of the packages installed at that time. If no `prisma` version fits any of the remaining steps, take the run together with the last step of the chain, which then uses the overrides below. If none fits the last step, which is normal on the day of a release, because `prisma` is published after the ORM, move `prisma` to its `latest` version and make it use this step's versions with pnpm overrides. Use `<to>` on the release candidates, and from release 8.0 the versions your `devDependencies` resolve to:
86
+
87
+ ```json
88
+ "pnpm": {
89
+ "overrides": {
90
+ "prisma>@prisma/orm-toolchain": "<version this step installs>",
91
+ "prisma>@prisma/orm-framework": "<version this step installs>"
92
+ }
93
+ }
94
+ ```
95
+
96
+ The toolchain names one exact `@prisma/cli-engine` as a peer dependency. Under the overrides it runs on the engine that `prisma` brings, and the install may print a peer dependency warning for it when the two versions differ. Leave the engine alone: `prisma` itself runs on that engine, and ADR 329 says the toolchain still reads a config made by an engine of another version.
97
+
98
+ The overrides can also go under the `overrides` key of `pnpm-workspace.yaml`, or in your package manager's equivalent. They run `prisma` with a toolchain it was not released with, so they are a stopgap. Do not publish a release of your extension built while they are in place. Once a `prisma` version that fits is published, move `prisma` to it, remove the overrides, and run the install and validation again.
99
+
67
100
  The skill itself ships inside the Prisma packages, so bumping them is what updates it. There is no separate skill package to bump.
68
101
 
69
102
  2. **Install.** Run `pnpm install` (or the project's lockfile-managing command). The extension's source is now broken against the new SPI — the upgrade instructions for `<from> → <to>` exist to fix it.
@@ -73,19 +106,25 @@ For each `(from, to)` step in the chain:
73
106
  - every such peer dependency must also be under `devDependencies`;
74
107
  - none may be under `dependencies` or `optionalDependencies`.
75
108
 
76
- A development dependency with no peer entry is one that only the tests use, and passes. This prints any entry that breaks the rule, and exits 1:
109
+ A development dependency with no peer entry is one that only the tests use, and passes. A package with versions of its own keeps the version the bump step chose; name each one after `<to>` so the check does not compare its version with `<to>`. It still checks where the package is listed, that its version is exact, and that its peer and development entries are the same version, also for a named package whose name does not start with `@prisma/orm-`. This prints any entry that breaks the rule, and exits 1:
77
110
 
78
111
  ```bash
79
- node -e 'const p=require("./package.json");const to=process.argv[1];const ours=(n)=>n.startsWith("@prisma/orm-");const bad=[];for(const f of ["dependencies","optionalDependencies"])for(const n of Object.keys(p[f]??{}))if(ours(n))bad.push(f+": "+n+" belongs in peerDependencies, or in devDependencies alone if only tests use it");for(const f of ["peerDependencies","devDependencies"])for(const [n,v] of Object.entries(p[f]??{}))if(ours(n)&&v!==to)bad.push(f+": "+n+"@"+v);for(const n of Object.keys(p.peerDependencies??{}))if(ours(n)&&!(n in (p.devDependencies??{})))bad.push("devDependencies: "+n+" is missing");if(bad.length){console.error(bad.join("\n"));process.exit(1)}' <to>
112
+ node -e 'const p=require("./package.json");const [to,...own]=process.argv.slice(1);const ours=(n)=>n.startsWith("@prisma/orm-");const bad=[];for(const f of ["dependencies","optionalDependencies"])for(const n of Object.keys(p[f]??{}))if(ours(n)||own.includes(n))bad.push(f+": "+n+" belongs in peerDependencies, or in devDependencies alone if only tests use it");for(const f of ["peerDependencies","devDependencies"])for(const [n,v] of Object.entries(p[f]??{}))if((ours(n)||own.includes(n))&&(own.includes(n)?!/^\d+\.\d+\.\d+(-[0-9A-Za-z.-]+)?$/.test(v)||(f==="peerDependencies"&&n in (p.devDependencies??{})&&p.devDependencies[n]!==v):v!==to))bad.push(f+": "+n+"@"+v);for(const n of Object.keys(p.peerDependencies??{}))if((ours(n)||own.includes(n))&&!(n in (p.devDependencies??{})))bad.push("devDependencies: "+n+" is missing");if(bad.length){console.error(bad.join("\n"));process.exit(1)}' <to> [<package with versions of its own> ...]
80
113
  ```
81
114
 
82
115
  If it fails, the bump step did not rewrite every entry. Fix the entries it printed and run it again before going on.
83
116
 
84
- 4. **Read the upgrade instructions.** Re-sync the skills (`prisma skills sync`) so the tree matches the version just installed, then load `../upgrading/extension/upgrades/<from>-to-<to>/instructions.md`. Parse the YAML frontmatter and pay particular attention to its `changes[]` array.
117
+ 4. **Read the upgrade instructions.** Load `<skill>/upgrading/extension/upgrades/<from>-to-<to>/instructions.md`, from the newest release's skill ([Step 0](#step-0--read-the-newest-releases-skill)). Parse the YAML frontmatter and pay particular attention to its `changes[]` array.
85
118
 
86
119
  5. **Apply each change.** When the guide's body has a section that orders the steps, such as `Order of the steps`, apply the changes in that order: it says which script runs before which, and when to sign the databases and when to plan and apply a migration. Where an entry's prose says to sign or migrate, do it at the step that section names. Otherwise take the entries in the order of `changes[]`. For each entry in `changes[]`:
87
120
  - If the entry has a `detection` block (a glob + content predicate), run it. If no files match, skip this change. Run the glob over the project's own files: skip `node_modules`, and build output such as `dist`, `build`, `.next` or `out` (whatever directories the project's build writes). A match there is generated code, which the next build rewrites; editing it changes nothing. Migration snapshots under `migrations/snapshots/` are committed files, not build output, so keep them.
88
- - How a `detection` block runs: `glob` selects files relative to the project root. Each `matches` entry, once read from the YAML, is a JavaScript regular expression, built as `new RegExp(pattern)` with no flags and tested against the whole content of one file at a time; each `contains` entry is a plain substring. A file is a hit when any entry matches it. Patterns may span lines, and some look at the whole file (for example, to skip a file that declares something elsewhere in it), so a line-by-line search such as `grep` or `rg` without `-U` is not the same test and can report files the pattern excludes. From a shell, `rg -U --pcre2 -l -e '<pattern>' <files>` tests whole files and gives the same hits.
121
+ - How a `detection` block runs: `glob` selects files relative to the project root. Each `matches` entry, once read from the YAML, is a JavaScript regular expression, built as `new RegExp(pattern)` with no flags and tested against the whole content of one file at a time; some older guides call these entries `regex`, which means the same. Each `contains` entry is a plain substring. A file is a hit when any entry matches it, or, when the block sets `anyMatch: false`, only when every entry matches it; `anyMatch: true` changes nothing. Patterns may span lines, and some look at the whole file (for example, to skip a file that declares something elsewhere in it), so a line-by-line search such as `grep` or `rg` without `-U` is not the same test and can report files the pattern excludes. Do not use `rg --pcre2` either: some patterns have a lookbehind of unbounded length, such as `(?<!\b(?:import|export)\s+(?:type\s+)?\{[^}]*)`, which PCRE2 refuses with "length of lookbehind assertion is not limited". From a shell, run the detection with the skill's script, with Node 24 or later, from the project root. For example, for the `boolean-codec-type-takes-codec-types` change of the `8.0.0-rc.26` to `8.0.0-rc.27` guide:
122
+
123
+ ```sh
124
+ node <skill>/references/scripts/find-detection-hits.ts '**/*.{ts,tsx,mts,cts}' '(?<!\b(?:import|export)\s+(?:type\s+)?\{[^}]*)\bBooleanCodecType\b(?!\s*<)'
125
+ ```
126
+
127
+ After the script's path, give `--all` if the block sets `anyMatch: false`, then the change's `glob`, then each of its `matches` or `regex` entries; if it has `contains` entries, add `--contains` and then each of them. Pass each entry as it reads once decoded from the YAML: in a single-quoted YAML entry, `''` stands for one `'`; in a double-quoted one, `\\` stands for one `\` and `\"` for one `"`, so `"(['\"])x\\1"` decodes to `(['"])x\1`. Put each argument in single quotes, so that the shell does not expand the glob or change the pattern, and write each `'` inside one as `'\''`. So the YAML entry `'[''"]'` becomes the argument `'['\''"]'`. The script prints each file that is a hit, relative to the project root. It skips `node_modules` and `.git`, and does not follow symbolic links; a `**` does not enter a folder whose name starts with a dot, but a glob that names one, such as `.github/workflows/*.yml`, does. Leave out the hits in build output yourself.
89
128
  - If the entry has no `detection`, apply unconditionally.
90
129
  - If the entry names a `script:` (a relative path next to `instructions.md`), invoke it from the project root:
91
130
  - `*.ts` → the command the guide's prose gives, such as `node <script>` (Node 24 or later runs TypeScript directly); with no command in the prose, `pnpm exec tsx <skill>/upgrading/extension/upgrades/<from>-to-<to>/<script>`
@@ -103,7 +142,7 @@ For each `(from, to)` step in the chain:
103
142
  chore: upgrade @prisma/orm-* to <to-version>
104
143
  ```
105
144
 
106
- (Or the extension's own commit-message convention, if it has one.) One commit per step — never squash steps.
145
+ (Or the extension's own commit-message convention, if it has one.) One commit per step — never squash steps, except that [steps taken together](upgrade-app.md#steps-taken-together) are one commit, which names each of them.
107
146
 
108
147
  Move on to the next step. Repeat.
109
148
 
@@ -111,7 +150,7 @@ Move on to the next step. Repeat.
111
150
 
112
151
  This rule holds until release 8.0, while every Prisma 8 package is published as `8.0.0-rc.N`. From release 8.0, ranges replace it; see [the last section](#from-release-80-number-your-package-and-declare-ranges).
113
152
 
114
- A Prisma 8 extension names every `@prisma/orm-*` package its shipped code uses, another extension published from the Prisma repository included, as a **peer dependency** at a single **exact** version (no `^`, no `~`, no range, no wildcard, no `workspace:` specifier in the published `package.json`), and lists the same packages under `devDependencies` at that version, so its own build and tests install them. A package of ours that only its tests use is a development dependency alone, at that version. None of them is an ordinary dependency. All of those entries share the same version. The pin advances after each successful upgrade step, release-candidate steps included.
153
+ A Prisma 8 extension names every `@prisma/orm-*` package its shipped code uses, another extension published from the Prisma repository included, as a **peer dependency** at a single **exact** version (no `^`, no `~`, no range, no wildcard, no `workspace:` specifier in the published `package.json`), and lists the same packages under `devDependencies` at that version, so its own build and tests install them. A package of ours that only its tests use is a development dependency alone, at that version. None of them is an ordinary dependency. All of those entries share the same version. A package with versions of its own is the exception: it goes in the same places, a development dependency always and a peer dependency when the shipped code imports it, but at its own version, which the bump step says how to choose. The pin advances after each successful upgrade step, release-candidate steps included.
115
154
 
116
155
  The version is the one the application's database package (`@prisma/orm-postgres`, `@prisma/orm-mongo`, …) uses.
117
156
 
@@ -119,7 +158,7 @@ An application must have one copy of each Prisma package, and peer dependencies
119
158
 
120
159
  To list every copy and the package that brought it, run `npm ls @prisma/orm-framework`, `pnpm why @prisma/orm-framework` or `bun why @prisma/orm-framework`. [ADR 329](https://github.com/prisma/orm/blob/main/docs/architecture%20docs/adrs/ADR%20329%20-%20An%20application%20lists%20the%20platform%20packages%20and%20our%20packages%20name%20each%20other%20as%20peers.md) explains the reasons, and the one case peer dependencies do not cover, a monorepo with applications on different Prisma releases.
121
160
 
122
- The one-line check in step 3 of the per-step flow enforces the rule; the `prisma-8-check-pins` guard the monorepo uses for its own extensions is not published. Wire the check into the extension's CI alongside the build/test step so an accidental range pin fails the PR before it lands.
161
+ The one-line check in step 3 of the per-step flow enforces the rule. Wire the check into the extension's CI alongside the build/test step so an accidental range pin fails the PR before it lands.
123
162
 
124
163
  ## From release 8.0: number your package and declare ranges
125
164
 
@@ -133,7 +172,8 @@ From release 8.0, Prisma's packages share a release number, which is the major a
133
172
  | --- | --- | --- |
134
173
  | A GA package, and you use only its GA functions | A caret on the first release your package works with | `^8.1.0` |
135
174
  | A GA package, and you use a function below GA, such as `preview_search` | A tilde: that function may change in the next release | `~8.1.0` |
136
- | A package below GA | A tilde on its first version in that release | `~8.1.0-preview.0` |
175
+ | A package below GA, released with the ORM | A tilde on its first version in that release | `~8.1.0-preview.0` |
176
+ | A package with versions of its own | The range for its level, on the newest release of it that accepts the step, found as the bump step says | `^1.4.0` |
137
177
 
138
178
  With a caret, your package keeps working when an application moves to a later release: a package at `8.1.2` that lists `^8.1.0` works in an application on `8.4`. An application on a release below `8.1` gets a mismatch reported at install. With a tilde, you publish a new version of your package for each Prisma release.
139
179
 
@@ -143,7 +183,7 @@ The convention has two costs. A feature of yours that needs no newer Prisma rele
143
183
 
144
184
  ## When the chain is done
145
185
 
146
- Report back to the user: the number of steps applied, the SHAs of the commits you made, and any open follow-ups.
186
+ Run `prisma skills sync`, so the project's copy of the skill matches the release now installed, and commit it if the project tracks it. Report back to the user: the number of steps applied, the SHAs of the commits you made, and any open follow-ups. If the overrides for `prisma` are in place, say so: do not publish a release built with them. Once a `prisma` version that fits is published, move `prisma` to it, remove the overrides, and install and validate again.
147
187
 
148
188
  ## Failure surfaces
149
189