graphql 16.2.0 → 16.3.0-canary.pr.3479.undefined

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.
Files changed (133) hide show
  1. package/error/GraphQLError.d.ts +17 -1
  2. package/error/GraphQLError.js +24 -9
  3. package/error/GraphQLError.mjs +24 -18
  4. package/execution/collectFields.d.ts +2 -2
  5. package/execution/collectFields.js +2 -2
  6. package/execution/collectFields.mjs +1 -1
  7. package/execution/execute.d.ts +5 -5
  8. package/execution/execute.js +12 -12
  9. package/execution/execute.mjs +14 -14
  10. package/execution/index.d.ts +1 -1
  11. package/execution/index.js +6 -0
  12. package/execution/index.mjs +1 -1
  13. package/execution/subscribe.d.ts +1 -1
  14. package/execution/subscribe.js +4 -4
  15. package/execution/subscribe.mjs +2 -2
  16. package/execution/values.d.ts +3 -5
  17. package/execution/values.js +4 -6
  18. package/execution/values.mjs +2 -4
  19. package/graphql.js +4 -4
  20. package/graphql.mjs +1 -1
  21. package/index.d.ts +3 -62
  22. package/index.js +6 -0
  23. package/index.mjs +60 -114
  24. package/jsutils/promiseReduce.mjs +1 -1
  25. package/language/index.d.ts +0 -1
  26. package/language/lexer.d.ts +1 -1
  27. package/language/lexer.js +2 -2
  28. package/language/lexer.mjs +2 -2
  29. package/language/parser.d.ts +40 -40
  30. package/language/parser.js +6 -6
  31. package/language/parser.mjs +4 -4
  32. package/language/predicates.d.ts +4 -4
  33. package/language/printLocation.d.ts +1 -1
  34. package/language/printLocation.mjs +1 -1
  35. package/language/printer.js +2 -2
  36. package/language/printer.mjs +1 -1
  37. package/language/source.js +2 -2
  38. package/language/source.mjs +1 -1
  39. package/language/visitor.js +10 -12
  40. package/language/visitor.mjs +9 -11
  41. package/package.json +3 -3
  42. package/type/assertName.mjs +1 -1
  43. package/type/definition.d.ts +14 -14
  44. package/type/definition.js +11 -11
  45. package/type/definition.mjs +8 -13
  46. package/type/directives.js +6 -6
  47. package/type/directives.mjs +4 -4
  48. package/type/index.d.ts +1 -28
  49. package/type/index.mjs +23 -42
  50. package/type/introspection.d.ts +2 -2
  51. package/type/introspection.js +4 -4
  52. package/type/introspection.mjs +8 -8
  53. package/type/scalars.js +2 -2
  54. package/type/scalars.mjs +1 -1
  55. package/type/schema.d.ts +3 -3
  56. package/type/schema.js +6 -6
  57. package/type/schema.mjs +7 -7
  58. package/type/validate.js +4 -4
  59. package/type/validate.mjs +7 -7
  60. package/utilities/TypeInfo.d.ts +9 -9
  61. package/utilities/TypeInfo.js +2 -2
  62. package/utilities/TypeInfo.mjs +7 -7
  63. package/utilities/astFromValue.js +4 -4
  64. package/utilities/astFromValue.mjs +3 -3
  65. package/utilities/buildASTSchema.d.ts +1 -1
  66. package/utilities/buildASTSchema.js +2 -2
  67. package/utilities/buildASTSchema.mjs +2 -2
  68. package/utilities/buildClientSchema.js +7 -7
  69. package/utilities/buildClientSchema.mjs +15 -15
  70. package/utilities/coerceInputValue.js +5 -5
  71. package/utilities/coerceInputValue.mjs +5 -5
  72. package/utilities/extendSchema.d.ts +1 -1
  73. package/utilities/extendSchema.js +10 -10
  74. package/utilities/extendSchema.mjs +31 -31
  75. package/utilities/findBreakingChanges.js +5 -20
  76. package/utilities/findBreakingChanges.mjs +9 -20
  77. package/utilities/getIntrospectionQuery.d.ts +4 -0
  78. package/utilities/getIntrospectionQuery.js +4 -0
  79. package/utilities/getIntrospectionQuery.mjs +4 -0
  80. package/utilities/getOperationRootType.d.ts +1 -1
  81. package/utilities/index.d.ts +0 -25
  82. package/utilities/index.mjs +21 -44
  83. package/utilities/introspectionFromSchema.d.ts +1 -1
  84. package/utilities/lexicographicSortSchema.js +2 -2
  85. package/utilities/lexicographicSortSchema.mjs +10 -10
  86. package/utilities/printSchema.d.ts +1 -1
  87. package/utilities/printSchema.js +5 -5
  88. package/utilities/printSchema.mjs +11 -11
  89. package/utilities/sortValueNode.d.ts +9 -0
  90. package/utilities/sortValueNode.js +47 -0
  91. package/utilities/sortValueNode.mjs +39 -0
  92. package/utilities/stripIgnoredCharacters.js +4 -4
  93. package/utilities/stripIgnoredCharacters.mjs +3 -3
  94. package/utilities/typeComparators.d.ts +1 -1
  95. package/utilities/typeComparators.mjs +3 -3
  96. package/utilities/typeFromAST.d.ts +4 -4
  97. package/utilities/typeFromAST.mjs +0 -8
  98. package/utilities/valueFromAST.d.ts +1 -1
  99. package/utilities/valueFromAST.js +2 -2
  100. package/utilities/valueFromAST.mjs +3 -3
  101. package/utilities/valueFromASTUntyped.d.ts +1 -1
  102. package/utilities/valueFromASTUntyped.mjs +1 -1
  103. package/validation/ValidationContext.d.ts +10 -10
  104. package/validation/index.d.ts +0 -29
  105. package/validation/index.mjs +29 -58
  106. package/validation/rules/FieldsOnCorrectTypeRule.js +2 -2
  107. package/validation/rules/FieldsOnCorrectTypeRule.mjs +3 -3
  108. package/validation/rules/KnownArgumentNamesRule.d.ts +1 -1
  109. package/validation/rules/KnownDirectivesRule.d.ts +1 -1
  110. package/validation/rules/KnownDirectivesRule.js +2 -2
  111. package/validation/rules/KnownDirectivesRule.mjs +1 -1
  112. package/validation/rules/KnownTypeNamesRule.d.ts +1 -1
  113. package/validation/rules/KnownTypeNamesRule.js +2 -2
  114. package/validation/rules/KnownTypeNamesRule.mjs +1 -1
  115. package/validation/rules/OverlappingFieldsCanBeMergedRule.js +42 -38
  116. package/validation/rules/OverlappingFieldsCanBeMergedRule.mjs +42 -41
  117. package/validation/rules/PossibleFragmentSpreadsRule.js +2 -2
  118. package/validation/rules/PossibleFragmentSpreadsRule.mjs +1 -1
  119. package/validation/rules/PossibleTypeExtensionsRule.js +2 -2
  120. package/validation/rules/PossibleTypeExtensionsRule.mjs +5 -5
  121. package/validation/rules/ProvidedRequiredArgumentsRule.d.ts +1 -1
  122. package/validation/rules/ProvidedRequiredArgumentsRule.js +2 -2
  123. package/validation/rules/ProvidedRequiredArgumentsRule.mjs +1 -1
  124. package/validation/rules/UniqueFieldDefinitionNamesRule.mjs +2 -2
  125. package/validation/rules/ValuesOfCorrectTypeRule.js +2 -2
  126. package/validation/rules/ValuesOfCorrectTypeRule.mjs +5 -5
  127. package/validation/rules/VariablesInAllowedPositionRule.js +2 -2
  128. package/validation/rules/VariablesInAllowedPositionRule.mjs +1 -1
  129. package/validation/specifiedRules.d.ts +1 -1
  130. package/validation/specifiedRules.js +47 -47
  131. package/validation/specifiedRules.mjs +41 -41
  132. package/version.js +2 -2
  133. package/version.mjs +2 -2
package/type/index.mjs CHANGED
@@ -1,15 +1,12 @@
1
1
  export {
2
- /** Predicate */
3
- isSchema,
4
- /** Assertion */
5
- assertSchema,
6
- /** GraphQL Schema definition */
2
+ // Predicate
3
+ isSchema, // Assertion
4
+ assertSchema, // GraphQL Schema definition
7
5
  GraphQLSchema,
8
6
  } from './schema.mjs';
9
7
  export {
10
8
  resolveObjMapThunk,
11
- resolveReadonlyArrayThunk,
12
- /** Predicates */
9
+ resolveReadonlyArrayThunk, // Predicates
13
10
  isType,
14
11
  isScalarType,
15
12
  isObjectType,
@@ -28,8 +25,7 @@ export {
28
25
  isNullableType,
29
26
  isNamedType,
30
27
  isRequiredArgument,
31
- isRequiredInputField,
32
- /** Assertions */
28
+ isRequiredInputField, // Assertions
33
29
  assertType,
34
30
  assertScalarType,
35
31
  assertObjectType,
@@ -46,58 +42,47 @@ export {
46
42
  assertAbstractType,
47
43
  assertWrappingType,
48
44
  assertNullableType,
49
- assertNamedType,
50
- /** Un-modifiers */
45
+ assertNamedType, // Un-modifiers
51
46
  getNullableType,
52
- getNamedType,
53
- /** Definitions */
47
+ getNamedType, // Definitions
54
48
  GraphQLScalarType,
55
49
  GraphQLObjectType,
56
50
  GraphQLInterfaceType,
57
51
  GraphQLUnionType,
58
52
  GraphQLEnumType,
59
- GraphQLInputObjectType,
60
- /** Type Wrappers */
53
+ GraphQLInputObjectType, // Type Wrappers
61
54
  GraphQLList,
62
55
  GraphQLNonNull,
63
56
  } from './definition.mjs';
64
57
  export {
65
- /** Predicate */
66
- isDirective,
67
- /** Assertion */
68
- assertDirective,
69
- /** Directives Definition */
70
- GraphQLDirective,
71
- /** Built-in Directives defined by the Spec */
58
+ // Predicate
59
+ isDirective, // Assertion
60
+ assertDirective, // Directives Definition
61
+ GraphQLDirective, // Built-in Directives defined by the Spec
72
62
  isSpecifiedDirective,
73
63
  specifiedDirectives,
74
64
  GraphQLIncludeDirective,
75
65
  GraphQLSkipDirective,
76
66
  GraphQLDeprecatedDirective,
77
- GraphQLSpecifiedByDirective,
78
- /** Constant Deprecation Reason */
67
+ GraphQLSpecifiedByDirective, // Constant Deprecation Reason
79
68
  DEFAULT_DEPRECATION_REASON,
80
69
  } from './directives.mjs';
81
-
82
- /** Common built-in scalar instances. */
70
+ // Common built-in scalar instances.
83
71
  export {
84
- /** Predicate */
85
- isSpecifiedScalarType,
86
- /** Standard GraphQL Scalars */
72
+ // Predicate
73
+ isSpecifiedScalarType, // Standard GraphQL Scalars
87
74
  specifiedScalarTypes,
88
75
  GraphQLInt,
89
76
  GraphQLFloat,
90
77
  GraphQLString,
91
78
  GraphQLBoolean,
92
- GraphQLID,
93
- /** Int boundaries constants */
79
+ GraphQLID, // Int boundaries constants
94
80
  GRAPHQL_MAX_INT,
95
81
  GRAPHQL_MIN_INT,
96
82
  } from './scalars.mjs';
97
83
  export {
98
- /** Predicate */
99
- isIntrospectionType,
100
- /** GraphQL Types for introspection. */
84
+ // Predicate
85
+ isIntrospectionType, // GraphQL Types for introspection.
101
86
  introspectionTypes,
102
87
  __Schema,
103
88
  __Directive,
@@ -106,17 +91,13 @@ export {
106
91
  __Field,
107
92
  __InputValue,
108
93
  __EnumValue,
109
- __TypeKind,
110
- /** "Enum" of Type Kinds */
111
- TypeKind,
112
- /** Meta-field definitions. */
94
+ __TypeKind, // "Enum" of Type Kinds
95
+ TypeKind, // Meta-field definitions.
113
96
  SchemaMetaFieldDef,
114
97
  TypeMetaFieldDef,
115
98
  TypeNameMetaFieldDef,
116
- } from './introspection.mjs';
117
- /** Validate GraphQL schema. */
99
+ } from './introspection.mjs'; // Validate GraphQL schema.
118
100
 
119
- export { validateSchema, assertValidSchema } from './validate.mjs';
120
- /** Upholds the spec rules about naming. */
101
+ export { validateSchema, assertValidSchema } from './validate.mjs'; // Upholds the spec rules about naming.
121
102
 
122
103
  export { assertName, assertEnumValueName } from './assertName.mjs';
@@ -1,5 +1,5 @@
1
- import type { GraphQLNamedType, GraphQLField } from './definition';
2
- import { GraphQLObjectType, GraphQLEnumType } from './definition';
1
+ import type { GraphQLField, GraphQLNamedType } from './definition';
2
+ import { GraphQLEnumType, GraphQLObjectType } from './definition';
3
3
  export declare const __Schema: GraphQLObjectType;
4
4
  export declare const __Directive: GraphQLObjectType;
5
5
  export declare const __DirectiveLocation: GraphQLEnumType;
@@ -23,16 +23,16 @@ var _inspect = require('../jsutils/inspect.js');
23
23
 
24
24
  var _invariant = require('../jsutils/invariant.js');
25
25
 
26
- var _printer = require('../language/printer.js');
27
-
28
26
  var _directiveLocation = require('../language/directiveLocation.js');
29
27
 
30
- var _astFromValue = require('../utilities/astFromValue.js');
28
+ var _printer = require('../language/printer.js');
31
29
 
32
- var _scalars = require('./scalars.js');
30
+ var _astFromValue = require('../utilities/astFromValue.js');
33
31
 
34
32
  var _definition = require('./definition.js');
35
33
 
34
+ var _scalars = require('./scalars.js');
35
+
36
36
  const __Schema = new _definition.GraphQLObjectType({
37
37
  name: '__Schema',
38
38
  description:
@@ -1,24 +1,24 @@
1
1
  import { inspect } from '../jsutils/inspect.mjs';
2
2
  import { invariant } from '../jsutils/invariant.mjs';
3
- import { print } from '../language/printer.mjs';
4
3
  import { DirectiveLocation } from '../language/directiveLocation.mjs';
4
+ import { print } from '../language/printer.mjs';
5
5
  import { astFromValue } from '../utilities/astFromValue.mjs';
6
- import { GraphQLString, GraphQLBoolean } from './scalars.mjs';
7
6
  import {
7
+ GraphQLEnumType,
8
8
  GraphQLList,
9
9
  GraphQLNonNull,
10
10
  GraphQLObjectType,
11
- GraphQLEnumType,
12
- isScalarType,
13
- isObjectType,
14
- isInterfaceType,
15
- isUnionType,
11
+ isAbstractType,
16
12
  isEnumType,
17
13
  isInputObjectType,
14
+ isInterfaceType,
18
15
  isListType,
19
16
  isNonNullType,
20
- isAbstractType,
17
+ isObjectType,
18
+ isScalarType,
19
+ isUnionType,
21
20
  } from './definition.mjs';
21
+ import { GraphQLBoolean, GraphQLString } from './scalars.mjs';
22
22
  export const __Schema = new GraphQLObjectType({
23
23
  name: '__Schema',
24
24
  description:
package/type/scalars.js CHANGED
@@ -18,12 +18,12 @@ var _inspect = require('../jsutils/inspect.js');
18
18
 
19
19
  var _isObjectLike = require('../jsutils/isObjectLike.js');
20
20
 
21
+ var _GraphQLError = require('../error/GraphQLError.js');
22
+
21
23
  var _kinds = require('../language/kinds.js');
22
24
 
23
25
  var _printer = require('../language/printer.js');
24
26
 
25
- var _GraphQLError = require('../error/GraphQLError.js');
26
-
27
27
  var _definition = require('./definition.js');
28
28
 
29
29
  /**
package/type/scalars.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { inspect } from '../jsutils/inspect.mjs';
2
2
  import { isObjectLike } from '../jsutils/isObjectLike.mjs';
3
+ import { GraphQLError } from '../error/GraphQLError.mjs';
3
4
  import { Kind } from '../language/kinds.mjs';
4
5
  import { print } from '../language/printer.mjs';
5
- import { GraphQLError } from '../error/GraphQLError.mjs';
6
6
  import { GraphQLScalarType } from './definition.mjs';
7
7
  /**
8
8
  * Maximum possible Int value as per GraphQL Spec (32-bit signed integer).
package/type/schema.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { ObjMap } from '../jsutils/ObjMap';
2
1
  import type { Maybe } from '../jsutils/Maybe';
2
+ import type { ObjMap } from '../jsutils/ObjMap';
3
3
  import type { GraphQLError } from '../error/GraphQLError';
4
4
  import type {
5
5
  SchemaDefinitionNode,
@@ -7,10 +7,10 @@ import type {
7
7
  } from '../language/ast';
8
8
  import { OperationTypeNode } from '../language/ast';
9
9
  import type {
10
- GraphQLNamedType,
11
10
  GraphQLAbstractType,
12
- GraphQLObjectType,
13
11
  GraphQLInterfaceType,
12
+ GraphQLNamedType,
13
+ GraphQLObjectType,
14
14
  } from './definition';
15
15
  import type { GraphQLDirective } from './directives';
16
16
  /**
package/type/schema.js CHANGED
@@ -7,23 +7,23 @@ exports.GraphQLSchema = void 0;
7
7
  exports.assertSchema = assertSchema;
8
8
  exports.isSchema = isSchema;
9
9
 
10
- var _inspect = require('../jsutils/inspect.js');
11
-
12
- var _toObjMap = require('../jsutils/toObjMap.js');
13
-
14
10
  var _devAssert = require('../jsutils/devAssert.js');
15
11
 
12
+ var _inspect = require('../jsutils/inspect.js');
13
+
16
14
  var _instanceOf = require('../jsutils/instanceOf.js');
17
15
 
18
16
  var _isObjectLike = require('../jsutils/isObjectLike.js');
19
17
 
18
+ var _toObjMap = require('../jsutils/toObjMap.js');
19
+
20
20
  var _ast = require('../language/ast.js');
21
21
 
22
- var _introspection = require('./introspection.js');
22
+ var _definition = require('./definition.js');
23
23
 
24
24
  var _directives = require('./directives.js');
25
25
 
26
- var _definition = require('./definition.js');
26
+ var _introspection = require('./introspection.js');
27
27
 
28
28
  /**
29
29
  * Test if the given value is a GraphQL schema.
package/type/schema.mjs CHANGED
@@ -1,18 +1,18 @@
1
- import { inspect } from '../jsutils/inspect.mjs';
2
- import { toObjMap } from '../jsutils/toObjMap.mjs';
3
1
  import { devAssert } from '../jsutils/devAssert.mjs';
2
+ import { inspect } from '../jsutils/inspect.mjs';
4
3
  import { instanceOf } from '../jsutils/instanceOf.mjs';
5
4
  import { isObjectLike } from '../jsutils/isObjectLike.mjs';
5
+ import { toObjMap } from '../jsutils/toObjMap.mjs';
6
6
  import { OperationTypeNode } from '../language/ast.mjs';
7
- import { __Schema } from './introspection.mjs';
8
- import { isDirective, specifiedDirectives } from './directives.mjs';
9
7
  import {
10
- isObjectType,
8
+ getNamedType,
9
+ isInputObjectType,
11
10
  isInterfaceType,
11
+ isObjectType,
12
12
  isUnionType,
13
- isInputObjectType,
14
- getNamedType,
15
13
  } from './definition.mjs';
14
+ import { isDirective, specifiedDirectives } from './directives.mjs';
15
+ import { __Schema } from './introspection.mjs';
16
16
  /**
17
17
  * Test if the given value is a GraphQL schema.
18
18
  */
package/type/validate.js CHANGED
@@ -14,13 +14,13 @@ var _ast = require('../language/ast.js');
14
14
 
15
15
  var _typeComparators = require('../utilities/typeComparators.js');
16
16
 
17
- var _schema = require('./schema.js');
18
-
19
- var _introspection = require('./introspection.js');
17
+ var _definition = require('./definition.js');
20
18
 
21
19
  var _directives = require('./directives.js');
22
20
 
23
- var _definition = require('./definition.js');
21
+ var _introspection = require('./introspection.js');
22
+
23
+ var _schema = require('./schema.js');
24
24
 
25
25
  /**
26
26
  * Implements the "Type Validation" sub-sections of the specification's
package/type/validate.mjs CHANGED
@@ -2,22 +2,22 @@ import { inspect } from '../jsutils/inspect.mjs';
2
2
  import { GraphQLError } from '../error/GraphQLError.mjs';
3
3
  import { OperationTypeNode } from '../language/ast.mjs';
4
4
  import { isEqualType, isTypeSubTypeOf } from '../utilities/typeComparators.mjs';
5
- import { assertSchema } from './schema.mjs';
6
- import { isIntrospectionType } from './introspection.mjs';
7
- import { isDirective, GraphQLDeprecatedDirective } from './directives.mjs';
8
5
  import {
9
- isObjectType,
10
- isInterfaceType,
11
- isUnionType,
12
6
  isEnumType,
13
7
  isInputObjectType,
8
+ isInputType,
9
+ isInterfaceType,
14
10
  isNamedType,
15
11
  isNonNullType,
16
- isInputType,
12
+ isObjectType,
17
13
  isOutputType,
18
14
  isRequiredArgument,
19
15
  isRequiredInputField,
16
+ isUnionType,
20
17
  } from './definition.mjs';
18
+ import { GraphQLDeprecatedDirective, isDirective } from './directives.mjs';
19
+ import { isIntrospectionType } from './introspection.mjs';
20
+ import { assertSchema } from './schema.mjs';
21
21
  /**
22
22
  * Implements the "Type Validation" sub-sections of the specification's
23
23
  * "Type System" section.
@@ -1,17 +1,17 @@
1
- import type { ASTVisitor } from '../language/visitor';
2
- import type { ASTNode, FieldNode } from '../language/ast';
3
1
  import type { Maybe } from '../jsutils/Maybe';
4
- import type { GraphQLSchema } from '../type/schema';
5
- import type { GraphQLDirective } from '../type/directives';
2
+ import type { ASTNode, FieldNode } from '../language/ast';
3
+ import type { ASTVisitor } from '../language/visitor';
6
4
  import type {
7
- GraphQLType,
8
- GraphQLInputType,
9
- GraphQLOutputType,
10
- GraphQLCompositeType,
11
- GraphQLField,
12
5
  GraphQLArgument,
6
+ GraphQLCompositeType,
13
7
  GraphQLEnumValue,
8
+ GraphQLField,
9
+ GraphQLInputType,
10
+ GraphQLOutputType,
11
+ GraphQLType,
14
12
  } from '../type/definition';
13
+ import type { GraphQLDirective } from '../type/directives';
14
+ import type { GraphQLSchema } from '../type/schema';
15
15
  /**
16
16
  * TypeInfo is a utility class which, given a GraphQL schema, can keep track
17
17
  * of the current field and type definitions at any point in a GraphQL document
@@ -6,10 +6,10 @@ Object.defineProperty(exports, '__esModule', {
6
6
  exports.TypeInfo = void 0;
7
7
  exports.visitWithTypeInfo = visitWithTypeInfo;
8
8
 
9
- var _kinds = require('../language/kinds.js');
10
-
11
9
  var _ast = require('../language/ast.js');
12
10
 
11
+ var _kinds = require('../language/kinds.js');
12
+
13
13
  var _visitor = require('../language/visitor.js');
14
14
 
15
15
  var _definition = require('../type/definition.js');
@@ -1,17 +1,17 @@
1
- import { Kind } from '../language/kinds.mjs';
2
1
  import { isNode } from '../language/ast.mjs';
2
+ import { Kind } from '../language/kinds.mjs';
3
3
  import { getEnterLeaveForKind } from '../language/visitor.mjs';
4
4
  import {
5
- isObjectType,
6
- isInterfaceType,
5
+ getNamedType,
6
+ getNullableType,
7
+ isCompositeType,
7
8
  isEnumType,
8
9
  isInputObjectType,
9
- isListType,
10
- isCompositeType,
11
10
  isInputType,
11
+ isInterfaceType,
12
+ isListType,
13
+ isObjectType,
12
14
  isOutputType,
13
- getNullableType,
14
- getNamedType,
15
15
  } from '../type/definition.mjs';
16
16
  import {
17
17
  SchemaMetaFieldDef,
@@ -9,16 +9,16 @@ var _inspect = require('../jsutils/inspect.js');
9
9
 
10
10
  var _invariant = require('../jsutils/invariant.js');
11
11
 
12
- var _isObjectLike = require('../jsutils/isObjectLike.js');
13
-
14
12
  var _isIterableObject = require('../jsutils/isIterableObject.js');
15
13
 
16
- var _kinds = require('../language/kinds.js');
14
+ var _isObjectLike = require('../jsutils/isObjectLike.js');
17
15
 
18
- var _scalars = require('../type/scalars.js');
16
+ var _kinds = require('../language/kinds.js');
19
17
 
20
18
  var _definition = require('../type/definition.js');
21
19
 
20
+ var _scalars = require('../type/scalars.js');
21
+
22
22
  /**
23
23
  * Produces a GraphQL Value AST given a JavaScript object.
24
24
  * Function will match JavaScript/JSON values to GraphQL AST schema format
@@ -1,16 +1,16 @@
1
1
  import { inspect } from '../jsutils/inspect.mjs';
2
2
  import { invariant } from '../jsutils/invariant.mjs';
3
- import { isObjectLike } from '../jsutils/isObjectLike.mjs';
4
3
  import { isIterableObject } from '../jsutils/isIterableObject.mjs';
4
+ import { isObjectLike } from '../jsutils/isObjectLike.mjs';
5
5
  import { Kind } from '../language/kinds.mjs';
6
- import { GraphQLID } from '../type/scalars.mjs';
7
6
  import {
8
- isLeafType,
9
7
  isEnumType,
10
8
  isInputObjectType,
9
+ isLeafType,
11
10
  isListType,
12
11
  isNonNullType,
13
12
  } from '../type/definition.mjs';
13
+ import { GraphQLID } from '../type/scalars.mjs';
14
14
  /**
15
15
  * Produces a GraphQL Value AST given a JavaScript object.
16
16
  * Function will match JavaScript/JSON values to GraphQL AST schema format
@@ -1,6 +1,6 @@
1
- import type { Source } from '../language/source';
2
1
  import type { DocumentNode } from '../language/ast';
3
2
  import type { ParseOptions } from '../language/parser';
3
+ import type { Source } from '../language/source';
4
4
  import type { GraphQLSchemaValidationOptions } from '../type/schema';
5
5
  import { GraphQLSchema } from '../type/schema';
6
6
  export interface BuildSchemaOptions extends GraphQLSchemaValidationOptions {
@@ -12,11 +12,11 @@ var _kinds = require('../language/kinds.js');
12
12
 
13
13
  var _parser = require('../language/parser.js');
14
14
 
15
- var _validate = require('../validation/validate.js');
15
+ var _directives = require('../type/directives.js');
16
16
 
17
17
  var _schema = require('../type/schema.js');
18
18
 
19
- var _directives = require('../type/directives.js');
19
+ var _validate = require('../validation/validate.js');
20
20
 
21
21
  var _extendSchema = require('./extendSchema.js');
22
22
 
@@ -1,9 +1,9 @@
1
1
  import { devAssert } from '../jsutils/devAssert.mjs';
2
2
  import { Kind } from '../language/kinds.mjs';
3
3
  import { parse } from '../language/parser.mjs';
4
- import { assertValidSDL } from '../validation/validate.mjs';
5
- import { GraphQLSchema } from '../type/schema.mjs';
6
4
  import { specifiedDirectives } from '../type/directives.mjs';
5
+ import { GraphQLSchema } from '../type/schema.mjs';
6
+ import { assertValidSDL } from '../validation/validate.mjs';
7
7
  import { extendSchemaImpl } from './extendSchema.mjs';
8
8
 
9
9
  /**
@@ -5,25 +5,25 @@ Object.defineProperty(exports, '__esModule', {
5
5
  });
6
6
  exports.buildClientSchema = buildClientSchema;
7
7
 
8
- var _inspect = require('../jsutils/inspect.js');
9
-
10
8
  var _devAssert = require('../jsutils/devAssert.js');
11
9
 
12
- var _keyValMap = require('../jsutils/keyValMap.js');
10
+ var _inspect = require('../jsutils/inspect.js');
13
11
 
14
12
  var _isObjectLike = require('../jsutils/isObjectLike.js');
15
13
 
14
+ var _keyValMap = require('../jsutils/keyValMap.js');
15
+
16
16
  var _parser = require('../language/parser.js');
17
17
 
18
- var _schema = require('../type/schema.js');
18
+ var _definition = require('../type/definition.js');
19
19
 
20
20
  var _directives = require('../type/directives.js');
21
21
 
22
- var _scalars = require('../type/scalars.js');
23
-
24
22
  var _introspection = require('../type/introspection.js');
25
23
 
26
- var _definition = require('../type/definition.js');
24
+ var _scalars = require('../type/scalars.js');
25
+
26
+ var _schema = require('../type/schema.js');
27
27
 
28
28
  var _valueFromAST = require('./valueFromAST.js');
29
29
 
@@ -1,27 +1,27 @@
1
- import { inspect } from '../jsutils/inspect.mjs';
2
1
  import { devAssert } from '../jsutils/devAssert.mjs';
3
- import { keyValMap } from '../jsutils/keyValMap.mjs';
2
+ import { inspect } from '../jsutils/inspect.mjs';
4
3
  import { isObjectLike } from '../jsutils/isObjectLike.mjs';
4
+ import { keyValMap } from '../jsutils/keyValMap.mjs';
5
5
  import { parseValue } from '../language/parser.mjs';
6
- import { GraphQLSchema } from '../type/schema.mjs';
7
- import { GraphQLDirective } from '../type/directives.mjs';
8
- import { specifiedScalarTypes } from '../type/scalars.mjs';
9
- import { introspectionTypes, TypeKind } from '../type/introspection.mjs';
10
6
  import {
11
- isInputType,
12
- isOutputType,
7
+ assertInterfaceType,
8
+ assertNullableType,
9
+ assertObjectType,
10
+ GraphQLEnumType,
11
+ GraphQLInputObjectType,
12
+ GraphQLInterfaceType,
13
13
  GraphQLList,
14
14
  GraphQLNonNull,
15
- GraphQLScalarType,
16
15
  GraphQLObjectType,
17
- GraphQLInterfaceType,
16
+ GraphQLScalarType,
18
17
  GraphQLUnionType,
19
- GraphQLEnumType,
20
- GraphQLInputObjectType,
21
- assertNullableType,
22
- assertObjectType,
23
- assertInterfaceType,
18
+ isInputType,
19
+ isOutputType,
24
20
  } from '../type/definition.mjs';
21
+ import { GraphQLDirective } from '../type/directives.mjs';
22
+ import { introspectionTypes, TypeKind } from '../type/introspection.mjs';
23
+ import { specifiedScalarTypes } from '../type/scalars.mjs';
24
+ import { GraphQLSchema } from '../type/schema.mjs';
25
25
  import { valueFromAST } from './valueFromAST.mjs';
26
26
  /**
27
27
  * Build a GraphQLSchema for use by client tools.
@@ -5,21 +5,21 @@ Object.defineProperty(exports, '__esModule', {
5
5
  });
6
6
  exports.coerceInputValue = coerceInputValue;
7
7
 
8
+ var _didYouMean = require('../jsutils/didYouMean.js');
9
+
8
10
  var _inspect = require('../jsutils/inspect.js');
9
11
 
10
12
  var _invariant = require('../jsutils/invariant.js');
11
13
 
12
- var _didYouMean = require('../jsutils/didYouMean.js');
14
+ var _isIterableObject = require('../jsutils/isIterableObject.js');
13
15
 
14
16
  var _isObjectLike = require('../jsutils/isObjectLike.js');
15
17
 
16
- var _suggestionList = require('../jsutils/suggestionList.js');
18
+ var _Path = require('../jsutils/Path.js');
17
19
 
18
20
  var _printPathArray = require('../jsutils/printPathArray.js');
19
21
 
20
- var _Path = require('../jsutils/Path.js');
21
-
22
- var _isIterableObject = require('../jsutils/isIterableObject.js');
22
+ var _suggestionList = require('../jsutils/suggestionList.js');
23
23
 
24
24
  var _GraphQLError = require('../error/GraphQLError.js');
25
25
 
@@ -1,15 +1,15 @@
1
+ import { didYouMean } from '../jsutils/didYouMean.mjs';
1
2
  import { inspect } from '../jsutils/inspect.mjs';
2
3
  import { invariant } from '../jsutils/invariant.mjs';
3
- import { didYouMean } from '../jsutils/didYouMean.mjs';
4
+ import { isIterableObject } from '../jsutils/isIterableObject.mjs';
4
5
  import { isObjectLike } from '../jsutils/isObjectLike.mjs';
5
- import { suggestionList } from '../jsutils/suggestionList.mjs';
6
- import { printPathArray } from '../jsutils/printPathArray.mjs';
7
6
  import { addPath, pathToArray } from '../jsutils/Path.mjs';
8
- import { isIterableObject } from '../jsutils/isIterableObject.mjs';
7
+ import { printPathArray } from '../jsutils/printPathArray.mjs';
8
+ import { suggestionList } from '../jsutils/suggestionList.mjs';
9
9
  import { GraphQLError } from '../error/GraphQLError.mjs';
10
10
  import {
11
- isLeafType,
12
11
  isInputObjectType,
12
+ isLeafType,
13
13
  isListType,
14
14
  isNonNullType,
15
15
  } from '../type/definition.mjs';
@@ -1,7 +1,7 @@
1
1
  import type { DocumentNode } from '../language/ast';
2
2
  import type {
3
- GraphQLSchemaValidationOptions,
4
3
  GraphQLSchemaNormalizedConfig,
4
+ GraphQLSchemaValidationOptions,
5
5
  } from '../type/schema';
6
6
  import { GraphQLSchema } from '../type/schema';
7
7
  interface Options extends GraphQLSchemaValidationOptions {