@graphql-inspector/core 7.1.0-alpha-20251210011837-ed57c921c80feafc1e499b3e92955f7a79b551ee → 7.1.0-alpha-20251210214408-83e88e0012f7cbffde895b877242a59aee57ecc0
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.
- package/cjs/diff/changes/schema.js +21 -3
- package/esm/diff/changes/schema.js +21 -3
- package/package.json +1 -1
|
@@ -8,7 +8,13 @@ exports.schemaSubscriptionTypeChangedFromMeta = schemaSubscriptionTypeChangedFro
|
|
|
8
8
|
exports.schemaSubscriptionTypeChanged = schemaSubscriptionTypeChanged;
|
|
9
9
|
const change_js_1 = require("./change.js");
|
|
10
10
|
function buildSchemaQueryTypeChangedMessage(args) {
|
|
11
|
-
|
|
11
|
+
if (args.oldQueryTypeName === null) {
|
|
12
|
+
return `Schema query root type was set to '${args.newQueryTypeName}'.`;
|
|
13
|
+
}
|
|
14
|
+
if (args.newQueryTypeName === null) {
|
|
15
|
+
return `Schema query root type '${args.oldQueryTypeName}' was removed.`;
|
|
16
|
+
}
|
|
17
|
+
return `Schema query root type was changed from '${args.oldQueryTypeName}' to '${args.newQueryTypeName}'`;
|
|
12
18
|
}
|
|
13
19
|
function schemaQueryTypeChangedFromMeta(args) {
|
|
14
20
|
return {
|
|
@@ -34,7 +40,13 @@ function schemaQueryTypeChanged(oldSchema, newSchema) {
|
|
|
34
40
|
});
|
|
35
41
|
}
|
|
36
42
|
function buildSchemaMutationTypeChangedMessage(args) {
|
|
37
|
-
|
|
43
|
+
if (args.oldMutationTypeName === null) {
|
|
44
|
+
return `Schema mutation type was set to '${args.newMutationTypeName}'.`;
|
|
45
|
+
}
|
|
46
|
+
if (args.newMutationTypeName === null) {
|
|
47
|
+
return `Schema mutation type '${args.oldMutationTypeName}' was removed.`;
|
|
48
|
+
}
|
|
49
|
+
return `Schema mutation type was changed from '${args.oldMutationTypeName}' to '${args.newMutationTypeName}'`;
|
|
38
50
|
}
|
|
39
51
|
function schemaMutationTypeChangedFromMeta(args) {
|
|
40
52
|
return {
|
|
@@ -60,7 +72,13 @@ function schemaMutationTypeChanged(oldSchema, newSchema) {
|
|
|
60
72
|
});
|
|
61
73
|
}
|
|
62
74
|
function buildSchemaSubscriptionTypeChangedMessage(args) {
|
|
63
|
-
|
|
75
|
+
if (args.oldSubscriptionTypeName === null) {
|
|
76
|
+
return `Schema subscription type was set to '${args.newSubscriptionTypeName}'.`;
|
|
77
|
+
}
|
|
78
|
+
if (args.newSubscriptionTypeName === null) {
|
|
79
|
+
return `Schema subscription type '${args.oldSubscriptionTypeName}' was removed.`;
|
|
80
|
+
}
|
|
81
|
+
return `Schema subscription type was changed from '${args.oldSubscriptionTypeName}' to '${args.newSubscriptionTypeName}'`;
|
|
64
82
|
}
|
|
65
83
|
function schemaSubscriptionTypeChangedFromMeta(args) {
|
|
66
84
|
return {
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { ChangeType, CriticalityLevel, } from './change.js';
|
|
2
2
|
function buildSchemaQueryTypeChangedMessage(args) {
|
|
3
|
-
|
|
3
|
+
if (args.oldQueryTypeName === null) {
|
|
4
|
+
return `Schema query root type was set to '${args.newQueryTypeName}'.`;
|
|
5
|
+
}
|
|
6
|
+
if (args.newQueryTypeName === null) {
|
|
7
|
+
return `Schema query root type '${args.oldQueryTypeName}' was removed.`;
|
|
8
|
+
}
|
|
9
|
+
return `Schema query root type was changed from '${args.oldQueryTypeName}' to '${args.newQueryTypeName}'`;
|
|
4
10
|
}
|
|
5
11
|
export function schemaQueryTypeChangedFromMeta(args) {
|
|
6
12
|
return {
|
|
@@ -26,7 +32,13 @@ export function schemaQueryTypeChanged(oldSchema, newSchema) {
|
|
|
26
32
|
});
|
|
27
33
|
}
|
|
28
34
|
function buildSchemaMutationTypeChangedMessage(args) {
|
|
29
|
-
|
|
35
|
+
if (args.oldMutationTypeName === null) {
|
|
36
|
+
return `Schema mutation type was set to '${args.newMutationTypeName}'.`;
|
|
37
|
+
}
|
|
38
|
+
if (args.newMutationTypeName === null) {
|
|
39
|
+
return `Schema mutation type '${args.oldMutationTypeName}' was removed.`;
|
|
40
|
+
}
|
|
41
|
+
return `Schema mutation type was changed from '${args.oldMutationTypeName}' to '${args.newMutationTypeName}'`;
|
|
30
42
|
}
|
|
31
43
|
export function schemaMutationTypeChangedFromMeta(args) {
|
|
32
44
|
return {
|
|
@@ -52,7 +64,13 @@ export function schemaMutationTypeChanged(oldSchema, newSchema) {
|
|
|
52
64
|
});
|
|
53
65
|
}
|
|
54
66
|
function buildSchemaSubscriptionTypeChangedMessage(args) {
|
|
55
|
-
|
|
67
|
+
if (args.oldSubscriptionTypeName === null) {
|
|
68
|
+
return `Schema subscription type was set to '${args.newSubscriptionTypeName}'.`;
|
|
69
|
+
}
|
|
70
|
+
if (args.newSubscriptionTypeName === null) {
|
|
71
|
+
return `Schema subscription type '${args.oldSubscriptionTypeName}' was removed.`;
|
|
72
|
+
}
|
|
73
|
+
return `Schema subscription type was changed from '${args.oldSubscriptionTypeName}' to '${args.newSubscriptionTypeName}'`;
|
|
56
74
|
}
|
|
57
75
|
export function schemaSubscriptionTypeChangedFromMeta(args) {
|
|
58
76
|
return {
|
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-20251210214408-83e88e0012f7cbffde895b877242a59aee57ecc0",
|
|
4
4
|
"description": "Tooling for GraphQL. Compare GraphQL Schemas, check documents, find breaking changes, find similar types.",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|