@kubb/plugin-zod 3.0.0-alpha.7 → 3.0.0-alpha.8

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.
@@ -3,13 +3,13 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkPXJ5ZGKWcjs = require('./chunk-PXJ5ZGKW.cjs');
6
+ var _chunkTSJ74266cjs = require('./chunk-TSJ74266.cjs');
7
7
 
8
8
  // src/components/index.ts
9
- _chunkPXJ5ZGKWcjs.init_cjs_shims.call(void 0, );
9
+ _chunkTSJ74266cjs.init_cjs_shims.call(void 0, );
10
10
 
11
11
 
12
12
 
13
13
 
14
- exports.OperationSchema = _chunkPXJ5ZGKWcjs.OperationSchema; exports.Operations = _chunkPXJ5ZGKWcjs.Operations; exports.Schema = _chunkPXJ5ZGKWcjs.Schema;
14
+ exports.OperationSchema = _chunkTSJ74266cjs.OperationSchema; exports.Operations = _chunkTSJ74266cjs.Operations; exports.Schema = _chunkTSJ74266cjs.Schema;
15
15
  //# sourceMappingURL=components.cjs.map
@@ -3,7 +3,7 @@ import {
3
3
  Operations,
4
4
  Schema,
5
5
  init_esm_shims
6
- } from "./chunk-VSAW3SUC.js";
6
+ } from "./chunk-CD3EZWBX.js";
7
7
 
8
8
  // src/components/index.ts
9
9
  init_esm_shims();
package/dist/index.cjs CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkPXJ5ZGKWcjs = require('./chunk-PXJ5ZGKW.cjs');
5
+ var _chunkTSJ74266cjs = require('./chunk-TSJ74266.cjs');
6
6
 
7
7
  // src/index.ts
8
- _chunkPXJ5ZGKWcjs.init_cjs_shims.call(void 0, );
8
+ _chunkTSJ74266cjs.init_cjs_shims.call(void 0, );
9
9
 
10
10
 
11
11
 
12
- exports.pluginZod = _chunkPXJ5ZGKWcjs.pluginZod; exports.pluginZodName = _chunkPXJ5ZGKWcjs.pluginZodName;
12
+ exports.pluginZod = _chunkTSJ74266cjs.pluginZod; exports.pluginZodName = _chunkTSJ74266cjs.pluginZodName;
13
13
  //# sourceMappingURL=index.cjs.map
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  init_esm_shims,
3
3
  pluginZod,
4
4
  pluginZodName
5
- } from "./chunk-VSAW3SUC.js";
5
+ } from "./chunk-CD3EZWBX.js";
6
6
 
7
7
  // src/index.ts
8
8
  init_esm_shims();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-zod",
3
- "version": "3.0.0-alpha.7",
3
+ "version": "3.0.0-alpha.8",
4
4
  "description": "Generator plugin-zod",
5
5
  "keywords": [
6
6
  "typescript",
@@ -56,25 +56,25 @@
56
56
  "!/**/__tests__/**"
57
57
  ],
58
58
  "dependencies": {
59
- "@kubb/core": "3.0.0-alpha.7",
60
- "@kubb/fs": "3.0.0-alpha.7",
61
- "@kubb/oas": "3.0.0-alpha.7",
62
- "@kubb/parser-ts": "3.0.0-alpha.7",
63
- "@kubb/plugin-oas": "3.0.0-alpha.7",
64
- "@kubb/react": "3.0.0-alpha.7",
65
- "@kubb/types": "3.0.0-alpha.7"
59
+ "@kubb/core": "3.0.0-alpha.8",
60
+ "@kubb/fs": "3.0.0-alpha.8",
61
+ "@kubb/oas": "3.0.0-alpha.8",
62
+ "@kubb/parser-ts": "3.0.0-alpha.8",
63
+ "@kubb/plugin-oas": "3.0.0-alpha.8",
64
+ "@kubb/react": "3.0.0-alpha.8",
65
+ "@kubb/types": "3.0.0-alpha.8"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@types/react": "^18.3.4",
69
69
  "prettier": "^3.3.3",
70
70
  "react": "^18.3.1",
71
71
  "tsup": "^8.2.4",
72
- "@kubb/config-biome": "3.0.0-alpha.7",
73
- "@kubb/config-ts": "3.0.0-alpha.7",
74
- "@kubb/config-tsup": "3.0.0-alpha.7"
72
+ "@kubb/config-biome": "3.0.0-alpha.8",
73
+ "@kubb/config-ts": "3.0.0-alpha.8",
74
+ "@kubb/config-tsup": "3.0.0-alpha.8"
75
75
  },
76
76
  "peerDependencies": {
77
- "@kubb/react": "3.0.0-alpha.7"
77
+ "@kubb/react": "3.0.0-alpha.8"
78
78
  },
79
79
  "engines": {
80
80
  "node": ">=20"
@@ -46,12 +46,12 @@ function Template({ operationsName, pathsName, operations }: TemplateProps): Kub
46
46
 
47
47
  return (
48
48
  <>
49
- <File.Source name={operationsName} isExportable>
49
+ <File.Source name={operationsName} isExportable isIndexable>
50
50
  <Const export name={operationsName} asConst>
51
51
  {`{${transformers.stringifyObject(operationsJSON)}}`}
52
52
  </Const>
53
53
  </File.Source>
54
- <File.Source name={pathsName} isExportable>
54
+ <File.Source name={pathsName} isExportable isIndexable>
55
55
  <Const export name={pathsName} asConst>
56
56
  {`{${transformers.stringifyObject(pathsJSON)}}`}
57
57
  </Const>
@@ -46,7 +46,7 @@ export function Schema(props: Props): ReactNode {
46
46
 
47
47
  if (!tree.length) {
48
48
  return (
49
- <File.Source name={resolvedName} isExportable>
49
+ <File.Source name={resolvedName} isExportable isIndexable>
50
50
  <Const
51
51
  name={resolvedName}
52
52
  export
@@ -79,7 +79,7 @@ export function Schema(props: Props): ReactNode {
79
79
 
80
80
  return (
81
81
  <>
82
- <File.Source name={resolvedName} isExportable>
82
+ <File.Source name={resolvedName} isExportable isIndexable>
83
83
  <Const
84
84
  export
85
85
  name={resolvedName}
@@ -97,7 +97,7 @@ export function Schema(props: Props): ReactNode {
97
97
  </Const>
98
98
  </File.Source>
99
99
  {typedSchema && (
100
- <File.Source name={resolvedTypeName} isExportable isTypeOnly>
100
+ <File.Source name={resolvedTypeName} isExportable isIndexable isTypeOnly>
101
101
  <Type export name={resolvedTypeName}>
102
102
  {`z.infer<typeof ${resolvedName}>`}
103
103
  </Type>