chore(deps): bump zod from 3.25.76 to 4.4.2#216
Merged
Conversation
Bumps [zod](https://github.com/colinhacks/zod) from 3.25.76 to 4.4.2. - [Release notes](https://github.com/colinhacks/zod/releases) - [Commits](colinhacks/zod@v3.25.76...v4.4.2) --- updated-dependencies: - dependency-name: zod dependency-version: 4.4.2 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
zod v4 introduces breaking changes that broke typecheck and tests:
- z.record() now requires an explicit key schema -> use z.record(z.string(), z.any())
- ZodError.errors was renamed to ZodError.issues
- error messages changed ("Required" -> "Invalid input: expected ...")
- the schema-internal _def.typeName ("ZodObject") was removed
Tool tests no longer introspect zod internals; they assert validateInput
was called with the actual exported schema, which is version-independent.
validators test now matches zod v4 error message text.
All 348 tests pass; typecheck and lint clean with zod 4.4.2.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps zod from 3.25.76 to 4.4.2.
Release notes
Sourced from zod's releases.
... (truncated)
Commits
c59d4474.4.288015dffix(docs): drop deprecatedbaseUrlfrom tsconfig02c2bafMake z.preprocess defer optionality to inner schema (#5929)8ec4e73chore: update play.ts scratchbf64bacchore: tighten test guidance in AGENTS.md905761adocs: document preprocess input type narrowinge58ea4ddocs: test Zod Mini tab code heightse20d02bchore: ignore triage notes1373c85docs: remove AI disclosure guidance1fc9f31docs: document codec inversionMaintainer changes
This version was pushed to npm by GitHub Actions, a new releaser for zod since your current version.
You can trigger a rebase of this PR by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)