@aventara/prisma7-adapter 0.1.0-pilot.0 → 0.1.0-pilot.1

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 (2) hide show
  1. package/README.md +9 -11
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -210,15 +210,13 @@ plus a to-one relation and carry no to-many relation and no `$count`, where the
210
210
  `*Include` carries both.
211
211
 
212
212
  A to-one projection on `update.many` works. A projection reaching a **to-many** relation or `$count`
213
- on these two variants answers `A3001` — sanitized, with nothing written. That is a 500 for an
214
- argument the Contract advertised, and it is a known, open gap rather than a surprise: the Contract has
215
- no per-variant projection slot in which to say "available on `update.one`, not on `update.many`".
213
+ on these two variants is refused before any statement runs: `A2004` (a validation error) with the
214
+ issue `V1008`, nothing written. The Contract advertises each relation's projection per position, and
215
+ on these two variants the position the bulk result is read in does not include to-many relations.
216
216
 
217
- **Today:** keep `update.many`/`create.many` projections to scalars and to-one relations; read to-many
218
- relations with a separate `find`. **Phase 9** adds the per-variant projection capability so the
219
- Contract stops advertising a projection it cannot serve, and the refusal becomes a caller error
220
- (`A2004`) instead of a server failure. The adapter deliberately does **not** paper over it with a
221
- follow-up read: that would add a statement and a new consistency window to a bulk write.
217
+ **In practice:** keep `update.many`/`create.many` projections to scalars and to-one relations; read
218
+ to-many relations with a separate `find`. The adapter deliberately does **not** paper over the gap
219
+ with a follow-up read: that would add a statement and a new consistency window to a bulk write.
222
220
 
223
221
  ---
224
222
 
@@ -491,7 +489,7 @@ the artifact.
491
489
  Neither the model nor the compiled Contracts carry a referential action — the actions are beside the
492
490
  model and outside `modelHash`, so they move no Contract value and no hash. `createPrismaAdapter` states
493
491
  them to core through the adapter's optional `referentialActions` member, translated one to one into core's
494
- five words (the architect's, 2026-10-04, mirroring Prisma's and SQL's actions; direction unchanged):
492
+ five words (mirroring Prisma's and SQL's actions; direction unchanged):
495
493
 
496
494
  | Prisma action | core's word | deleting a `target` row does this to rows of the enclosing Resource |
497
495
  |---|---|---|
@@ -502,12 +500,12 @@ five words (the architect's, 2026-10-04, mirroring Prisma's and SQL's actions; d
502
500
  | `set-default` | `setDefault` | keeps them, the reference set to its column default |
503
501
 
504
502
  Only `cascade` drives core behaviour (the `V1019` closure below). `restrict`, `noAction`, `setNull` and
505
- `setDefault` are carried as informational adapter facts, by the architect's choice: the adapter states
503
+ `setDefault` are carried as informational adapter facts: the adapter states
506
504
  what the schema says rather than collapsing it into what core currently reads.
507
505
 
508
506
  `onUpdate` is not carried: core plans the **delete** closure only.
509
507
 
510
- **Planning-phase refusal is wired (Phase 9 S10).** Core builds the transitive closure of `cascade` edges
508
+ **Planning-phase refusal.** Core builds the transitive closure of `cascade` edges
511
509
  once, at framework construction, and the transaction planner refuses a step that depends on rows an
512
510
  earlier step's cascade removed — its own Resource, or one its arguments reach through a relation — with
513
511
  `A2004`/`V1019` *"Transaction step depends on a row removed by an earlier step's cascade"*, before any
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aventara/prisma7-adapter",
3
- "version": "0.1.0-pilot.0",
3
+ "version": "0.1.0-pilot.1",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "The Prisma 7 adapter for Aventara.",
6
6
  "type": "module",
@@ -29,7 +29,7 @@
29
29
  "LICENSE-ADDITIONAL-PERMISSION.md"
30
30
  ],
31
31
  "dependencies": {
32
- "@aventara/core": "0.1.0-pilot.0"
32
+ "@aventara/core": "0.1.0-pilot.1"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@prisma/adapter-better-sqlite3": "^7.10.0",