zod 4.3.0-canary.20251216T031750 → 4.3.0-canary.20251216T172808
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 +1 -1
- package/src/v4/core/checks.ts +6 -0
- package/src/v4/core/schemas.ts +3 -2
- package/v4/core/checks.cjs +6 -0
- package/v4/core/checks.js +6 -0
- package/v4/core/schemas.cjs +3 -2
- package/v4/core/schemas.js +3 -2
package/package.json
CHANGED
package/src/v4/core/checks.ts
CHANGED
|
@@ -323,6 +323,7 @@ export const $ZodCheckNumberFormat: core.$constructor<$ZodCheckNumberFormat> = /
|
|
|
323
323
|
note: "Integers must be within the safe integer range.",
|
|
324
324
|
inst,
|
|
325
325
|
origin,
|
|
326
|
+
inclusive: true,
|
|
326
327
|
continue: !def.abort,
|
|
327
328
|
});
|
|
328
329
|
} else {
|
|
@@ -334,6 +335,7 @@ export const $ZodCheckNumberFormat: core.$constructor<$ZodCheckNumberFormat> = /
|
|
|
334
335
|
note: "Integers must be within the safe integer range.",
|
|
335
336
|
inst,
|
|
336
337
|
origin,
|
|
338
|
+
inclusive: true,
|
|
337
339
|
continue: !def.abort,
|
|
338
340
|
});
|
|
339
341
|
}
|
|
@@ -360,7 +362,9 @@ export const $ZodCheckNumberFormat: core.$constructor<$ZodCheckNumberFormat> = /
|
|
|
360
362
|
input,
|
|
361
363
|
code: "too_big",
|
|
362
364
|
maximum,
|
|
365
|
+
inclusive: true,
|
|
363
366
|
inst,
|
|
367
|
+
continue: !def.abort,
|
|
364
368
|
} as any);
|
|
365
369
|
}
|
|
366
370
|
};
|
|
@@ -422,7 +426,9 @@ export const $ZodCheckBigIntFormat: core.$constructor<$ZodCheckBigIntFormat> = /
|
|
|
422
426
|
input,
|
|
423
427
|
code: "too_big",
|
|
424
428
|
maximum,
|
|
429
|
+
inclusive: true,
|
|
425
430
|
inst,
|
|
431
|
+
continue: !def.abort,
|
|
426
432
|
} as any);
|
|
427
433
|
}
|
|
428
434
|
};
|
package/src/v4/core/schemas.ts
CHANGED
|
@@ -298,7 +298,8 @@ export const $ZodType: core.$constructor<$ZodType> = /*@__PURE__*/ core.$constru
|
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
-
|
|
301
|
+
// Lazy initialize ~standard to avoid creating objects for every schema
|
|
302
|
+
util.defineLazy(inst, "~standard", () => ({
|
|
302
303
|
validate: (value: unknown) => {
|
|
303
304
|
try {
|
|
304
305
|
const r = safeParse(inst, value);
|
|
@@ -309,7 +310,7 @@ export const $ZodType: core.$constructor<$ZodType> = /*@__PURE__*/ core.$constru
|
|
|
309
310
|
},
|
|
310
311
|
vendor: "zod",
|
|
311
312
|
version: 1 as const,
|
|
312
|
-
};
|
|
313
|
+
}));
|
|
313
314
|
});
|
|
314
315
|
|
|
315
316
|
export { clone } from "./util.js";
|
package/v4/core/checks.cjs
CHANGED
|
@@ -175,6 +175,7 @@ exports.$ZodCheckNumberFormat = core.$constructor("$ZodCheckNumberFormat", (inst
|
|
|
175
175
|
note: "Integers must be within the safe integer range.",
|
|
176
176
|
inst,
|
|
177
177
|
origin,
|
|
178
|
+
inclusive: true,
|
|
178
179
|
continue: !def.abort,
|
|
179
180
|
});
|
|
180
181
|
}
|
|
@@ -187,6 +188,7 @@ exports.$ZodCheckNumberFormat = core.$constructor("$ZodCheckNumberFormat", (inst
|
|
|
187
188
|
note: "Integers must be within the safe integer range.",
|
|
188
189
|
inst,
|
|
189
190
|
origin,
|
|
191
|
+
inclusive: true,
|
|
190
192
|
continue: !def.abort,
|
|
191
193
|
});
|
|
192
194
|
}
|
|
@@ -210,7 +212,9 @@ exports.$ZodCheckNumberFormat = core.$constructor("$ZodCheckNumberFormat", (inst
|
|
|
210
212
|
input,
|
|
211
213
|
code: "too_big",
|
|
212
214
|
maximum,
|
|
215
|
+
inclusive: true,
|
|
213
216
|
inst,
|
|
217
|
+
continue: !def.abort,
|
|
214
218
|
});
|
|
215
219
|
}
|
|
216
220
|
};
|
|
@@ -243,7 +247,9 @@ exports.$ZodCheckBigIntFormat = core.$constructor("$ZodCheckBigIntFormat", (inst
|
|
|
243
247
|
input,
|
|
244
248
|
code: "too_big",
|
|
245
249
|
maximum,
|
|
250
|
+
inclusive: true,
|
|
246
251
|
inst,
|
|
252
|
+
continue: !def.abort,
|
|
247
253
|
});
|
|
248
254
|
}
|
|
249
255
|
};
|
package/v4/core/checks.js
CHANGED
|
@@ -149,6 +149,7 @@ export const $ZodCheckNumberFormat = /*@__PURE__*/ core.$constructor("$ZodCheckN
|
|
|
149
149
|
note: "Integers must be within the safe integer range.",
|
|
150
150
|
inst,
|
|
151
151
|
origin,
|
|
152
|
+
inclusive: true,
|
|
152
153
|
continue: !def.abort,
|
|
153
154
|
});
|
|
154
155
|
}
|
|
@@ -161,6 +162,7 @@ export const $ZodCheckNumberFormat = /*@__PURE__*/ core.$constructor("$ZodCheckN
|
|
|
161
162
|
note: "Integers must be within the safe integer range.",
|
|
162
163
|
inst,
|
|
163
164
|
origin,
|
|
165
|
+
inclusive: true,
|
|
164
166
|
continue: !def.abort,
|
|
165
167
|
});
|
|
166
168
|
}
|
|
@@ -184,7 +186,9 @@ export const $ZodCheckNumberFormat = /*@__PURE__*/ core.$constructor("$ZodCheckN
|
|
|
184
186
|
input,
|
|
185
187
|
code: "too_big",
|
|
186
188
|
maximum,
|
|
189
|
+
inclusive: true,
|
|
187
190
|
inst,
|
|
191
|
+
continue: !def.abort,
|
|
188
192
|
});
|
|
189
193
|
}
|
|
190
194
|
};
|
|
@@ -217,7 +221,9 @@ export const $ZodCheckBigIntFormat = /*@__PURE__*/ core.$constructor("$ZodCheckB
|
|
|
217
221
|
input,
|
|
218
222
|
code: "too_big",
|
|
219
223
|
maximum,
|
|
224
|
+
inclusive: true,
|
|
220
225
|
inst,
|
|
226
|
+
continue: !def.abort,
|
|
221
227
|
});
|
|
222
228
|
}
|
|
223
229
|
};
|
package/v4/core/schemas.cjs
CHANGED
|
@@ -142,7 +142,8 @@ exports.$ZodType = core.$constructor("$ZodType", (inst, def) => {
|
|
|
142
142
|
return runChecks(result, checks, ctx);
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
|
-
|
|
145
|
+
// Lazy initialize ~standard to avoid creating objects for every schema
|
|
146
|
+
util.defineLazy(inst, "~standard", () => ({
|
|
146
147
|
validate: (value) => {
|
|
147
148
|
try {
|
|
148
149
|
const r = (0, parse_js_1.safeParse)(inst, value);
|
|
@@ -154,7 +155,7 @@ exports.$ZodType = core.$constructor("$ZodType", (inst, def) => {
|
|
|
154
155
|
},
|
|
155
156
|
vendor: "zod",
|
|
156
157
|
version: 1,
|
|
157
|
-
};
|
|
158
|
+
}));
|
|
158
159
|
});
|
|
159
160
|
var util_js_1 = require("./util.cjs");
|
|
160
161
|
Object.defineProperty(exports, "clone", { enumerable: true, get: function () { return util_js_1.clone; } });
|
package/v4/core/schemas.js
CHANGED
|
@@ -112,7 +112,8 @@ export const $ZodType = /*@__PURE__*/ core.$constructor("$ZodType", (inst, def)
|
|
|
112
112
|
return runChecks(result, checks, ctx);
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
-
|
|
115
|
+
// Lazy initialize ~standard to avoid creating objects for every schema
|
|
116
|
+
util.defineLazy(inst, "~standard", () => ({
|
|
116
117
|
validate: (value) => {
|
|
117
118
|
try {
|
|
118
119
|
const r = safeParse(inst, value);
|
|
@@ -124,7 +125,7 @@ export const $ZodType = /*@__PURE__*/ core.$constructor("$ZodType", (inst, def)
|
|
|
124
125
|
},
|
|
125
126
|
vendor: "zod",
|
|
126
127
|
version: 1,
|
|
127
|
-
};
|
|
128
|
+
}));
|
|
128
129
|
});
|
|
129
130
|
export { clone } from "./util.js";
|
|
130
131
|
export const $ZodString = /*@__PURE__*/ core.$constructor("$ZodString", (inst, def) => {
|