@graphql-codegen/client-preset 4.6.2 → 4.6.3-alpha-20250219120338-60a8d805e39fc93569fe6e3d1d1bfd6df2bc1641

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.
@@ -34,6 +34,16 @@ function normalizeAndPrintDocumentNode(documentNode) {
34
34
  return null;
35
35
  }
36
36
  },
37
+ [graphql_1.Kind.FRAGMENT_SPREAD](spread) {
38
+ if (spread.directives?.some(directive => directive.name.value === 'client')) {
39
+ return null;
40
+ }
41
+ },
42
+ [graphql_1.Kind.INLINE_FRAGMENT](fragment) {
43
+ if (fragment.directives?.some(directive => directive.name.value === 'client')) {
44
+ return null;
45
+ }
46
+ },
37
47
  [graphql_1.Kind.DIRECTIVE](directive) {
38
48
  if (directive.name.value === 'connection') {
39
49
  return null;
@@ -29,6 +29,16 @@ export function normalizeAndPrintDocumentNode(documentNode) {
29
29
  return null;
30
30
  }
31
31
  },
32
+ [Kind.FRAGMENT_SPREAD](spread) {
33
+ if (spread.directives?.some(directive => directive.name.value === 'client')) {
34
+ return null;
35
+ }
36
+ },
37
+ [Kind.INLINE_FRAGMENT](fragment) {
38
+ if (fragment.directives?.some(directive => directive.name.value === 'client')) {
39
+ return null;
40
+ }
41
+ },
32
42
  [Kind.DIRECTIVE](directive) {
33
43
  if (directive.name.value === 'connection') {
34
44
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-codegen/client-preset",
3
- "version": "4.6.2",
3
+ "version": "4.6.3-alpha-20250219120338-60a8d805e39fc93569fe6e3d1d1bfd6df2bc1641",
4
4
  "description": "GraphQL Code Generator preset for client.",
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"
@@ -9,12 +9,12 @@
9
9
  "@babel/helper-plugin-utils": "^7.20.2",
10
10
  "@babel/template": "^7.20.7",
11
11
  "@graphql-codegen/add": "^5.0.3",
12
- "@graphql-codegen/typed-document-node": "^5.0.13",
13
- "@graphql-codegen/typescript": "^4.1.3",
14
- "@graphql-codegen/typescript-operations": "^4.4.1",
15
- "@graphql-codegen/gql-tag-operations": "4.0.14",
12
+ "@graphql-codegen/typed-document-node": "5.0.14-alpha-20250219120338-60a8d805e39fc93569fe6e3d1d1bfd6df2bc1641",
13
+ "@graphql-codegen/typescript": "4.1.4-alpha-20250219120338-60a8d805e39fc93569fe6e3d1d1bfd6df2bc1641",
14
+ "@graphql-codegen/typescript-operations": "4.5.0-alpha-20250219120338-60a8d805e39fc93569fe6e3d1d1bfd6df2bc1641",
15
+ "@graphql-codegen/gql-tag-operations": "4.0.15-alpha-20250219120338-60a8d805e39fc93569fe6e3d1d1bfd6df2bc1641",
16
16
  "@graphql-codegen/plugin-helpers": "^5.1.0",
17
- "@graphql-codegen/visitor-plugin-common": "^5.6.1",
17
+ "@graphql-codegen/visitor-plugin-common": "5.7.0-alpha-20250219120338-60a8d805e39fc93569fe6e3d1d1bfd6df2bc1641",
18
18
  "@graphql-typed-document-node/core": "3.2.0",
19
19
  "@graphql-tools/documents": "^1.0.0",
20
20
  "@graphql-tools/utils": "^10.0.0",