zod-nest 0.13.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -10
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -450,16 +450,18 @@ A compact, link-out index. Type signatures and detailed semantics live in the co
|
|
|
450
450
|
|
|
451
451
|
## Compatibility matrix
|
|
452
452
|
|
|
453
|
-
`zod-nest` declares
|
|
454
|
-
|
|
455
|
-
| Cell | `zod` | `@nestjs/common` | `@nestjs/core` | `@nestjs/swagger` |
|
|
456
|
-
|
|
457
|
-
| `floor` | 4.4.0 |
|
|
458
|
-
| `zod-latest` | latest |
|
|
459
|
-
| `nest-latest` | 4.4.0 | latest | latest | latest |
|
|
460
|
-
| `
|
|
461
|
-
|
|
462
|
-
|
|
453
|
+
`zod-nest` declares explicit min + max peer-dep ranges in `package.json`: `zod >=4.4.0 <5.0.0`, `@nestjs/common >=11.0.1 <12.0.0`, `@nestjs/core >=11.0.1 <12.0.0`, `@nestjs/swagger >=11.0.0 <12.0.0`, `rxjs >=7.1.0 <8.0.0`, `reflect-metadata >=0.2.0 <0.3.0`, Node `>=22`. CI validates those claims by running the full test suite against the cells below; a red cell is a real blocker. Upper bounds are deliberate — a new peer major has to land in a real PR with a `/check-upstream-updates` audit before consumers can install it against this library.
|
|
454
|
+
|
|
455
|
+
| Cell | `zod` | `@nestjs/common` | `@nestjs/core` | `@nestjs/swagger` | `rxjs` | `reflect-metadata` |
|
|
456
|
+
|---|---|---|---|---|---|---|
|
|
457
|
+
| `floor` | 4.4.0 | 11.0.1 | 11.0.1 | 11.0.0 | 7.1.0 | 0.2.0 |
|
|
458
|
+
| `zod-latest` | latest | 11.0.1 | 11.0.1 | 11.0.0 | 7.1.0 | 0.2.0 |
|
|
459
|
+
| `nest-latest` | 4.4.0 | latest | latest | latest | 7.1.0 | 0.2.0 |
|
|
460
|
+
| `rxjs-latest` | 4.4.0 | 11.0.1 | 11.0.1 | 11.0.0 | latest | 0.2.0 |
|
|
461
|
+
| `reflect-metadata-latest` | 4.4.0 | 11.0.1 | 11.0.1 | 11.0.0 | 7.1.0 | latest |
|
|
462
|
+
| `all-latest` | latest | latest | latest | latest | latest | latest |
|
|
463
|
+
|
|
464
|
+
Cell definitions live in [`.github/compat-matrix.json`](.github/compat-matrix.json). The CI workflow ([`.github/workflows/compat-matrix.yml`](.github/workflows/compat-matrix.yml)) runs on every push to `main` and weekly on Monday — when a cell fails, the workflow opens (or comments on) a GitHub issue labelled `compat-matrix-failure` so the regression is tracked outside the Actions UI. Editing the JSON is the formal way to extend or shrink supported ranges. Node is not matrixed — the `>=22` floor is enforced by `engines`.
|
|
463
465
|
|
|
464
466
|
## Migration from `nestjs-zod`
|
|
465
467
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zod-nest",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Modern Zod v4-only NestJS + OpenAPI 3.1 integration. Successor to nestjs-zod.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Rodrigo Azevedo",
|
|
@@ -60,11 +60,12 @@
|
|
|
60
60
|
"pack:smoke": "node scripts/pack-smoke.mjs"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"@nestjs/common": ">=
|
|
64
|
-
"@nestjs/core": ">=
|
|
65
|
-
"@nestjs/swagger": ">=
|
|
66
|
-
"
|
|
67
|
-
"
|
|
63
|
+
"@nestjs/common": ">=11.0.1 <12.0.0",
|
|
64
|
+
"@nestjs/core": ">=11.0.1 <12.0.0",
|
|
65
|
+
"@nestjs/swagger": ">=11.0.0 <12.0.0",
|
|
66
|
+
"reflect-metadata": ">=0.2.0 <0.3.0",
|
|
67
|
+
"rxjs": ">=7.1.0 <8.0.0",
|
|
68
|
+
"zod": ">=4.4.0 <5.0.0"
|
|
68
69
|
},
|
|
69
70
|
"devDependencies": {
|
|
70
71
|
"@apidevtools/swagger-parser": "^12.1.0",
|