@graphql-codegen/visitor-plugin-common 7.0.0-alpha-20251228140020-a092ba2d84c819dfbb62365e419f28df54571fbe → 7.0.0-alpha-20260101112751-5609723f4ba2f3da5adf38c7347e2569216e3b5a

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.
@@ -30,7 +30,6 @@ class BaseDocumentsVisitor extends base_visitor_js_1.BaseVisitor {
30
30
  exportFragmentSpreadSubTypes: (0, utils_js_1.getConfigValue)(rawConfig.exportFragmentSpreadSubTypes, false),
31
31
  enumPrefix: (0, utils_js_1.getConfigValue)(rawConfig.enumPrefix, true),
32
32
  enumSuffix: (0, utils_js_1.getConfigValue)(rawConfig.enumSuffix, true),
33
- preResolveTypes: (0, utils_js_1.getConfigValue)(rawConfig.preResolveTypes, true),
34
33
  dedupeOperationSuffix: (0, utils_js_1.getConfigValue)(rawConfig.dedupeOperationSuffix, false),
35
34
  omitOperationSuffix: (0, utils_js_1.getConfigValue)(rawConfig.omitOperationSuffix, false),
36
35
  skipTypeNameForRoot: (0, utils_js_1.getConfigValue)(rawConfig.skipTypeNameForRoot, false),
@@ -26,7 +26,6 @@ export class BaseDocumentsVisitor extends BaseVisitor {
26
26
  exportFragmentSpreadSubTypes: getConfigValue(rawConfig.exportFragmentSpreadSubTypes, false),
27
27
  enumPrefix: getConfigValue(rawConfig.enumPrefix, true),
28
28
  enumSuffix: getConfigValue(rawConfig.enumSuffix, true),
29
- preResolveTypes: getConfigValue(rawConfig.preResolveTypes, true),
30
29
  dedupeOperationSuffix: getConfigValue(rawConfig.dedupeOperationSuffix, false),
31
30
  omitOperationSuffix: getConfigValue(rawConfig.omitOperationSuffix, false),
32
31
  skipTypeNameForRoot: getConfigValue(rawConfig.skipTypeNameForRoot, false),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-codegen/visitor-plugin-common",
3
- "version": "7.0.0-alpha-20251228140020-a092ba2d84c819dfbb62365e419f28df54571fbe",
3
+ "version": "7.0.0-alpha-20260101112751-5609723f4ba2f3da5adf38c7347e2569216e3b5a",
4
4
  "peerDependencies": {
5
5
  "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"
6
6
  },
@@ -6,7 +6,6 @@ import { NormalizedScalarsMap, CustomDirectivesConfig } from './types.cjs';
6
6
  import { DeclarationBlockConfig } from './utils.cjs';
7
7
  import { OperationVariablesToObject } from './variables-to-object.cjs';
8
8
  export interface ParsedDocumentsConfig extends ParsedTypesConfig {
9
- preResolveTypes: boolean;
10
9
  extractAllFieldsToTypes: boolean;
11
10
  globalNamespace: boolean;
12
11
  operationResultSuffix: string;
@@ -22,30 +21,6 @@ export interface ParsedDocumentsConfig extends ParsedTypesConfig {
22
21
  importSchemaTypesFrom: string;
23
22
  }
24
23
  export interface RawDocumentsConfig extends RawTypesConfig {
25
- /**
26
- * @default true
27
- * @description Uses primitive types where possible.
28
- * Set to `false` in order to use `Pick` and take use the types generated by `typescript` plugin.
29
- *
30
- * @exampleMarkdown
31
- * ```ts filename="codegen.ts"
32
- * import type { CodegenConfig } from '@graphql-codegen/cli';
33
- *
34
- * const config: CodegenConfig = {
35
- * // ...
36
- * generates: {
37
- * 'path/to/file': {
38
- * // plugins...
39
- * config: {
40
- * preResolveTypes: false
41
- * },
42
- * },
43
- * },
44
- * };
45
- * export default config;
46
- * ```
47
- */
48
- preResolveTypes?: boolean;
49
24
  /**
50
25
  * @default false
51
26
  * @description Avoid adding `__typename` for root types. This is ignored when a selection explicitly specifies `__typename`.
@@ -6,7 +6,6 @@ import { NormalizedScalarsMap, CustomDirectivesConfig } from './types.js';
6
6
  import { DeclarationBlockConfig } from './utils.js';
7
7
  import { OperationVariablesToObject } from './variables-to-object.js';
8
8
  export interface ParsedDocumentsConfig extends ParsedTypesConfig {
9
- preResolveTypes: boolean;
10
9
  extractAllFieldsToTypes: boolean;
11
10
  globalNamespace: boolean;
12
11
  operationResultSuffix: string;
@@ -22,30 +21,6 @@ export interface ParsedDocumentsConfig extends ParsedTypesConfig {
22
21
  importSchemaTypesFrom: string;
23
22
  }
24
23
  export interface RawDocumentsConfig extends RawTypesConfig {
25
- /**
26
- * @default true
27
- * @description Uses primitive types where possible.
28
- * Set to `false` in order to use `Pick` and take use the types generated by `typescript` plugin.
29
- *
30
- * @exampleMarkdown
31
- * ```ts filename="codegen.ts"
32
- * import type { CodegenConfig } from '@graphql-codegen/cli';
33
- *
34
- * const config: CodegenConfig = {
35
- * // ...
36
- * generates: {
37
- * 'path/to/file': {
38
- * // plugins...
39
- * config: {
40
- * preResolveTypes: false
41
- * },
42
- * },
43
- * },
44
- * };
45
- * export default config;
46
- * ```
47
- */
48
- preResolveTypes?: boolean;
49
24
  /**
50
25
  * @default false
51
26
  * @description Avoid adding `__typename` for root types. This is ignored when a selection explicitly specifies `__typename`.