@depup/graphql-codegen__typescript-operations 6.1.3-depup.0 → 6.1.5-depup.0
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/README.md +1 -1
- package/changes.json +1 -1
- package/cjs/index.js +9 -2
- package/esm/index.js +9 -2
- package/package.json +3 -3
- package/typings/config.d.cts +24 -0
- package/typings/config.d.ts +24 -0
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ npm install @depup/graphql-codegen__typescript-operations
|
|
|
13
13
|
|
|
14
14
|
| Field | Value |
|
|
15
15
|
|-------|-------|
|
|
16
|
-
| Original | [@graphql-codegen/typescript-operations](https://www.npmjs.com/package/@graphql-codegen/typescript-operations) @ 6.1.
|
|
16
|
+
| Original | [@graphql-codegen/typescript-operations](https://www.npmjs.com/package/@graphql-codegen/typescript-operations) @ 6.1.5 |
|
|
17
17
|
| Processed | 2026-08-05 |
|
|
18
18
|
| Smoke test | passed |
|
|
19
19
|
| Deps updated | 2 |
|
package/changes.json
CHANGED
package/cjs/index.js
CHANGED
|
@@ -85,8 +85,15 @@ const plugin = async (inputSchema, rawDocuments, config, { outputFile }) => {
|
|
|
85
85
|
// #region generateSchemaTypes
|
|
86
86
|
// When Input and Enum appear in Result selection sets, we need to
|
|
87
87
|
// generate those types so they can be referred to correctly
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
//
|
|
89
|
+
// Note: we don't run visitor on the schema when i.e. `!config.importSchemaTypesFrom`
|
|
90
|
+
// because the schema types are supposedly already generated elsewhere.
|
|
91
|
+
// In such cases, running the visitor on the schema will do unncessary work
|
|
92
|
+
let schemaTypesDefinitions = [];
|
|
93
|
+
if (!config.importSchemaTypesFrom) {
|
|
94
|
+
const schemaTypes = (0, plugin_helpers_1.oldVisit)((0, schema_ast_1.transformSchemaAST)(schema, config).ast, { leave: visitor });
|
|
95
|
+
schemaTypesDefinitions = findTransformedDefinitions(schemaTypes);
|
|
96
|
+
}
|
|
90
97
|
// #endregion
|
|
91
98
|
// #region generateIntrospectionTypesDefinitions
|
|
92
99
|
// It is possible for queries to refer to enums in introspection:
|
package/esm/index.js
CHANGED
|
@@ -48,8 +48,15 @@ export const plugin = async (inputSchema, rawDocuments, config, { outputFile })
|
|
|
48
48
|
// #region generateSchemaTypes
|
|
49
49
|
// When Input and Enum appear in Result selection sets, we need to
|
|
50
50
|
// generate those types so they can be referred to correctly
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
//
|
|
52
|
+
// Note: we don't run visitor on the schema when i.e. `!config.importSchemaTypesFrom`
|
|
53
|
+
// because the schema types are supposedly already generated elsewhere.
|
|
54
|
+
// In such cases, running the visitor on the schema will do unncessary work
|
|
55
|
+
let schemaTypesDefinitions = [];
|
|
56
|
+
if (!config.importSchemaTypesFrom) {
|
|
57
|
+
const schemaTypes = oldVisit(transformSchemaAST(schema, config).ast, { leave: visitor });
|
|
58
|
+
schemaTypesDefinitions = findTransformedDefinitions(schemaTypes);
|
|
59
|
+
}
|
|
53
60
|
// #endregion
|
|
54
61
|
// #region generateIntrospectionTypesDefinitions
|
|
55
62
|
// It is possible for queries to refer to enums in introspection:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depup/graphql-codegen__typescript-operations",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.5-depup.0",
|
|
4
4
|
"description": "GraphQL Code Generator plugin for generating TypeScript types for GraphQL queries, mutations, subscriptions and fragments (with updated dependencies)",
|
|
5
5
|
"peerDependenciesMeta": {
|
|
6
6
|
"graphql-sock": {
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
},
|
|
73
73
|
"depsUpdated": 2,
|
|
74
74
|
"originalPackage": "@graphql-codegen/typescript-operations",
|
|
75
|
-
"originalVersion": "6.1.
|
|
76
|
-
"processedAt": "2026-08-
|
|
75
|
+
"originalVersion": "6.1.5",
|
|
76
|
+
"processedAt": "2026-08-05T16:34:22.383Z",
|
|
77
77
|
"smokeTest": "passed"
|
|
78
78
|
}
|
|
79
79
|
}
|
package/typings/config.d.cts
CHANGED
|
@@ -125,6 +125,30 @@ export interface TypeScriptDocumentsPluginConfig extends RawDocumentsConfig {
|
|
|
125
125
|
* ```
|
|
126
126
|
*/
|
|
127
127
|
noExport?: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* @description Set the value to `true` in order to disable all description generation.
|
|
130
|
+
* @default false
|
|
131
|
+
*
|
|
132
|
+
* @exampleMarkdown
|
|
133
|
+
* ## Disable description generation
|
|
134
|
+
* ```ts filename="codegen.ts"
|
|
135
|
+
* import type { CodegenConfig } from '@graphql-codegen/cli'
|
|
136
|
+
*
|
|
137
|
+
* const config: CodegenConfig = {
|
|
138
|
+
* // ...
|
|
139
|
+
* generates: {
|
|
140
|
+
* 'path/to/file.ts': {
|
|
141
|
+
* plugins: ['typescript-operations'],
|
|
142
|
+
* config: {
|
|
143
|
+
* disableDescriptions: true
|
|
144
|
+
* }
|
|
145
|
+
* }
|
|
146
|
+
* }
|
|
147
|
+
* }
|
|
148
|
+
* export default config
|
|
149
|
+
* ```
|
|
150
|
+
*/
|
|
151
|
+
disableDescriptions?: boolean;
|
|
128
152
|
/**
|
|
129
153
|
* @name addOperationExport
|
|
130
154
|
* @type boolean
|
package/typings/config.d.ts
CHANGED
|
@@ -125,6 +125,30 @@ export interface TypeScriptDocumentsPluginConfig extends RawDocumentsConfig {
|
|
|
125
125
|
* ```
|
|
126
126
|
*/
|
|
127
127
|
noExport?: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* @description Set the value to `true` in order to disable all description generation.
|
|
130
|
+
* @default false
|
|
131
|
+
*
|
|
132
|
+
* @exampleMarkdown
|
|
133
|
+
* ## Disable description generation
|
|
134
|
+
* ```ts filename="codegen.ts"
|
|
135
|
+
* import type { CodegenConfig } from '@graphql-codegen/cli'
|
|
136
|
+
*
|
|
137
|
+
* const config: CodegenConfig = {
|
|
138
|
+
* // ...
|
|
139
|
+
* generates: {
|
|
140
|
+
* 'path/to/file.ts': {
|
|
141
|
+
* plugins: ['typescript-operations'],
|
|
142
|
+
* config: {
|
|
143
|
+
* disableDescriptions: true
|
|
144
|
+
* }
|
|
145
|
+
* }
|
|
146
|
+
* }
|
|
147
|
+
* }
|
|
148
|
+
* export default config
|
|
149
|
+
* ```
|
|
150
|
+
*/
|
|
151
|
+
disableDescriptions?: boolean;
|
|
128
152
|
/**
|
|
129
153
|
* @name addOperationExport
|
|
130
154
|
* @type boolean
|