From e0a843e1962ee12e7b3f5fbba58839353d28a0b1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Aug 2025 08:05:16 +0000 Subject: [PATCH 1/2] chore: bump zod from 4.0.5 to 4.0.17 Bumps [zod](https://github.com/colinhacks/zod) from 4.0.5 to 4.0.17. - [Release notes](https://github.com/colinhacks/zod/releases) - [Commits](https://github.com/colinhacks/zod/compare/v4.0.5...v4.0.17) --- updated-dependencies: - dependency-name: zod dependency-version: 4.0.17 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index d723024..b98af1d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9255,11 +9255,10 @@ } }, "node_modules/zod": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/zod/-/zod-4.0.5.tgz", - "integrity": "sha512-/5UuuRPStvHXu7RS+gmvRf4NXrNxpSllGwDnCBcJZtQsKrviYXm54yDGV2KYNLT5kq0lHGcl7lqWJLgSaG+tgA==", + "version": "4.0.17", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.0.17.tgz", + "integrity": "sha512-1PHjlYRevNxxdy2JZ8JcNAw7rX8V9P1AKkP+x/xZfxB0K5FYfuV+Ug6P/6NVSR2jHQ+FzDDoDHS04nYUsOIyLQ==", "dev": true, - "license": "MIT", "funding": { "url": "https://github.com/sponsors/colinhacks" } @@ -15394,9 +15393,9 @@ "dev": true }, "zod": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/zod/-/zod-4.0.5.tgz", - "integrity": "sha512-/5UuuRPStvHXu7RS+gmvRf4NXrNxpSllGwDnCBcJZtQsKrviYXm54yDGV2KYNLT5kq0lHGcl7lqWJLgSaG+tgA==", + "version": "4.0.17", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.0.17.tgz", + "integrity": "sha512-1PHjlYRevNxxdy2JZ8JcNAw7rX8V9P1AKkP+x/xZfxB0K5FYfuV+Ug6P/6NVSR2jHQ+FzDDoDHS04nYUsOIyLQ==", "dev": true } } From cc4220a6b1c8c8081ae469377e40358c01033127 Mon Sep 17 00:00:00 2001 From: "Dimitrios C. Michalakos" Date: Mon, 18 Aug 2025 15:25:57 +0300 Subject: [PATCH 2/2] fix: broken snapshot test --- lib/v4/errorMap/errorMap.test.ts | 32 ++++++-------------------------- 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/lib/v4/errorMap/errorMap.test.ts b/lib/v4/errorMap/errorMap.test.ts index 2a13158..a7c7f29 100644 --- a/lib/v4/errorMap/errorMap.test.ts +++ b/lib/v4/errorMap/errorMap.test.ts @@ -1001,35 +1001,15 @@ describe('errorMap', () => { // check that underlying issues are formatted with our custom error map expect(result.error.issues[0]).toMatchInlineSnapshot(` { - "code": "invalid_union", - "errors": [ - [ - { - "code": "invalid_value", - "message": "expected value to be false", - "path": [], - "values": [ - false, - ], - }, - ], - [ - { - "code": "too_small", - "inclusive": true, - "message": "number must be greater than or equal to 1", - "minimum": 1, - "origin": "number", - "path": [ - "baz", - ], - }, - ], - ], - "message": "Invalid input", + "code": "too_small", + "inclusive": true, + "message": "number must be greater than or equal to 1", + "minimum": 1, + "origin": "number", "path": [ "foo", "bar", + "baz", ], } `);