@kubb/plugin-cypress 4.19.0 → 4.19.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.
@@ -1,4 +1,4 @@
1
- import { i as OperationSchemas, n as PluginCypress, o as HttpMethod, s as __name } from "./types-Dx-_3jKd.cjs";
1
+ import { i as OperationSchemas, n as PluginCypress, o as HttpMethod, s as __name } from "./types-CQq8QXGk.cjs";
2
2
  import { FunctionParams } from "@kubb/react-fabric";
3
3
  import { KubbNode } from "@kubb/react-fabric/types";
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { t as __name } from "./chunk-eQyhnF5A.js";
2
- import { i as OperationSchemas, n as PluginCypress, o as HttpMethod } from "./types-wYAshYRF.js";
2
+ import { i as OperationSchemas, n as PluginCypress, o as HttpMethod } from "./types-BMPj9ZcL.js";
3
3
  import { FunctionParams } from "@kubb/react-fabric";
4
4
  import { KubbNode } from "@kubb/react-fabric/types";
5
5
 
@@ -1,4 +1,4 @@
1
- import { n as PluginCypress, r as ReactGenerator, s as __name } from "./types-Dx-_3jKd.cjs";
1
+ import { n as PluginCypress, r as ReactGenerator, s as __name } from "./types-CQq8QXGk.cjs";
2
2
 
3
3
  //#region src/generators/cypressGenerator.d.ts
4
4
  declare const cypressGenerator: ReactGenerator<PluginCypress>;
@@ -1,5 +1,5 @@
1
1
  import { t as __name } from "./chunk-eQyhnF5A.js";
2
- import { n as PluginCypress, r as ReactGenerator } from "./types-wYAshYRF.js";
2
+ import { n as PluginCypress, r as ReactGenerator } from "./types-BMPj9ZcL.js";
3
3
 
4
4
  //#region src/generators/cypressGenerator.d.ts
5
5
  declare const cypressGenerator: ReactGenerator<PluginCypress>;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as UserPluginWithLifeCycle, n as PluginCypress, s as __name, t as Options } from "./types-Dx-_3jKd.cjs";
1
+ import { a as UserPluginWithLifeCycle, n as PluginCypress, s as __name, t as Options } from "./types-CQq8QXGk.cjs";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginCypressName = "plugin-cypress";
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as __name } from "./chunk-eQyhnF5A.js";
2
- import { a as UserPluginWithLifeCycle, n as PluginCypress, t as Options } from "./types-wYAshYRF.js";
2
+ import { a as UserPluginWithLifeCycle, n as PluginCypress, t as Options } from "./types-BMPj9ZcL.js";
3
3
 
4
4
  //#region src/plugin.d.ts
5
5
  declare const pluginCypressName = "plugin-cypress";
@@ -1118,6 +1118,11 @@ type SchemaGeneratorOptions = {
1118
1118
  emptySchemaType: 'any' | 'unknown' | 'void';
1119
1119
  enumType?: 'enum' | 'asConst' | 'asPascalConst' | 'constEnum' | 'literal' | 'inlineLiteral';
1120
1120
  enumSuffix?: string;
1121
+ /**
1122
+ * @deprecated Will be removed in v5. Use `collisionDetection: true` instead to prevent enum name collisions.
1123
+ * When `collisionDetection` is enabled, the rootName-based approach eliminates the need for numeric suffixes.
1124
+ * @internal
1125
+ */
1121
1126
  usedEnumNames?: Record<string, number>;
1122
1127
  mapper?: Record<string, string>;
1123
1128
  typed?: boolean;
@@ -1138,6 +1143,7 @@ type SchemaProps$1 = {
1138
1143
  schema: SchemaObject$1 | null;
1139
1144
  name: string | null;
1140
1145
  parentName: string | null;
1146
+ rootName?: string | null;
1141
1147
  };
1142
1148
  declare class SchemaGenerator<TOptions extends SchemaGeneratorOptions = SchemaGeneratorOptions, TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TOptions, Context<TOptions, TPluginOptions>> {
1143
1149
  #private;
@@ -1275,4 +1281,4 @@ type ResolvedOptions = {
1275
1281
  type PluginCypress = PluginFactoryOptions<'plugin-cypress', Options, ResolvedOptions, never, ResolvePathOptions>;
1276
1282
  //#endregion
1277
1283
  export { UserPluginWithLifeCycle as a, OperationSchemas as i, PluginCypress as n, HttpMethod as o, ReactGenerator as r, Options as t };
1278
- //# sourceMappingURL=types-wYAshYRF.d.ts.map
1284
+ //# sourceMappingURL=types-BMPj9ZcL.d.ts.map
@@ -1119,6 +1119,11 @@ type SchemaGeneratorOptions = {
1119
1119
  emptySchemaType: 'any' | 'unknown' | 'void';
1120
1120
  enumType?: 'enum' | 'asConst' | 'asPascalConst' | 'constEnum' | 'literal' | 'inlineLiteral';
1121
1121
  enumSuffix?: string;
1122
+ /**
1123
+ * @deprecated Will be removed in v5. Use `collisionDetection: true` instead to prevent enum name collisions.
1124
+ * When `collisionDetection` is enabled, the rootName-based approach eliminates the need for numeric suffixes.
1125
+ * @internal
1126
+ */
1122
1127
  usedEnumNames?: Record<string, number>;
1123
1128
  mapper?: Record<string, string>;
1124
1129
  typed?: boolean;
@@ -1139,6 +1144,7 @@ type SchemaProps$1 = {
1139
1144
  schema: SchemaObject$1 | null;
1140
1145
  name: string | null;
1141
1146
  parentName: string | null;
1147
+ rootName?: string | null;
1142
1148
  };
1143
1149
  declare class SchemaGenerator<TOptions extends SchemaGeneratorOptions = SchemaGeneratorOptions, TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TOptions, Context<TOptions, TPluginOptions>> {
1144
1150
  #private;
@@ -1276,4 +1282,4 @@ type ResolvedOptions = {
1276
1282
  type PluginCypress = PluginFactoryOptions<'plugin-cypress', Options, ResolvedOptions, never, ResolvePathOptions>;
1277
1283
  //#endregion
1278
1284
  export { UserPluginWithLifeCycle as a, OperationSchemas as i, PluginCypress as n, HttpMethod as o, ReactGenerator as r, __name as s, Options as t };
1279
- //# sourceMappingURL=types-Dx-_3jKd.d.cts.map
1285
+ //# sourceMappingURL=types-CQq8QXGk.d.cts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-cypress",
3
- "version": "4.19.0",
3
+ "version": "4.19.1",
4
4
  "description": "Cypress test generator plugin for Kubb, creating end-to-end tests from OpenAPI specifications for automated API testing.",
5
5
  "keywords": [
6
6
  "cypress",
@@ -75,10 +75,10 @@
75
75
  ],
76
76
  "dependencies": {
77
77
  "@kubb/react-fabric": "0.12.4",
78
- "@kubb/core": "4.19.0",
79
- "@kubb/oas": "4.19.0",
80
- "@kubb/plugin-oas": "4.19.0",
81
- "@kubb/plugin-ts": "4.19.0"
78
+ "@kubb/core": "4.19.1",
79
+ "@kubb/oas": "4.19.1",
80
+ "@kubb/plugin-oas": "4.19.1",
81
+ "@kubb/plugin-ts": "4.19.1"
82
82
  },
83
83
  "engines": {
84
84
  "node": ">=20"