Skip to content

deps: Upgrade to Zod 4#1461

Merged
charlesvien merged 3 commits intomainfrom
ryan/upgrade_to_zod_4
Apr 3, 2026
Merged

deps: Upgrade to Zod 4#1461
charlesvien merged 3 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.

Copy link
Copy Markdown
Member

@charlesvien charlesvien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated the deprecated usages, LGTM!

@charlesvien charlesvien force-pushed the ryan/upgrade_to_zod_4 branch from 34bdfcd to bad7053 Compare April 3, 2026 01:57
@charlesvien charlesvien merged commit 2dd5059 into main Apr 3, 2026
16 checks passed
@charlesvien charlesvien deleted the ryan/upgrade_to_zod_4 branch April 3, 2026 02:05
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.

2 participants