Skip to content

Conversation

@matthewp
Copy link
Contributor

@matthewp matthewp commented Dec 3, 2025

Changes

  • A lot of use of .prefault() and changing z.object(z.number()) to z.object(z.string(), z.number())

Testing

  • Existing tests pass
  • Most significant changes here are because error messages are a little different in Zod 4.

Docs

Consolidate Zod v3 to v4 upgrade with comprehensive changes:

- Remove dual Zod version support, standardize on v4
- Simplify type systems and remove experimental.zod4 flag
- Update dependencies: js-yaml, magic-string, magicast to latest versions
- Replace kleur with piccolore for CLI colors
- Refactor content layer, actions, and config to use unified Zod handling
- Simplify JSON schema generation and type generation
- Remove z3/z4 branching logic throughout codebase
- Update error handling to work with unified Zod implementation

BREAKING CHANGE: Zod v3 support removed, project now requires Zod v4+
- Remove all z3 imports and replace with z4/zod
- Remove z3-specific functions (formDataToZ3Object, handleZ3FormDataGetAll/Get, unwrapBaseZ3ObjectSchema, createZ3Image)
- Remove dual-version type unions, simplify to z4-only types
- Remove z3ErrorMap function, keep only z4ErrorMap
- Remove checkZodSchemaCompatibility calls (no longer needed)
- Simplify vite-plugin-experimental-zod4/utils.ts to no-op
- Update package.json to require zod ^4.0.0
- Update test files and exports to reference z4 versions
@changeset-bot
Copy link

changeset-bot bot commented Dec 3, 2025

🦋 Changeset detected

Latest commit: d10cb61

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added pkg: example Related to an example package (scope) pkg: astro Related to the core `astro` package (scope) docs pr labels Dec 3, 2025
@github-actions github-actions bot added pkg: svelte Related to Svelte (scope) pkg: integration Related to any renderer integration (scope) labels Dec 4, 2025
@florian-lefebvre florian-lefebvre added this to the v6.0.0 milestone Dec 5, 2025
matthewp and others added 17 commits December 8, 2025 11:24
@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2025

⚠️ Package Trust Level Decreased

Caution

Decreased trust levels may indicate a higher risk of supply chain attacks. Please review these changes carefully.

📦 Package 🔒 Before 🔓 After
@cloudflare/unenv-preset trusted-with-provenance none
workerd trusted-with-provenance none
undici provenance none
miniflare trusted-with-provenance none
youch provenance none
@cloudflare/workerd-darwin-64 trusted-with-provenance none
@cloudflare/workerd-darwin-arm64 trusted-with-provenance none
@cloudflare/workerd-linux-64 trusted-with-provenance none
@cloudflare/workerd-linux-arm64 trusted-with-provenance none
@cloudflare/workerd-windows-64 trusted-with-provenance none
wrangler trusted-with-provenance none

@ematipico
Copy link
Member

Is the bot incorrect? #14956 (comment)

Copy link
Member

@florian-lefebvre florian-lefebvre left a comment

Choose a reason for hiding this comment

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

Only some small things. Some of my older reviews need to be addressed still

@florian-lefebvre
Copy link
Member

florian-lefebvre commented Dec 9, 2025

So the missing things to address are:

@delucis
Copy link
Member

delucis commented Dec 9, 2025

Is the bot incorrect? #14956 (comment)

I think it’s not working correctly currently: we need e18e/action-dependency-diff#95 which isn’t released yet. I’ve asked if they can release that. If not, I’ll send a PR pinning to that commit hash directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs pr pkg: astro Related to the core `astro` package (scope) pkg: example Related to an example package (scope) pkg: integration Related to any renderer integration (scope) pkg: svelte Related to Svelte (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Zod 4

5 participants