@graphql-codegen/typescript-apollo-client-helpers 4.0.1 → 5.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
@@ -59,7 +59,7 @@ ${fieldsNames
59
59
  content: [...perTypePolicies, rootContent].join('\n'),
60
60
  };
61
61
  }
62
- const validate = async (schema, documents, config, outputFile) => {
62
+ const validate = async (schema, documents, config, { outputFile }) => {
63
63
  if ((0, path_1.extname)(outputFile) !== '.ts' && (0, path_1.extname)(outputFile) !== '.tsx') {
64
64
  throw new Error(`Plugin "apollo-client-helpers" requires extension to be ".ts" or ".tsx"!`);
65
65
  }
package/esm/index.js CHANGED
@@ -55,7 +55,7 @@ ${fieldsNames
55
55
  content: [...perTypePolicies, rootContent].join('\n'),
56
56
  };
57
57
  }
58
- export const validate = async (schema, documents, config, outputFile) => {
58
+ export const validate = async (schema, documents, config, { outputFile }) => {
59
59
  if (extname(outputFile) !== '.ts' && extname(outputFile) !== '.tsx') {
60
60
  throw new Error(`Plugin "apollo-client-helpers" requires extension to be ".ts" or ".tsx"!`);
61
61
  }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@graphql-codegen/typescript-apollo-client-helpers",
3
- "version": "4.0.1",
3
+ "version": "5.0.0-alpha-20261107124255-1bddcc0442364c874cc159f94fb047c42d108d19",
4
4
  "description": "GraphQL Code Generator plugin for generating TypeScript helpers for Apollo Client > 3",
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": "^6.3.0",
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",