zod 3.26.0-canary.20250702T200737 → 3.26.0-canary.20250703T013930

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zod",
3
- "version": "3.26.0-canary.20250702T200737",
3
+ "version": "3.26.0-canary.20250703T013930",
4
4
  "type": "module",
5
5
  "author": "Colin McDonnell <zod@colinhacks.com>",
6
6
  "description": "TypeScript-first schema declaration and validation library with static type inference",
@@ -18,13 +18,17 @@ export interface $ZodIssueTooBig<Input = unknown> extends $ZodIssueBase {
18
18
  readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
19
19
  readonly maximum: number | bigint;
20
20
  readonly inclusive?: boolean;
21
+ readonly exact?: boolean;
21
22
  readonly input: Input;
22
23
  }
23
24
  export interface $ZodIssueTooSmall<Input = unknown> extends $ZodIssueBase {
24
25
  readonly code: "too_small";
25
26
  readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
26
27
  readonly minimum: number | bigint;
28
+ /** True if the allowable range includes the minimum */
27
29
  readonly inclusive?: boolean;
30
+ /** True if the allowed value is fixed (e.g.` z.length(5)`), not a range (`z.minLength(5)`) */
31
+ readonly exact?: boolean;
28
32
  readonly input: Input;
29
33
  }
30
34
  export interface $ZodIssueInvalidStringFormat extends $ZodIssueBase {
@@ -18,13 +18,17 @@ export interface $ZodIssueTooBig<Input = unknown> extends $ZodIssueBase {
18
18
  readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
19
19
  readonly maximum: number | bigint;
20
20
  readonly inclusive?: boolean;
21
+ readonly exact?: boolean;
21
22
  readonly input: Input;
22
23
  }
23
24
  export interface $ZodIssueTooSmall<Input = unknown> extends $ZodIssueBase {
24
25
  readonly code: "too_small";
25
26
  readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
26
27
  readonly minimum: number | bigint;
28
+ /** True if the allowable range includes the minimum */
27
29
  readonly inclusive?: boolean;
30
+ /** True if the allowed value is fixed (e.g.` z.length(5)`), not a range (`z.minLength(5)`) */
31
+ readonly exact?: boolean;
28
32
  readonly input: Input;
29
33
  }
30
34
  export interface $ZodIssueInvalidStringFormat extends $ZodIssueBase {