turbine-orm 0.59.1 → 0.59.2

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.
@@ -2944,7 +2944,7 @@ function renderPlanDivergence(divergence, attached) {
2944
2944
  const args = `where: { ${first.columnField}: value }, orderBy: { ${first.orderColumnField}: 'asc' },`;
2945
2945
  // The accessor is the camelCase FIELD spelling, not the raw table name:
2946
2946
  // TurbineClient and the code generator both define table accessors through
2947
- // snakeToCamel, so `db.inventory_location` is undefined on every
2947
+ // snakeToCamel, so `db.user_session` is undefined on every
2948
2948
  // snake_case schema. The finding's own `columnField` / `orderColumnField`
2949
2949
  // are already field-space for the same reason.
2950
2950
  console.log(` ${(0, ui_js_1.dim)('On the core client:')}`);
@@ -526,7 +526,7 @@ async function introspectPostgresCatalog(options) {
526
526
  // per-FK-column when several FKs point at the same target, and every name
527
527
  // is collision-checked against the table's scalar column fields so a
528
528
  // relation can never shadow a column (which generated unsound types and
529
- // made both surfaces unusable, dogfood T-4).
529
+ // made both surfaces unusable).
530
530
  const columnFieldsByTable = new Map();
531
531
  const unknownTypedFieldsByTable = new Map();
532
532
  for (const [tbl, cols] of columnsByTable) {
@@ -2266,7 +2266,7 @@ function buildRelationSubquery(qi, relDef, spec, params, parentRef, aliasCounter
2266
2266
  // For hasMany/hasOne: TARGET has the FK (RelationDef.foreignKey is always
2267
2267
  // the child-side column), so alias.fk = parentRef.pk. hasOne is just
2268
2268
  // hasMany with a unique FK, treating it like belongsTo here silently
2269
- // correlated the wrong columns (caught dogfooding: uuid = varchar).
2269
+ // correlated the wrong columns (the mismatch is silent: uuid = varchar).
2270
2270
  // For belongsTo: SOURCE has the FK, so alias.pk = parentRef.fk (reversed).
2271
2271
  // Supports composite foreign keys (string[]) via buildCorrelation.
2272
2272
  let whereClause;
package/dist/cli/index.js CHANGED
@@ -2894,7 +2894,7 @@ function renderPlanDivergence(divergence, attached) {
2894
2894
  const args = `where: { ${first.columnField}: value }, orderBy: { ${first.orderColumnField}: 'asc' },`;
2895
2895
  // The accessor is the camelCase FIELD spelling, not the raw table name:
2896
2896
  // TurbineClient and the code generator both define table accessors through
2897
- // snakeToCamel, so `db.inventory_location` is undefined on every
2897
+ // snakeToCamel, so `db.user_session` is undefined on every
2898
2898
  // snake_case schema. The finding's own `columnField` / `orderColumnField`
2899
2899
  // are already field-space for the same reason.
2900
2900
  console.log(` ${dim('On the core client:')}`);
@@ -504,7 +504,7 @@ export async function introspectPostgresCatalog(options) {
504
504
  // per-FK-column when several FKs point at the same target, and every name
505
505
  // is collision-checked against the table's scalar column fields so a
506
506
  // relation can never shadow a column (which generated unsound types and
507
- // made both surfaces unusable, dogfood T-4).
507
+ // made both surfaces unusable).
508
508
  const columnFieldsByTable = new Map();
509
509
  const unknownTypedFieldsByTable = new Map();
510
510
  for (const [tbl, cols] of columnsByTable) {
@@ -2189,7 +2189,7 @@ export function buildRelationSubquery(qi, relDef, spec, params, parentRef, alias
2189
2189
  // For hasMany/hasOne: TARGET has the FK (RelationDef.foreignKey is always
2190
2190
  // the child-side column), so alias.fk = parentRef.pk. hasOne is just
2191
2191
  // hasMany with a unique FK, treating it like belongsTo here silently
2192
- // correlated the wrong columns (caught dogfooding: uuid = varchar).
2192
+ // correlated the wrong columns (the mismatch is silent: uuid = varchar).
2193
2193
  // For belongsTo: SOURCE has the FK, so alias.pk = parentRef.fk (reversed).
2194
2194
  // Supports composite foreign keys (string[]) via buildCorrelation.
2195
2195
  let whereClause;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turbine-orm",
3
- "version": "0.59.1",
3
+ "version": "0.59.2",
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).",