Skip to content

Conversation

@ArmandPhilippot
Copy link
Member

Description (required)

  • Updates modules/astro-zod.mdx to udpate the links and code snippets for Zod 4
  • Checks and updates the code snippets using Zod in other pages

I installed Zod 4 locally to check our code snippets. It seems that, except a few small changes around url()/email(), everything is still valid!

Related issues & labels (optional)

@netlify
Copy link

netlify bot commented Dec 10, 2025

Deploy Preview for astro-docs-2 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 4b9fc4e
🔍 Latest deploy log https://app.netlify.com/projects/astro-docs-2/deploys/693989c8e1604a0008205986
😎 Deploy Preview https://deploy-preview-12866--astro-docs-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@astrobot-houston
Copy link
Contributor

astrobot-houston commented Dec 10, 2025

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
en/guides/actions.mdx Source changed, localizations will be marked as outdated.
en/guides/content-collections.mdx Source changed, localizations will be marked as outdated.
en/reference/modules/astro-zod.mdx Source changed, localizations will be marked as outdated.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

Copy link
Member

@sarah11918 sarah11918 left a comment

Choose a reason for hiding this comment

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

Looks great! Just left one little suggestion.

So, I wonder whether we should consider mentioning the change to email() and url() in our upgrade guide, since people may very well have built things based on our existing code examples.

Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
@ArmandPhilippot
Copy link
Member Author

ArmandPhilippot commented Dec 10, 2025

z.string().email() and z.string().url() still work but they are deprecated: https://zod.dev/v4/changelog#deprecates-email-etc
So, not really breaking. But, yes, we could quote a few examples and say "check the Zod changelog for more"!

@ArmandPhilippot ArmandPhilippot merged commit cab31de into withastro:v6 Dec 10, 2025
10 checks passed
@ArmandPhilippot ArmandPhilippot deleted the feat/v6-update-module/astro-zod branch December 10, 2025 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants