Skip to content

Bump zod from 3.25.76 to 4.4.2#72

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/zod-4.4.2
Closed

Bump zod from 3.25.76 to 4.4.2#72
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/zod-4.4.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github May 4, 2026

Copy link
Copy Markdown

Bumps zod from 3.25.76 to 4.4.2.

Release notes

Sourced from zod's releases.

v4.4.2

Commits:

  • 0c62df0ea19fd05abdf90473e9eef7eea530fab2 Clean up docs navigation and stale labels (#5901)
  • 20cc794895cc8604fe0c87d83a5d1c3f89fad0ac chore: add security policy and refresh tooling deps
  • 6fbe07b0177efdd1bf1c0b05160e70d7a0702337 fix(docs): heading anchor links now include the hash so it doesnt scoll all the way up, follows navbar logic (#5791)
  • 4bbed1b1c73eca4ce9e59b1189ed236aa6c8b5bd Tighten discriminated union option typing
  • bbac3e567e7fccfaaf7cdc97f1ce30c295e2c908 Update PR guidance for agents
  • cf0dc942a32805c292fff59ade20a7ace980735a Merge remote-tracking branch 'origin/main' into fix-discriminated-union-key-constraint
  • 292c894a5fd2aa42e527900b83d8d7a3009a709c docs: add Zernio gold sponsor
  • 1fc9f311c28dcf80d0bb5a36b177086cbc3d8eca docs: document codec inversion
  • 1373c85da9aeff704a9762d27bc58699618aefb7 docs: remove AI disclosure guidance
  • e20d02b473c08e3a4e557bc610b1b5fac079b649 chore: ignore triage notes
  • e58ea4d91b1dfe8194b73508203213cbc7e9c936 docs: test Zod Mini tab code heights
  • 905761a5d127e8d5dd2ebb3bc88c75cb0b8149ff docs: document preprocess input type narrowing
  • bf64bac850d4dee2b7dde7e64909d5d796d32043 chore: tighten test guidance in AGENTS.md
  • 8ec4e73f4c4693b6361ad591be40fb41eb8a9f95 chore: update play.ts scratch
  • 02c2baf7d0d615872fa4528a8020603b71211702 Make z.preprocess defer optionality to inner schema (#5929)
  • 88015df8e25c44fb5385eb3ef28935119cd5edea fix(docs): drop deprecated baseUrl from tsconfig
  • c59d4474e3b4cad1b323462186cf607178ce8267 4.4.2

v4.4.1

Commits:

  • 481f7be4238c83ed58183f921b2646f340a91c6a ci: gate release publishing on full test workflow
  • 95ccab423aec720b2523c3a64cdc7e3204537cc7 test(v3): restore optional undefined expectations
  • cede2c63739a5823d6aa5093d291e9a111da943d fix(v4): reject tuple holes before required defaults (#5900)
  • edd0bf0f5ada4a8dc581c259407d7bbad0a71ea7 release: 4.4.1
  • 180d83d1dbe6a59260710cc8637a3dea2281ee56 docs: remove Jazz featured sponsor

v4.4.0

4.4.0

This is a minor release with a wide set of correctness and soundness fixes. Some fixes intentionally make Zod stricter, so code that depended on previously accepted invalid or ambiguous inputs may need small updates.

Potentially breaking bug fixes

Tuple defaults now materialize output values correctly

Fixed in #5661. Tuple parsing now more accurately reflects defaults, optional tails, explicit undefined, and under-filled inputs. The headline behavior is that defaults in tuple positions now properly appear in parsed output.

const schema = z.tuple([
  z.string(),
  z.string().default("fallback"),
]);
schema.parse(["a"]);
// ["a", "fallback"]

... (truncated)

Commits
  • c59d447 4.4.2
  • 88015df fix(docs): drop deprecated baseUrl from tsconfig
  • 02c2baf Make z.preprocess defer optionality to inner schema (#5929)
  • 8ec4e73 chore: update play.ts scratch
  • bf64bac chore: tighten test guidance in AGENTS.md
  • 905761a docs: document preprocess input type narrowing
  • e58ea4d docs: test Zod Mini tab code heights
  • e20d02b chore: ignore triage notes
  • 1373c85 docs: remove AI disclosure guidance
  • 1fc9f31 docs: document codec inversion
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for zod since your current version.


Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

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>
@dependabot dependabot Bot added major PR will bump major semver skip-release Merging PR will not trigger release labels May 4, 2026
@dependabot dependabot Bot requested a review from kibertoad as a code owner May 4, 2026 04:47
@dependabot dependabot Bot added major PR will bump major semver skip-release Merging PR will not trigger release labels May 4, 2026
@coderabbitai

coderabbitai Bot commented May 4, 2026

Copy link
Copy Markdown
📝 Walkthrough

Summary by CodeRabbit

  • Chores
    • Updated development dependencies to improve stability and performance.

Walkthrough

The pull request updates the zod package version in devDependencies from ^3.22.4 to ^4.4.2 in the package.json manifest file. This is a major version bump of the validation library.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is missing the required 'Changes' section explaining the update rationale and omits the checklist for labels, documentation, and test updates. Add a 'Changes' section briefly describing why zod was updated, and complete the checklist items including applying a release label and confirming documentation/test status.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: updating zod from version 3.25.76 to 4.4.2, which matches the package.json dependency update.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dependabot/npm_and_yarn/zod-4.4.2

Review rate limit: 3/5 reviews remaining, refill in 23 minutes and 38 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

📥 Commits

Reviewing files that changed from the base of the PR and between e6d6b13 and 6a09a69.

📒 Files selected for processing (1)
  • package.json

Comment thread package.json
"vite": "^5.2.10",
"vitest": "^1.5.3",
"zod": "^3.22.4"
"zod": "^4.4.2"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 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.

@dependabot @github

dependabot Bot commented on behalf of github May 11, 2026

Copy link
Copy Markdown
Author

Superseded by #74.

@dependabot dependabot Bot closed this May 11, 2026
@dependabot dependabot Bot deleted the dependabot/npm_and_yarn/zod-4.4.2 branch May 11, 2026 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

major PR will bump major semver skip-release Merging PR will not trigger release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants