@graphql-codegen/client-preset 6.0.0-alpha-20251125123407-8babe46fb9b33e9f9a377cd50c9580282e7981d3 → 6.0.0-alpha-20251224115216-0c4a535bdb152e75b9296d4c259f7dad0a13158f
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 +1 -11
- package/esm/index.js +1 -11
- package/package.json +6 -6
package/cjs/index.js
CHANGED
|
@@ -5,7 +5,6 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const addPlugin = tslib_1.__importStar(require("@graphql-codegen/add"));
|
|
6
6
|
const gqlTagPlugin = tslib_1.__importStar(require("@graphql-codegen/gql-tag-operations"));
|
|
7
7
|
const typedDocumentNodePlugin = tslib_1.__importStar(require("@graphql-codegen/typed-document-node"));
|
|
8
|
-
const typescriptPlugin = tslib_1.__importStar(require("@graphql-codegen/typescript"));
|
|
9
8
|
const typescriptOperationPlugin = tslib_1.__importStar(require("@graphql-codegen/typescript-operations"));
|
|
10
9
|
const visitor_plugin_common_1 = require("@graphql-codegen/visitor-plugin-common");
|
|
11
10
|
const graphql_1 = require("graphql");
|
|
@@ -39,16 +38,13 @@ exports.preset = {
|
|
|
39
38
|
useTypeImports: options.config.useTypeImports,
|
|
40
39
|
skipTypename: options.config.skipTypename,
|
|
41
40
|
arrayInputCoercion: options.config.arrayInputCoercion,
|
|
42
|
-
|
|
43
|
-
enumsAsConst: options.config.enumsAsConst,
|
|
41
|
+
enumType: options.config.enumType,
|
|
44
42
|
enumValues: options.config.enumValues,
|
|
45
43
|
futureProofEnums: options.config.futureProofEnums,
|
|
46
44
|
nonOptionalTypename: options.config.nonOptionalTypename,
|
|
47
45
|
avoidOptionals: options.config.avoidOptionals,
|
|
48
46
|
documentMode: options.config.documentMode,
|
|
49
47
|
skipTypeNameForRoot: options.config.skipTypeNameForRoot,
|
|
50
|
-
onlyOperationTypes: options.config.onlyOperationTypes,
|
|
51
|
-
onlyEnums: options.config.onlyEnums,
|
|
52
48
|
customDirectives: options.config.customDirectives,
|
|
53
49
|
immutableTypes: options.config.immutableTypes,
|
|
54
50
|
};
|
|
@@ -87,7 +83,6 @@ exports.preset = {
|
|
|
87
83
|
const pluginMap = {
|
|
88
84
|
...options.pluginMap,
|
|
89
85
|
[`add`]: addPlugin,
|
|
90
|
-
[`typescript`]: typescriptPlugin,
|
|
91
86
|
[`typescript-operations`]: typescriptOperationPlugin,
|
|
92
87
|
[`typed-document-node`]: {
|
|
93
88
|
...typedDocumentNodePlugin,
|
|
@@ -117,11 +112,6 @@ exports.preset = {
|
|
|
117
112
|
}
|
|
118
113
|
const plugins = [
|
|
119
114
|
{ [`add`]: { content: `/* eslint-disable */` } },
|
|
120
|
-
{
|
|
121
|
-
[`typescript`]: {
|
|
122
|
-
inputMaybeValue: 'T | null | undefined',
|
|
123
|
-
},
|
|
124
|
-
},
|
|
125
115
|
{ [`typescript-operations`]: {} },
|
|
126
116
|
{
|
|
127
117
|
[`typed-document-node`]: {
|
package/esm/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as addPlugin from '@graphql-codegen/add';
|
|
2
2
|
import * as gqlTagPlugin from '@graphql-codegen/gql-tag-operations';
|
|
3
3
|
import * as typedDocumentNodePlugin from '@graphql-codegen/typed-document-node';
|
|
4
|
-
import * as typescriptPlugin from '@graphql-codegen/typescript';
|
|
5
4
|
import * as typescriptOperationPlugin from '@graphql-codegen/typescript-operations';
|
|
6
5
|
import { ClientSideBaseVisitor, DocumentMode } from '@graphql-codegen/visitor-plugin-common';
|
|
7
6
|
import { parse, printSchema } from 'graphql';
|
|
@@ -34,16 +33,13 @@ export const preset = {
|
|
|
34
33
|
useTypeImports: options.config.useTypeImports,
|
|
35
34
|
skipTypename: options.config.skipTypename,
|
|
36
35
|
arrayInputCoercion: options.config.arrayInputCoercion,
|
|
37
|
-
|
|
38
|
-
enumsAsConst: options.config.enumsAsConst,
|
|
36
|
+
enumType: options.config.enumType,
|
|
39
37
|
enumValues: options.config.enumValues,
|
|
40
38
|
futureProofEnums: options.config.futureProofEnums,
|
|
41
39
|
nonOptionalTypename: options.config.nonOptionalTypename,
|
|
42
40
|
avoidOptionals: options.config.avoidOptionals,
|
|
43
41
|
documentMode: options.config.documentMode,
|
|
44
42
|
skipTypeNameForRoot: options.config.skipTypeNameForRoot,
|
|
45
|
-
onlyOperationTypes: options.config.onlyOperationTypes,
|
|
46
|
-
onlyEnums: options.config.onlyEnums,
|
|
47
43
|
customDirectives: options.config.customDirectives,
|
|
48
44
|
immutableTypes: options.config.immutableTypes,
|
|
49
45
|
};
|
|
@@ -82,7 +78,6 @@ export const preset = {
|
|
|
82
78
|
const pluginMap = {
|
|
83
79
|
...options.pluginMap,
|
|
84
80
|
[`add`]: addPlugin,
|
|
85
|
-
[`typescript`]: typescriptPlugin,
|
|
86
81
|
[`typescript-operations`]: typescriptOperationPlugin,
|
|
87
82
|
[`typed-document-node`]: {
|
|
88
83
|
...typedDocumentNodePlugin,
|
|
@@ -112,11 +107,6 @@ export const preset = {
|
|
|
112
107
|
}
|
|
113
108
|
const plugins = [
|
|
114
109
|
{ [`add`]: { content: `/* eslint-disable */` } },
|
|
115
|
-
{
|
|
116
|
-
[`typescript`]: {
|
|
117
|
-
inputMaybeValue: 'T | null | undefined',
|
|
118
|
-
},
|
|
119
|
-
},
|
|
120
110
|
{ [`typescript-operations`]: {} },
|
|
121
111
|
{
|
|
122
112
|
[`typed-document-node`]: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/client-preset",
|
|
3
|
-
"version": "6.0.0-alpha-
|
|
3
|
+
"version": "6.0.0-alpha-20251224115216-0c4a535bdb152e75b9296d4c259f7dad0a13158f",
|
|
4
4
|
"description": "GraphQL Code Generator preset for client.",
|
|
5
5
|
"peerDependenciesMeta": {
|
|
6
6
|
"graphql-sock": {
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"@babel/helper-plugin-utils": "^7.20.2",
|
|
16
16
|
"@babel/template": "^7.20.7",
|
|
17
17
|
"@graphql-codegen/add": "^6.0.0",
|
|
18
|
-
"@graphql-codegen/typed-document-node": "6.1.3-alpha-
|
|
19
|
-
"@graphql-codegen/typescript": "6.0.0-alpha-
|
|
20
|
-
"@graphql-codegen/typescript-operations": "6.0.0-alpha-
|
|
21
|
-
"@graphql-codegen/gql-tag-operations": "5.0.6-alpha-
|
|
18
|
+
"@graphql-codegen/typed-document-node": "6.1.3-alpha-20251224115216-0c4a535bdb152e75b9296d4c259f7dad0a13158f",
|
|
19
|
+
"@graphql-codegen/typescript": "6.0.0-alpha-20251224115216-0c4a535bdb152e75b9296d4c259f7dad0a13158f",
|
|
20
|
+
"@graphql-codegen/typescript-operations": "6.0.0-alpha-20251224115216-0c4a535bdb152e75b9296d4c259f7dad0a13158f",
|
|
21
|
+
"@graphql-codegen/gql-tag-operations": "5.0.6-alpha-20251224115216-0c4a535bdb152e75b9296d4c259f7dad0a13158f",
|
|
22
22
|
"@graphql-codegen/plugin-helpers": "^6.0.0",
|
|
23
|
-
"@graphql-codegen/visitor-plugin-common": "7.0.0-alpha-
|
|
23
|
+
"@graphql-codegen/visitor-plugin-common": "7.0.0-alpha-20251224115216-0c4a535bdb152e75b9296d4c259f7dad0a13158f",
|
|
24
24
|
"@graphql-typed-document-node/core": "3.2.0",
|
|
25
25
|
"@graphql-tools/documents": "^1.0.0",
|
|
26
26
|
"@graphql-tools/utils": "^10.0.0",
|