Skip to content

Commit d4a1114

Browse files
committed
Alternative approach for findSchemaChanges
1 parent 0254e5f commit d4a1114

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ export {
474474
DangerousChangeType,
475475
findBreakingChanges,
476476
findDangerousChanges,
477+
findSchemaChanges,
477478
} from './utilities/index.js';
478479

479480
export type {

src/utilities/findBreakingChanges.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ export interface DangerousChange {
7878
/**
7979
* Given two schemas, returns an Array containing descriptions of all the types
8080
* of breaking changes covered by the other functions down below.
81+
*
82+
* @deprecated Please use `findSchemaChanges` instead. Will be removed in v18.
8183
*/
8284
export function findBreakingChanges(
8385
oldSchema: GraphQLSchema,
@@ -92,6 +94,8 @@ export function findBreakingChanges(
9294
/**
9395
* Given two schemas, returns an Array containing descriptions of all the types
9496
* of potentially dangerous changes covered by the other functions down below.
97+
*
98+
* @deprecated Please use `findSchemaChanges` instead. Will be removed in v18.
9599
*/
96100
export function findDangerousChanges(
97101
oldSchema: GraphQLSchema,
@@ -103,7 +107,7 @@ export function findDangerousChanges(
103107
);
104108
}
105109

106-
function findSchemaChanges(
110+
export function findSchemaChanges(
107111
oldSchema: GraphQLSchema,
108112
newSchema: GraphQLSchema,
109113
): Array<BreakingChange | DangerousChange> {

src/utilities/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ export {
106106
DangerousChangeType,
107107
findBreakingChanges,
108108
findDangerousChanges,
109+
findSchemaChanges,
109110
} from './findBreakingChanges.js';
110111
export type { BreakingChange, DangerousChange } from './findBreakingChanges.js';
111112

0 commit comments

Comments
 (0)