@graphql-codegen/cli 6.1.2 → 7.0.0-alpha-20260219135511-f77afdad62fc366fc5f534344fa2a7eb96e1282f

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/config.js CHANGED
@@ -288,6 +288,7 @@ class CodegenContext {
288
288
  }
289
289
  }
290
290
  return {
291
+ noSilentErrors: true, // When a `documents` pattern matches multiple files e.g. `*` exists in filename like `src/something.*.ts`, and some files fail but some pass syntax error check, the failed files will silently fail if `noSilentErrors: false`. So, `noSilentErrors: true` is turned on by default to help users detect errors faster.
291
292
  ...extraConfig,
292
293
  ...this.config,
293
294
  };
@@ -318,9 +319,7 @@ class CodegenContext {
318
319
  const config = this.getConfig(load_js_1.defaultSchemaLoadOptions);
319
320
  if (this._graphqlConfig) {
320
321
  // TODO: SchemaWithLoader won't work here
321
- return addHashToSchema(this._graphqlConfig
322
- .getProject(this._project)
323
- .loadSchema(pointer, 'GraphQLSchema', { ...config, ...config.config }));
322
+ return addHashToSchema(this._graphqlConfig.getProject(this._project).loadSchema(pointer, 'GraphQLSchema', config));
324
323
  }
325
324
  return addHashToSchema((0, load_js_1.loadSchema)(pointer, config));
326
325
  }
@@ -328,7 +327,7 @@ class CodegenContext {
328
327
  const config = this.getConfig(load_js_1.defaultDocumentsLoadOptions);
329
328
  if (this._graphqlConfig) {
330
329
  // TODO: pointer won't work here
331
- return addHashToDocumentFiles(this._graphqlConfig.getProject(this._project).loadDocuments(pointer, { ...config, ...config.config }));
330
+ return addHashToDocumentFiles(this._graphqlConfig.getProject(this._project).loadDocuments(pointer, config));
332
331
  }
333
332
  return addHashToDocumentFiles((0, load_js_1.loadDocuments)(pointer, config));
334
333
  }
package/esm/config.js CHANGED
@@ -276,6 +276,7 @@ export class CodegenContext {
276
276
  }
277
277
  }
278
278
  return {
279
+ noSilentErrors: true, // When a `documents` pattern matches multiple files e.g. `*` exists in filename like `src/something.*.ts`, and some files fail but some pass syntax error check, the failed files will silently fail if `noSilentErrors: false`. So, `noSilentErrors: true` is turned on by default to help users detect errors faster.
279
280
  ...extraConfig,
280
281
  ...this.config,
281
282
  };
@@ -306,9 +307,7 @@ export class CodegenContext {
306
307
  const config = this.getConfig(defaultSchemaLoadOptions);
307
308
  if (this._graphqlConfig) {
308
309
  // TODO: SchemaWithLoader won't work here
309
- return addHashToSchema(this._graphqlConfig
310
- .getProject(this._project)
311
- .loadSchema(pointer, 'GraphQLSchema', { ...config, ...config.config }));
310
+ return addHashToSchema(this._graphqlConfig.getProject(this._project).loadSchema(pointer, 'GraphQLSchema', config));
312
311
  }
313
312
  return addHashToSchema(loadSchema(pointer, config));
314
313
  }
@@ -316,7 +315,7 @@ export class CodegenContext {
316
315
  const config = this.getConfig(defaultDocumentsLoadOptions);
317
316
  if (this._graphqlConfig) {
318
317
  // TODO: pointer won't work here
319
- return addHashToDocumentFiles(this._graphqlConfig.getProject(this._project).loadDocuments(pointer, { ...config, ...config.config }));
318
+ return addHashToDocumentFiles(this._graphqlConfig.getProject(this._project).loadDocuments(pointer, config));
320
319
  }
321
320
  return addHashToDocumentFiles(loadDocuments(pointer, config));
322
321
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-codegen/cli",
3
- "version": "6.1.2",
3
+ "version": "7.0.0-alpha-20260219135511-f77afdad62fc366fc5f534344fa2a7eb96e1282f",
4
4
  "peerDependenciesMeta": {
5
5
  "@parcel/watcher": {
6
6
  "optional": true
@@ -14,7 +14,7 @@
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": "^5.2.0",
17
+ "@graphql-codegen/client-preset": "6.0.0-alpha-20260219135511-f77afdad62fc366fc5f534344fa2a7eb96e1282f",
18
18
  "@graphql-codegen/core": "^5.0.0",
19
19
  "@graphql-codegen/plugin-helpers": "^6.1.0",
20
20
  "@graphql-tools/apollo-engine-loader": "^8.0.0",