@kubb/plugin-solid-query 0.0.0-canary-20260127114515 → 0.0.0-canary-20260127134951

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 { a as OperationSchemas, c as __name, n as PluginSolidQuery, r as Transformer, s as Operation } from "./types-CHAyktUZ.cjs";
1
+ import { a as OperationSchemas, c as __name, n as PluginSolidQuery, r as Transformer, s as Operation } from "./types-Fbqn4P2N.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 { a as OperationSchemas, n as PluginSolidQuery, r as Transformer, s as Operation } from "./types-D6QTNiqS.js";
2
+ import { a as OperationSchemas, n as PluginSolidQuery, r as Transformer, s as Operation } from "./types-C7RxRPuj.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 { c as __name, i as ReactGenerator, n as PluginSolidQuery } from "./types-CHAyktUZ.cjs";
1
+ import { c as __name, i as ReactGenerator, n as PluginSolidQuery } from "./types-Fbqn4P2N.cjs";
2
2
 
3
3
  //#region src/generators/mutationGenerator.d.ts
4
4
  declare const mutationGenerator: ReactGenerator<PluginSolidQuery>;
@@ -1,5 +1,5 @@
1
1
  import { t as __name } from "./chunk-eQyhnF5A.js";
2
- import { i as ReactGenerator, n as PluginSolidQuery } from "./types-D6QTNiqS.js";
2
+ import { i as ReactGenerator, n as PluginSolidQuery } from "./types-C7RxRPuj.js";
3
3
 
4
4
  //#region src/generators/mutationGenerator.d.ts
5
5
  declare const mutationGenerator: ReactGenerator<PluginSolidQuery>;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { c as __name, n as PluginSolidQuery, o as UserPluginWithLifeCycle, t as Options } from "./types-CHAyktUZ.cjs";
1
+ import { c as __name, n as PluginSolidQuery, o as UserPluginWithLifeCycle, t as Options } from "./types-Fbqn4P2N.cjs";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginSolidQueryName = "plugin-solid-query";
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as __name } from "./chunk-eQyhnF5A.js";
2
- import { n as PluginSolidQuery, o as UserPluginWithLifeCycle, t as Options } from "./types-D6QTNiqS.js";
2
+ import { n as PluginSolidQuery, o as UserPluginWithLifeCycle, t as Options } from "./types-C7RxRPuj.js";
3
3
 
4
4
  //#region src/plugin.d.ts
5
5
  declare const pluginSolidQueryName = "plugin-solid-query";
@@ -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;
@@ -1465,4 +1471,4 @@ type ResolvedOptions = {
1465
1471
  type PluginSolidQuery = PluginFactoryOptions<'plugin-solid-query', Options, ResolvedOptions, never, ResolvePathOptions>;
1466
1472
  //#endregion
1467
1473
  export { OperationSchemas as a, ReactGenerator as i, PluginSolidQuery as n, UserPluginWithLifeCycle as o, Transformer as r, Operation$1 as s, Options as t };
1468
- //# sourceMappingURL=types-D6QTNiqS.d.ts.map
1474
+ //# sourceMappingURL=types-C7RxRPuj.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;
@@ -1466,4 +1472,4 @@ type ResolvedOptions = {
1466
1472
  type PluginSolidQuery = PluginFactoryOptions<'plugin-solid-query', Options, ResolvedOptions, never, ResolvePathOptions>;
1467
1473
  //#endregion
1468
1474
  export { OperationSchemas as a, __name as c, ReactGenerator as i, PluginSolidQuery as n, UserPluginWithLifeCycle as o, Transformer as r, Operation$1 as s, Options as t };
1469
- //# sourceMappingURL=types-CHAyktUZ.d.cts.map
1475
+ //# sourceMappingURL=types-Fbqn4P2N.d.cts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-solid-query",
3
- "version": "0.0.0-canary-20260127114515",
3
+ "version": "0.0.0-canary-20260127134951",
4
4
  "description": "Solid Query hooks generator plugin for Kubb, creating type-safe API client hooks from OpenAPI specifications for Solid.js applications.",
5
5
  "keywords": [
6
6
  "solid-query",
@@ -70,12 +70,12 @@
70
70
  "dependencies": {
71
71
  "@kubb/react-fabric": "0.12.4",
72
72
  "remeda": "^2.33.4",
73
- "@kubb/core": "0.0.0-canary-20260127114515",
74
- "@kubb/plugin-client": "0.0.0-canary-20260127114515",
75
- "@kubb/oas": "0.0.0-canary-20260127114515",
76
- "@kubb/plugin-oas": "0.0.0-canary-20260127114515",
77
- "@kubb/plugin-ts": "0.0.0-canary-20260127114515",
78
- "@kubb/plugin-zod": "0.0.0-canary-20260127114515"
73
+ "@kubb/core": "0.0.0-canary-20260127134951",
74
+ "@kubb/oas": "0.0.0-canary-20260127134951",
75
+ "@kubb/plugin-client": "0.0.0-canary-20260127134951",
76
+ "@kubb/plugin-oas": "0.0.0-canary-20260127134951",
77
+ "@kubb/plugin-ts": "0.0.0-canary-20260127134951",
78
+ "@kubb/plugin-zod": "0.0.0-canary-20260127134951"
79
79
  },
80
80
  "peerDependencies": {
81
81
  "@kubb/react-fabric": "0.12.4"