Skip to content

chore(deps): Upgrade Zod to v4#1164

Merged
dcramer merged 3 commits into
mainfrom
chore/zod-v4
Jul 17, 2026
Merged

chore(deps): Upgrade Zod to v4#1164
dcramer merged 3 commits into
mainfrom
chore/zod-v4

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Upgrade the workspace from Zod 3 to Zod 4 and migrate affected schemas, error handling, and generic types to the v4 API.

JSON Schema generation

Replace zod-to-json-schema with Zod 4's native z.toJSONSchema API and regenerate the checked-in tool definitions.

Compatibility updates

Use explicit key schemas for records, preserve optional fields that previously accepted undefined, and switch validation errors from .errors to .issues.

Requested by David Cramer via Junior.

--

View Junior Session

Co-Authored-By: OpenAI Codex <noreply@openai.com>
Co-Authored-By: David Cramer <david@sentry.io>
@dcramer
dcramer marked this pull request as ready for review July 17, 2026 19:27

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 7cfd54c. Configure here.

Comment thread packages/mcp-core/scripts/generate-definitions.ts Outdated
Co-Authored-By: OpenAI Codex <noreply@openai.com>
Comment thread packages/mcp-core/src/tools/catalog-runtime/schema.ts Outdated
Co-Authored-By: OpenAI Codex <noreply@openai.com>
Co-Authored-By: David Cramer <david@sentry.io>
@dcramer
dcramer merged commit 41a2526 into main Jul 17, 2026
22 checks passed
@dcramer
dcramer deleted the chore/zod-v4 branch July 17, 2026 20:02
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