Skip to content

Commit 93a3bda

Browse files
findBreakingChanges: Remove 'export' from internal functions (#1895)
Note: Only functions exported by `index.js` are treated as part of Public API https://github.com/graphql/graphql-js/blob/c0cf659d5036d2ec536a8805bc993cf85936d26d/src/utilities/index.js#L124-L130
1 parent c0cf659 commit 93a3bda

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/utilities/findBreakingChanges.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export function findDangerousChanges(
116116
* Given two schemas, returns an Array containing descriptions of any breaking
117117
* changes in the newSchema related to removing an entire type.
118118
*/
119-
export function findRemovedTypes(
119+
function findRemovedTypes(
120120
oldSchema: GraphQLSchema,
121121
newSchema: GraphQLSchema,
122122
): Array<BreakingChange> {
@@ -139,7 +139,7 @@ export function findRemovedTypes(
139139
* Given two schemas, returns an Array containing descriptions of any breaking
140140
* changes in the newSchema related to changing the type of a type.
141141
*/
142-
export function findTypesThatChangedKind(
142+
function findTypesThatChangedKind(
143143
oldSchema: GraphQLSchema,
144144
newSchema: GraphQLSchema,
145145
): Array<BreakingChange> {
@@ -171,7 +171,7 @@ export function findTypesThatChangedKind(
171171
* (such as removal or change of type of an argument, or a change in an
172172
* argument's default value).
173173
*/
174-
export function findArgChanges(
174+
function findArgChanges(
175175
oldSchema: GraphQLSchema,
176176
newSchema: GraphQLSchema,
177177
): {
@@ -295,7 +295,7 @@ function typeKindName(type: GraphQLNamedType): string {
295295
throw new TypeError('Unknown type ' + type.constructor.name);
296296
}
297297

298-
export function findFieldsThatChangedTypeOnObjectOrInterfaceTypes(
298+
function findFieldsThatChangedTypeOnObjectOrInterfaceTypes(
299299
oldSchema: GraphQLSchema,
300300
newSchema: GraphQLSchema,
301301
): Array<BreakingChange> {
@@ -350,7 +350,7 @@ export function findFieldsThatChangedTypeOnObjectOrInterfaceTypes(
350350
return breakingChanges;
351351
}
352352

353-
export function findFieldsThatChangedTypeOnInputObjectTypes(
353+
function findFieldsThatChangedTypeOnInputObjectTypes(
354354
oldSchema: GraphQLSchema,
355355
newSchema: GraphQLSchema,
356356
): {
@@ -497,7 +497,7 @@ function isChangeSafeForInputObjectFieldOrFieldArg(
497497
* Given two schemas, returns an Array containing descriptions of any breaking
498498
* changes in the newSchema related to removing types from a union type.
499499
*/
500-
export function findTypesRemovedFromUnions(
500+
function findTypesRemovedFromUnions(
501501
oldSchema: GraphQLSchema,
502502
newSchema: GraphQLSchema,
503503
): Array<BreakingChange> {
@@ -531,7 +531,7 @@ export function findTypesRemovedFromUnions(
531531
* Given two schemas, returns an Array containing descriptions of any dangerous
532532
* changes in the newSchema related to adding types to a union type.
533533
*/
534-
export function findTypesAddedToUnions(
534+
function findTypesAddedToUnions(
535535
oldSchema: GraphQLSchema,
536536
newSchema: GraphQLSchema,
537537
): Array<DangerousChange> {
@@ -564,7 +564,7 @@ export function findTypesAddedToUnions(
564564
* Given two schemas, returns an Array containing descriptions of any breaking
565565
* changes in the newSchema related to removing values from an enum type.
566566
*/
567-
export function findValuesRemovedFromEnums(
567+
function findValuesRemovedFromEnums(
568568
oldSchema: GraphQLSchema,
569569
newSchema: GraphQLSchema,
570570
): Array<BreakingChange> {
@@ -598,7 +598,7 @@ export function findValuesRemovedFromEnums(
598598
* Given two schemas, returns an Array containing descriptions of any dangerous
599599
* changes in the newSchema related to adding values to an enum type.
600600
*/
601-
export function findValuesAddedToEnums(
601+
function findValuesAddedToEnums(
602602
oldSchema: GraphQLSchema,
603603
newSchema: GraphQLSchema,
604604
): Array<DangerousChange> {
@@ -629,7 +629,7 @@ export function findValuesAddedToEnums(
629629
return valuesAddedToEnums;
630630
}
631631

632-
export function findInterfacesRemovedFromObjectTypes(
632+
function findInterfacesRemovedFromObjectTypes(
633633
oldSchema: GraphQLSchema,
634634
newSchema: GraphQLSchema,
635635
): Array<BreakingChange> {
@@ -660,7 +660,7 @@ export function findInterfacesRemovedFromObjectTypes(
660660
return breakingChanges;
661661
}
662662

663-
export function findInterfacesAddedToObjectTypes(
663+
function findInterfacesAddedToObjectTypes(
664664
oldSchema: GraphQLSchema,
665665
newSchema: GraphQLSchema,
666666
): Array<DangerousChange> {
@@ -691,7 +691,7 @@ export function findInterfacesAddedToObjectTypes(
691691
return interfacesAddedToObjectTypes;
692692
}
693693

694-
export function findRemovedDirectives(
694+
function findRemovedDirectives(
695695
oldSchema: GraphQLSchema,
696696
newSchema: GraphQLSchema,
697697
): Array<BreakingChange> {
@@ -726,7 +726,7 @@ function findRemovedArgsForDirective(
726726
return removedArgs;
727727
}
728728

729-
export function findRemovedDirectiveArgs(
729+
function findRemovedDirectiveArgs(
730730
oldSchema: GraphQLSchema,
731731
newSchema: GraphQLSchema,
732732
): Array<BreakingChange> {
@@ -766,7 +766,7 @@ function findAddedArgsForDirective(
766766
return addedArgs;
767767
}
768768

769-
export function findAddedNonNullDirectiveArgs(
769+
function findAddedNonNullDirectiveArgs(
770770
oldSchema: GraphQLSchema,
771771
newSchema: GraphQLSchema,
772772
): Array<BreakingChange> {
@@ -794,7 +794,7 @@ export function findAddedNonNullDirectiveArgs(
794794
return addedNonNullableArgs;
795795
}
796796

797-
export function findRemovedLocationsForDirective(
797+
function findRemovedLocationsForDirective(
798798
oldDirective: GraphQLDirective,
799799
newDirective: GraphQLDirective,
800800
): Array<DirectiveLocationEnum> {
@@ -810,7 +810,7 @@ export function findRemovedLocationsForDirective(
810810
return removedLocations;
811811
}
812812

813-
export function findRemovedDirectiveLocations(
813+
function findRemovedDirectiveLocations(
814814
oldSchema: GraphQLSchema,
815815
newSchema: GraphQLSchema,
816816
): Array<BreakingChange> {

0 commit comments

Comments
 (0)