cogsbox-shape 0.5.68 → 0.5.69

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/dist/schema.d.ts +2 -2
  2. package/package.json +2 -2
package/dist/schema.d.ts CHANGED
@@ -98,7 +98,7 @@ export type RelationConfig<T extends Schema<any>> = (BaseRelationConfig<T> & {
98
98
  type Stage = "sql" | "relation" | "new" | "client" | "validation" | "done";
99
99
  type StageMethods = {
100
100
  sql: "initialState" | "client" | "validation" | "transform";
101
- relation: "initialState" | "client" | "validation" | "transform";
101
+ relation: "validation" | "transform";
102
102
  new: "client" | "validation" | "transform";
103
103
  client: "validation" | "transform";
104
104
  validation: "transform";
@@ -307,7 +307,7 @@ export declare function schemaRelations<TSchema extends Schema<any>, RefObject e
307
307
  _key: K;
308
308
  _fieldType: RefObject[K];
309
309
  };
310
- __parentTableType: TSchema;
310
+ __parentTableType: TSchema & RefObject;
311
311
  };
312
312
  };
313
313
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cogsbox-shape",
3
- "version": "0.5.68",
3
+ "version": "0.5.69",
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",
@@ -49,7 +49,7 @@
49
49
  "prettier": "^3.1.1",
50
50
  "typescript": "^5.3.3",
51
51
  "vitest": "^3.2.0",
52
- "zod": "^3.25.67"
52
+ "zod": "^4.25.67"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "zod": "^3.22.4"