@prisma/orm-mongo 8.0.0-rc.25-dev.29 → 8.0.0-rc.27

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 (212) 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-quick-reference.md +1 -1
  17. package/dist/init.d.mts +2 -1
  18. package/dist/init.d.mts.map +1 -1
  19. package/dist/migration-tools__aggregate.d.mts +3 -1
  20. package/dist/migration-tools__hash.d.mts +3 -1
  21. package/dist/migration-tools__io.d.mts +3 -1
  22. package/dist/migration-tools__spaces.d.mts +3 -1
  23. package/dist/migration.d.mts +3 -1
  24. package/dist/{mongo-static-CZlnpepm-DnjIfx0L.mjs → mongo-static-Uk6OGD4r-BoKXE7a6.mjs} +4 -4
  25. package/dist/mongo-static-Uk6OGD4r-BoKXE7a6.mjs.map +1 -0
  26. package/dist/orm.d.mts +3 -1
  27. package/dist/query-ast__execution.d.mts +3 -1
  28. package/dist/query-builder.d.mts +3 -1
  29. package/dist/runtime.d.mts +3 -1
  30. package/dist/runtime.d.mts.map +1 -1
  31. package/dist/runtime.mjs +6 -6
  32. package/dist/runtime.mjs.map +1 -1
  33. package/dist/static.d.mts +2 -1
  34. package/dist/static.d.mts.map +1 -1
  35. package/dist/static.mjs +1 -1
  36. package/dist/target.d.mts +2 -1
  37. package/dist/target__codec-ids.d.mts +3 -1
  38. package/dist/target__codec-types.d.mts +3 -1
  39. package/dist/target__migration.d.mts +3 -1
  40. package/dist/target__runtime.d.mts +2 -1
  41. package/dist/value.d.mts +3 -1
  42. package/dist/vite-plugin-contract-emit.d.mts +3 -1
  43. package/package.json +12 -81
  44. package/skills/prisma-8/SKILL.md +8 -8
  45. package/skills/prisma-8/references/contract.md +9 -9
  46. package/skills/prisma-8/references/debug.md +11 -11
  47. package/skills/prisma-8/references/migration-model.md +17 -17
  48. package/skills/prisma-8/references/migration-review.md +21 -21
  49. package/skills/prisma-8/references/migrations.md +58 -42
  50. package/skills/prisma-8/references/queries-postgres.md +51 -8
  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 +3 -3
  54. package/skills/prisma-8/references/supabase.md +2 -2
  55. package/skills/prisma-8/references/upgrade-app.md +56 -23
  56. package/skills/prisma-8/references/upgrade-extension.md +35 -14
  57. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.25-to-8.0.0-rc.26/instructions.md +2478 -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 +2125 -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 +100 -0
  64. package/skills/prisma-8/upgrading/extension/upgrades/0.11-to-0.12/instructions.md +1 -1
  65. package/skills/prisma-8/upgrading/extension/upgrades/0.8-to-0.9/instructions.md +1 -1
  66. package/skills/prisma-8/upgrading/extension/upgrades/0.9-to-0.10/instructions.md +1 -1
  67. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.25-to-8.0.0-rc.26/instructions.md +2057 -0
  68. 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 +2125 -0
  69. 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
  70. 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
  71. 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
  72. 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
  73. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.26-to-8.0.0-rc.27/instructions.md +56 -0
  74. package/dist/adapter.d.mts +0 -1
  75. package/dist/adapter.mjs +0 -2
  76. package/dist/adapter__control.d.mts +0 -3
  77. package/dist/adapter__control.mjs +0 -3
  78. package/dist/adapter__runtime.d.mts +0 -3
  79. package/dist/adapter__runtime.mjs +0 -3
  80. package/dist/components.d.mts +0 -1
  81. package/dist/components.mjs +0 -2
  82. package/dist/components__authoring.d.mts +0 -1
  83. package/dist/components__authoring.mjs +0 -2
  84. package/dist/components__codec.d.mts +0 -1
  85. package/dist/components__codec.mjs +0 -2
  86. package/dist/components__components.d.mts +0 -1
  87. package/dist/components__components.mjs +0 -2
  88. package/dist/components__control.d.mts +0 -1
  89. package/dist/components__control.mjs +0 -2
  90. package/dist/components__emission.d.mts +0 -1
  91. package/dist/components__emission.mjs +0 -2
  92. package/dist/components__execution.d.mts +0 -1
  93. package/dist/components__execution.mjs +0 -2
  94. package/dist/components__ir.d.mts +0 -1
  95. package/dist/components__ir.mjs +0 -2
  96. package/dist/components__psl-ast.d.mts +0 -1
  97. package/dist/components__psl-ast.mjs +0 -2
  98. package/dist/components__utils.d.mts +0 -1
  99. package/dist/components__utils.mjs +0 -2
  100. package/dist/contract.d.mts +0 -1
  101. package/dist/contract.mjs +0 -2
  102. package/dist/contract__apply-specifier-default-control-policy.d.mts +0 -1
  103. package/dist/contract__apply-specifier-default-control-policy.mjs +0 -2
  104. package/dist/contract__contract-validation-error.d.mts +0 -1
  105. package/dist/contract__contract-validation-error.mjs +0 -2
  106. package/dist/contract__default-namespace.d.mts +0 -1
  107. package/dist/contract__default-namespace.mjs +0 -2
  108. package/dist/contract__enum-accessor.d.mts +0 -1
  109. package/dist/contract__enum-accessor.mjs +0 -2
  110. package/dist/contract__format-version.d.mts +0 -1
  111. package/dist/contract__format-version.mjs +0 -2
  112. package/dist/contract__hashing-utils.d.mts +0 -1
  113. package/dist/contract__hashing-utils.mjs +0 -2
  114. package/dist/contract__hashing.d.mts +0 -1
  115. package/dist/contract__hashing.mjs +0 -2
  116. package/dist/contract__internal__format-version.d.mts +0 -1
  117. package/dist/contract__internal__format-version.mjs +0 -2
  118. package/dist/contract__is-plain-record.d.mts +0 -1
  119. package/dist/contract__is-plain-record.mjs +0 -2
  120. package/dist/contract__resolve-domain-model.d.mts +0 -1
  121. package/dist/contract__resolve-domain-model.mjs +0 -2
  122. package/dist/contract__validate-domain.d.mts +0 -1
  123. package/dist/contract__validate-domain.mjs +0 -2
  124. package/dist/contract__validate-once.d.mts +0 -1
  125. package/dist/contract__validate-once.mjs +0 -2
  126. package/dist/contract__validate-storage.d.mts +0 -1
  127. package/dist/contract__validate-storage.mjs +0 -2
  128. package/dist/driver.d.mts +0 -1
  129. package/dist/driver.mjs +0 -2
  130. package/dist/driver__control.d.mts +0 -3
  131. package/dist/driver__control.mjs +0 -3
  132. package/dist/driver__runtime.d.mts +0 -3
  133. package/dist/driver__runtime.mjs +0 -3
  134. package/dist/family-contract__canonicalization-hooks.d.mts +0 -1
  135. package/dist/family-contract__canonicalization-hooks.mjs +0 -2
  136. package/dist/family-contract__data-type.d.mts +0 -1
  137. package/dist/family-contract__data-type.mjs +0 -2
  138. package/dist/family-contract__entity-kinds.d.mts +0 -1
  139. package/dist/family-contract__entity-kinds.mjs +0 -2
  140. package/dist/family__control-adapter.d.mts +0 -1
  141. package/dist/family__control-adapter.mjs +0 -2
  142. package/dist/family__ir.d.mts +0 -1
  143. package/dist/family__ir.mjs +0 -2
  144. package/dist/family__migration.d.mts +0 -1
  145. package/dist/family__migration.mjs +0 -2
  146. package/dist/family__pack.d.mts +0 -3
  147. package/dist/family__pack.mjs +0 -3
  148. package/dist/family__runtime.d.mts +0 -1
  149. package/dist/family__runtime.mjs +0 -2
  150. package/dist/family__schema-verify.d.mts +0 -1
  151. package/dist/family__schema-verify.mjs +0 -2
  152. package/dist/migration-tools__contract-snapshot-store.d.mts +0 -1
  153. package/dist/migration-tools__contract-snapshot-store.mjs +0 -2
  154. package/dist/mongo-static-CZlnpepm-DnjIfx0L.mjs.map +0 -1
  155. package/dist/query-ast.d.mts +0 -1
  156. package/dist/query-ast.mjs +0 -2
  157. package/dist/query-ast__control.d.mts +0 -1
  158. package/dist/query-ast__control.mjs +0 -2
  159. package/dist/query-builder__contract-free.d.mts +0 -1
  160. package/dist/query-builder__contract-free.mjs +0 -2
  161. package/dist/target__codecs.d.mts +0 -1
  162. package/dist/target__codecs.mjs +0 -2
  163. package/dist/target__control.d.mts +0 -1
  164. package/dist/target__control.mjs +0 -2
  165. package/dist/target__data-types.d.mts +0 -1
  166. package/dist/target__data-types.mjs +0 -2
  167. package/dist/target__pack.d.mts +0 -3
  168. package/dist/target__pack.mjs +0 -3
  169. package/dist/target__server-version.d.mts +0 -1
  170. package/dist/target__server-version.mjs +0 -2
  171. package/dist/utils.d.mts +0 -1
  172. package/dist/utils.mjs +0 -2
  173. package/dist/utils__abortable.d.mts +0 -1
  174. package/dist/utils__abortable.mjs +0 -2
  175. package/dist/utils__array-equal.d.mts +0 -1
  176. package/dist/utils__array-equal.mjs +0 -2
  177. package/dist/utils__assertions.d.mts +0 -1
  178. package/dist/utils__assertions.mjs +0 -2
  179. package/dist/utils__canonical-stringify.d.mts +0 -1
  180. package/dist/utils__canonical-stringify.mjs +0 -2
  181. package/dist/utils__casts.d.mts +0 -1
  182. package/dist/utils__casts.mjs +0 -2
  183. package/dist/utils__defined.d.mts +0 -1
  184. package/dist/utils__defined.mjs +0 -2
  185. package/dist/utils__guards.d.mts +0 -1
  186. package/dist/utils__guards.mjs +0 -2
  187. package/dist/utils__hash-content.d.mts +0 -1
  188. package/dist/utils__hash-content.mjs +0 -2
  189. package/dist/utils__internal-error.d.mts +0 -1
  190. package/dist/utils__internal-error.mjs +0 -2
  191. package/dist/utils__json.d.mts +0 -1
  192. package/dist/utils__json.mjs +0 -2
  193. package/dist/utils__promise.d.mts +0 -1
  194. package/dist/utils__promise.mjs +0 -2
  195. package/dist/utils__redact-db-url.d.mts +0 -1
  196. package/dist/utils__redact-db-url.mjs +0 -2
  197. package/dist/utils__result.d.mts +0 -1
  198. package/dist/utils__result.mjs +0 -2
  199. package/dist/utils__simplify-deep.d.mts +0 -1
  200. package/dist/utils__simplify-deep.mjs +0 -2
  201. package/dist/utils__structured-error.d.mts +0 -1
  202. package/dist/utils__structured-error.mjs +0 -2
  203. package/dist/utils__suppress-idle-connection-errors.d.mts +0 -1
  204. package/dist/utils__suppress-idle-connection-errors.mjs +0 -2
  205. package/dist/utils__text.d.mts +0 -1
  206. package/dist/utils__text.mjs +0 -2
  207. package/dist/utils__types.d.mts +0 -1
  208. package/dist/utils__types.mjs +0 -2
  209. package/dist/utils__upgrade-guides.d.mts +0 -1
  210. package/dist/utils__upgrade-guides.mjs +0 -2
  211. package/dist/value__mongodb-types.d.mts +0 -1
  212. package/dist/value__mongodb-types.mjs +0 -2
@@ -0,0 +1,100 @@
1
+ ---
2
+ from: "8.0.0-rc.26"
3
+ to: "8.0.0-rc.27"
4
+ changes:
5
+ - id: app-snapshot-gets-emitted-profile
6
+ summary: |
7
+ `prisma contract emit` now gives the snapshot of the emitted contract (`migrations/snapshots/<hash>/`, under the emitted storage hash) the emitted contract's required capabilities and profile hash when it holds others, and reports the snapshot it rewrote. In 8.0.0-rc.26 that snapshot kept the capabilities it was planned with, so a database that `prisma db migrate --to <ref>` created from it, as every Composer deploy does, failed `prisma db verify` with `CONTRACT.SIGNATURE_MISMATCH` ("signed for other capabilities"). Run `prisma contract emit` once and commit the snapshot it rewrites; sign each database created since the upgrade to 8.0.0-rc.26 with `prisma db sign --no-advance-ref`.
8
+ - id: boolean-codec-type-takes-codec-types
9
+ summary: |
10
+ `BooleanCodecType` takes the contract's codec types, as `BooleanCodecType<CodecTypes>`; a use without type arguments no longer compiles.
11
+ detection:
12
+ glob: "**/*.{ts,tsx,mts,cts}"
13
+ matches:
14
+ - '(?<!\b(?:import|export)\s+(?:type\s+)?\{[^}]*)\bBooleanCodecType\b(?!\s*<)'
15
+ - id: function-condition-takes-codec-types
16
+ summary: |
17
+ `FunctionCondition` from the ORM client takes the contract's codec types; a use without type arguments no longer compiles.
18
+ detection:
19
+ glob: "**/*.{ts,tsx,mts,cts}"
20
+ matches:
21
+ - '(?<!\b(?:import|export)\s+(?:type\s+)?\{[^}]*)\bFunctionCondition\b(?!\s*<)'
22
+ - id: condition-codec-on-mysql-and-sqlite
23
+ summary: |
24
+ On MySQL, MariaDB and SQLite a condition from `fns` is an expression of the target's boolean codec, `mysql/boolean@1` or `sqlite/boolean@1`, not `pg/bool@1`.
25
+ detection:
26
+ glob: "**/*.{ts,tsx,mts,cts}"
27
+ matches:
28
+ - 'pg\/bool@1'
29
+ - id: projected-condition-reads-as-boolean
30
+ summary: |
31
+ On MySQL, MariaDB and SQLite a condition selected as a column reads as a boolean, or `null` when its value is NULL, where it read as the text `'1'` or `'0'` on MySQL and MariaDB and as the number `1` or `0` on SQLite; on every target its row type is `boolean` without `null` when no operand is nullable.
32
+ - id: functions-builders-no-longer-published
33
+ summary: |
34
+ `createFunctions` and `createAggregateFunctions` are no longer published; a callback of the query builder receives the functions they built as its `fns` argument, and a callback of the ORM receives the ORM's functions, built from `createFunctions`.
35
+ detection:
36
+ glob: "**/*.{ts,tsx,mts,cts}"
37
+ matches:
38
+ - '\bcreate(?:Aggregate)?Functions\b'
39
+ ---
40
+
41
+ # The snapshot of the emitted contract gets its capabilities
42
+
43
+ ## `app-snapshot-gets-emitted-profile`
44
+
45
+ `db migrate --to <ref>` signs the database with the profile hash of the ref's contract snapshot, in `migrations/snapshots/<hash>/`. The profile hash covers the capabilities the contract requires. 8.0.0-rc.26 added `conn.interactiveTransactions` to the capabilities a PostgreSQL contract requires, which changed the emitted profile hash but not the storage hash, so the snapshot of the current contract kept the old list and the old profile hash. A database that `db migrate --to <ref>` created from that snapshot was signed with the old profile hash, and `db verify` failed with `CONTRACT.SIGNATURE_MISMATCH`: "The database is signed for other capabilities". `db migrate` without `--to`, or with `--to @contract`, was not affected.
46
+
47
+ `contract emit` now updates the `requiredCapabilities` and `profileHash` in that snapshot's `contract.json` when they differ from the emitted contract's, changes nothing else in it, and writes the snapshot's `contract.d.ts` again from it. Its output names the snapshot, and its `--json` output has it under `rewrittenSnapshot`. The Vite plugin's emit does not update the snapshot; run `prisma contract emit`.
48
+
49
+ 1. Run `prisma contract emit` in each Prisma project folder. If the output reports an updated snapshot, commit the files under `migrations/snapshots/` that it changed. If it reports none, it changed no snapshot file, and there is nothing to commit for this step.
50
+ 2. This step is only for an application that was on 8.0.0-rc.26 and created databases on it. List each database that `prisma db migrate --to <ref>` or a Composer deploy created after the upgrade to 8.0.0-rc.26: new environments, preview and pull request databases, and demo databases. Run `prisma db verify --db <url>` against each. A database that fails with `CONTRACT.SIGNATURE_MISMATCH` and "The database is signed for other capabilities" was signed with the old profile hash. Sign it again with the emitted contract:
51
+
52
+ ```bash
53
+ prisma db sign --db <url> --no-advance-ref
54
+ ```
55
+
56
+ `db sign` checks the database's schema against the emitted contract before it signs, so run it only once the database is at the contract you emitted. If it refuses because the database's change policy allows only migrations, add `--force`; the schema is still checked and the policies are kept.
57
+
58
+ # Conditions from `fns` carry the contract's boolean codec
59
+
60
+ ## `boolean-codec-type-takes-codec-types`
61
+
62
+ `BooleanCodecType`, exported by `@prisma/orm-family-sql/builder/types`, now takes the contract's codec types and, optionally, a nullability. Pass the `CodecTypes` of the contract's `contract.d.ts`:
63
+
64
+ ```ts
65
+ import type { CodecTypes } from './prisma/contract';
66
+
67
+ expectTypeOf(condition).toExtend<Expression<BooleanCodecType<CodecTypes>>>();
68
+ ```
69
+
70
+ ## `function-condition-takes-codec-types`
71
+
72
+ `FunctionCondition`, exported by `@prisma/orm-family-sql/orm-client`, takes the contract's codec types the same way: `FunctionCondition<CodecTypes>`. It also takes a nullability as a second argument.
73
+
74
+ ## `condition-codec-on-mysql-and-sqlite`
75
+
76
+ On MySQL, MariaDB and SQLite, a condition such as `fns.eq(...)` or `fns.and(...)` is typed with the target's boolean codec: `mysql/boolean@1` on MySQL and MariaDB, `sqlite/boolean@1` on SQLite. Where code on these targets names `'pg/bool@1'` for a condition, replace it with the target's id. This covers a type annotation such as `Expression<{ codecId: 'pg/bool@1'; nullable: boolean }>`, and `fns.raw` with `.returns('pg/bool@1')` used as the result of `where` or as an operand of `fns.and` or `fns.or`. A boolean column is now accepted wherever a condition is, so a `fns.raw` that only wrapped a boolean column can be replaced by the column. Leave `pg/bool@1` on Postgres as it is.
77
+
78
+ ## `projected-condition-reads-as-boolean`
79
+
80
+ On MySQL, MariaDB and SQLite, a condition selected as a column, such as `select('isAdmin', (f, fns) => fns.eq(f.role, 'ADMIN'))`, now reads as `true` or `false`, or as `null` when one of its operands is nullable and its value is NULL. Before, it read as the text `'1'` or `'0'` on MySQL and MariaDB, and as the number `1` or `0` on SQLite. Find the code that reads such a value and use it as a boolean:
81
+
82
+ - On MySQL and MariaDB, look for comparisons with `'1'` or `'0'`, such as `row.isAdmin === '1'`, and conversions such as `Number(row.isAdmin)`. `Boolean(row.isAdmin)` was `true` for `'0'` as well, so code that used it was wrong before and is right now.
83
+ - On SQLite, look for comparisons with `1` or `0`, such as `row.isAdmin === 1`, and conversions such as `Boolean(row.isAdmin)` or `Number(row.isAdmin)`.
84
+
85
+ On Postgres the value does not change.
86
+
87
+ On every target, the row type of a selected condition is `boolean` without `null` when none of its operands is nullable. A type annotation that spells `boolean | null` for such a column still compiles; narrow it to `boolean` where the code no longer needs to handle `null`.
88
+
89
+ ## `functions-builders-no-longer-published`
90
+
91
+ `@prisma/orm-family-sql/builder/runtime` no longer exports `createFunctions` and `createAggregateFunctions`, and no other published path exports them. They built the functions that a callback of the query builder receives as its `fns` argument, and the ORM builds the `fns` of its callbacks from `createFunctions`, so code that called them takes `fns` from such a callback instead:
92
+
93
+ ```ts
94
+ // The query builder: the second argument of an expression callback, such as where, select, a join's on, orderBy, groupBy, having or the set of an update.
95
+ db.sql.public.user.select('id').where((f, fns) => fns.eq(f.id, 1));
96
+ // The ORM: the fns member of the second argument of a where or orderBy callback.
97
+ db.orm.public.User.where((user, { fns }) => fns.eq(user.id, 1));
98
+ ```
99
+
100
+ Code that called them to build a condition outside a query, such as in a test, builds a query with the query builder instead and reads the condition from the plan's syntax tree, such as the `where` of `db.sql.public.user.select('id').where((f, fns) => fns.eq(f.id, 1)).build().ast` after checking that its `kind` is `'select'`. That is a syntax-tree node, not the expression `createFunctions` returned.
@@ -564,7 +564,7 @@ Run the codemod in dry-run mode to confirm no committed manifest still carries t
564
564
  pnpm exec tsx ./strip-migration-labels-hints.ts --check
565
565
  ```
566
566
 
567
- `--check` lists every manifest that still needs fixing and exits non-zero if any remain, so wire it into your extension's CI alongside `prisma-8-check-pins`. A fully migrated tree reports `0 needing fix` and exits `0`.
567
+ `--check` lists every manifest that still needs fixing and exits non-zero if any remain, so wire it into your extension's CI. A fully migrated tree reports `0 needing fix` and exits `0`.
568
568
 
569
569
  ### Validation
570
570
 
@@ -54,4 +54,4 @@ While at it, scan any seed `migration.ts` doc-comments in your extension for sta
54
54
 
55
55
  ### Validation
56
56
 
57
- After running the script and applying the source-level rules above, run `pnpm typecheck && pnpm test` (or your extension's own equivalent). `prisma-8-check-pins` should also pass, since it does not look at `MigrationMetadata` shape.
57
+ After running the script and applying the source-level rules above, run `pnpm typecheck && pnpm test` (or your extension's own equivalent).
@@ -145,6 +145,6 @@ There is no codemod for this — extensions construct `SqlStorage` via too many
145
145
 
146
146
  ### Validation
147
147
 
148
- After running the JSON codemod and applying the source-level rules above, run `pnpm typecheck && pnpm test` (or your extension's equivalent). `prisma-8-check-pins` should also pass — the pin set is unchanged for this transition; the breaking change is in runtime construction behaviour, not the dependency contract.
148
+ After running the JSON codemod and applying the source-level rules above, run `pnpm typecheck && pnpm test` (or your extension's equivalent). The pin set is unchanged for this transition; the breaking change is in runtime construction behaviour, not the dependency contract.
149
149
 
150
150
  If your extension ships seed migrations under `packages/<extension>/migrations/`, also run the codemod with `--check` against the project root to confirm the seed snapshots all stamp correctly. The user-facing copy of the same codemod (under `../../../app/upgrades/0.9-to-0.10/`) operates on the user's app-space migrations; this copy operates on your extension's seed migrations.