@graphql-inspector/core 7.1.0-alpha-20251120234936-a610dbbf089ec9d85ff4ed1be60ed3ac2f019142 → 7.1.0-alpha-20251210011837-ed57c921c80feafc1e499b3e92955f7a79b551ee
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,7 +14,7 @@ function schemaQueryTypeChangedFromMeta(args) {
|
|
|
14
14
|
return {
|
|
15
15
|
type: change_js_1.ChangeType.SchemaQueryTypeChanged,
|
|
16
16
|
criticality: {
|
|
17
|
-
level: args.meta.oldQueryTypeName ===
|
|
17
|
+
level: args.meta.oldQueryTypeName === null
|
|
18
18
|
? change_js_1.CriticalityLevel.NonBreaking
|
|
19
19
|
: change_js_1.CriticalityLevel.Breaking,
|
|
20
20
|
},
|
|
@@ -23,8 +23,8 @@ function schemaQueryTypeChangedFromMeta(args) {
|
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
function schemaQueryTypeChanged(oldSchema, newSchema) {
|
|
26
|
-
const oldName =
|
|
27
|
-
const newName =
|
|
26
|
+
const oldName = oldSchema?.getQueryType()?.name || null;
|
|
27
|
+
const newName = newSchema?.getQueryType()?.name || null;
|
|
28
28
|
return schemaQueryTypeChangedFromMeta({
|
|
29
29
|
type: change_js_1.ChangeType.SchemaQueryTypeChanged,
|
|
30
30
|
meta: {
|
|
@@ -40,7 +40,7 @@ function schemaMutationTypeChangedFromMeta(args) {
|
|
|
40
40
|
return {
|
|
41
41
|
type: change_js_1.ChangeType.SchemaMutationTypeChanged,
|
|
42
42
|
criticality: {
|
|
43
|
-
level: args.meta.oldMutationTypeName ===
|
|
43
|
+
level: args.meta.oldMutationTypeName === null
|
|
44
44
|
? change_js_1.CriticalityLevel.NonBreaking
|
|
45
45
|
: change_js_1.CriticalityLevel.Breaking,
|
|
46
46
|
},
|
|
@@ -49,8 +49,8 @@ function schemaMutationTypeChangedFromMeta(args) {
|
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
function schemaMutationTypeChanged(oldSchema, newSchema) {
|
|
52
|
-
const oldName =
|
|
53
|
-
const newName =
|
|
52
|
+
const oldName = oldSchema?.getMutationType()?.name || null;
|
|
53
|
+
const newName = newSchema?.getMutationType()?.name || null;
|
|
54
54
|
return schemaMutationTypeChangedFromMeta({
|
|
55
55
|
type: change_js_1.ChangeType.SchemaMutationTypeChanged,
|
|
56
56
|
meta: {
|
|
@@ -66,7 +66,7 @@ function schemaSubscriptionTypeChangedFromMeta(args) {
|
|
|
66
66
|
return {
|
|
67
67
|
type: change_js_1.ChangeType.SchemaSubscriptionTypeChanged,
|
|
68
68
|
criticality: {
|
|
69
|
-
level: args.meta.oldSubscriptionTypeName ===
|
|
69
|
+
level: args.meta.oldSubscriptionTypeName === null
|
|
70
70
|
? change_js_1.CriticalityLevel.NonBreaking
|
|
71
71
|
: change_js_1.CriticalityLevel.Breaking,
|
|
72
72
|
},
|
|
@@ -75,8 +75,8 @@ function schemaSubscriptionTypeChangedFromMeta(args) {
|
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
77
|
function schemaSubscriptionTypeChanged(oldSchema, newSchema) {
|
|
78
|
-
const oldName =
|
|
79
|
-
const newName =
|
|
78
|
+
const oldName = oldSchema?.getSubscriptionType()?.name || null;
|
|
79
|
+
const newName = newSchema?.getSubscriptionType()?.name || null;
|
|
80
80
|
return schemaSubscriptionTypeChangedFromMeta({
|
|
81
81
|
type: change_js_1.ChangeType.SchemaSubscriptionTypeChanged,
|
|
82
82
|
meta: {
|
|
@@ -6,7 +6,7 @@ export function schemaQueryTypeChangedFromMeta(args) {
|
|
|
6
6
|
return {
|
|
7
7
|
type: ChangeType.SchemaQueryTypeChanged,
|
|
8
8
|
criticality: {
|
|
9
|
-
level: args.meta.oldQueryTypeName ===
|
|
9
|
+
level: args.meta.oldQueryTypeName === null
|
|
10
10
|
? CriticalityLevel.NonBreaking
|
|
11
11
|
: CriticalityLevel.Breaking,
|
|
12
12
|
},
|
|
@@ -15,8 +15,8 @@ export function schemaQueryTypeChangedFromMeta(args) {
|
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
export function schemaQueryTypeChanged(oldSchema, newSchema) {
|
|
18
|
-
const oldName =
|
|
19
|
-
const newName =
|
|
18
|
+
const oldName = oldSchema?.getQueryType()?.name || null;
|
|
19
|
+
const newName = newSchema?.getQueryType()?.name || null;
|
|
20
20
|
return schemaQueryTypeChangedFromMeta({
|
|
21
21
|
type: ChangeType.SchemaQueryTypeChanged,
|
|
22
22
|
meta: {
|
|
@@ -32,7 +32,7 @@ export function schemaMutationTypeChangedFromMeta(args) {
|
|
|
32
32
|
return {
|
|
33
33
|
type: ChangeType.SchemaMutationTypeChanged,
|
|
34
34
|
criticality: {
|
|
35
|
-
level: args.meta.oldMutationTypeName ===
|
|
35
|
+
level: args.meta.oldMutationTypeName === null
|
|
36
36
|
? CriticalityLevel.NonBreaking
|
|
37
37
|
: CriticalityLevel.Breaking,
|
|
38
38
|
},
|
|
@@ -41,8 +41,8 @@ export function schemaMutationTypeChangedFromMeta(args) {
|
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
export function schemaMutationTypeChanged(oldSchema, newSchema) {
|
|
44
|
-
const oldName =
|
|
45
|
-
const newName =
|
|
44
|
+
const oldName = oldSchema?.getMutationType()?.name || null;
|
|
45
|
+
const newName = newSchema?.getMutationType()?.name || null;
|
|
46
46
|
return schemaMutationTypeChangedFromMeta({
|
|
47
47
|
type: ChangeType.SchemaMutationTypeChanged,
|
|
48
48
|
meta: {
|
|
@@ -58,7 +58,7 @@ export function schemaSubscriptionTypeChangedFromMeta(args) {
|
|
|
58
58
|
return {
|
|
59
59
|
type: ChangeType.SchemaSubscriptionTypeChanged,
|
|
60
60
|
criticality: {
|
|
61
|
-
level: args.meta.oldSubscriptionTypeName ===
|
|
61
|
+
level: args.meta.oldSubscriptionTypeName === null
|
|
62
62
|
? CriticalityLevel.NonBreaking
|
|
63
63
|
: CriticalityLevel.Breaking,
|
|
64
64
|
},
|
|
@@ -67,8 +67,8 @@ export function schemaSubscriptionTypeChangedFromMeta(args) {
|
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
69
|
export function schemaSubscriptionTypeChanged(oldSchema, newSchema) {
|
|
70
|
-
const oldName =
|
|
71
|
-
const newName =
|
|
70
|
+
const oldName = oldSchema?.getSubscriptionType()?.name || null;
|
|
71
|
+
const newName = newSchema?.getSubscriptionType()?.name || null;
|
|
72
72
|
return schemaSubscriptionTypeChangedFromMeta({
|
|
73
73
|
type: ChangeType.SchemaSubscriptionTypeChanged,
|
|
74
74
|
meta: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-inspector/core",
|
|
3
|
-
"version": "7.1.0-alpha-
|
|
3
|
+
"version": "7.1.0-alpha-20251210011837-ed57c921c80feafc1e499b3e92955f7a79b551ee",
|
|
4
4
|
"description": "Tooling for GraphQL. Compare GraphQL Schemas, check documents, find breaking changes, find similar types.",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
@@ -491,22 +491,22 @@ export type ObjectTypeInterfaceRemovedChange = {
|
|
|
491
491
|
export type SchemaQueryTypeChangedChange = {
|
|
492
492
|
type: typeof ChangeType.SchemaQueryTypeChanged;
|
|
493
493
|
meta: {
|
|
494
|
-
oldQueryTypeName: string;
|
|
495
|
-
newQueryTypeName: string;
|
|
494
|
+
oldQueryTypeName: string | null;
|
|
495
|
+
newQueryTypeName: string | null;
|
|
496
496
|
};
|
|
497
497
|
};
|
|
498
498
|
export type SchemaMutationTypeChangedChange = {
|
|
499
499
|
type: typeof ChangeType.SchemaMutationTypeChanged;
|
|
500
500
|
meta: {
|
|
501
|
-
oldMutationTypeName: string;
|
|
502
|
-
newMutationTypeName: string;
|
|
501
|
+
oldMutationTypeName: string | null;
|
|
502
|
+
newMutationTypeName: string | null;
|
|
503
503
|
};
|
|
504
504
|
};
|
|
505
505
|
export type SchemaSubscriptionTypeChangedChange = {
|
|
506
506
|
type: typeof ChangeType.SchemaSubscriptionTypeChanged;
|
|
507
507
|
meta: {
|
|
508
|
-
oldSubscriptionTypeName: string;
|
|
509
|
-
newSubscriptionTypeName: string;
|
|
508
|
+
oldSubscriptionTypeName: string | null;
|
|
509
|
+
newSubscriptionTypeName: string | null;
|
|
510
510
|
};
|
|
511
511
|
};
|
|
512
512
|
export type TypeRemovedChange = {
|
|
@@ -491,22 +491,22 @@ export type ObjectTypeInterfaceRemovedChange = {
|
|
|
491
491
|
export type SchemaQueryTypeChangedChange = {
|
|
492
492
|
type: typeof ChangeType.SchemaQueryTypeChanged;
|
|
493
493
|
meta: {
|
|
494
|
-
oldQueryTypeName: string;
|
|
495
|
-
newQueryTypeName: string;
|
|
494
|
+
oldQueryTypeName: string | null;
|
|
495
|
+
newQueryTypeName: string | null;
|
|
496
496
|
};
|
|
497
497
|
};
|
|
498
498
|
export type SchemaMutationTypeChangedChange = {
|
|
499
499
|
type: typeof ChangeType.SchemaMutationTypeChanged;
|
|
500
500
|
meta: {
|
|
501
|
-
oldMutationTypeName: string;
|
|
502
|
-
newMutationTypeName: string;
|
|
501
|
+
oldMutationTypeName: string | null;
|
|
502
|
+
newMutationTypeName: string | null;
|
|
503
503
|
};
|
|
504
504
|
};
|
|
505
505
|
export type SchemaSubscriptionTypeChangedChange = {
|
|
506
506
|
type: typeof ChangeType.SchemaSubscriptionTypeChanged;
|
|
507
507
|
meta: {
|
|
508
|
-
oldSubscriptionTypeName: string;
|
|
509
|
-
newSubscriptionTypeName: string;
|
|
508
|
+
oldSubscriptionTypeName: string | null;
|
|
509
|
+
newSubscriptionTypeName: string | null;
|
|
510
510
|
};
|
|
511
511
|
};
|
|
512
512
|
export type TypeRemovedChange = {
|
|
@@ -7,8 +7,8 @@ export declare function schemaQueryTypeChangedFromMeta(args: SchemaQueryTypeChan
|
|
|
7
7
|
};
|
|
8
8
|
readonly message: string;
|
|
9
9
|
readonly meta: {
|
|
10
|
-
oldQueryTypeName: string;
|
|
11
|
-
newQueryTypeName: string;
|
|
10
|
+
oldQueryTypeName: string | null;
|
|
11
|
+
newQueryTypeName: string | null;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
export declare function schemaQueryTypeChanged(oldSchema: GraphQLSchema | null, newSchema: GraphQLSchema | null): Change<typeof ChangeType.SchemaQueryTypeChanged>;
|
|
@@ -19,8 +19,8 @@ export declare function schemaMutationTypeChangedFromMeta(args: SchemaMutationTy
|
|
|
19
19
|
};
|
|
20
20
|
readonly message: string;
|
|
21
21
|
readonly meta: {
|
|
22
|
-
oldMutationTypeName: string;
|
|
23
|
-
newMutationTypeName: string;
|
|
22
|
+
oldMutationTypeName: string | null;
|
|
23
|
+
newMutationTypeName: string | null;
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
export declare function schemaMutationTypeChanged(oldSchema: GraphQLSchema | null, newSchema: GraphQLSchema | null): Change<typeof ChangeType.SchemaMutationTypeChanged>;
|
|
@@ -31,8 +31,8 @@ export declare function schemaSubscriptionTypeChangedFromMeta(args: SchemaSubscr
|
|
|
31
31
|
};
|
|
32
32
|
readonly message: string;
|
|
33
33
|
readonly meta: {
|
|
34
|
-
oldSubscriptionTypeName: string;
|
|
35
|
-
newSubscriptionTypeName: string;
|
|
34
|
+
oldSubscriptionTypeName: string | null;
|
|
35
|
+
newSubscriptionTypeName: string | null;
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
export declare function schemaSubscriptionTypeChanged(oldSchema: GraphQLSchema | null, newSchema: GraphQLSchema | null): Change<typeof ChangeType.SchemaSubscriptionTypeChanged>;
|
|
@@ -7,8 +7,8 @@ export declare function schemaQueryTypeChangedFromMeta(args: SchemaQueryTypeChan
|
|
|
7
7
|
};
|
|
8
8
|
readonly message: string;
|
|
9
9
|
readonly meta: {
|
|
10
|
-
oldQueryTypeName: string;
|
|
11
|
-
newQueryTypeName: string;
|
|
10
|
+
oldQueryTypeName: string | null;
|
|
11
|
+
newQueryTypeName: string | null;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
export declare function schemaQueryTypeChanged(oldSchema: GraphQLSchema | null, newSchema: GraphQLSchema | null): Change<typeof ChangeType.SchemaQueryTypeChanged>;
|
|
@@ -19,8 +19,8 @@ export declare function schemaMutationTypeChangedFromMeta(args: SchemaMutationTy
|
|
|
19
19
|
};
|
|
20
20
|
readonly message: string;
|
|
21
21
|
readonly meta: {
|
|
22
|
-
oldMutationTypeName: string;
|
|
23
|
-
newMutationTypeName: string;
|
|
22
|
+
oldMutationTypeName: string | null;
|
|
23
|
+
newMutationTypeName: string | null;
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
export declare function schemaMutationTypeChanged(oldSchema: GraphQLSchema | null, newSchema: GraphQLSchema | null): Change<typeof ChangeType.SchemaMutationTypeChanged>;
|
|
@@ -31,8 +31,8 @@ export declare function schemaSubscriptionTypeChangedFromMeta(args: SchemaSubscr
|
|
|
31
31
|
};
|
|
32
32
|
readonly message: string;
|
|
33
33
|
readonly meta: {
|
|
34
|
-
oldSubscriptionTypeName: string;
|
|
35
|
-
newSubscriptionTypeName: string;
|
|
34
|
+
oldSubscriptionTypeName: string | null;
|
|
35
|
+
newSubscriptionTypeName: string | null;
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
export declare function schemaSubscriptionTypeChanged(oldSchema: GraphQLSchema | null, newSchema: GraphQLSchema | null): Change<typeof ChangeType.SchemaSubscriptionTypeChanged>;
|