zod-nest 3.2.0 → 3.2.2

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 (43) hide show
  1. package/dist/chunk-26E2XEJU.js +294 -0
  2. package/dist/chunk-26E2XEJU.js.map +1 -0
  3. package/dist/chunk-4RXGLSPP.js +73 -0
  4. package/dist/chunk-4RXGLSPP.js.map +1 -0
  5. package/dist/chunk-FKXVNCDD.js +863 -0
  6. package/dist/chunk-FKXVNCDD.js.map +1 -0
  7. package/dist/chunk-LHNXO52A.mjs +838 -0
  8. package/dist/chunk-LHNXO52A.mjs.map +1 -0
  9. package/dist/chunk-LXRBMFWD.js +103 -0
  10. package/dist/chunk-LXRBMFWD.js.map +1 -0
  11. package/dist/chunk-RAF7JGS6.mjs +286 -0
  12. package/dist/chunk-RAF7JGS6.mjs.map +1 -0
  13. package/dist/chunk-WI4JKXT6.mjs +83 -0
  14. package/dist/chunk-WI4JKXT6.mjs.map +1 -0
  15. package/dist/chunk-ZZW54ETO.mjs +67 -0
  16. package/dist/chunk-ZZW54ETO.mjs.map +1 -0
  17. package/dist/express/index.d.mts +3 -3
  18. package/dist/express/index.d.ts +3 -3
  19. package/dist/express/index.js +33 -1118
  20. package/dist/express/index.js.map +1 -1
  21. package/dist/express/index.mjs +6 -1102
  22. package/dist/express/index.mjs.map +1 -1
  23. package/dist/fastify/index.d.mts +3 -3
  24. package/dist/fastify/index.d.ts +3 -3
  25. package/dist/fastify/index.js +18 -1109
  26. package/dist/fastify/index.js.map +1 -1
  27. package/dist/fastify/index.mjs +6 -1102
  28. package/dist/fastify/index.mjs.map +1 -1
  29. package/dist/helpers/index.js +81 -122
  30. package/dist/helpers/index.js.map +1 -1
  31. package/dist/helpers/index.mjs +4 -101
  32. package/dist/helpers/index.mjs.map +1 -1
  33. package/dist/index.d.mts +2 -2
  34. package/dist/index.d.ts +2 -2
  35. package/dist/index.js +263 -1091
  36. package/dist/index.js.map +1 -1
  37. package/dist/index.mjs +18 -895
  38. package/dist/index.mjs.map +1 -1
  39. package/dist/{param-decorators-CX1cUqfY.d.ts → param-decorators-23pStLeF.d.ts} +1 -1
  40. package/dist/{param-decorators-DbgygRVn.d.mts → param-decorators-Dfd2Cy08.d.mts} +1 -1
  41. package/dist/{registry-C9xStKa6.d.mts → registry-Cs1Y0a-L.d.mts} +1 -1
  42. package/dist/{registry-C9xStKa6.d.ts → registry-Cs1Y0a-L.d.ts} +1 -1
  43. package/package.json +26 -33
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { Z as ZodNestRegistry } from './registry-C9xStKa6.js';
2
+ import { Z as ZodNestRegistry } from './registry-Cs1Y0a-L.js';
3
3
  import * as _nestjs_common from '@nestjs/common';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { Z as ZodNestRegistry } from './registry-C9xStKa6.mjs';
2
+ import { Z as ZodNestRegistry } from './registry-Cs1Y0a-L.mjs';
3
3
  import * as _nestjs_common from '@nestjs/common';
4
4
 
5
5
  /**
@@ -43,7 +43,7 @@ interface ZodNestRegistry {
43
43
  anonymousIds(): readonly string[];
44
44
  }
45
45
  declare const createRegistry: () => ZodNestRegistry;
46
- /** Process-wide default registry, used when no explicit `options.registry` is passed. */
46
+ /** Process-wide default registry. Shared so subpath ids reach `applyZodNest`. */
47
47
  declare const defaultRegistry: ZodNestRegistry;
48
48
  interface RegisterSchemaOptions {
49
49
  /** Forces this id, overriding any `.meta({ id })` already on the schema. */
@@ -43,7 +43,7 @@ interface ZodNestRegistry {
43
43
  anonymousIds(): readonly string[];
44
44
  }
45
45
  declare const createRegistry: () => ZodNestRegistry;
46
- /** Process-wide default registry, used when no explicit `options.registry` is passed. */
46
+ /** Process-wide default registry. Shared so subpath ids reach `applyZodNest`. */
47
47
  declare const defaultRegistry: ZodNestRegistry;
48
48
  interface RegisterSchemaOptions {
49
49
  /** Forces this id, overriding any `.meta({ id })` already on the schema. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zod-nest",
3
- "version": "3.2.0",
3
+ "version": "3.2.2",
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",
@@ -30,47 +30,40 @@
30
30
  "types": "./dist/index.d.ts",
31
31
  "exports": {
32
32
  ".": {
33
- "import": {
34
- "types": "./dist/index.d.mts",
35
- "default": "./dist/index.mjs"
36
- },
37
- "require": {
38
- "types": "./dist/index.d.ts",
39
- "default": "./dist/index.js"
40
- }
33
+ "types": "./dist/index.d.ts",
34
+ "import": "./dist/index.mjs",
35
+ "require": "./dist/index.js"
41
36
  },
42
37
  "./helpers": {
43
- "import": {
44
- "types": "./dist/helpers/index.d.mts",
45
- "default": "./dist/helpers/index.mjs"
46
- },
47
- "require": {
48
- "types": "./dist/helpers/index.d.ts",
49
- "default": "./dist/helpers/index.js"
50
- }
38
+ "types": "./dist/helpers/index.d.ts",
39
+ "import": "./dist/helpers/index.mjs",
40
+ "require": "./dist/helpers/index.js"
51
41
  },
52
42
  "./express": {
53
- "import": {
54
- "types": "./dist/express/index.d.mts",
55
- "default": "./dist/express/index.mjs"
56
- },
57
- "require": {
58
- "types": "./dist/express/index.d.ts",
59
- "default": "./dist/express/index.js"
60
- }
43
+ "types": "./dist/express/index.d.ts",
44
+ "import": "./dist/express/index.mjs",
45
+ "require": "./dist/express/index.js"
61
46
  },
62
47
  "./fastify": {
63
- "import": {
64
- "types": "./dist/fastify/index.d.mts",
65
- "default": "./dist/fastify/index.mjs"
66
- },
67
- "require": {
68
- "types": "./dist/fastify/index.d.ts",
69
- "default": "./dist/fastify/index.js"
70
- }
48
+ "types": "./dist/fastify/index.d.ts",
49
+ "import": "./dist/fastify/index.mjs",
50
+ "require": "./dist/fastify/index.js"
71
51
  },
72
52
  "./package.json": "./package.json"
73
53
  },
54
+ "typesVersions": {
55
+ "*": {
56
+ "helpers": [
57
+ "dist/helpers/index.d.ts"
58
+ ],
59
+ "express": [
60
+ "dist/express/index.d.ts"
61
+ ],
62
+ "fastify": [
63
+ "dist/fastify/index.d.ts"
64
+ ]
65
+ }
66
+ },
74
67
  "files": [
75
68
  "dist",
76
69
  "LICENSE",