Skip to content

Commit 9335f05

Browse files
committed
4.0.4
1 parent 4d6e266 commit 9335f05

File tree

4 files changed

+43
-3
lines changed

4 files changed

+43
-3
lines changed

packages/zod/jsr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@zod/zod",
3-
"version": "4.0.3",
3+
"version": "4.0.4",
44
"exports": {
55
"./package.json": "./package.json",
66
".": "./src/index.ts",

packages/zod/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "zod",
3-
"version": "4.0.3",
3+
"version": "4.0.4",
44
"type": "module",
55
"author": "Colin McDonnell <[email protected]>",
66
"description": "TypeScript-first schema declaration and validation library with static type inference",

packages/zod/src/v4/classic/compat.ts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,43 @@ export type {
6565

6666
/** Included for Zod 3 compatibility */
6767
export type ZodRawShape = core.$ZodShape;
68+
69+
/** @deprecated Do not use. Only included for zod-to-json-schema compatibility. */
70+
export enum ZodFirstPartyTypeKind {
71+
ZodString = "ZodString",
72+
ZodNumber = "ZodNumber",
73+
ZodNaN = "ZodNaN",
74+
ZodBigInt = "ZodBigInt",
75+
ZodBoolean = "ZodBoolean",
76+
ZodDate = "ZodDate",
77+
ZodSymbol = "ZodSymbol",
78+
ZodUndefined = "ZodUndefined",
79+
ZodNull = "ZodNull",
80+
ZodAny = "ZodAny",
81+
ZodUnknown = "ZodUnknown",
82+
ZodNever = "ZodNever",
83+
ZodVoid = "ZodVoid",
84+
ZodArray = "ZodArray",
85+
ZodObject = "ZodObject",
86+
ZodUnion = "ZodUnion",
87+
ZodDiscriminatedUnion = "ZodDiscriminatedUnion",
88+
ZodIntersection = "ZodIntersection",
89+
ZodTuple = "ZodTuple",
90+
ZodRecord = "ZodRecord",
91+
ZodMap = "ZodMap",
92+
ZodSet = "ZodSet",
93+
ZodFunction = "ZodFunction",
94+
ZodLazy = "ZodLazy",
95+
ZodLiteral = "ZodLiteral",
96+
ZodEnum = "ZodEnum",
97+
ZodEffects = "ZodEffects",
98+
ZodNativeEnum = "ZodNativeEnum",
99+
ZodOptional = "ZodOptional",
100+
ZodNullable = "ZodNullable",
101+
ZodDefault = "ZodDefault",
102+
ZodCatch = "ZodCatch",
103+
ZodPromise = "ZodPromise",
104+
ZodBranded = "ZodBranded",
105+
ZodPipeline = "ZodPipeline",
106+
ZodReadonly = "ZodReadonly",
107+
}

packages/zod/src/v4/core/versions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const version = {
22
major: 4,
33
minor: 0,
4-
patch: 3 as number,
4+
patch: 4 as number,
55
} as const;

0 commit comments

Comments
 (0)