Fix upgrade zod from 3.25.76 to 4.1.12 #842

Closed
opened 2026-04-05 17:52:29 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @Lokowitz on 9/28/2025

Community Contribution License Agreement

By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.

Description

In server/lib/validators.ts z.cidr() and z.ip() musst be changed to z.cidrv4() and z.ipv4().
Is there need for ipv6 validation?
-> added v6 support

Removed the "^" in package.json versions to avoid changes in packages-lock.json by accident when installing packages on a PR.

Migration guide
Codemod

Fixes https://github.com/fosrl/pangolin/pull/1514
Fixes https://github.com/fosrl/pangolin/pull/1513
Fixes https://github.com/fosrl/pangolin/pull/1277

*Originally created by @Lokowitz on 9/28/2025* ## Community Contribution License Agreement By creating this pull request, I grant the project maintainers an unlimited, perpetual license to use, modify, and redistribute these contributions under any terms they choose, including both the AGPLv3 and the Fossorial Commercial license terms. I represent that I have the right to grant this license for all contributed content. ## Description In `server/lib/validators.ts` z.cidr() and z.ip() musst be changed to z.cidrv4() and z.ipv4(). Is there need for ipv6 validation? -> added v6 support Removed the "^" in package.json versions to avoid changes in packages-lock.json by accident when installing packages on a PR. [Migration guide](https://zod.dev/v4/changelog) [Codemod](https://github.com/nicoespeon/zod-v3-to-v4) Fixes https://github.com/fosrl/pangolin/pull/1514 Fixes https://github.com/fosrl/pangolin/pull/1513 Fixes https://github.com/fosrl/pangolin/pull/1277
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#842