Bump zod from 3.25.76 to 4.4.2#72
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:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe pull request updates the Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Review rate limit: 3/5 reviews remaining, refill in 23 minutes and 38 seconds. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@package.json`:
- Line 58: Package update bumps zod to 4.4.2; run the full test suite and verify
all usages of Zod APIs (notably z.preprocess, z.object, z.string, z.number,
z.date, z.boolean) in tests under src/utils/toStringPreprocessor.test.ts,
toNumberPreprocessor.test.ts, toDatePreprocessor.test.ts,
toBooleanPreprocessor.test.ts, toArrayPreprocessor.test.ts and related files; if
tests fail, update schema definitions and preprocessors to match Zod v4 behavior
(adjust preprocess function signatures/return types, refine transforms, and any
.parse/.safeParse handling) and re-run tests until green. Ensure any breaking
changes are handled where z.preprocess or schema constructors are used, then
commit the fixes.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: lokalise/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: fad6dab0-de0d-4ae9-be2d-25ef52c393af
📒 Files selected for processing (1)
package.json
| "vite": "^5.2.10", | ||
| "vitest": "^1.5.3", | ||
| "zod": "^3.22.4" | ||
| "zod": "^4.4.2" |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
rg -n --glob '!node_modules/**' --glob '!dist/**' \
'from '\''zod'\''|z\.preprocess\(|z\.object\(|z\.string\(\)\.max\(|z\.number\(\)|z\.date\(\)|z\.boolean\(\)|z\.default\(' \
src .Repository: lokalise/zod-extras
Length of output: 23622
Verify Zod 4 compatibility before merging.
This is a major-version bump, and the repo heavily uses Zod APIs in src/utils/toStringPreprocessor.test.ts, src/utils/toNumberPreprocessor.test.ts, src/utils/toDatePreprocessor.test.ts, src/utils/toBooleanPreprocessor.test.ts, src/utils/toArrayPreprocessor.test.ts, and other test files with z.preprocess(), z.object(), z.string(), z.number(), z.date(), and z.boolean() schemas. Run the full test suite to ensure all schemas still behave as expected under 4.4.2.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@package.json` at line 58, Package update bumps zod to 4.4.2; run the full
test suite and verify all usages of Zod APIs (notably z.preprocess, z.object,
z.string, z.number, z.date, z.boolean) in tests under
src/utils/toStringPreprocessor.test.ts, toNumberPreprocessor.test.ts,
toDatePreprocessor.test.ts, toBooleanPreprocessor.test.ts,
toArrayPreprocessor.test.ts and related files; if tests fail, update schema
definitions and preprocessors to match Zod v4 behavior (adjust preprocess
function signatures/return types, refine transforms, and any .parse/.safeParse
handling) and re-run tests until green. Ensure any breaking changes are handled
where z.preprocess or schema constructors are used, then commit the fixes.
|
Superseded by #74. |
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.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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)