@graphql-codegen/typescript-react-apollo 4.4.0 → 4.4.1-alpha-20260307121423-d896a779b90b56714fce492753cbbb3519f741ab

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/visitor.js CHANGED
@@ -386,7 +386,7 @@ export function use${suspenseOperationName}(baseOptions?: ${this.getApolloReactH
386
386
  const operationResultType = this.convertName(nodeName, {
387
387
  suffix: operationTypeSuffix + this._parsedConfig.operationResultSuffix,
388
388
  });
389
- const IDType = (_b = this.scalars.ID) !== null && _b !== void 0 ? _b : 'string';
389
+ const IDType = (_b = this.scalars.ID.output) !== null && _b !== void 0 ? _b : 'string';
390
390
  const hook = `export function use${fragmentName}<F = { id: ${IDType} }>(identifiers: F) {
391
391
  return ${this.getApolloReactHooksIdentifier()}.use${operationType}<${operationResultType}>({
392
392
  fragment: ${nodeName}${this.config.fragmentVariableSuffix},
package/esm/visitor.js CHANGED
@@ -382,7 +382,7 @@ export function use${suspenseOperationName}(baseOptions?: ${this.getApolloReactH
382
382
  const operationResultType = this.convertName(nodeName, {
383
383
  suffix: operationTypeSuffix + this._parsedConfig.operationResultSuffix,
384
384
  });
385
- const IDType = (_b = this.scalars.ID) !== null && _b !== void 0 ? _b : 'string';
385
+ const IDType = (_b = this.scalars.ID.output) !== null && _b !== void 0 ? _b : 'string';
386
386
  const hook = `export function use${fragmentName}<F = { id: ${IDType} }>(identifiers: F) {
387
387
  return ${this.getApolloReactHooksIdentifier()}.use${operationType}<${operationResultType}>({
388
388
  fragment: ${nodeName}${this.config.fragmentVariableSuffix},
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@graphql-codegen/typescript-react-apollo",
3
- "version": "4.4.0",
3
+ "version": "4.4.1-alpha-20260307121423-d896a779b90b56714fce492753cbbb3519f741ab",
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
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"
7
7
  },
8
8
  "dependencies": {
9
- "@graphql-codegen/plugin-helpers": "^3.0.0",
10
- "@graphql-codegen/visitor-plugin-common": "2.13.8",
9
+ "@graphql-codegen/plugin-helpers": "^6.1.1",
10
+ "@graphql-codegen/visitor-plugin-common": "^6.2.4",
11
11
  "auto-bind": "~4.0.0",
12
12
  "change-case-all": "1.0.15",
13
13
  "tslib": "^2.8.1"