cogsbox-shape 0.5.215 → 0.5.216

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.
@@ -86,7 +86,7 @@ export declare function validateShapeKeys(box: ShapeSchemaBox, params: ShapeKeyV
86
86
  export declare function createShapePlugin<const TBox extends ShapeSchemaBox>(box: TBox): import("cogsbox-state").CogsPluginBuilder<"shape", {
87
87
  logs: boolean | undefined;
88
88
  }, unknown, unknown, never, {
89
- validateShape: import("cogsbox-state").ChainMethodDefinition<(ctx: ChainMethodContext, keys?: readonly string[]) => {
89
+ validateGroup: import("cogsbox-state").ChainMethodDefinition<(ctx: ChainMethodContext<any, any>, keys?: readonly string[] | undefined) => {
90
90
  success: boolean;
91
91
  results: {
92
92
  key: string;
@@ -361,7 +361,7 @@ export function createShapePlugin(box) {
361
361
  validateShapeRefinesOnUpdate(box, params);
362
362
  })
363
363
  .methods((m) => ({
364
- validateShape: m.object((ctx, keys) => validateShapeKeys(box, {
364
+ validateGroup: m.object((ctx, keys) => validateShapeKeys(box, {
365
365
  stateKey: ctx.stateKey,
366
366
  path: ctx.path,
367
367
  keys,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cogsbox-shape",
3
- "version": "0.5.215",
3
+ "version": "0.5.216",
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",
@@ -65,7 +65,6 @@
65
65
  "author": "",
66
66
  "license": "MIT",
67
67
  "dependencies": {
68
- "cogsbox-state": "^0.5.488",
69
68
  "commander": "^13.1.0",
70
69
  "kysely": "^0.29.2",
71
70
  "tsx": "^4.19.3",