Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

findBreakingChanges: Remove 'export' from internal functions #1895

Merged
merged 1 commit into from May 22, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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