@graphql-inspector/cli 6.0.4-alpha-20251210011837-ed57c921c80feafc1e499b3e92955f7a79b551ee → 6.0.4-alpha-20251210220709-671f8b3cdccca39e371f19a9a1cbf9a8ed76eac6

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.
@@ -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
- return `Schema query root has changed from '${args.oldQueryTypeName}' to '${args.newQueryTypeName}'`;
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
- return `Schema mutation root has changed from '${args.oldMutationTypeName}' to '${args.newMutationTypeName}'`;
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
- return `Schema subscription root has changed from '${args.oldSubscriptionTypeName}' to '${args.newSubscriptionTypeName}'`;
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
- return `Schema query root has changed from '${args.oldQueryTypeName}' to '${args.newQueryTypeName}'`;
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
- return `Schema mutation root has changed from '${args.oldMutationTypeName}' to '${args.newMutationTypeName}'`;
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
- return `Schema subscription root has changed from '${args.oldSubscriptionTypeName}' to '${args.newSubscriptionTypeName}'`;
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/cli",
3
- "version": "6.0.4-alpha-20251210011837-ed57c921c80feafc1e499b3e92955f7a79b551ee",
3
+ "version": "6.0.4-alpha-20251210220709-671f8b3cdccca39e371f19a9a1cbf9a8ed76eac6",
4
4
  "description": "Tooling for GraphQL. Compare GraphQL Schemas, check documents, find breaking changes, find similar types.",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
@@ -10,23 +10,23 @@
10
10
  "@babel/core": "7.26.10",
11
11
  "tslib": "2.6.2",
12
12
  "yargs": "17.7.2",
13
- "@graphql-inspector/audit-command": "5.0.16-alpha-20251210011837-ed57c921c80feafc1e499b3e92955f7a79b551ee",
13
+ "@graphql-inspector/audit-command": "5.0.16-alpha-20251210220709-671f8b3cdccca39e371f19a9a1cbf9a8ed76eac6",
14
+ "@graphql-inspector/commands": "6.0.0",
14
15
  "@graphql-inspector/code-loader": "5.0.1",
16
+ "@graphql-inspector/coverage-command": "6.1.10-alpha-20251210220709-671f8b3cdccca39e371f19a9a1cbf9a8ed76eac6",
15
17
  "@graphql-inspector/config": "4.0.2",
16
- "@graphql-inspector/coverage-command": "6.1.10-alpha-20251210011837-ed57c921c80feafc1e499b3e92955f7a79b551ee",
17
- "@graphql-inspector/commands": "6.0.0",
18
+ "@graphql-inspector/diff-command": "6.0.4-alpha-20251210220709-671f8b3cdccca39e371f19a9a1cbf9a8ed76eac6",
18
19
  "@graphql-inspector/docs-command": "5.0.5",
19
- "@graphql-inspector/diff-command": "6.0.4-alpha-20251210011837-ed57c921c80feafc1e499b3e92955f7a79b551ee",
20
+ "@graphql-inspector/github-loader": "5.0.1",
20
21
  "@graphql-inspector/git-loader": "5.0.1",
21
22
  "@graphql-inspector/graphql-loader": "5.0.1",
22
- "@graphql-inspector/introspect-command": "5.0.16-alpha-20251210011837-ed57c921c80feafc1e499b3e92955f7a79b551ee",
23
+ "@graphql-inspector/introspect-command": "5.0.16-alpha-20251210220709-671f8b3cdccca39e371f19a9a1cbf9a8ed76eac6",
23
24
  "@graphql-inspector/json-loader": "5.0.1",
24
25
  "@graphql-inspector/loaders": "4.1.0",
25
26
  "@graphql-inspector/serve-command": "5.0.7",
26
- "@graphql-inspector/similar-command": "5.0.16-alpha-20251210011837-ed57c921c80feafc1e499b3e92955f7a79b551ee",
27
+ "@graphql-inspector/similar-command": "5.0.16-alpha-20251210220709-671f8b3cdccca39e371f19a9a1cbf9a8ed76eac6",
27
28
  "@graphql-inspector/url-loader": "5.0.1",
28
- "@graphql-inspector/validate-command": "5.0.16-alpha-20251210011837-ed57c921c80feafc1e499b3e92955f7a79b551ee",
29
- "@graphql-inspector/github-loader": "5.0.1"
29
+ "@graphql-inspector/validate-command": "5.0.16-alpha-20251210220709-671f8b3cdccca39e371f19a9a1cbf9a8ed76eac6"
30
30
  },
31
31
  "repository": {
32
32
  "type": "git",