cogsbox-shape 0.5.164 → 0.5.165

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/dist/schema.d.ts CHANGED
@@ -324,7 +324,7 @@ type _DeriveViewShape<TTableName extends keyof TRegistry, TSelection, TRegistry
324
324
  } ? RelType extends "hasMany" | "manyToMany" ? z.ZodArray<z.ZodObject<_DeriveViewShape<TargetKey, TSelection[K], TRegistry, TKey, [
325
325
  ...Depth,
326
326
  1
327
- ]>>> : z.ZodOptional<z.ZodObject<_DeriveViewShape<TargetKey, TSelection[K], TRegistry, TKey, [
327
+ ]>>> : z.ZodNullable<z.ZodObject<_DeriveViewShape<TargetKey, TSelection[K], TRegistry, TKey, [
328
328
  ...Depth,
329
329
  1
330
330
  ]>>> : never : never : never;
package/dist/schema.js CHANGED
@@ -652,7 +652,7 @@ function createViewObject(initialRegistryKey, selection, registry, tableNameToRe
652
652
  selectedRelationShapes[relationKey] = z.array(relationSchema);
653
653
  }
654
654
  else {
655
- selectedRelationShapes[relationKey] = relationSchema.optional();
655
+ selectedRelationShapes[relationKey] = relationSchema.nullable();
656
656
  }
657
657
  }
658
658
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cogsbox-shape",
3
- "version": "0.5.164",
3
+ "version": "0.5.165",
4
4
  "description": "A TypeScript library for creating type-safe database schemas with Zod validation, SQL type definitions, and automatic client/server transformations. Unifies client, server, and database types through a single schema definition, with built-in support for relationships and serialization.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",