Skip to content

Commit 7a553e4

Browse files
authored
Add constraints to zod peer (#3085)
This should simplify elevating the requirements on zod version in the next major #2939 incl. scope packages (Zod plugin) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Refactored zod dependency management across packages to use a centralized catalog system for improved version consistency and maintainability. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent c2483f7 commit 7a553e4

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

express-zod-api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"express-fileupload": "^1.5.0",
5959
"http-errors": "^2.0.0",
6060
"typescript": "^5.1.3",
61-
"zod": "^4.0.0"
61+
"zod": "catalog:peer"
6262
},
6363
"peerDependenciesMeta": {
6464
"@types/compression": {

pnpm-workspace.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ publicHoistPattern:
4343
catalogs:
4444
prod:
4545
"ramda": "^0.32.0"
46+
peer:
47+
"zod": "^4.0.0"
4648
dev:
4749
"@types/compression": "^1.8.1"
4850
"@types/express": "^5.0.3"

zod-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"ramda": "catalog:prod"
4343
},
4444
"peerDependencies": {
45-
"zod": "^4.0.0"
45+
"zod": "catalog:peer"
4646
},
4747
"devDependencies": {
4848
"@types/ramda": "catalog:dev",

0 commit comments

Comments
 (0)