@stlmpp/nestjs-zod 1.0.1 → 1.1.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/dist/index.d.cts CHANGED
@@ -110,7 +110,11 @@ declare function createZodValidationPipe({
110
110
  declare const ZodValidationPipe: ZodValidationPipeClass;
111
111
  //#endregion
112
112
  //#region src/serializer.d.ts
113
- declare function ZodSerializerDto(dto: ZodDto | UnknownSchema | [ZodDto] | [UnknownSchema]): import("@nestjs/common").CustomDecorator<"ZOD_SERIALIZER_DTO_OPTIONS">;
113
+ declare function ZodSerializerDto(dto: ZodDto | UnknownSchema | [ZodDto] | [UnknownSchema]): import("@nestjs/common",{
114
+ with: {
115
+ "resolution-mode": "import"
116
+ }
117
+ }).CustomDecorator<"ZOD_SERIALIZER_DTO_OPTIONS">;
114
118
  interface ZodSerializerInterceptorOptions {
115
119
  reportInput?: boolean;
116
120
  }
package/dist/index.d.mts CHANGED
@@ -110,7 +110,11 @@ declare function createZodValidationPipe({
110
110
  declare const ZodValidationPipe: ZodValidationPipeClass;
111
111
  //#endregion
112
112
  //#region src/serializer.d.ts
113
- declare function ZodSerializerDto(dto: ZodDto | UnknownSchema | [ZodDto] | [UnknownSchema]): import("@nestjs/common").CustomDecorator<"ZOD_SERIALIZER_DTO_OPTIONS">;
113
+ declare function ZodSerializerDto(dto: ZodDto | UnknownSchema | [ZodDto] | [UnknownSchema]): import("@nestjs/common",{
114
+ with: {
115
+ "resolution-mode": "import"
116
+ }
117
+ }).CustomDecorator<"ZOD_SERIALIZER_DTO_OPTIONS">;
114
118
  interface ZodSerializerInterceptorOptions {
115
119
  reportInput?: boolean;
116
120
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stlmpp/nestjs-zod",
3
3
  "description": "All NestJS + Zod utilities you need",
4
- "version": "1.0.1",
4
+ "version": "1.1.0",
5
5
  "main": "./dist/index.cjs",
6
6
  "exports": {
7
7
  ".": {
@@ -50,7 +50,7 @@
50
50
  "scripts": {
51
51
  "dev": "vite",
52
52
  "build": "tsdown",
53
- "test": "TZ=UTC jest",
53
+ "test": "TZ=UTC vitest run",
54
54
  "lint": "eslint",
55
55
  "lint:fix": "eslint --fix",
56
56
  "format:write": "prettier --write \"src/**/*.ts\"",
@@ -58,18 +58,17 @@
58
58
  },
59
59
  "devDependencies": {
60
60
  "@eslint/js": "^10.0.1",
61
- "@golevelup/ts-jest": "^3.0.0",
61
+ "@golevelup/ts-vitest": "^4.0.0",
62
62
  "@ibm-cloud/openapi-ruleset": "^1.33.13",
63
63
  "@nest-zod/z": "workspace:*",
64
- "@nestjs/common": "^11.1.5",
65
- "@nestjs/core": "^11.1.5",
66
- "@nestjs/swagger": "^11.2.0",
67
- "@nestjs/swagger-v7": "npm:@nestjs/swagger@7.4.2",
68
- "@nestjs/testing": "^11.1.28",
64
+ "@nestjs/common": "^12.1.0",
65
+ "@nestjs/core": "^12.1.0",
66
+ "@nestjs/swagger": "^12.0.2",
67
+ "@nestjs/testing": "^12.1.0",
69
68
  "@stoplight/spectral-core": "^1.23.1",
70
69
  "@stoplight/spectral-rulesets": "^1.22.7",
70
+ "@swc/core": "^1.15.47",
71
71
  "@types/express": "^5.0.6",
72
- "@types/jest": "^29.5.2",
73
72
  "@types/lodash": "^4.17.23",
74
73
  "@types/merge-deep": "^3.0.0",
75
74
  "@types/node": "^25.9.1",
@@ -82,23 +81,23 @@
82
81
  "express": "^5.2.1",
83
82
  "express-openapi-validator": "^5.6.2",
84
83
  "globals": "^17.6.0",
85
- "jest": "^29.5.0",
86
84
  "jiti": "^2.7.0",
87
85
  "lodash": "^4.17.23",
88
86
  "prettier": "^3.9.6",
89
87
  "reflect-metadata": "^0.2.0",
90
88
  "rxjs": "^7.8.1",
91
89
  "supertest": "^7.2.2",
92
- "ts-jest": "^29.4.10",
93
90
  "tsdown": "^0.22.3",
94
91
  "typescript": "5.9.3",
95
- "typescript-eslint": "^8.66.0",
92
+ "typescript-eslint": "^8.67.0",
93
+ "unplugin-swc": "^2.0.0",
94
+ "vitest": "^5.0.1",
96
95
  "zod": "4.4.3",
97
96
  "zod-v4_0_0": "npm:zod@4.0.0"
98
97
  },
99
98
  "peerDependencies": {
100
- "@nestjs/common": "^10.0.0 || ^11.0.0",
101
- "@nestjs/swagger": "^7.4.2 || ^8.0.0 || ^11.0.0",
99
+ "@nestjs/common": "^10.0.0 || ^11.0.0 || ^12.0.0",
100
+ "@nestjs/swagger": "^7.4.2 || ^8.0.0 || ^11.0.0 || ^12.0.0",
102
101
  "rxjs": "^7.0.0",
103
102
  "zod": "^3.25.0 || ^4.0.0"
104
103
  },