@voznov/zod-dto-nestjs 0.1.0 → 0.1.1

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 +1 -1
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -41,7 +41,7 @@ export class UsersController {
41
41
 
42
42
  ## Swagger integration
43
43
 
44
- Importing this package side-effect-registers an `onCreate` hook that decorates every DTO class with `@ApiProperty` metadata based on its Zod schema — no manual decorators required.
44
+ Importing this package side-effect-registers an `onCreate` hook that decorates every DTO class with `@ApiProperty` metadata based on its Zod schema — no manual decorators required. **Import order doesn't matter**: DTOs created before `@voznov/zod-dto-nestjs` was imported are retroactively decorated at hook registration, so `import '@voznov/zod-dto-nestjs'` from anywhere in the app works.
45
45
 
46
46
  Supported shapes: scalars, objects (nested), arrays, tuples, records, enums, literals, unions (including discriminated), intersections, optional/nullable/default wrappers, and nested DTO references (via `oneOf` + `ApiExtraModels`).
47
47
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voznov/zod-dto-nestjs",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "NestJS adapter for @voznov/zod-dto — validation pipe, Swagger generation",
5
5
  "keywords": [
6
6
  "zod",
@@ -48,7 +48,7 @@
48
48
  "@nestjs/common": ">=10.0.0",
49
49
  "@nestjs/swagger": ">=7.0.0",
50
50
  "zod": ">=4.0.0",
51
- "@voznov/zod-dto": "^0.1.0"
51
+ "@voznov/zod-dto": "^0.1.1"
52
52
  },
53
53
  "publishConfig": {
54
54
  "access": "public"