@graphql-codegen/client-preset 4.6.0-alpha-20241117214415-944ad4c5a837bce70cc27bcd0747edc68834585b → 5.0.0-alpha-20241122105532-fb4c4a5ddeaf1cff18b2974d76989c20c66aea2d

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
@@ -35,13 +35,13 @@ exports.preset = {
35
35
  skipTypename: options.config.skipTypename,
36
36
  arrayInputCoercion: options.config.arrayInputCoercion,
37
37
  enumsAsTypes: options.config.enumsAsTypes,
38
+ enumsAsConst: options.config.enumsAsConst,
38
39
  futureProofEnums: options.config.futureProofEnums,
39
40
  dedupeFragments: options.config.dedupeFragments,
40
41
  nonOptionalTypename: options.config.nonOptionalTypename,
41
42
  avoidOptionals: options.config.avoidOptionals,
42
43
  documentMode: options.config.documentMode,
43
44
  skipTypeNameForRoot: options.config.skipTypeNameForRoot,
44
- extractAllFieldsToTypes: options.config.extractAllFieldsToTypes,
45
45
  };
46
46
  const visitor = new visitor_plugin_common_1.ClientSideBaseVisitor(options.schemaAst, [], options.config, options.config);
47
47
  let fragmentMaskingConfig = null;
@@ -108,7 +108,12 @@ exports.preset = {
108
108
  }
109
109
  const plugins = [
110
110
  { [`add`]: { content: `/* eslint-disable */` } },
111
- { [`typescript`]: {} },
111
+ {
112
+ [`typescript`]: {
113
+ onlyEnumTypes: true,
114
+ onlyOperationTypes: true,
115
+ },
116
+ },
112
117
  { [`typescript-operations`]: {} },
113
118
  {
114
119
  [`typed-document-node`]: {
package/esm/index.js CHANGED
@@ -30,13 +30,13 @@ export const preset = {
30
30
  skipTypename: options.config.skipTypename,
31
31
  arrayInputCoercion: options.config.arrayInputCoercion,
32
32
  enumsAsTypes: options.config.enumsAsTypes,
33
+ enumsAsConst: options.config.enumsAsConst,
33
34
  futureProofEnums: options.config.futureProofEnums,
34
35
  dedupeFragments: options.config.dedupeFragments,
35
36
  nonOptionalTypename: options.config.nonOptionalTypename,
36
37
  avoidOptionals: options.config.avoidOptionals,
37
38
  documentMode: options.config.documentMode,
38
39
  skipTypeNameForRoot: options.config.skipTypeNameForRoot,
39
- extractAllFieldsToTypes: options.config.extractAllFieldsToTypes,
40
40
  };
41
41
  const visitor = new ClientSideBaseVisitor(options.schemaAst, [], options.config, options.config);
42
42
  let fragmentMaskingConfig = null;
@@ -103,7 +103,12 @@ export const preset = {
103
103
  }
104
104
  const plugins = [
105
105
  { [`add`]: { content: `/* eslint-disable */` } },
106
- { [`typescript`]: {} },
106
+ {
107
+ [`typescript`]: {
108
+ onlyEnumTypes: true,
109
+ onlyOperationTypes: true,
110
+ },
111
+ },
107
112
  { [`typescript-operations`]: {} },
108
113
  {
109
114
  [`typed-document-node`]: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-codegen/client-preset",
3
- "version": "4.6.0-alpha-20241117214415-944ad4c5a837bce70cc27bcd0747edc68834585b",
3
+ "version": "5.0.0-alpha-20241122105532-fb4c4a5ddeaf1cff18b2974d76989c20c66aea2d",
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.12-alpha-20241117214415-944ad4c5a837bce70cc27bcd0747edc68834585b",
13
- "@graphql-codegen/typescript": "4.1.2-alpha-20241117214415-944ad4c5a837bce70cc27bcd0747edc68834585b",
14
- "@graphql-codegen/typescript-operations": "4.4.0-alpha-20241117214415-944ad4c5a837bce70cc27bcd0747edc68834585b",
15
- "@graphql-codegen/gql-tag-operations": "4.0.12-alpha-20241117214415-944ad4c5a837bce70cc27bcd0747edc68834585b",
12
+ "@graphql-codegen/typed-document-node": "5.0.12-alpha-20241122105532-fb4c4a5ddeaf1cff18b2974d76989c20c66aea2d",
13
+ "@graphql-codegen/typescript": "4.1.2-alpha-20241122105532-fb4c4a5ddeaf1cff18b2974d76989c20c66aea2d",
14
+ "@graphql-codegen/typescript-operations": "4.4.0-alpha-20241122105532-fb4c4a5ddeaf1cff18b2974d76989c20c66aea2d",
15
+ "@graphql-codegen/gql-tag-operations": "4.0.12-alpha-20241122105532-fb4c4a5ddeaf1cff18b2974d76989c20c66aea2d",
16
16
  "@graphql-codegen/plugin-helpers": "^5.1.0",
17
- "@graphql-codegen/visitor-plugin-common": "5.6.0-alpha-20241117214415-944ad4c5a837bce70cc27bcd0747edc68834585b",
17
+ "@graphql-codegen/visitor-plugin-common": "5.6.0-alpha-20241122105532-fb4c4a5ddeaf1cff18b2974d76989c20c66aea2d",
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",