@graphql-inspector/cli 3.4.13-alpha-20230417141810-fd2d33e7 → 3.4.13

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.
Files changed (98) hide show
  1. package/README.md +3 -3
  2. package/cjs/action/src/run.js +1 -1
  3. package/cjs/commands/commands/src/index.js +7 -8
  4. package/cjs/commands/diff/src/index.js +6 -6
  5. package/cjs/commands/docs/src/index.js +1 -3
  6. package/cjs/commands/serve/src/fake.js +4 -4
  7. package/cjs/commands/serve/src/index.js +8 -7
  8. package/cjs/commands/similar/src/index.js +2 -2
  9. package/cjs/commands/validate/src/index.js +4 -4
  10. package/cjs/core/src/ast/document.js +2 -2
  11. package/cjs/core/src/coverage/index.js +7 -7
  12. package/cjs/core/src/diff/changes/argument.js +80 -19
  13. package/cjs/core/src/diff/changes/directive.js +208 -39
  14. package/cjs/core/src/diff/changes/enum.js +123 -25
  15. package/cjs/core/src/diff/changes/field.js +260 -69
  16. package/cjs/core/src/diff/changes/input.js +153 -34
  17. package/cjs/core/src/diff/changes/object.js +37 -9
  18. package/cjs/core/src/diff/changes/schema.js +55 -13
  19. package/cjs/core/src/diff/changes/type.js +106 -19
  20. package/cjs/core/src/diff/changes/union.js +35 -7
  21. package/cjs/core/src/diff/directive.js +2 -4
  22. package/cjs/core/src/diff/rules/consider-usage.js +3 -3
  23. package/cjs/core/src/index.js +63 -1
  24. package/cjs/core/src/similar/index.js +2 -2
  25. package/cjs/core/src/utils/compare.js +3 -9
  26. package/cjs/core/src/utils/is-deprecated.js +1 -1
  27. package/cjs/core/src/utils/string.js +5 -2
  28. package/cjs/core/src/validate/complexity.js +1 -1
  29. package/cjs/core/src/validate/directive-count.js +1 -1
  30. package/cjs/core/src/validate/index.js +12 -11
  31. package/cjs/core/src/validate/query-depth.js +1 -1
  32. package/cjs/github/src/helpers/config.js +6 -2
  33. package/cjs/github/src/helpers/utils.js +1 -1
  34. package/cjs/loaders/loaders/src/index.js +1 -2
  35. package/esm/action/src/run.js +1 -1
  36. package/esm/commands/commands/src/index.js +7 -8
  37. package/esm/commands/diff/src/index.js +6 -6
  38. package/esm/commands/docs/src/index.js +1 -4
  39. package/esm/commands/serve/src/fake.js +4 -4
  40. package/esm/commands/serve/src/index.js +8 -7
  41. package/esm/commands/similar/src/index.js +2 -2
  42. package/esm/commands/validate/src/index.js +4 -4
  43. package/esm/core/src/ast/document.js +2 -2
  44. package/esm/core/src/coverage/index.js +7 -7
  45. package/esm/core/src/diff/changes/argument.js +77 -19
  46. package/esm/core/src/diff/changes/directive.js +198 -39
  47. package/esm/core/src/diff/changes/enum.js +117 -25
  48. package/esm/core/src/diff/changes/field.js +240 -62
  49. package/esm/core/src/diff/changes/input.js +145 -34
  50. package/esm/core/src/diff/changes/object.js +35 -9
  51. package/esm/core/src/diff/changes/schema.js +50 -11
  52. package/esm/core/src/diff/changes/type.js +100 -19
  53. package/esm/core/src/diff/changes/union.js +33 -7
  54. package/esm/core/src/diff/directive.js +2 -4
  55. package/esm/core/src/diff/rules/consider-usage.js +3 -3
  56. package/esm/core/src/index.js +9 -0
  57. package/esm/core/src/similar/index.js +2 -2
  58. package/esm/core/src/utils/compare.js +3 -9
  59. package/esm/core/src/utils/is-deprecated.js +1 -1
  60. package/esm/core/src/utils/string.js +5 -2
  61. package/esm/core/src/validate/complexity.js +1 -1
  62. package/esm/core/src/validate/directive-count.js +1 -1
  63. package/esm/core/src/validate/index.js +12 -11
  64. package/esm/core/src/validate/query-depth.js +1 -1
  65. package/esm/github/src/helpers/config.js +6 -2
  66. package/esm/github/src/helpers/utils.js +1 -1
  67. package/esm/loaders/loaders/src/index.js +1 -2
  68. package/package.json +20 -20
  69. package/typings/core/src/diff/changes/argument.d.cts +52 -4
  70. package/typings/core/src/diff/changes/argument.d.ts +52 -4
  71. package/typings/core/src/diff/changes/change.d.cts +500 -2
  72. package/typings/core/src/diff/changes/change.d.ts +500 -2
  73. package/typings/core/src/diff/changes/directive.d.cts +147 -11
  74. package/typings/core/src/diff/changes/directive.d.ts +147 -11
  75. package/typings/core/src/diff/changes/enum.d.cts +75 -7
  76. package/typings/core/src/diff/changes/enum.d.ts +75 -7
  77. package/typings/core/src/diff/changes/field.d.cts +189 -14
  78. package/typings/core/src/diff/changes/field.d.ts +189 -14
  79. package/typings/core/src/diff/changes/input.d.cts +112 -8
  80. package/typings/core/src/diff/changes/input.d.ts +112 -8
  81. package/typings/core/src/diff/changes/object.d.cts +29 -3
  82. package/typings/core/src/diff/changes/object.d.ts +29 -3
  83. package/typings/core/src/diff/changes/schema.d.cts +37 -4
  84. package/typings/core/src/diff/changes/schema.d.ts +37 -4
  85. package/typings/core/src/diff/changes/type.d.cts +80 -7
  86. package/typings/core/src/diff/changes/type.d.ts +80 -7
  87. package/typings/core/src/diff/changes/union.d.cts +29 -3
  88. package/typings/core/src/diff/changes/union.d.ts +29 -3
  89. package/typings/core/src/index.d.cts +10 -0
  90. package/typings/core/src/index.d.ts +10 -0
  91. package/typings/core/src/utils/is-deprecated.d.cts +1 -1
  92. package/typings/core/src/utils/is-deprecated.d.ts +1 -1
  93. package/typings/core/src/utils/string.d.cts +1 -1
  94. package/typings/core/src/utils/string.d.ts +1 -1
  95. package/typings/core/utils/testing.d.cts +2 -2
  96. package/typings/core/utils/testing.d.ts +2 -2
  97. package/typings/github/src/helpers/utils.d.cts +1 -1
  98. package/typings/github/src/helpers/utils.d.ts +1 -1
@@ -1,12 +1,148 @@
1
1
  import { DirectiveLocationEnum, GraphQLArgument, GraphQLDirective } from 'graphql';
2
- import { Change } from './change.js';
3
- export declare function directiveRemoved(directive: GraphQLDirective): Change;
4
- export declare function directiveAdded(directive: GraphQLDirective): Change;
5
- export declare function directiveDescriptionChanged(oldDirective: GraphQLDirective, newDirective: GraphQLDirective): Change;
6
- export declare function directiveLocationAdded(directive: GraphQLDirective, location: DirectiveLocationEnum): Change;
7
- export declare function directiveLocationRemoved(directive: GraphQLDirective, location: DirectiveLocationEnum): Change;
8
- export declare function directiveArgumentAdded(directive: GraphQLDirective, arg: GraphQLArgument): Change;
9
- export declare function directiveArgumentRemoved(directive: GraphQLDirective, arg: GraphQLArgument): Change;
10
- export declare function directiveArgumentDescriptionChanged(directive: GraphQLDirective, oldArg: GraphQLArgument, newArg: GraphQLArgument): Change;
11
- export declare function directiveArgumentDefaultValueChanged(directive: GraphQLDirective, oldArg: GraphQLArgument, newArg: GraphQLArgument): Change;
12
- export declare function directiveArgumentTypeChanged(directive: GraphQLDirective, oldArg: GraphQLArgument, newArg: GraphQLArgument): Change;
2
+ import { Change, ChangeType, CriticalityLevel, DirectiveAddedChange, DirectiveArgumentAddedChange, DirectiveArgumentDefaultValueChangedChange, DirectiveArgumentDescriptionChangedChange, DirectiveArgumentRemovedChange, DirectiveArgumentTypeChangedChange, DirectiveDescriptionChangedChange, DirectiveLocationAddedChange, DirectiveLocationRemovedChange, DirectiveRemovedChange } from './change.js';
3
+ export declare function directiveRemovedFromMeta(args: DirectiveRemovedChange): {
4
+ readonly criticality: {
5
+ readonly level: CriticalityLevel.Breaking;
6
+ readonly reason: "A directive could be in use of a client application. Removing it could break the client application.";
7
+ };
8
+ readonly type: ChangeType.DirectiveRemoved;
9
+ readonly message: string;
10
+ readonly path: `@${string}`;
11
+ readonly meta: {
12
+ removedDirectiveName: string;
13
+ };
14
+ };
15
+ export declare function directiveRemoved(directive: GraphQLDirective): Change<ChangeType.DirectiveRemoved>;
16
+ export declare function directiveAddedFromMeta(args: DirectiveAddedChange): {
17
+ readonly criticality: {
18
+ readonly level: CriticalityLevel.NonBreaking;
19
+ };
20
+ readonly type: ChangeType.DirectiveAdded;
21
+ readonly message: string;
22
+ readonly path: `@${string}`;
23
+ readonly meta: {
24
+ addedDirectiveName: string;
25
+ };
26
+ };
27
+ export declare function directiveAdded(directive: GraphQLDirective): Change<ChangeType.DirectiveAdded>;
28
+ export declare function directiveDescriptionChangedFromMeta(args: DirectiveDescriptionChangedChange): {
29
+ readonly criticality: {
30
+ readonly level: CriticalityLevel.NonBreaking;
31
+ };
32
+ readonly type: ChangeType.DirectiveDescriptionChanged;
33
+ readonly message: string;
34
+ readonly path: `@${string}`;
35
+ readonly meta: {
36
+ directiveName: string;
37
+ oldDirectiveDescription: string | null;
38
+ newDirectiveDescription: string | null;
39
+ };
40
+ };
41
+ export declare function directiveDescriptionChanged(oldDirective: GraphQLDirective, newDirective: GraphQLDirective): Change<ChangeType.DirectiveDescriptionChanged>;
42
+ export declare function directiveLocationAddedFromMeta(args: DirectiveLocationAddedChange): {
43
+ readonly criticality: {
44
+ readonly level: CriticalityLevel.NonBreaking;
45
+ };
46
+ readonly type: ChangeType.DirectiveLocationAdded;
47
+ readonly message: string;
48
+ readonly path: `@${string}`;
49
+ readonly meta: {
50
+ directiveName: string;
51
+ addedDirectiveLocation: string;
52
+ };
53
+ };
54
+ export declare function directiveLocationAdded(directive: GraphQLDirective, location: DirectiveLocationEnum): Change<ChangeType.DirectiveLocationAdded>;
55
+ export declare function directiveLocationRemovedFromMeta(args: DirectiveLocationRemovedChange): {
56
+ readonly criticality: {
57
+ readonly level: CriticalityLevel.Breaking;
58
+ readonly reason: "A directive could be in use of a client application. Removing it could break the client application.";
59
+ };
60
+ readonly type: ChangeType.DirectiveLocationRemoved;
61
+ readonly message: string;
62
+ readonly path: `@${string}`;
63
+ readonly meta: {
64
+ directiveName: string;
65
+ removedDirectiveLocation: string;
66
+ };
67
+ };
68
+ export declare function directiveLocationRemoved(directive: GraphQLDirective, location: DirectiveLocationEnum): Change<ChangeType.DirectiveLocationRemoved>;
69
+ export declare function directiveArgumentAddedFromMeta(args: DirectiveArgumentAddedChange): {
70
+ readonly criticality: {
71
+ level: CriticalityLevel;
72
+ reason: string;
73
+ };
74
+ readonly type: ChangeType.DirectiveArgumentAdded;
75
+ readonly message: `Argument '${string}' was added to directive '${string}'`;
76
+ readonly path: `@${string}`;
77
+ readonly meta: {
78
+ directiveName: string;
79
+ addedDirectiveArgumentName: string;
80
+ addedDirectiveArgumentTypeIsNonNull: boolean;
81
+ };
82
+ };
83
+ export declare function directiveArgumentAdded(directive: GraphQLDirective, arg: GraphQLArgument): Change<ChangeType.DirectiveArgumentAdded>;
84
+ export declare function directiveArgumentRemovedFromMeta(args: DirectiveArgumentRemovedChange): {
85
+ readonly criticality: {
86
+ readonly level: CriticalityLevel.Breaking;
87
+ readonly reason: "A directive argument could be in use of a client application. Removing the argument can break client applications.";
88
+ };
89
+ readonly type: ChangeType.DirectiveArgumentRemoved;
90
+ readonly message: string;
91
+ readonly path: `@${string}.${string}`;
92
+ readonly meta: {
93
+ directiveName: string;
94
+ removedDirectiveArgumentName: string;
95
+ };
96
+ };
97
+ export declare function directiveArgumentRemoved(directive: GraphQLDirective, arg: GraphQLArgument): Change<ChangeType.DirectiveArgumentRemoved>;
98
+ export declare function directiveArgumentDescriptionChangedFromMeta(args: DirectiveArgumentDescriptionChangedChange): {
99
+ readonly criticality: {
100
+ readonly level: CriticalityLevel.NonBreaking;
101
+ };
102
+ readonly type: ChangeType.DirectiveArgumentDescriptionChanged;
103
+ readonly message: string;
104
+ readonly path: `@${string}.${string}`;
105
+ readonly meta: {
106
+ directiveName: string;
107
+ directiveArgumentName: string;
108
+ oldDirectiveArgumentDescription: string | null;
109
+ newDirectiveArgumentDescription: string | null;
110
+ };
111
+ };
112
+ export declare function directiveArgumentDescriptionChanged(directive: GraphQLDirective, oldArg: GraphQLArgument, newArg: GraphQLArgument): Change<ChangeType.DirectiveArgumentDescriptionChanged>;
113
+ export declare function directiveArgumentDefaultValueChangedFromMeta(args: DirectiveArgumentDefaultValueChangedChange): {
114
+ readonly criticality: {
115
+ readonly level: CriticalityLevel.Dangerous;
116
+ readonly reason: "Changing the default value for an argument may change the runtime behaviour of a field if it was never provided.";
117
+ };
118
+ readonly type: ChangeType.DirectiveArgumentDefaultValueChanged;
119
+ readonly message: string;
120
+ readonly path: `@${string}.${string}`;
121
+ readonly meta: {
122
+ directiveName: string;
123
+ directiveArgumentName: string;
124
+ oldDirectiveArgumentDefaultValue?: string | undefined;
125
+ newDirectiveArgumentDefaultValue?: string | undefined;
126
+ };
127
+ };
128
+ export declare function directiveArgumentDefaultValueChanged(directive: GraphQLDirective, oldArg: GraphQLArgument, newArg: GraphQLArgument): Change<ChangeType.DirectiveArgumentDefaultValueChanged>;
129
+ export declare function directiveArgumentTypeChangedFromMeta(args: DirectiveArgumentTypeChangedChange): {
130
+ readonly criticality: {
131
+ level: CriticalityLevel;
132
+ reason: string;
133
+ } | {
134
+ level: CriticalityLevel;
135
+ reason?: undefined;
136
+ };
137
+ readonly type: ChangeType.DirectiveArgumentTypeChanged;
138
+ readonly message: string;
139
+ readonly path: `@${string}.${string}`;
140
+ readonly meta: {
141
+ directiveName: string;
142
+ directiveArgumentName: string;
143
+ oldDirectiveArgumentType: string;
144
+ newDirectiveArgumentType: string;
145
+ isSafeDirectiveArgumentTypeChange: boolean;
146
+ };
147
+ };
148
+ export declare function directiveArgumentTypeChanged(directive: GraphQLDirective, oldArg: GraphQLArgument, newArg: GraphQLArgument): Change<ChangeType.DirectiveArgumentTypeChanged>;
@@ -1,8 +1,76 @@
1
1
  import { GraphQLEnumType, GraphQLEnumValue } from 'graphql';
2
- import { Change } from './change.cjs';
3
- export declare function enumValueRemoved(oldEnum: GraphQLEnumType, value: GraphQLEnumValue): Change;
4
- export declare function enumValueAdded(newEnum: GraphQLEnumType, value: GraphQLEnumValue): Change;
5
- export declare function enumValueDescriptionChanged(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, newValue: GraphQLEnumValue): Change;
6
- export declare function enumValueDeprecationReasonChanged(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, newValue: GraphQLEnumValue): Change;
7
- export declare function enumValueDeprecationReasonAdded(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, newValue: GraphQLEnumValue): Change;
8
- export declare function enumValueDeprecationReasonRemoved(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, newValue: GraphQLEnumValue): Change;
2
+ import { Change, ChangeType, CriticalityLevel, EnumValueAddedChange, EnumValueDeprecationReasonAddedChange, EnumValueDeprecationReasonChangedChange, EnumValueDeprecationReasonRemovedChange, EnumValueDescriptionChangedChange, EnumValueRemovedChange } from './change.cjs';
3
+ export declare function enumValueRemovedFromMeta(args: EnumValueRemovedChange): {
4
+ readonly type: ChangeType.EnumValueRemoved;
5
+ readonly criticality: {
6
+ readonly level: CriticalityLevel.Breaking;
7
+ readonly reason: "Removing an enum value will cause existing queries that use this enum value to error.";
8
+ };
9
+ readonly message: string;
10
+ readonly meta: {
11
+ enumName: string;
12
+ removedEnumValueName: string;
13
+ isEnumValueDeprecated: boolean;
14
+ };
15
+ readonly path: string;
16
+ };
17
+ export declare function enumValueRemoved(oldEnum: GraphQLEnumType, value: GraphQLEnumValue): Change<ChangeType.EnumValueRemoved>;
18
+ export declare function enumValueAddedFromMeta(args: EnumValueAddedChange): {
19
+ readonly type: ChangeType.EnumValueAdded;
20
+ readonly criticality: {
21
+ readonly level: CriticalityLevel.Dangerous;
22
+ readonly reason: "Adding an enum value may break existing clients that were not programming defensively against an added case when querying an enum.";
23
+ };
24
+ readonly message: string;
25
+ readonly meta: {
26
+ enumName: string;
27
+ addedEnumValueName: string;
28
+ };
29
+ readonly path: string;
30
+ };
31
+ export declare function enumValueAdded(newEnum: GraphQLEnumType, value: GraphQLEnumValue): Change<ChangeType.EnumValueAdded>;
32
+ export declare function enumValueDescriptionChangedFromMeta(args: EnumValueDescriptionChangedChange): Change<ChangeType.EnumValueDescriptionChanged>;
33
+ export declare function enumValueDescriptionChanged(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, newValue: GraphQLEnumValue): Change<ChangeType.EnumValueDescriptionChanged>;
34
+ export declare function enumValueDeprecationReasonChangedFromMeta(args: EnumValueDeprecationReasonChangedChange): {
35
+ readonly criticality: {
36
+ readonly level: CriticalityLevel.NonBreaking;
37
+ };
38
+ readonly type: ChangeType.EnumValueDeprecationReasonChanged;
39
+ readonly message: string;
40
+ readonly path: string;
41
+ readonly meta: {
42
+ enumName: string;
43
+ enumValueName: string;
44
+ oldEnumValueDeprecationReason: string;
45
+ newEnumValueDeprecationReason: string;
46
+ };
47
+ };
48
+ export declare function enumValueDeprecationReasonChanged(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, newValue: GraphQLEnumValue): Change<ChangeType.EnumValueDeprecationReasonChanged>;
49
+ export declare function enumValueDeprecationReasonAddedFromMeta(args: EnumValueDeprecationReasonAddedChange): {
50
+ readonly criticality: {
51
+ readonly level: CriticalityLevel.NonBreaking;
52
+ };
53
+ readonly type: ChangeType.EnumValueDeprecationReasonAdded;
54
+ readonly message: string;
55
+ readonly path: string;
56
+ readonly meta: {
57
+ enumName: string;
58
+ enumValueName: string;
59
+ addedValueDeprecationReason: string;
60
+ };
61
+ };
62
+ export declare function enumValueDeprecationReasonAdded(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, newValue: GraphQLEnumValue): Change<ChangeType.EnumValueDeprecationReasonAdded>;
63
+ export declare function enumValueDeprecationReasonRemovedFromMeta(args: EnumValueDeprecationReasonRemovedChange): {
64
+ readonly criticality: {
65
+ readonly level: CriticalityLevel.NonBreaking;
66
+ };
67
+ readonly type: ChangeType.EnumValueDeprecationReasonRemoved;
68
+ readonly message: string;
69
+ readonly path: string;
70
+ readonly meta: {
71
+ enumName: string;
72
+ enumValueName: string;
73
+ removedEnumValueDeprecationReason: string;
74
+ };
75
+ };
76
+ export declare function enumValueDeprecationReasonRemoved(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, _newValue: GraphQLEnumValue): Change<ChangeType.EnumValueDeprecationReasonRemoved>;
@@ -1,8 +1,76 @@
1
1
  import { GraphQLEnumType, GraphQLEnumValue } from 'graphql';
2
- import { Change } from './change.js';
3
- export declare function enumValueRemoved(oldEnum: GraphQLEnumType, value: GraphQLEnumValue): Change;
4
- export declare function enumValueAdded(newEnum: GraphQLEnumType, value: GraphQLEnumValue): Change;
5
- export declare function enumValueDescriptionChanged(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, newValue: GraphQLEnumValue): Change;
6
- export declare function enumValueDeprecationReasonChanged(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, newValue: GraphQLEnumValue): Change;
7
- export declare function enumValueDeprecationReasonAdded(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, newValue: GraphQLEnumValue): Change;
8
- export declare function enumValueDeprecationReasonRemoved(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, newValue: GraphQLEnumValue): Change;
2
+ import { Change, ChangeType, CriticalityLevel, EnumValueAddedChange, EnumValueDeprecationReasonAddedChange, EnumValueDeprecationReasonChangedChange, EnumValueDeprecationReasonRemovedChange, EnumValueDescriptionChangedChange, EnumValueRemovedChange } from './change.js';
3
+ export declare function enumValueRemovedFromMeta(args: EnumValueRemovedChange): {
4
+ readonly type: ChangeType.EnumValueRemoved;
5
+ readonly criticality: {
6
+ readonly level: CriticalityLevel.Breaking;
7
+ readonly reason: "Removing an enum value will cause existing queries that use this enum value to error.";
8
+ };
9
+ readonly message: string;
10
+ readonly meta: {
11
+ enumName: string;
12
+ removedEnumValueName: string;
13
+ isEnumValueDeprecated: boolean;
14
+ };
15
+ readonly path: string;
16
+ };
17
+ export declare function enumValueRemoved(oldEnum: GraphQLEnumType, value: GraphQLEnumValue): Change<ChangeType.EnumValueRemoved>;
18
+ export declare function enumValueAddedFromMeta(args: EnumValueAddedChange): {
19
+ readonly type: ChangeType.EnumValueAdded;
20
+ readonly criticality: {
21
+ readonly level: CriticalityLevel.Dangerous;
22
+ readonly reason: "Adding an enum value may break existing clients that were not programming defensively against an added case when querying an enum.";
23
+ };
24
+ readonly message: string;
25
+ readonly meta: {
26
+ enumName: string;
27
+ addedEnumValueName: string;
28
+ };
29
+ readonly path: string;
30
+ };
31
+ export declare function enumValueAdded(newEnum: GraphQLEnumType, value: GraphQLEnumValue): Change<ChangeType.EnumValueAdded>;
32
+ export declare function enumValueDescriptionChangedFromMeta(args: EnumValueDescriptionChangedChange): Change<ChangeType.EnumValueDescriptionChanged>;
33
+ export declare function enumValueDescriptionChanged(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, newValue: GraphQLEnumValue): Change<ChangeType.EnumValueDescriptionChanged>;
34
+ export declare function enumValueDeprecationReasonChangedFromMeta(args: EnumValueDeprecationReasonChangedChange): {
35
+ readonly criticality: {
36
+ readonly level: CriticalityLevel.NonBreaking;
37
+ };
38
+ readonly type: ChangeType.EnumValueDeprecationReasonChanged;
39
+ readonly message: string;
40
+ readonly path: string;
41
+ readonly meta: {
42
+ enumName: string;
43
+ enumValueName: string;
44
+ oldEnumValueDeprecationReason: string;
45
+ newEnumValueDeprecationReason: string;
46
+ };
47
+ };
48
+ export declare function enumValueDeprecationReasonChanged(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, newValue: GraphQLEnumValue): Change<ChangeType.EnumValueDeprecationReasonChanged>;
49
+ export declare function enumValueDeprecationReasonAddedFromMeta(args: EnumValueDeprecationReasonAddedChange): {
50
+ readonly criticality: {
51
+ readonly level: CriticalityLevel.NonBreaking;
52
+ };
53
+ readonly type: ChangeType.EnumValueDeprecationReasonAdded;
54
+ readonly message: string;
55
+ readonly path: string;
56
+ readonly meta: {
57
+ enumName: string;
58
+ enumValueName: string;
59
+ addedValueDeprecationReason: string;
60
+ };
61
+ };
62
+ export declare function enumValueDeprecationReasonAdded(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, newValue: GraphQLEnumValue): Change<ChangeType.EnumValueDeprecationReasonAdded>;
63
+ export declare function enumValueDeprecationReasonRemovedFromMeta(args: EnumValueDeprecationReasonRemovedChange): {
64
+ readonly criticality: {
65
+ readonly level: CriticalityLevel.NonBreaking;
66
+ };
67
+ readonly type: ChangeType.EnumValueDeprecationReasonRemoved;
68
+ readonly message: string;
69
+ readonly path: string;
70
+ readonly meta: {
71
+ enumName: string;
72
+ enumValueName: string;
73
+ removedEnumValueDeprecationReason: string;
74
+ };
75
+ };
76
+ export declare function enumValueDeprecationReasonRemoved(newEnum: GraphQLEnumType, oldValue: GraphQLEnumValue, _newValue: GraphQLEnumValue): Change<ChangeType.EnumValueDeprecationReasonRemoved>;
@@ -1,15 +1,190 @@
1
1
  import { GraphQLArgument, GraphQLField, GraphQLInterfaceType, GraphQLObjectType } from 'graphql';
2
- import { Change } from './change.cjs';
3
- export declare function fieldRemoved(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any, any>): Change;
4
- export declare function fieldAdded(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any, any>): Change;
5
- export declare function fieldDescriptionChanged(type: GraphQLObjectType | GraphQLInterfaceType, oldField: GraphQLField<any, any>, newField: GraphQLField<any, any>): Change;
6
- export declare function fieldDescriptionAdded(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change;
7
- export declare function fieldDescriptionRemoved(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change;
8
- export declare function fieldDeprecationAdded(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change;
9
- export declare function fieldDeprecationRemoved(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change;
10
- export declare function fieldDeprecationReasonChanged(type: GraphQLObjectType | GraphQLInterfaceType, oldField: GraphQLField<any, any>, newField: GraphQLField<any, any>): Change;
11
- export declare function fieldDeprecationReasonAdded(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change;
12
- export declare function fieldDeprecationReasonRemoved(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change;
13
- export declare function fieldTypeChanged(type: GraphQLObjectType | GraphQLInterfaceType, oldField: GraphQLField<any, any, any>, newField: GraphQLField<any, any, any>): Change;
14
- export declare function fieldArgumentAdded(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any, any>, arg: GraphQLArgument): Change;
15
- export declare function fieldArgumentRemoved(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any, any>, arg: GraphQLArgument): Change;
2
+ import { Change, ChangeType, CriticalityLevel, FieldAddedChange, FieldArgumentAddedChange, FieldArgumentRemovedChange, FieldDeprecationAddedChange, FieldDeprecationReasonAddedChange, FieldDeprecationReasonChangedChange, FieldDeprecationReasonRemovedChange, FieldDeprecationRemovedChange, FieldDescriptionAddedChange, FieldDescriptionChangedChange, FieldDescriptionRemovedChange, FieldRemovedChange, FieldTypeChangedChange } from './change.cjs';
3
+ export declare function fieldRemovedFromMeta(args: FieldRemovedChange): {
4
+ readonly type: ChangeType.FieldRemoved;
5
+ readonly criticality: {
6
+ readonly level: CriticalityLevel.Breaking;
7
+ readonly reason: "Removing a deprecated field is a breaking change. Before removing it, you may want to look at the field's usage to see the impact of removing the field." | "Removing a field is a breaking change. It is preferable to deprecate the field before removing it.";
8
+ };
9
+ readonly message: string;
10
+ readonly meta: {
11
+ typeName: string;
12
+ removedFieldName: string;
13
+ isRemovedFieldDeprecated: boolean;
14
+ typeType: string;
15
+ };
16
+ readonly path: string;
17
+ };
18
+ export declare function fieldRemoved(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any, any>): Change<ChangeType.FieldRemoved>;
19
+ export declare function fieldAddedFromMeta(args: FieldAddedChange): {
20
+ readonly type: ChangeType.FieldAdded;
21
+ readonly criticality: {
22
+ readonly level: CriticalityLevel.NonBreaking;
23
+ };
24
+ readonly message: string;
25
+ readonly meta: {
26
+ typeName: string;
27
+ addedFieldName: string;
28
+ typeType: string;
29
+ };
30
+ readonly path: string;
31
+ };
32
+ export declare function fieldAdded(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any, any>): Change<ChangeType.FieldAdded>;
33
+ export declare function fieldDescriptionChangedFromMeta(args: FieldDescriptionChangedChange): {
34
+ readonly type: ChangeType.FieldDescriptionChanged;
35
+ readonly criticality: {
36
+ readonly level: CriticalityLevel.NonBreaking;
37
+ };
38
+ readonly message: string;
39
+ readonly meta: {
40
+ typeName: string;
41
+ fieldName: string;
42
+ oldDescription: string;
43
+ newDescription: string;
44
+ };
45
+ readonly path: string;
46
+ };
47
+ export declare function fieldDescriptionChanged(type: GraphQLObjectType | GraphQLInterfaceType, oldField: GraphQLField<any, any>, newField: GraphQLField<any, any>): Change<ChangeType.FieldDescriptionChanged>;
48
+ export declare function fieldDescriptionAddedFromMeta(args: FieldDescriptionAddedChange): {
49
+ readonly type: ChangeType.FieldDescriptionAdded;
50
+ readonly criticality: {
51
+ readonly level: CriticalityLevel.NonBreaking;
52
+ };
53
+ readonly message: string;
54
+ readonly meta: {
55
+ typeName: string;
56
+ fieldName: string;
57
+ addedDescription: string;
58
+ };
59
+ readonly path: string;
60
+ };
61
+ export declare function fieldDescriptionAdded(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change<ChangeType.FieldDescriptionAdded>;
62
+ export declare function fieldDescriptionRemovedFromMeta(args: FieldDescriptionRemovedChange): {
63
+ readonly type: ChangeType.FieldDescriptionRemoved;
64
+ readonly criticality: {
65
+ readonly level: CriticalityLevel.NonBreaking;
66
+ };
67
+ readonly message: string;
68
+ readonly meta: {
69
+ typeName: string;
70
+ fieldName: string;
71
+ };
72
+ readonly path: string;
73
+ };
74
+ export declare function fieldDescriptionRemoved(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change<ChangeType.FieldDescriptionRemoved>;
75
+ export declare function fieldDeprecationAddedFromMeta(args: FieldDeprecationAddedChange): {
76
+ readonly type: ChangeType.FieldDeprecationAdded;
77
+ readonly criticality: {
78
+ readonly level: CriticalityLevel.NonBreaking;
79
+ };
80
+ readonly message: string;
81
+ readonly meta: {
82
+ typeName: string;
83
+ fieldName: string;
84
+ };
85
+ readonly path: string;
86
+ };
87
+ export declare function fieldDeprecationAdded(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change<ChangeType.FieldDeprecationAdded>;
88
+ export declare function fieldDeprecationRemovedFromMeta(args: FieldDeprecationRemovedChange): {
89
+ readonly type: ChangeType.FieldDeprecationRemoved;
90
+ readonly criticality: {
91
+ readonly level: CriticalityLevel.Dangerous;
92
+ };
93
+ readonly message: `Field '${string}.${string}' is no longer deprecated`;
94
+ readonly meta: {
95
+ typeName: string;
96
+ fieldName: string;
97
+ };
98
+ readonly path: string;
99
+ };
100
+ export declare function fieldDeprecationRemoved(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change<ChangeType.FieldDeprecationRemoved>;
101
+ export declare function fieldDeprecationReasonChangedFromMeta(args: FieldDeprecationReasonChangedChange): {
102
+ readonly type: ChangeType.FieldDeprecationReasonChanged;
103
+ readonly criticality: {
104
+ readonly level: CriticalityLevel.NonBreaking;
105
+ };
106
+ readonly message: string;
107
+ readonly meta: {
108
+ typeName: string;
109
+ fieldName: string;
110
+ oldDeprecationReason: string;
111
+ newDeprecationReason: string;
112
+ };
113
+ readonly path: string;
114
+ };
115
+ export declare function fieldDeprecationReasonChanged(type: GraphQLObjectType | GraphQLInterfaceType, oldField: GraphQLField<any, any>, newField: GraphQLField<any, any>): Change<ChangeType.FieldDeprecationReasonChanged>;
116
+ export declare function fieldDeprecationReasonAddedFromMeta(args: FieldDeprecationReasonAddedChange): {
117
+ readonly type: ChangeType.FieldDeprecationReasonAdded;
118
+ readonly criticality: {
119
+ readonly level: CriticalityLevel.NonBreaking;
120
+ };
121
+ readonly message: string;
122
+ readonly meta: {
123
+ typeName: string;
124
+ fieldName: string;
125
+ addedDeprecationReason: string;
126
+ };
127
+ readonly path: string;
128
+ };
129
+ export declare function fieldDeprecationReasonAdded(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change<ChangeType.FieldDeprecationReasonAdded>;
130
+ export declare function fieldDeprecationReasonRemovedFromMeta(args: FieldDeprecationReasonRemovedChange): {
131
+ readonly type: ChangeType.FieldDeprecationReasonRemoved;
132
+ readonly criticality: {
133
+ readonly level: CriticalityLevel.NonBreaking;
134
+ };
135
+ readonly message: `Deprecation reason was removed from field '${string}.${string}'`;
136
+ readonly meta: {
137
+ typeName: string;
138
+ fieldName: string;
139
+ };
140
+ readonly path: string;
141
+ };
142
+ export declare function fieldDeprecationReasonRemoved(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change<ChangeType.FieldDeprecationReasonRemoved>;
143
+ export declare function fieldTypeChangedFromMeta(args: FieldTypeChangedChange): {
144
+ readonly type: ChangeType.FieldTypeChanged;
145
+ readonly criticality: {
146
+ readonly level: CriticalityLevel.Breaking | CriticalityLevel.NonBreaking;
147
+ };
148
+ readonly message: string;
149
+ readonly meta: {
150
+ typeName: string;
151
+ fieldName: string;
152
+ oldFieldType: string;
153
+ newFieldType: string;
154
+ isSafeFieldTypeChange: boolean;
155
+ };
156
+ readonly path: string;
157
+ };
158
+ export declare function fieldTypeChanged(type: GraphQLObjectType | GraphQLInterfaceType, oldField: GraphQLField<any, any, any>, newField: GraphQLField<any, any, any>): Change<ChangeType.FieldTypeChanged>;
159
+ export declare function fieldArgumentAddedFromMeta(args: FieldArgumentAddedChange): {
160
+ readonly type: ChangeType.FieldArgumentAdded;
161
+ readonly criticality: {
162
+ readonly level: CriticalityLevel.Breaking | CriticalityLevel.Dangerous;
163
+ };
164
+ readonly message: string;
165
+ readonly meta: {
166
+ typeName: string;
167
+ fieldName: string;
168
+ addedArgumentName: string;
169
+ addedArgumentType: string;
170
+ hasDefaultValue: boolean;
171
+ isAddedFieldArgumentBreaking: boolean;
172
+ };
173
+ readonly path: string;
174
+ };
175
+ export declare function fieldArgumentAdded(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any, any>, arg: GraphQLArgument): Change<ChangeType.FieldArgumentAdded>;
176
+ export declare function fieldArgumentRemovedFromMeta(args: FieldArgumentRemovedChange): {
177
+ readonly type: ChangeType.FieldArgumentRemoved;
178
+ readonly criticality: {
179
+ readonly level: CriticalityLevel.Breaking;
180
+ };
181
+ readonly message: string;
182
+ readonly meta: {
183
+ typeName: string;
184
+ fieldName: string;
185
+ removedFieldArgumentName: string;
186
+ removedFieldType: string;
187
+ };
188
+ readonly path: string;
189
+ };
190
+ export declare function fieldArgumentRemoved(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any, any>, arg: GraphQLArgument): Change<ChangeType.FieldArgumentRemoved>;