[PR #1581] Fix upgrade zod from 3.25.76 to 4.1.12 #1124

Open
opened 2025-11-13 12:18:44 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fosrl/pangolin/pull/1581
Author: @Lokowitz
Created: 9/28/2025
Status: 🔄 Open

Base: devHead: fix-zod


📝 Commits (10+)

  • 587c1f1 update zod package
  • 24090ee fix package version
  • 8f33de3 codemod v3-to-v4
  • 6fbeeea fix refine error
  • 0923eb3 fix zod error
  • f9041b5 Merge remote-tracking branch 'upstream/main' into fix-zod
  • 3332497 Merge remote-tracking branch 'upstream/main' into fix-zod
  • ec332c6 Merge remote-tracking branch 'upstream/main' into fix-zod
  • 3b93583 Merge remote-tracking branch 'upstream/dev' into fix-zod
  • fc5079c merge dev

📊 Changes

181 files changed (+1690 additions, -5723 deletions)

View changed files

📝 package-lock.json (+782 -4309)
📝 package.json (+37 -52)
📝 server/extendZod.ts (+0 -2)
📝 server/lib/blueprints/types.ts (+80 -142)
📝 server/lib/readConfigFile.ts (+124 -130)
📝 server/lib/validators.ts (+2 -2)
📝 server/private/lib/readConfigFile.ts (+4 -4)
📝 server/private/routers/auth/getSessionTransferToken.ts (+1 -1)
📝 server/private/routers/auth/quickStart.ts (+2 -2)
📝 server/private/routers/billing/createCheckoutSession.ts (+2 -4)
📝 server/private/routers/billing/createPortalSession.ts (+2 -4)
📝 server/private/routers/billing/getOrgSubscription.ts (+2 -4)
📝 server/private/routers/billing/getOrgUsage.ts (+2 -4)
📝 server/private/routers/billing/internalGetOrgTier.ts (+2 -4)
📝 server/private/routers/certificates/getCertificate.ts (+2 -4)
📝 server/private/routers/certificates/restartCertificate.ts (+4 -6)
📝 server/private/routers/domain/checkDomainNamespaceAvailability.ts (+3 -5)
📝 server/private/routers/domain/listDomainNamespaces.ts (+5 -7)
📝 server/private/routers/hybrid.ts (+26 -54)
📝 server/private/routers/license/activateLicense.ts (+2 -4)

...and 80 more files

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fosrl/pangolin/pull/1581 **Author:** [@Lokowitz](https://github.com/Lokowitz) **Created:** 9/28/2025 **Status:** 🔄 Open **Base:** `dev` ← **Head:** `fix-zod` --- ### 📝 Commits (10+) - [`587c1f1`](https://github.com/fosrl/pangolin/commit/587c1f1fc854887c975969cc6b0879b452620680) update zod package - [`24090ee`](https://github.com/fosrl/pangolin/commit/24090ee68a1bb86c19f68fa4087282a63210187f) fix package version - [`8f33de3`](https://github.com/fosrl/pangolin/commit/8f33de3b9e8247ec145c82281eef7765f93bbf15) codemod v3-to-v4 - [`6fbeeea`](https://github.com/fosrl/pangolin/commit/6fbeeead7ff0f557f607539b9a459ed2707911d9) fix refine error - [`0923eb3`](https://github.com/fosrl/pangolin/commit/0923eb30590b53db651aba834a8c8b464110513a) fix zod error - [`f9041b5`](https://github.com/fosrl/pangolin/commit/f9041b56300526ed7575994b18ca4659ea5e36ab) Merge remote-tracking branch 'upstream/main' into fix-zod - [`3332497`](https://github.com/fosrl/pangolin/commit/333249719ecdf3ab0b99353be88ece8b7edd8b11) Merge remote-tracking branch 'upstream/main' into fix-zod - [`ec332c6`](https://github.com/fosrl/pangolin/commit/ec332c6967b1f63615b537d3bf71319b7f554430) Merge remote-tracking branch 'upstream/main' into fix-zod - [`3b93583`](https://github.com/fosrl/pangolin/commit/3b93583e8d726628c78bfbf43431a48788df1ee6) Merge remote-tracking branch 'upstream/dev' into fix-zod - [`fc5079c`](https://github.com/fosrl/pangolin/commit/fc5079c3e12c01b53980656b3c18182e859261fd) merge dev ### 📊 Changes **181 files changed** (+1690 additions, -5723 deletions) <details> <summary>View changed files</summary> 📝 `package-lock.json` (+782 -4309) 📝 `package.json` (+37 -52) 📝 `server/extendZod.ts` (+0 -2) 📝 `server/lib/blueprints/types.ts` (+80 -142) 📝 `server/lib/readConfigFile.ts` (+124 -130) 📝 `server/lib/validators.ts` (+2 -2) 📝 `server/private/lib/readConfigFile.ts` (+4 -4) 📝 `server/private/routers/auth/getSessionTransferToken.ts` (+1 -1) 📝 `server/private/routers/auth/quickStart.ts` (+2 -2) 📝 `server/private/routers/billing/createCheckoutSession.ts` (+2 -4) 📝 `server/private/routers/billing/createPortalSession.ts` (+2 -4) 📝 `server/private/routers/billing/getOrgSubscription.ts` (+2 -4) 📝 `server/private/routers/billing/getOrgUsage.ts` (+2 -4) 📝 `server/private/routers/billing/internalGetOrgTier.ts` (+2 -4) 📝 `server/private/routers/certificates/getCertificate.ts` (+2 -4) 📝 `server/private/routers/certificates/restartCertificate.ts` (+4 -6) 📝 `server/private/routers/domain/checkDomainNamespaceAvailability.ts` (+3 -5) 📝 `server/private/routers/domain/listDomainNamespaces.ts` (+5 -7) 📝 `server/private/routers/hybrid.ts` (+26 -54) 📝 `server/private/routers/license/activateLicense.ts` (+2 -4) _...and 80 more files_ </details> ### 📄 Description ## 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the
pull-request
label 2025-11-13 12:18:44 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#1124
No description provided.