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.
Files changed (2) hide show
  1. package/README.md +12 -10
  2. 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 broad peer-dep ranges in `package.json`: `zod >= 4.4.0`, `@nestjs/common >= 10`, `@nestjs/core >= 10`, `@nestjs/swagger >= 8`, `rxjs >= 7`, Node `>= 22`. CI validates those claims by running the full test suite against the cells below; a red cell is a real blocker.
454
-
455
- | Cell | `zod` | `@nestjs/common` | `@nestjs/core` | `@nestjs/swagger` |
456
- |---|---|---|---|---|
457
- | `floor` | 4.4.0 | 10.0.0 | 10.0.0 | 8.0.0 |
458
- | `zod-latest` | latest | 10.0.0 | 10.0.0 | 8.0.0 |
459
- | `nest-latest` | 4.4.0 | latest | latest | latest |
460
- | `all-latest` | latest | latest | latest | latest |
461
-
462
- 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 + rxjs are not currently matrixed (Node floor `22` is enforced by `engines`; rxjs has been stable enough not to need cells yet).
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.13.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": ">=10",
64
- "@nestjs/core": ">=10",
65
- "@nestjs/swagger": ">=8",
66
- "rxjs": ">=7",
67
- "zod": ">=4.4.0"
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",