@graphql-codegen/typescript-react-apollo 5.0.0 → 6.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 CHANGED
@@ -28,7 +28,7 @@ const plugin = (schema, documents, config) => {
28
28
  };
29
29
  };
30
30
  exports.plugin = plugin;
31
- const validate = async (schema, documents, config, outputFile) => {
31
+ const validate = async (schema, documents, config, { outputFile }) => {
32
32
  if (config.withComponent === true) {
33
33
  if ((0, path_1.extname)(outputFile) !== '.tsx') {
34
34
  throw new Error(`Plugin "typescript-react-apollo" requires extension to be ".tsx" when withComponent: true is set!`);
package/esm/index.js CHANGED
@@ -23,7 +23,7 @@ export const plugin = (schema, documents, config) => {
23
23
  ].join('\n'),
24
24
  };
25
25
  };
26
- export const validate = async (schema, documents, config, outputFile) => {
26
+ export const validate = async (schema, documents, config, { outputFile }) => {
27
27
  if (config.withComponent === true) {
28
28
  if (extname(outputFile) !== '.tsx') {
29
29
  throw new Error(`Plugin "typescript-react-apollo" requires extension to be ".tsx" when withComponent: true is set!`);
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@graphql-codegen/typescript-react-apollo",
3
- "version": "5.0.0",
3
+ "version": "6.0.0-alpha-20261107124255-1bddcc0442364c874cc159f94fb047c42d108d19",
4
4
  "description": "GraphQL Code Generator plugin for generating a ready-to-use React Components/HOC/Hooks based on GraphQL operations",
5
5
  "peerDependencies": {
6
- "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
6
+ "graphql": "^16.0.0 || ^17.0.0"
7
7
  },
8
8
  "dependencies": {
9
- "@graphql-codegen/plugin-helpers": "^6.3.0",
10
- "@graphql-codegen/visitor-plugin-common": "^7.2.2",
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": ">= 16.0.0"
22
+ "node": ">=22.18.0"
23
23
  },
24
24
  "main": "cjs/index.js",
25
25
  "module": "esm/index.js",
@@ -2,5 +2,5 @@ import { PluginFunction, PluginValidateFn, Types } from '@graphql-codegen/plugin
2
2
  import { ReactApolloRawPluginConfig } from './config.cjs';
3
3
  import { ReactApolloVisitor } from './visitor.cjs';
4
4
  export declare const plugin: PluginFunction<ReactApolloRawPluginConfig, Types.ComplexPluginOutput>;
5
- export declare const validate: PluginValidateFn<any>;
5
+ export declare const validate: PluginValidateFn<ReactApolloRawPluginConfig>;
6
6
  export { ReactApolloVisitor };
@@ -2,5 +2,5 @@ import { PluginFunction, PluginValidateFn, Types } from '@graphql-codegen/plugin
2
2
  import { ReactApolloRawPluginConfig } from './config.js';
3
3
  import { ReactApolloVisitor } from './visitor.js';
4
4
  export declare const plugin: PluginFunction<ReactApolloRawPluginConfig, Types.ComplexPluginOutput>;
5
- export declare const validate: PluginValidateFn<any>;
5
+ export declare const validate: PluginValidateFn<ReactApolloRawPluginConfig>;
6
6
  export { ReactApolloVisitor };