Skip to content

Commit

Permalink
findBreakingChanges: Remove 'export' from internal functions (#1895)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
IvanGoncharov committed May 22, 2019
1 parent c0cf659 commit 93a3bda
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/utilities/findBreakingChanges.js
Expand Up @@ -116,7 +116,7 @@ export function findDangerousChanges(
* Given two schemas, returns an Array containing descriptions of any breaking
* changes in the newSchema related to removing an entire type.
*/
export function findRemovedTypes(
function findRemovedTypes(
oldSchema: GraphQLSchema,
newSchema: GraphQLSchema,
): Array<BreakingChange> {
Expand All @@ -139,7 +139,7 @@ export function findRemovedTypes(
* Given two schemas, returns an Array containing descriptions of any breaking
* changes in the newSchema related to changing the type of a type.
*/
export function findTypesThatChangedKind(
function findTypesThatChangedKind(
oldSchema: GraphQLSchema,
newSchema: GraphQLSchema,
): Array<BreakingChange> {
Expand Down Expand Up @@ -171,7 +171,7 @@ export function findTypesThatChangedKind(
* (such as removal or change of type of an argument, or a change in an
* argument's default value).
*/
export function findArgChanges(
function findArgChanges(
oldSchema: GraphQLSchema,
newSchema: GraphQLSchema,
): {
Expand Down Expand Up @@ -295,7 +295,7 @@ function typeKindName(type: GraphQLNamedType): string {
throw new TypeError('Unknown type ' + type.constructor.name);
}

export function findFieldsThatChangedTypeOnObjectOrInterfaceTypes(
function findFieldsThatChangedTypeOnObjectOrInterfaceTypes(
oldSchema: GraphQLSchema,
newSchema: GraphQLSchema,
): Array<BreakingChange> {
Expand Down Expand Up @@ -350,7 +350,7 @@ export function findFieldsThatChangedTypeOnObjectOrInterfaceTypes(
return breakingChanges;
}

export function findFieldsThatChangedTypeOnInputObjectTypes(
function findFieldsThatChangedTypeOnInputObjectTypes(
oldSchema: GraphQLSchema,
newSchema: GraphQLSchema,
): {
Expand Down Expand Up @@ -497,7 +497,7 @@ function isChangeSafeForInputObjectFieldOrFieldArg(
* Given two schemas, returns an Array containing descriptions of any breaking
* changes in the newSchema related to removing types from a union type.
*/
export function findTypesRemovedFromUnions(
function findTypesRemovedFromUnions(
oldSchema: GraphQLSchema,
newSchema: GraphQLSchema,
): Array<BreakingChange> {
Expand Down Expand Up @@ -531,7 +531,7 @@ export function findTypesRemovedFromUnions(
* Given two schemas, returns an Array containing descriptions of any dangerous
* changes in the newSchema related to adding types to a union type.
*/
export function findTypesAddedToUnions(
function findTypesAddedToUnions(
oldSchema: GraphQLSchema,
newSchema: GraphQLSchema,
): Array<DangerousChange> {
Expand Down Expand Up @@ -564,7 +564,7 @@ export function findTypesAddedToUnions(
* Given two schemas, returns an Array containing descriptions of any breaking
* changes in the newSchema related to removing values from an enum type.
*/
export function findValuesRemovedFromEnums(
function findValuesRemovedFromEnums(
oldSchema: GraphQLSchema,
newSchema: GraphQLSchema,
): Array<BreakingChange> {
Expand Down Expand Up @@ -598,7 +598,7 @@ export function findValuesRemovedFromEnums(
* Given two schemas, returns an Array containing descriptions of any dangerous
* changes in the newSchema related to adding values to an enum type.
*/
export function findValuesAddedToEnums(
function findValuesAddedToEnums(
oldSchema: GraphQLSchema,
newSchema: GraphQLSchema,
): Array<DangerousChange> {
Expand Down Expand Up @@ -629,7 +629,7 @@ export function findValuesAddedToEnums(
return valuesAddedToEnums;
}

export function findInterfacesRemovedFromObjectTypes(
function findInterfacesRemovedFromObjectTypes(
oldSchema: GraphQLSchema,
newSchema: GraphQLSchema,
): Array<BreakingChange> {
Expand Down Expand Up @@ -660,7 +660,7 @@ export function findInterfacesRemovedFromObjectTypes(
return breakingChanges;
}

export function findInterfacesAddedToObjectTypes(
function findInterfacesAddedToObjectTypes(
oldSchema: GraphQLSchema,
newSchema: GraphQLSchema,
): Array<DangerousChange> {
Expand Down Expand Up @@ -691,7 +691,7 @@ export function findInterfacesAddedToObjectTypes(
return interfacesAddedToObjectTypes;
}

export function findRemovedDirectives(
function findRemovedDirectives(
oldSchema: GraphQLSchema,
newSchema: GraphQLSchema,
): Array<BreakingChange> {
Expand Down Expand Up @@ -726,7 +726,7 @@ function findRemovedArgsForDirective(
return removedArgs;
}

export function findRemovedDirectiveArgs(
function findRemovedDirectiveArgs(
oldSchema: GraphQLSchema,
newSchema: GraphQLSchema,
): Array<BreakingChange> {
Expand Down Expand Up @@ -766,7 +766,7 @@ function findAddedArgsForDirective(
return addedArgs;
}

export function findAddedNonNullDirectiveArgs(
function findAddedNonNullDirectiveArgs(
oldSchema: GraphQLSchema,
newSchema: GraphQLSchema,
): Array<BreakingChange> {
Expand Down Expand Up @@ -794,7 +794,7 @@ export function findAddedNonNullDirectiveArgs(
return addedNonNullableArgs;
}

export function findRemovedLocationsForDirective(
function findRemovedLocationsForDirective(
oldDirective: GraphQLDirective,
newDirective: GraphQLDirective,
): Array<DirectiveLocationEnum> {
Expand All @@ -810,7 +810,7 @@ export function findRemovedLocationsForDirective(
return removedLocations;
}

export function findRemovedDirectiveLocations(
function findRemovedDirectiveLocations(
oldSchema: GraphQLSchema,
newSchema: GraphQLSchema,
): Array<BreakingChange> {
Expand Down

0 comments on commit 93a3bda

Please sign in to comment.