@graphql-codegen/cli 7.4.6 → 8.0.0-alpha-20261022131552-f8914af574bdcf9fed7e5f7291e1bc2cf02c19bd
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/codegen.js +10 -3
- package/cjs/version.js +1 -1
- package/esm/codegen.js +10 -3
- package/esm/version.js +1 -1
- package/package.json +16 -16
package/cjs/codegen.js
CHANGED
|
@@ -11,7 +11,6 @@ const graphql_1 = require("graphql");
|
|
|
11
11
|
const listr2_1 = require("listr2");
|
|
12
12
|
const core_1 = require("@graphql-codegen/core");
|
|
13
13
|
const plugin_helpers_1 = require("@graphql-codegen/plugin-helpers");
|
|
14
|
-
const load_1 = require("@graphql-tools/load");
|
|
15
14
|
const merge_1 = require("@graphql-tools/merge");
|
|
16
15
|
const config_js_1 = require("./config.js");
|
|
17
16
|
const documentTransforms_js_1 = require("./documentTransforms.js");
|
|
@@ -274,7 +273,11 @@ async function executeCodegen(input) {
|
|
|
274
273
|
return documents;
|
|
275
274
|
}
|
|
276
275
|
catch (error) {
|
|
277
|
-
|
|
276
|
+
// Matched by name: documents loaded through GraphQL Config come from
|
|
277
|
+
// graphql-config's own copy of `@graphql-tools/load`, whose error class
|
|
278
|
+
// is not the one this package imports.
|
|
279
|
+
if (error instanceof Error &&
|
|
280
|
+
error.name === 'NoTypeDefinitionsFound' &&
|
|
278
281
|
config.ignoreNoDocuments) {
|
|
279
282
|
return [];
|
|
280
283
|
}
|
|
@@ -293,7 +296,11 @@ async function executeCodegen(input) {
|
|
|
293
296
|
return documents;
|
|
294
297
|
}
|
|
295
298
|
catch (error) {
|
|
296
|
-
|
|
299
|
+
// Matched by name: documents loaded through GraphQL Config come from
|
|
300
|
+
// graphql-config's own copy of `@graphql-tools/load`, whose error class
|
|
301
|
+
// is not the one this package imports.
|
|
302
|
+
if (error instanceof Error &&
|
|
303
|
+
error.name === 'NoTypeDefinitionsFound' &&
|
|
297
304
|
config.ignoreNoDocuments) {
|
|
298
305
|
return [];
|
|
299
306
|
}
|
package/cjs/version.js
CHANGED
package/esm/codegen.js
CHANGED
|
@@ -7,7 +7,6 @@ import { buildASTSchema, GraphQLError, isSchema } from 'graphql';
|
|
|
7
7
|
import { Listr } from 'listr2';
|
|
8
8
|
import { codegen } from '@graphql-codegen/core';
|
|
9
9
|
import { getCachedDocumentNodeFromSchema, normalizeConfig, normalizeImportExtension, normalizeInstanceOrArray, normalizeOutputParam, } from '@graphql-codegen/plugin-helpers';
|
|
10
|
-
import { NoTypeDefinitionsFound } from '@graphql-tools/load';
|
|
11
10
|
import { mergeTypeDefs } from '@graphql-tools/merge';
|
|
12
11
|
import { ensureContext } from './config.js';
|
|
13
12
|
import { getDocumentTransform } from './documentTransforms.js';
|
|
@@ -270,7 +269,11 @@ export async function executeCodegen(input) {
|
|
|
270
269
|
return documents;
|
|
271
270
|
}
|
|
272
271
|
catch (error) {
|
|
273
|
-
|
|
272
|
+
// Matched by name: documents loaded through GraphQL Config come from
|
|
273
|
+
// graphql-config's own copy of `@graphql-tools/load`, whose error class
|
|
274
|
+
// is not the one this package imports.
|
|
275
|
+
if (error instanceof Error &&
|
|
276
|
+
error.name === 'NoTypeDefinitionsFound' &&
|
|
274
277
|
config.ignoreNoDocuments) {
|
|
275
278
|
return [];
|
|
276
279
|
}
|
|
@@ -289,7 +292,11 @@ export async function executeCodegen(input) {
|
|
|
289
292
|
return documents;
|
|
290
293
|
}
|
|
291
294
|
catch (error) {
|
|
292
|
-
|
|
295
|
+
// Matched by name: documents loaded through GraphQL Config come from
|
|
296
|
+
// graphql-config's own copy of `@graphql-tools/load`, whose error class
|
|
297
|
+
// is not the one this package imports.
|
|
298
|
+
if (error instanceof Error &&
|
|
299
|
+
error.name === 'NoTypeDefinitionsFound' &&
|
|
293
300
|
config.ignoreNoDocuments) {
|
|
294
301
|
return [];
|
|
295
302
|
}
|
package/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '
|
|
1
|
+
export const version = '8.0.0-alpha-20261022131552-f8914af574bdcf9fed7e5f7291e1bc2cf02c19bd';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0-alpha-20261022131552-f8914af574bdcf9fed7e5f7291e1bc2cf02c19bd",
|
|
4
4
|
"peerDependenciesMeta": {
|
|
5
5
|
"@parcel/watcher": {
|
|
6
6
|
"optional": true
|
|
@@ -8,25 +8,25 @@
|
|
|
8
8
|
},
|
|
9
9
|
"peerDependencies": {
|
|
10
10
|
"@parcel/watcher": "^2.1.0",
|
|
11
|
-
"graphql": "^
|
|
11
|
+
"graphql": "^16.0.0 || ^17.0.0"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@babel/generator": "^7.18.13",
|
|
15
15
|
"@babel/template": "^7.18.10",
|
|
16
16
|
"@babel/types": "^7.18.13",
|
|
17
|
-
"@graphql-codegen/client-preset": "^
|
|
18
|
-
"@graphql-codegen/core": "^
|
|
19
|
-
"@graphql-codegen/plugin-helpers": "^
|
|
20
|
-
"@graphql-tools/apollo-engine-loader": "^
|
|
21
|
-
"@graphql-tools/code-file-loader": "^
|
|
22
|
-
"@graphql-tools/git-loader": "^
|
|
23
|
-
"@graphql-tools/github-loader": "^
|
|
24
|
-
"@graphql-tools/graphql-file-loader": "^
|
|
25
|
-
"@graphql-tools/json-file-loader": "^
|
|
26
|
-
"@graphql-tools/load": "^
|
|
27
|
-
"@graphql-tools/merge": "^
|
|
28
|
-
"@graphql-tools/url-loader": "^
|
|
29
|
-
"@graphql-tools/utils": "^
|
|
17
|
+
"@graphql-codegen/client-preset": "^7.0.0-alpha-20261022131552-f8914af574bdcf9fed7e5f7291e1bc2cf02c19bd",
|
|
18
|
+
"@graphql-codegen/core": "^7.0.0-alpha-20261022131552-f8914af574bdcf9fed7e5f7291e1bc2cf02c19bd",
|
|
19
|
+
"@graphql-codegen/plugin-helpers": "^8.0.0-alpha-20261022131552-f8914af574bdcf9fed7e5f7291e1bc2cf02c19bd",
|
|
20
|
+
"@graphql-tools/apollo-engine-loader": "^9.0.2",
|
|
21
|
+
"@graphql-tools/code-file-loader": "^9.0.3",
|
|
22
|
+
"@graphql-tools/git-loader": "^9.0.3",
|
|
23
|
+
"@graphql-tools/github-loader": "^10.0.3",
|
|
24
|
+
"@graphql-tools/graphql-file-loader": "^9.0.2",
|
|
25
|
+
"@graphql-tools/json-file-loader": "^9.0.2",
|
|
26
|
+
"@graphql-tools/load": "^9.0.2",
|
|
27
|
+
"@graphql-tools/merge": "^10.0.2",
|
|
28
|
+
"@graphql-tools/url-loader": "^10.0.2",
|
|
29
|
+
"@graphql-tools/utils": "^13.0.2",
|
|
30
30
|
"@inquirer/prompts": "^8.3.2",
|
|
31
31
|
"@whatwg-node/fetch": "^0.10.0",
|
|
32
32
|
"chalk": "^5.6.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"author": "Dotan Simha <dotansimha@gmail.com>",
|
|
74
74
|
"license": "MIT",
|
|
75
75
|
"engines": {
|
|
76
|
-
"node": ">=
|
|
76
|
+
"node": ">=22.18.0"
|
|
77
77
|
},
|
|
78
78
|
"main": "cjs/index.js",
|
|
79
79
|
"module": "esm/index.js",
|