zod 4.0.0-beta.20250504T215252 → 4.0.0-beta.20250504T224201

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.
@@ -445,7 +445,6 @@ export declare function looseObject<T extends core.$ZodLooseShape>(shape: T, par
445
445
  }, {
446
446
  [k: string]: unknown;
447
447
  }>;
448
- export declare function partial<T>(shape: T): Partial<T>;
449
448
  export interface ZodUnion<T extends readonly core.$ZodType[] = readonly core.$ZodType[]> extends ZodType {
450
449
  _zod: core.$ZodUnionInternals<T>;
451
450
  options: T;
@@ -71,7 +71,6 @@ exports.keyof = keyof;
71
71
  exports.object = object;
72
72
  exports.strictObject = strictObject;
73
73
  exports.looseObject = looseObject;
74
- exports.partial = partial;
75
74
  exports.union = union;
76
75
  exports.discriminatedUnion = discriminatedUnion;
77
76
  exports.intersection = intersection;
@@ -630,9 +629,6 @@ function looseObject(shape, params) {
630
629
  ...core_1.util.normalizeParams(params),
631
630
  });
632
631
  }
633
- function partial(shape) {
634
- return shape;
635
- }
636
632
  exports.ZodUnion = core.$constructor("ZodUnion", (inst, def) => {
637
633
  core.$ZodUnion.init(inst, def);
638
634
  exports.ZodType.init(inst, def);
@@ -445,7 +445,6 @@ export declare function looseObject<T extends core.$ZodLooseShape>(shape: T, par
445
445
  }, {
446
446
  [k: string]: unknown;
447
447
  }>;
448
- export declare function partial<T>(shape: T): Partial<T>;
449
448
  export interface ZodUnion<T extends readonly core.$ZodType[] = readonly core.$ZodType[]> extends ZodType {
450
449
  _zod: core.$ZodUnionInternals<T>;
451
450
  options: T;
@@ -526,9 +526,6 @@ export function looseObject(shape, params) {
526
526
  ...util.normalizeParams(params),
527
527
  });
528
528
  }
529
- export function partial(shape) {
530
- return shape;
531
- }
532
529
  export const ZodUnion = /*@__PURE__*/ core.$constructor("ZodUnion", (inst, def) => {
533
530
  core.$ZodUnion.init(inst, def);
534
531
  ZodType.init(inst, def);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zod",
3
- "version": "4.0.0-beta.20250504T215252",
3
+ "version": "4.0.0-beta.20250504T224201",
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.11.0"
73
+ "@zod/core": "0.11.1"
74
74
  },
75
75
  "scripts": {
76
76
  "clean": "rm -rf dist",
package/src/schemas.ts CHANGED
@@ -1194,10 +1194,6 @@ export function looseObject<T extends core.$ZodLooseShape>(
1194
1194
  }) as any;
1195
1195
  }
1196
1196
 
1197
- export function partial<T>(shape: T): Partial<T> {
1198
- return shape;
1199
- }
1200
-
1201
1197
  // ZodUnion
1202
1198
  export interface ZodUnion<T extends readonly core.$ZodType[] = readonly core.$ZodType[]> extends ZodType {
1203
1199
  _zod: core.$ZodUnionInternals<T>;