Skip to content

refactor(xsschema): bump zod, use zod/v4 import #155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 22, 2025
Merged

Conversation

pattobrien
Copy link
Contributor

Zod v4 was just released to stable; the new APIs will no longer be accessible via a new v4 version, rather via a zod/v4 import.

Changes made:

  • updated workspace dependencies to use zod ^v3.25.0
  • updated test snapshots to include now-generated $schema values
  • updated vendor toJSONSchema logic to include zod/v4 lookup

@charliechecks charliechecks bot requested a review from CharlieHelps May 22, 2025 07:30
@kwaa
Copy link
Member

kwaa commented May 22, 2025

Maybe we should drop the @zod/mini package support and just support zod/v4-mini.

@pattobrien
Copy link
Contributor Author

Maybe we should drop the @zod/mini package support and just support zod/v4-mini.

Yeah, seems like it could be redundant, re: https://zod.dev/library-authors?id=how-to-support-zod-and-zod-mini-simultaneously

@kwaa kwaa changed the title chore: Migrate to latest zod v3.25.0, use zod/v4 import. refactor(xsschema): bump zod, use zod/v4 import May 22, 2025
@kwaa kwaa merged commit 8c03ff5 into moeru-ai:main May 22, 2025
1 check passed
@kwaa
Copy link
Member

kwaa commented May 22, 2025

Thanks for contributing! This will be released later as v0.3.0-beta.

@kwaa
Copy link
Member

kwaa commented May 22, 2025

https://github.com/moeru-ai/xsai/releases/tag/v0.3.0-beta.1

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