@zod-to-form/react 0.6.2 → 0.6.3

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.
@@ -1,3 +1,6 @@
1
+ import type { FormField, OptimizationConfig } from '@zod-to-form/core';
2
+ import { z } from 'zod';
3
+ import type { $ZodType } from 'zod/v4/core';
1
4
  import type { output, ZodObject } from 'zod';
2
5
  import type { FieldConfig, FormProcessor, ZodFormRegistry } from '@zod-to-form/core';
3
6
  type UseZodFormOptions<TSchema extends ZodObject> = {
@@ -11,12 +14,16 @@ type UseZodFormOptions<TSchema extends ZodObject> = {
11
14
  processors?: Record<string, FormProcessor>;
12
15
  mode?: 'onSubmit' | 'onChange' | 'onBlur';
13
16
  onValueChange?: (values: output<TSchema>) => void;
17
+ /** Validation optimization config. When set, skips zodResolver and uses per-field validation. */
18
+ optimization?: OptimizationConfig;
14
19
  };
15
20
  export declare function useZodForm<TSchema extends ZodObject>(schema: TSchema, options?: UseZodFormOptions<TSchema>): {
16
21
  form: import("react-hook-form").UseFormReturn<output<TSchema>, any, output<TSchema>>;
17
- fields: import("@zod-to-form/core").FormField[];
22
+ fields: FormField[];
18
23
  /** Non-null when walkSchema threw — lets consumers display the error instead of an empty form */
19
24
  schemaError: string | null;
25
+ /** SchemaLite for submit-time validation (non-null when optimization is enabled and top-level effects exist) */
26
+ schemaLite: $ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | null;
20
27
  };
21
28
  export {};
22
29
  //# sourceMappingURL=useZodForm.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useZodForm.d.ts","sourceRoot":"","sources":["../src/useZodForm.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAY,aAAa,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE/F,KAAK,iBAAiB,CAAC,OAAO,SAAS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AAC,OAAO,CAAC,CAAC;IACzB,4EAA4E;IAC5E,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,+FAA+F;IAC/F,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAC3C,IAAI,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAC;IAC1C,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IAClD,iGAAiG;IACjG,YAAY,CAAC,EAAE,kBAAkB,CAAC;CACnC,CAAC;AAkBF,wBAAgB,UAAU,CAAC,OAAO,SAAS,SAAS,EAClD,MAAM,EAAE,OAAO,EACf,OAAO,CAAC,EAAE,iBAAiB,CAAC,OAAO,CAAC;;;IA6FlC,iGAAiG;;IAEjG,gHAAgH;;EAGnH"}
@@ -1,11 +1,26 @@
1
1
  import { useEffect, useMemo } from 'react';
2
- import { zodResolver } from '@hookform/resolvers/zod';
3
2
  import { walkSchema, registerFlat, normalizeFormValues } from '@zod-to-form/core';
4
3
  import { useForm } from 'react-hook-form';
5
4
  import { z } from 'zod';
5
+ import { zodResolver } from '@hookform/resolvers/zod';
6
+ /**
7
+ * Bridge cast for the Zod v4 ↔ RHF type boundary.
8
+ * RHF's resolver type is nominally incompatible with Zod v4's internal
9
+ * `_zod.version` discriminant. This single cast point replaces scattered
10
+ * `as never` throughout the hook.
11
+ */
12
+ function rhfCast(value) {
13
+ return value;
14
+ }
15
+ // zodResolver is imported statically but only invoked when optimization is NOT enabled.
16
+ // Bundlers that support tree-shaking of unused imports (Vite, webpack 5, esbuild)
17
+ // can eliminate it when all call sites are dead code. For full elimination,
18
+ // a separate entrypoint (@zod-to-form/react/optimized) would be needed — tracked
19
+ // as a future improvement.
6
20
  export function useZodForm(schema, options) {
7
- // SAFETY: ZodObject extends $ZodType at runtime but TS nominal typing on _zod.version requires the cast
8
- const baseResolver = useMemo(() => zodResolver(schema), [schema]);
21
+ const validationLevel = options?.optimization?.level;
22
+ const isOptimized = validationLevel !== undefined;
23
+ const baseResolver = useMemo(() => (isOptimized ? undefined : zodResolver(rhfCast(schema))), [schema, isOptimized]);
9
24
  // Build a registry from flat field config when no explicit registry is provided
10
25
  const effectiveRegistry = useMemo(() => {
11
26
  if (options?.formRegistry)
@@ -14,23 +29,30 @@ export function useZodForm(schema, options) {
14
29
  return undefined;
15
30
  const reg = z.registry();
16
31
  try {
17
- // SAFETY: ZodObject extends $ZodType at runtime but TS nominal typing requires the cast
18
- registerFlat(reg, schema, options.fields);
32
+ registerFlat(reg, rhfCast(schema), options.fields);
19
33
  }
20
34
  catch (error) {
21
- console.error('[zod-to-form] Failed to register field config into registry. ' +
22
- 'The form will render without field overrides.', error);
35
+ console.error('[zod-to-form] Failed to register field config into registry.', error);
23
36
  return undefined;
24
37
  }
25
38
  return reg;
26
39
  }, [schema, options?.formRegistry, options?.fields]);
27
40
  const walkResult = useMemo(() => {
28
41
  try {
42
+ if (isOptimized) {
43
+ const result = walkSchema(schema, {
44
+ formRegistry: effectiveRegistry,
45
+ processors: options?.processors,
46
+ optimization: { level: validationLevel }
47
+ });
48
+ return { fields: result.fields, schemaLite: result.schemaLite, error: null };
49
+ }
29
50
  return {
30
51
  fields: walkSchema(schema, {
31
52
  formRegistry: effectiveRegistry,
32
53
  processors: options?.processors
33
54
  }),
55
+ schemaLite: null,
34
56
  error: null
35
57
  };
36
58
  }
@@ -38,29 +60,28 @@ export function useZodForm(schema, options) {
38
60
  console.error('[zod-to-form] walkSchema failed:', err);
39
61
  return {
40
62
  fields: [],
63
+ schemaLite: null,
41
64
  error: err instanceof Error ? err.message : 'Schema processing failed'
42
65
  };
43
66
  }
44
- }, [schema, effectiveRegistry, options?.processors]);
67
+ }, [schema, effectiveRegistry, options?.processors, validationLevel, isOptimized]);
45
68
  const form = useForm({
46
- // SAFETY: resolver wraps baseResolver to normalize FileLists before validation.
47
- // The `as never` casts are required because RHF's resolver type is nominally
48
- // incompatible with Zod v4's internal version discriminant, same as zodResolver above.
49
- resolver: ((values, context, resolverOptions) => baseResolver(normalizeFormValues(values), context, resolverOptions)),
50
- // SAFETY: Partial<output<TSchema>> is structurally correct but RHF's DeepPartial
51
- // is not directly assignable — cast required at the RHF boundary.
52
- defaultValues: options?.defaultValues,
53
- values: options?.values,
69
+ // When optimized, skip zodResolver per-field validation is handled by register({ validate })
70
+ resolver: isOptimized
71
+ ? undefined
72
+ : rhfCast((values, context, resolverOptions) => baseResolver(rhfCast(normalizeFormValues(values)), context,
73
+ // SAFETY: RHF's ResolverOptions type is not exported; narrow from unknown via parameter extraction
74
+ resolverOptions)),
75
+ defaultValues: rhfCast(options?.defaultValues),
76
+ values: rhfCast(options?.values),
54
77
  mode: options?.mode
55
78
  });
56
79
  useEffect(() => {
57
- if (!options?.onValueChange) {
58
- return undefined;
59
- }
80
+ if (!options?.onValueChange)
81
+ return;
60
82
  const subscription = form.watch((values, info) => {
61
- if (!info?.name) {
83
+ if (!info?.name)
62
84
  return;
63
- }
64
85
  const parsed = schema.safeParse(normalizeFormValues(values));
65
86
  if (parsed.success) {
66
87
  options.onValueChange?.(parsed.data);
@@ -74,7 +95,9 @@ export function useZodForm(schema, options) {
74
95
  form,
75
96
  fields: walkResult.fields,
76
97
  /** Non-null when walkSchema threw — lets consumers display the error instead of an empty form */
77
- schemaError: walkResult.error
98
+ schemaError: walkResult.error,
99
+ /** SchemaLite for submit-time validation (non-null when optimization is enabled and top-level effects exist) */
100
+ schemaLite: walkResult.schemaLite
78
101
  };
79
102
  }
80
103
  //# sourceMappingURL=useZodForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useZodForm.js","sourceRoot":"","sources":["../src/useZodForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAA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,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAAC;YAC7D,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;gBACnB,OAAO,CAAC,aAAa,EAAE,CAAC,MAAM,CAAC,IAAuB,CAAC,CAAC;YAC1D,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,GAAG,EAAE;YACV,YAAY,CAAC,WAAW,EAAE,CAAC;QAC7B,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;IAE3C,OAAO;QACL,IAAI;QACJ,MAAM,EAAE,UAAU,CAAC,MAAM;QACzB,iGAAiG;QACjG,WAAW,EAAE,UAAU,CAAC,KAAK;QAC7B,gHAAgH;QAChH,UAAU,EAAE,UAAU,CAAC,UAAU;KAClC,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zod-to-form/react",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "Runtime <ZodForm> renderer for Zod v4 schemas",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/pradeepmouli/zod-to-form#readme",
@@ -52,7 +52,7 @@
52
52
  "zod": "^4.3.6"
53
53
  },
54
54
  "dependencies": {
55
- "@zod-to-form/core": "0.6.2"
55
+ "@zod-to-form/core": "0.6.3"
56
56
  },
57
57
  "scripts": {
58
58
  "build": "tsgo -p tsconfig.build.json",