zod 4.0.6 → 4.0.7

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": "4.0.6",
3
+ "version": "4.0.7",
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",
@@ -346,12 +346,6 @@ test("do not continue by default", () => {
346
346
  "code": "custom",
347
347
  "message": "custom error",
348
348
  "path": []
349
- },
350
- {
351
- "expected": "number",
352
- "code": "invalid_type",
353
- "path": [],
354
- "message": "Invalid input: expected number, received string"
355
349
  }
356
350
  ]],
357
351
  "success": false,
@@ -3445,7 +3445,7 @@ export const $ZodPipe: core.$constructor<$ZodPipe> = /*@__PURE__*/ core.$constru
3445
3445
  });
3446
3446
 
3447
3447
  function handlePipeResult(left: ParsePayload, def: $ZodPipeDef, ctx: ParseContext) {
3448
- if (util.aborted(left)) {
3448
+ if (left.issues.length) {
3449
3449
  return left;
3450
3450
  }
3451
3451
  return def.out._zod.run({ value: left.value, issues: left.issues }, ctx);
@@ -1,5 +1,5 @@
1
1
  export const version = {
2
2
  major: 4,
3
3
  minor: 0,
4
- patch: 6 as number,
4
+ patch: 7 as number,
5
5
  } as const;
@@ -1587,7 +1587,7 @@ exports.$ZodPipe = core.$constructor("$ZodPipe", (inst, def) => {
1587
1587
  };
1588
1588
  });
1589
1589
  function handlePipeResult(left, def, ctx) {
1590
- if (util.aborted(left)) {
1590
+ if (left.issues.length) {
1591
1591
  return left;
1592
1592
  }
1593
1593
  return def.out._zod.run({ value: left.value, issues: left.issues }, ctx);
@@ -1556,7 +1556,7 @@ export const $ZodPipe = /*@__PURE__*/ core.$constructor("$ZodPipe", (inst, def)
1556
1556
  };
1557
1557
  });
1558
1558
  function handlePipeResult(left, def, ctx) {
1559
- if (util.aborted(left)) {
1559
+ if (left.issues.length) {
1560
1560
  return left;
1561
1561
  }
1562
1562
  return def.out._zod.run({ value: left.value, issues: left.issues }, ctx);
@@ -4,5 +4,5 @@ exports.version = void 0;
4
4
  exports.version = {
5
5
  major: 4,
6
6
  minor: 0,
7
- patch: 6,
7
+ patch: 7,
8
8
  };
@@ -1,5 +1,5 @@
1
1
  export const version = {
2
2
  major: 4,
3
3
  minor: 0,
4
- patch: 6,
4
+ patch: 7,
5
5
  };