Skip to content

Commit

Permalink
Alternative approach for findSchemaChanges
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Oct 14, 2024
1 parent 0254e5f commit 6d72220
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/utilities/findBreakingChanges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ export interface DangerousChange {
/**
* Given two schemas, returns an Array containing descriptions of all the types
* of breaking changes covered by the other functions down below.
*
* @deprecated Please use `findSchemaChanges` instead. Will be removed in v18.
*/
export function findBreakingChanges(
oldSchema: GraphQLSchema,
Expand All @@ -92,6 +94,8 @@ export function findBreakingChanges(
/**
* Given two schemas, returns an Array containing descriptions of all the types
* of potentially dangerous changes covered by the other functions down below.
*
* @deprecated Please use `findSchemaChanges` instead. Will be removed in v18.
*/
export function findDangerousChanges(
oldSchema: GraphQLSchema,
Expand All @@ -103,7 +107,7 @@ export function findDangerousChanges(
);
}

function findSchemaChanges(
export function findSchemaChanges(
oldSchema: GraphQLSchema,
newSchema: GraphQLSchema,
): Array<BreakingChange | DangerousChange> {
Expand Down
1 change: 1 addition & 0 deletions src/utilities/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export {
DangerousChangeType,
findBreakingChanges,
findDangerousChanges,
findSchemaChanges,
} from './findBreakingChanges.js';
export type { BreakingChange, DangerousChange } from './findBreakingChanges.js';

Expand Down

0 comments on commit 6d72220

Please sign in to comment.