Skip to content

deps: Upgrade to Zod 4#1461

Open
ryans-posthog wants to merge 4 commits intomainfrom
ryan/upgrade_to_zod_4
Open

deps: Upgrade to Zod 4#1461
ryans-posthog wants to merge 4 commits intomainfrom
ryan/upgrade_to_zod_4

Conversation

@ryans-posthog
Copy link
Copy Markdown
Contributor

@ryans-posthog ryans-posthog commented Apr 2, 2026

Problem

Zod version 3 requires lots of external dependencies to work well with json schema. Json schema usage will increase as we add structured outputs.

Changes

Bumps the version of Zod from v3 to v4 and makes minimal changes required for compatibility.

How did you test this?

Running all tests and verifying that they are working correctly. Running PostHog Code locally and verifying that the agent service still works properly.

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant