@graphql-codegen/typescript-react-query 7.0.5 → 8.0.0-alpha-20261107124255-1bddcc0442364c874cc159f94fb047c42d108d19
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/cjs/index.js +1 -1
- package/esm/index.js +1 -1
- package/package.json +5 -5
- package/typings/index.d.cts +1 -1
- package/typings/index.d.ts +1 -1
package/cjs/index.js
CHANGED
|
@@ -36,7 +36,7 @@ const plugin = (schema, documents, config) => {
|
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
exports.plugin = plugin;
|
|
39
|
-
const validate = async (schema, documents, config, outputFile) => {
|
|
39
|
+
const validate = async (schema, documents, config, { outputFile }) => {
|
|
40
40
|
if ((0, path_1.extname)(outputFile) !== '.ts' && (0, path_1.extname)(outputFile) !== '.tsx') {
|
|
41
41
|
throw new Error(`Plugin "typescript-react-query" requires extension to be ".ts" or ".tsx"!`);
|
|
42
42
|
}
|
package/esm/index.js
CHANGED
|
@@ -31,7 +31,7 @@ export const plugin = (schema, documents, config) => {
|
|
|
31
31
|
content: content.join('\n'),
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
|
-
export const validate = async (schema, documents, config, outputFile) => {
|
|
34
|
+
export const validate = async (schema, documents, config, { outputFile }) => {
|
|
35
35
|
if (extname(outputFile) !== '.ts' && extname(outputFile) !== '.tsx') {
|
|
36
36
|
throw new Error(`Plugin "typescript-react-query" requires extension to be ".ts" or ".tsx"!`);
|
|
37
37
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/typescript-react-query",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0-alpha-20261107124255-1bddcc0442364c874cc159f94fb047c42d108d19",
|
|
4
4
|
"description": "GraphQL Code Generator plugin for generating a ready-to-use React-Query Hooks based on GraphQL operations",
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"graphql": "^
|
|
6
|
+
"graphql": "^16.0.0 || ^17.0.0"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@graphql-codegen/plugin-helpers": "^
|
|
10
|
-
"@graphql-codegen/visitor-plugin-common": "^
|
|
9
|
+
"@graphql-codegen/plugin-helpers": "^8.0.0",
|
|
10
|
+
"@graphql-codegen/visitor-plugin-common": "^8.0.0",
|
|
11
11
|
"auto-bind": "~4.0.0",
|
|
12
12
|
"change-case-all": "1.0.15",
|
|
13
13
|
"tslib": "^2.8.1"
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"engines": {
|
|
22
|
-
"node": ">=
|
|
22
|
+
"node": ">=22.18.0"
|
|
23
23
|
},
|
|
24
24
|
"main": "cjs/index.js",
|
|
25
25
|
"module": "esm/index.js",
|
package/typings/index.d.cts
CHANGED
|
@@ -2,5 +2,5 @@ import { PluginFunction, PluginValidateFn, Types } from '@graphql-codegen/plugin
|
|
|
2
2
|
import { ReactQueryRawPluginConfig } from './config.cjs';
|
|
3
3
|
import { ReactQueryVisitor } from './visitor.cjs';
|
|
4
4
|
export declare const plugin: PluginFunction<ReactQueryRawPluginConfig, Types.ComplexPluginOutput>;
|
|
5
|
-
export declare const validate: PluginValidateFn<
|
|
5
|
+
export declare const validate: PluginValidateFn<ReactQueryRawPluginConfig>;
|
|
6
6
|
export { ReactQueryVisitor };
|
package/typings/index.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import { PluginFunction, PluginValidateFn, Types } from '@graphql-codegen/plugin
|
|
|
2
2
|
import { ReactQueryRawPluginConfig } from './config.js';
|
|
3
3
|
import { ReactQueryVisitor } from './visitor.js';
|
|
4
4
|
export declare const plugin: PluginFunction<ReactQueryRawPluginConfig, Types.ComplexPluginOutput>;
|
|
5
|
-
export declare const validate: PluginValidateFn<
|
|
5
|
+
export declare const validate: PluginValidateFn<ReactQueryRawPluginConfig>;
|
|
6
6
|
export { ReactQueryVisitor };
|