zod 4.0.0-beta.20250412T085909 → 4.0.0-beta.20250414T061543
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/dist/commonjs/schemas.d.ts +2 -3
- package/dist/esm/schemas.d.ts +2 -3
- package/package.json +2 -2
- package/src/schemas.ts +3 -5
|
@@ -459,11 +459,10 @@ export interface ZodObject<out Shape extends core.$ZodShape = core.$ZodShape, Ex
|
|
|
459
459
|
shape: Shape;
|
|
460
460
|
keyof(): ZodEnum<util.ToEnum<keyof Shape & string>>;
|
|
461
461
|
catchall<T extends core.$ZodType>(schema: T): ZodObject<Shape, Record<string, T["_zod"]["output"]>>;
|
|
462
|
-
/** @deprecated Use `z.looseObject()` instead. */
|
|
462
|
+
/** @deprecated Use `z.looseObject()` or `.loose()` instead. */
|
|
463
463
|
passthrough(): ZodObject<Shape, Record<string, unknown>>;
|
|
464
|
-
/** @deprecated Use `z.looseObject()` instead. */
|
|
465
464
|
loose(): ZodObject<Shape, Record<string, unknown>>;
|
|
466
|
-
/**
|
|
465
|
+
/** The `z.strictObject()` API is preferred. */
|
|
467
466
|
strict(): ZodObject<Shape, {}>;
|
|
468
467
|
/** @deprecated This is the default behavior. This method call is likely unnecessary. */
|
|
469
468
|
strip(): ZodObject<Shape, {}>;
|
package/dist/esm/schemas.d.ts
CHANGED
|
@@ -459,11 +459,10 @@ export interface ZodObject<out Shape extends core.$ZodShape = core.$ZodShape, Ex
|
|
|
459
459
|
shape: Shape;
|
|
460
460
|
keyof(): ZodEnum<util.ToEnum<keyof Shape & string>>;
|
|
461
461
|
catchall<T extends core.$ZodType>(schema: T): ZodObject<Shape, Record<string, T["_zod"]["output"]>>;
|
|
462
|
-
/** @deprecated Use `z.looseObject()` instead. */
|
|
462
|
+
/** @deprecated Use `z.looseObject()` or `.loose()` instead. */
|
|
463
463
|
passthrough(): ZodObject<Shape, Record<string, unknown>>;
|
|
464
|
-
/** @deprecated Use `z.looseObject()` instead. */
|
|
465
464
|
loose(): ZodObject<Shape, Record<string, unknown>>;
|
|
466
|
-
/**
|
|
465
|
+
/** The `z.strictObject()` API is preferred. */
|
|
467
466
|
strict(): ZodObject<Shape, {}>;
|
|
468
467
|
/** @deprecated This is the default behavior. This method call is likely unnecessary. */
|
|
469
468
|
strip(): ZodObject<Shape, {}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zod",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.20250414T061543",
|
|
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",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@zod/core": "0.
|
|
73
|
+
"@zod/core": "0.5.0"
|
|
74
74
|
},
|
|
75
75
|
"scripts": {
|
|
76
76
|
"clean": "rm -rf dist",
|
package/src/schemas.ts
CHANGED
|
@@ -1259,14 +1259,12 @@ export interface ZodObject<
|
|
|
1259
1259
|
keyof(): ZodEnum<util.ToEnum<keyof Shape & string>>;
|
|
1260
1260
|
catchall<T extends core.$ZodType>(schema: T): ZodObject<Shape, Record<string, T["_zod"]["output"]>>;
|
|
1261
1261
|
|
|
1262
|
-
/** @deprecated Use `z.looseObject()` instead. */
|
|
1262
|
+
/** @deprecated Use `z.looseObject()` or `.loose()` instead. */
|
|
1263
1263
|
passthrough(): ZodObject<Shape, Record<string, unknown>>;
|
|
1264
|
-
|
|
1265
|
-
// nonstrict(): ZodObject<Shape>;
|
|
1266
|
-
/** @deprecated Use `z.looseObject()` instead. */
|
|
1264
|
+
|
|
1267
1265
|
loose(): ZodObject<Shape, Record<string, unknown>>;
|
|
1268
1266
|
|
|
1269
|
-
/**
|
|
1267
|
+
/** The `z.strictObject()` API is preferred. */
|
|
1270
1268
|
strict(): ZodObject<Shape, {}>;
|
|
1271
1269
|
|
|
1272
1270
|
/** @deprecated This is the default behavior. This method call is likely unnecessary. */
|