Skip to content

Commit 22d9b86

Browse files
FIX(deps): Reducing compatibility with Zod (#3357)
4.4 will be supported in #3208 due to Zod's breaking changes revaled in #3355 see #3355 (comment) for details <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Clarified Zod compatibility: support limited to versions below 4.4.0 due to upstream behavior changes; note that broader Zod 4.4+ support will be delivered in a future major release. * **Chores** * Tightened dependency version constraints across packages and updated release notes and README to enforce the stated Zod compatibility boundaries. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: pullfrog[bot] <226033991+pullfrog[bot]@users.noreply.github.com>
1 parent 75dd6fd commit 22d9b86

5 files changed

Lines changed: 18 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
## Version 27
44

5+
### v27.2.6
6+
7+
- Limited Zod compatibility to `~4.3.4` (<4.4.0):
8+
- Zod 4.4.0 introduced a breaking change to how `brand` method works, making the current plugin approach incompatible;
9+
- `@express-zod-api/zod-plugin` version bumped to `^4.1.1` (limited Zod compatibility as well);
10+
- Supporting Zod 4.4+ requires a breaking change and will be addressed in v28 (next major version).
11+
512
### v27.2.5
613

714
- Reduced memory footprint at runtime: deferred population of well-known headers to Documentation;

pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ catalogs:
5151
prod:
5252
"ramda": "^0.32.0"
5353
peer:
54-
"zod": "^4.3.4"
54+
"zod": "~4.3.4"
5555
dev:
5656
"@types/compression": "^1.8.1"
5757
"@types/express": "^5.0.6"
@@ -66,7 +66,7 @@ catalogs:
6666
"http-errors": "^2.0.1"
6767
"typescript": "^6.0.2"
6868
"typescript-eslint": "^8.51.0"
69-
"zod": "^4.3.4"
69+
"zod": "~4.3.4"
7070
overrides:
7171
"@scarf/scarf": "-"
7272
"lightningcss": "-"

zod-plugin/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
## Version 4
44

5+
### v4.1.1
6+
7+
- Limited compatibility to Zod versions `~4.3.4` (<4.4.0):
8+
- Zod 4.4.0 introduced a breaking change to how `brand` method works, making the current plugin approach incompatible;
9+
- Support for Zod 4.4+ will be added in v5 (the next major version).
10+
511
### v4.1.0
612

713
- Added `x-brand` type to the augmentation of Zod's `GlobalMeta` interface:

zod-plugin/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ This module extends Zod functionality when it's imported:
1818

1919
## Requirements
2020

21-
- Zod `^4.3.4`
21+
- Compatible with Zod versions `~4.3.4` (<4.4.0);
22+
- Zod 4.4+ support will be available in v5 (the next major version).
2223

2324
## Basic usage
2425

0 commit comments

Comments
 (0)