turbine-orm 0.73.0 → 0.73.1-next.1e0f731

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turbine-orm",
3
- "version": "0.73.0",
3
+ "version": "0.73.1-next.1e0f731",
4
4
  "description": "Postgres-native TypeScript ORM, runs on Neon, Vercel Postgres, Cloudflare, Supabase. Streaming cursors, typed errors, single-query nested relations. One dependency, no WASM engine",
5
5
  "type": "module",
6
6
  "//exports": "Each subpath declares its types PER CONDITION. A single shared top-level \"types\" resolves to the ESM declarations for `require` too, which is TS1479 (\"is an ES module ... cannot be require()d\") for any CJS consumer on moduleResolution node16/nodenext. The require condition points at dist/cjs, which ships its own {\"type\":\"commonjs\"} package.json, so those declarations are CJS declarations. Gated in CI by publint + @arethetypeswrong/cli + a real .cts consumer typecheck (see the package-types job in ci.yml).",
@@ -22,10 +22,12 @@ const orders = await db.orders.findMany({
22
22
  });
23
23
  ```
24
24
 
25
- `include` is Prisma's word. Turbine ignores an unrecognized option, so an
26
- `include` runs, returns rows, and the relation is simply absent from every one
27
- of them. Since 0.73.0 it also prints a dev-mode warning naming `with`; in
28
- production it is silent.
25
+ `include` is Prisma's word. Written as a plain object literal TypeScript rejects
26
+ it, but that check does not apply to a spread (`findMany({ ...args })`) or to
27
+ JSON-shaped args, which is how generated and tool-driven code usually arrives.
28
+ On those paths it is ignored rather than refused: the query runs, returns rows,
29
+ and the relation is simply absent from every one of them. Since 0.73.0 it also
30
+ prints a dev-mode warning naming `with`; in production it is silent.
29
31
 
30
32
  ## 2. Relation names are derived, and not from the column
31
33