@kubb/plugin-react-query 4.19.0 → 4.19.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.
- package/dist/components.d.cts +1 -1
- package/dist/components.d.ts +1 -1
- package/dist/generators.d.cts +1 -1
- package/dist/generators.d.ts +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/{types-D_R0ur_K.d.cts → types--JdHlnpa.d.cts} +7 -1
- package/dist/{types-BcAW5ilu.d.ts → types-B1zUGWD5.d.ts} +7 -1
- package/package.json +7 -7
package/dist/components.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as Operation, i as Transformer, l as __name, o as OperationSchemas, r as PluginReactQuery, t as Infinite } from "./types
|
|
1
|
+
import { c as Operation, i as Transformer, l as __name, o as OperationSchemas, r as PluginReactQuery, t as Infinite } from "./types--JdHlnpa.cjs";
|
|
2
2
|
import { FunctionParams } from "@kubb/react-fabric";
|
|
3
3
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
4
4
|
|
package/dist/components.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __name } from "./chunk-eQyhnF5A.js";
|
|
2
|
-
import { c as Operation, i as Transformer, o as OperationSchemas, r as PluginReactQuery, t as Infinite } from "./types-
|
|
2
|
+
import { c as Operation, i as Transformer, o as OperationSchemas, r as PluginReactQuery, t as Infinite } from "./types-B1zUGWD5.js";
|
|
3
3
|
import { FunctionParams } from "@kubb/react-fabric";
|
|
4
4
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
5
5
|
|
package/dist/generators.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ReactGenerator, l as __name, r as PluginReactQuery } from "./types
|
|
1
|
+
import { a as ReactGenerator, l as __name, r as PluginReactQuery } from "./types--JdHlnpa.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/generators/customHookOptionsFileGenerator.d.ts
|
|
4
4
|
declare const customHookOptionsFileGenerator: ReactGenerator<PluginReactQuery>;
|
package/dist/generators.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __name } from "./chunk-eQyhnF5A.js";
|
|
2
|
-
import { a as ReactGenerator, r as PluginReactQuery } from "./types-
|
|
2
|
+
import { a as ReactGenerator, r as PluginReactQuery } from "./types-B1zUGWD5.js";
|
|
3
3
|
|
|
4
4
|
//#region src/generators/customHookOptionsFileGenerator.d.ts
|
|
5
5
|
declare const customHookOptionsFileGenerator: ReactGenerator<PluginReactQuery>;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as __name, n as Options, r as PluginReactQuery, s as UserPluginWithLifeCycle } from "./types
|
|
1
|
+
import { l as __name, n as Options, r as PluginReactQuery, s as UserPluginWithLifeCycle } from "./types--JdHlnpa.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin.d.ts
|
|
4
4
|
declare const pluginReactQueryName = "plugin-react-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 Options, r as PluginReactQuery, s as UserPluginWithLifeCycle } from "./types-
|
|
2
|
+
import { n as Options, r as PluginReactQuery, s as UserPluginWithLifeCycle } from "./types-B1zUGWD5.js";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin.d.ts
|
|
5
5
|
declare const pluginReactQueryName = "plugin-react-query";
|
|
@@ -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;
|
|
@@ -1527,4 +1533,4 @@ type ResolvedOptions = {
|
|
|
1527
1533
|
type PluginReactQuery = PluginFactoryOptions<'plugin-react-query', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
1528
1534
|
//#endregion
|
|
1529
1535
|
export { ReactGenerator as a, Operation$1 as c, Transformer as i, __name as l, Options as n, OperationSchemas as o, PluginReactQuery as r, UserPluginWithLifeCycle as s, Infinite as t };
|
|
1530
|
-
//# sourceMappingURL=types
|
|
1536
|
+
//# sourceMappingURL=types--JdHlnpa.d.cts.map
|
|
@@ -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;
|
|
@@ -1526,4 +1532,4 @@ type ResolvedOptions = {
|
|
|
1526
1532
|
type PluginReactQuery = PluginFactoryOptions<'plugin-react-query', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
1527
1533
|
//#endregion
|
|
1528
1534
|
export { ReactGenerator as a, Operation$1 as c, Transformer as i, Options as n, OperationSchemas as o, PluginReactQuery as r, UserPluginWithLifeCycle as s, Infinite as t };
|
|
1529
|
-
//# sourceMappingURL=types-
|
|
1535
|
+
//# sourceMappingURL=types-B1zUGWD5.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-react-query",
|
|
3
|
-
"version": "4.19.
|
|
3
|
+
"version": "4.19.2",
|
|
4
4
|
"description": "React Query hooks generator plugin for Kubb, creating type-safe API client hooks from OpenAPI specifications for React applications.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-query",
|
|
@@ -69,12 +69,12 @@
|
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@kubb/react-fabric": "0.12.4",
|
|
71
71
|
"remeda": "^2.33.4",
|
|
72
|
-
"@kubb/core": "4.19.
|
|
73
|
-
"@kubb/oas": "4.19.
|
|
74
|
-
"@kubb/plugin-client": "4.19.
|
|
75
|
-
"@kubb/plugin-oas": "4.19.
|
|
76
|
-
"@kubb/plugin-ts": "4.19.
|
|
77
|
-
"@kubb/plugin-zod": "4.19.
|
|
72
|
+
"@kubb/core": "4.19.2",
|
|
73
|
+
"@kubb/oas": "4.19.2",
|
|
74
|
+
"@kubb/plugin-client": "4.19.2",
|
|
75
|
+
"@kubb/plugin-oas": "4.19.2",
|
|
76
|
+
"@kubb/plugin-ts": "4.19.2",
|
|
77
|
+
"@kubb/plugin-zod": "4.19.2"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
80
|
"@kubb/react-fabric": "0.12.4"
|