cogsbox-shape 0.5.220 → 0.5.221

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.
@@ -351,10 +351,16 @@ export function validateShapeRefines(box, params) {
351
351
  const relatedFields = getRelatedFields(entry, field);
352
352
  if (!relatedFields)
353
353
  return;
354
- applyRefineValidation(box, params, {
354
+ const target = {
355
355
  relatedFields,
356
356
  relatedPaths: resolveRelatedPaths(params.path, relatedFields),
357
- }, getStateForValidation(params));
357
+ };
358
+ const state = getStateForValidation(params);
359
+ if (params.event.activityType === "input") {
360
+ clearStaleRefineValidation(box, params, target, state);
361
+ return;
362
+ }
363
+ applyRefineValidation(box, params, target, state);
358
364
  }
359
365
  export function validateShapeRefinesOnUpdate(box, params) {
360
366
  if (params.update.updateType !== "update")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cogsbox-shape",
3
- "version": "0.5.220",
3
+ "version": "0.5.221",
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",