[PR #1052] [MERGED] feat: support zod v4 & v3 #1042

Closed
opened 2026-02-16 00:19:56 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/run-llama/llama_cloud_services/pull/1052
Author: @jgeurts
Created: 12/8/2025
Status: Merged
Merged: 12/9/2025
Merged by: @logan-markewich

Base: mainHead: zod-v4


📝 Commits (5)

📊 Changes

8 files changed (+190 additions, -3387 deletions)

View changed files

.changeset/thirty-rivers-agree.md (+5 -0)
.changeset/zod-v4-support.md (+10 -0)
📝 pnpm-lock.yaml (+151 -3363)
📝 ts/llama_cloud_services/package.json (+7 -6)
📝 ts/llama_cloud_services/src/client/zod.gen.ts (+6 -6)
📝 ts/llama_cloud_services/src/events.ts (+1 -1)
📝 ts/llama_cloud_services/src/query-tool.ts (+2 -4)
📝 ts/llama_cloud_services/src/schema.ts (+8 -7)

📄 Description

Adds support for zod v4 while maintaining backward compatibility with v3.

  • Updated zod peer dependency to accept both v3 and v4: ^3.25.76 || ^4.0.0
  • Migrated all import statements to use zod/v4 import path for compatibility

🔄 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/run-llama/llama_cloud_services/pull/1052 **Author:** [@jgeurts](https://github.com/jgeurts) **Created:** 12/8/2025 **Status:** ✅ Merged **Merged:** 12/9/2025 **Merged by:** [@logan-markewich](https://github.com/logan-markewich) **Base:** `main` ← **Head:** `zod-v4` --- ### 📝 Commits (5) - [`5aeb9ec`](https://github.com/run-llama/llama_cloud_services/commit/5aeb9ece57afce7ab9f3197343ecd8366033b356) feat: support zod v4 & v3 - [`2c4d46e`](https://github.com/run-llama/llama_cloud_services/commit/2c4d46e5460185901e925cfe225df66d2a8e1179) Add changeset for zod v4 support - [`ba9d65e`](https://github.com/run-llama/llama_cloud_services/commit/ba9d65e71d582402b6abfa732568a8fc46516488) Fix dependencies - [`60c82a6`](https://github.com/run-llama/llama_cloud_services/commit/60c82a6762439e5ee7c2f8be2a5986116a9a8d06) Fix formatting - [`405a913`](https://github.com/run-llama/llama_cloud_services/commit/405a913e167ffb90b54b2923ffd81c10c17c263b) changeset ### 📊 Changes **8 files changed** (+190 additions, -3387 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/thirty-rivers-agree.md` (+5 -0) ➕ `.changeset/zod-v4-support.md` (+10 -0) 📝 `pnpm-lock.yaml` (+151 -3363) 📝 `ts/llama_cloud_services/package.json` (+7 -6) 📝 `ts/llama_cloud_services/src/client/zod.gen.ts` (+6 -6) 📝 `ts/llama_cloud_services/src/events.ts` (+1 -1) 📝 `ts/llama_cloud_services/src/query-tool.ts` (+2 -4) 📝 `ts/llama_cloud_services/src/schema.ts` (+8 -7) </details> ### 📄 Description Adds support for zod v4 while maintaining backward compatibility with v3. - Updated `zod` peer dependency to accept both v3 and v4: `^3.25.76 || ^4.0.0` - Migrated all import statements to use `zod/v4` import path for compatibility --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 00:19:56 -05:00
yindo closed this issue 2026-02-16 00:19:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/llama_cloud_services#1042