Skip to content

Support Zod 4 #14706

@VityaSchel

Description

@VityaSchel

Astro Info

Astro                    v5.15.1
Node                     v22.18.0
System                   macOS (arm64)
Package Manager          bun
Output                   static
Adapter                  none
Integrations             @astrojs/sitemap
                         @astrojs/svelte
                         @astrojs/mdx

If this issue only occurs in one browser, which browser is a problem?

N/A

Describe the Bug

astro build causes this error.

const SitemapOptionsSchema = z$1.object({
  filenameBase: z$1.string().optional().default(SITEMAP_CONFIG_DEFAULTS.filenameBase),
  filter: z$1.function().args(z$1.string()).returns(z$1.boolean()).optional(),

zod@^4.1.12

What's the expected result?

No build error

Link to Minimal Reproducible Example

N/A

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Labels

requires breaking changeFixing this bug or adding this feature would require breaking changes. For PRs, use "semver: major"

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions