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.
- package/error/GraphQLError.d.ts +17 -1
- package/error/GraphQLError.js +24 -9
- package/error/GraphQLError.mjs +24 -18
- package/execution/collectFields.d.ts +2 -2
- package/execution/collectFields.js +2 -2
- package/execution/collectFields.mjs +1 -1
- package/execution/execute.d.ts +5 -5
- package/execution/execute.js +12 -12
- package/execution/execute.mjs +14 -14
- package/execution/index.d.ts +1 -1
- package/execution/index.js +6 -0
- package/execution/index.mjs +1 -1
- package/execution/subscribe.d.ts +1 -1
- package/execution/subscribe.js +4 -4
- package/execution/subscribe.mjs +2 -2
- package/execution/values.d.ts +3 -5
- package/execution/values.js +4 -6
- package/execution/values.mjs +2 -4
- package/graphql.js +4 -4
- package/graphql.mjs +1 -1
- package/index.d.ts +3 -62
- package/index.js +6 -0
- package/index.mjs +60 -114
- package/jsutils/promiseReduce.mjs +1 -1
- package/language/index.d.ts +0 -1
- package/language/lexer.d.ts +1 -1
- package/language/lexer.js +2 -2
- package/language/lexer.mjs +2 -2
- package/language/parser.d.ts +40 -40
- package/language/parser.js +6 -6
- package/language/parser.mjs +4 -4
- package/language/predicates.d.ts +4 -4
- package/language/printLocation.d.ts +1 -1
- package/language/printLocation.mjs +1 -1
- package/language/printer.js +2 -2
- package/language/printer.mjs +1 -1
- package/language/source.js +2 -2
- package/language/source.mjs +1 -1
- package/language/visitor.js +10 -12
- package/language/visitor.mjs +9 -11
- package/package.json +3 -3
- package/type/assertName.mjs +1 -1
- package/type/definition.d.ts +14 -14
- package/type/definition.js +11 -11
- package/type/definition.mjs +8 -13
- package/type/directives.js +6 -6
- package/type/directives.mjs +4 -4
- package/type/index.d.ts +1 -28
- package/type/index.mjs +23 -42
- package/type/introspection.d.ts +2 -2
- package/type/introspection.js +4 -4
- package/type/introspection.mjs +8 -8
- package/type/scalars.js +2 -2
- package/type/scalars.mjs +1 -1
- package/type/schema.d.ts +3 -3
- package/type/schema.js +6 -6
- package/type/schema.mjs +7 -7
- package/type/validate.js +4 -4
- package/type/validate.mjs +7 -7
- package/utilities/TypeInfo.d.ts +9 -9
- package/utilities/TypeInfo.js +2 -2
- package/utilities/TypeInfo.mjs +7 -7
- package/utilities/astFromValue.js +4 -4
- package/utilities/astFromValue.mjs +3 -3
- package/utilities/buildASTSchema.d.ts +1 -1
- package/utilities/buildASTSchema.js +2 -2
- package/utilities/buildASTSchema.mjs +2 -2
- package/utilities/buildClientSchema.js +7 -7
- package/utilities/buildClientSchema.mjs +15 -15
- package/utilities/coerceInputValue.js +5 -5
- package/utilities/coerceInputValue.mjs +5 -5
- package/utilities/extendSchema.d.ts +1 -1
- package/utilities/extendSchema.js +10 -10
- package/utilities/extendSchema.mjs +31 -31
- package/utilities/findBreakingChanges.js +5 -20
- package/utilities/findBreakingChanges.mjs +9 -20
- package/utilities/getIntrospectionQuery.d.ts +4 -0
- package/utilities/getIntrospectionQuery.js +4 -0
- package/utilities/getIntrospectionQuery.mjs +4 -0
- package/utilities/getOperationRootType.d.ts +1 -1
- package/utilities/index.d.ts +0 -25
- package/utilities/index.mjs +21 -44
- package/utilities/introspectionFromSchema.d.ts +1 -1
- package/utilities/lexicographicSortSchema.js +2 -2
- package/utilities/lexicographicSortSchema.mjs +10 -10
- package/utilities/printSchema.d.ts +1 -1
- package/utilities/printSchema.js +5 -5
- package/utilities/printSchema.mjs +11 -11
- package/utilities/sortValueNode.d.ts +9 -0
- package/utilities/sortValueNode.js +47 -0
- package/utilities/sortValueNode.mjs +39 -0
- package/utilities/stripIgnoredCharacters.js +4 -4
- package/utilities/stripIgnoredCharacters.mjs +3 -3
- package/utilities/typeComparators.d.ts +1 -1
- package/utilities/typeComparators.mjs +3 -3
- package/utilities/typeFromAST.d.ts +4 -4
- package/utilities/typeFromAST.mjs +0 -8
- package/utilities/valueFromAST.d.ts +1 -1
- package/utilities/valueFromAST.js +2 -2
- package/utilities/valueFromAST.mjs +3 -3
- package/utilities/valueFromASTUntyped.d.ts +1 -1
- package/utilities/valueFromASTUntyped.mjs +1 -1
- package/validation/ValidationContext.d.ts +10 -10
- package/validation/index.d.ts +0 -29
- package/validation/index.mjs +29 -58
- package/validation/rules/FieldsOnCorrectTypeRule.js +2 -2
- package/validation/rules/FieldsOnCorrectTypeRule.mjs +3 -3
- package/validation/rules/KnownArgumentNamesRule.d.ts +1 -1
- package/validation/rules/KnownDirectivesRule.d.ts +1 -1
- package/validation/rules/KnownDirectivesRule.js +2 -2
- package/validation/rules/KnownDirectivesRule.mjs +1 -1
- package/validation/rules/KnownTypeNamesRule.d.ts +1 -1
- package/validation/rules/KnownTypeNamesRule.js +2 -2
- package/validation/rules/KnownTypeNamesRule.mjs +1 -1
- package/validation/rules/OverlappingFieldsCanBeMergedRule.js +42 -38
- package/validation/rules/OverlappingFieldsCanBeMergedRule.mjs +42 -41
- package/validation/rules/PossibleFragmentSpreadsRule.js +2 -2
- package/validation/rules/PossibleFragmentSpreadsRule.mjs +1 -1
- package/validation/rules/PossibleTypeExtensionsRule.js +2 -2
- package/validation/rules/PossibleTypeExtensionsRule.mjs +5 -5
- package/validation/rules/ProvidedRequiredArgumentsRule.d.ts +1 -1
- package/validation/rules/ProvidedRequiredArgumentsRule.js +2 -2
- package/validation/rules/ProvidedRequiredArgumentsRule.mjs +1 -1
- package/validation/rules/UniqueFieldDefinitionNamesRule.mjs +2 -2
- package/validation/rules/ValuesOfCorrectTypeRule.js +2 -2
- package/validation/rules/ValuesOfCorrectTypeRule.mjs +5 -5
- package/validation/rules/VariablesInAllowedPositionRule.js +2 -2
- package/validation/rules/VariablesInAllowedPositionRule.mjs +1 -1
- package/validation/specifiedRules.d.ts +1 -1
- package/validation/specifiedRules.js +47 -47
- package/validation/specifiedRules.mjs +41 -41
- package/version.js +2 -2
- package/version.mjs +2 -2
|
@@ -1,77 +1,77 @@
|
|
|
1
1
|
// Spec Section: "Executable Definitions"
|
|
2
|
-
import { ExecutableDefinitionsRule } from './rules/ExecutableDefinitionsRule.mjs'; // Spec Section: "
|
|
2
|
+
import { ExecutableDefinitionsRule } from './rules/ExecutableDefinitionsRule.mjs'; // Spec Section: "Field Selections on Objects, Interfaces, and Unions Types"
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { FieldsOnCorrectTypeRule } from './rules/FieldsOnCorrectTypeRule.mjs'; // Spec Section: "Fragments on Composite Types"
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import { FragmentsOnCompositeTypesRule } from './rules/FragmentsOnCompositeTypesRule.mjs'; // Spec Section: "Argument Names"
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
KnownArgumentNamesOnDirectivesRule,
|
|
10
|
+
KnownArgumentNamesRule,
|
|
11
|
+
} from './rules/KnownArgumentNamesRule.mjs'; // Spec Section: "Directives Are Defined"
|
|
9
12
|
|
|
10
|
-
import {
|
|
13
|
+
import { KnownDirectivesRule } from './rules/KnownDirectivesRule.mjs'; // Spec Section: "Fragment spread target defined"
|
|
11
14
|
|
|
12
|
-
import {
|
|
15
|
+
import { KnownFragmentNamesRule } from './rules/KnownFragmentNamesRule.mjs'; // Spec Section: "Fragment Spread Type Existence"
|
|
13
16
|
|
|
14
|
-
import {
|
|
17
|
+
import { KnownTypeNamesRule } from './rules/KnownTypeNamesRule.mjs'; // Spec Section: "Lone Anonymous Operation"
|
|
15
18
|
|
|
16
|
-
import {
|
|
19
|
+
import { LoneAnonymousOperationRule } from './rules/LoneAnonymousOperationRule.mjs'; // SDL-specific validation rules
|
|
17
20
|
|
|
18
|
-
import {
|
|
21
|
+
import { LoneSchemaDefinitionRule } from './rules/LoneSchemaDefinitionRule.mjs'; // Spec Section: "Fragments must not form cycles"
|
|
19
22
|
|
|
20
|
-
import {
|
|
23
|
+
import { NoFragmentCyclesRule } from './rules/NoFragmentCyclesRule.mjs'; // Spec Section: "All Variable Used Defined"
|
|
21
24
|
|
|
22
|
-
import {
|
|
25
|
+
import { NoUndefinedVariablesRule } from './rules/NoUndefinedVariablesRule.mjs'; // Spec Section: "Fragments must be used"
|
|
23
26
|
|
|
24
|
-
import { NoUnusedFragmentsRule } from './rules/NoUnusedFragmentsRule.mjs'; // Spec Section: "
|
|
27
|
+
import { NoUnusedFragmentsRule } from './rules/NoUnusedFragmentsRule.mjs'; // Spec Section: "All Variables Used"
|
|
25
28
|
|
|
26
|
-
import {
|
|
29
|
+
import { NoUnusedVariablesRule } from './rules/NoUnusedVariablesRule.mjs'; // Spec Section: "Field Selection Merging"
|
|
27
30
|
|
|
28
|
-
import {
|
|
31
|
+
import { OverlappingFieldsCanBeMergedRule } from './rules/OverlappingFieldsCanBeMergedRule.mjs'; // Spec Section: "Fragment spread is possible"
|
|
29
32
|
|
|
30
|
-
import {
|
|
33
|
+
import { PossibleFragmentSpreadsRule } from './rules/PossibleFragmentSpreadsRule.mjs';
|
|
34
|
+
import { PossibleTypeExtensionsRule } from './rules/PossibleTypeExtensionsRule.mjs'; // Spec Section: "Argument Optionality"
|
|
31
35
|
|
|
32
|
-
import {
|
|
36
|
+
import {
|
|
37
|
+
ProvidedRequiredArgumentsOnDirectivesRule,
|
|
38
|
+
ProvidedRequiredArgumentsRule,
|
|
39
|
+
} from './rules/ProvidedRequiredArgumentsRule.mjs'; // Spec Section: "Leaf Field Selections"
|
|
33
40
|
|
|
34
|
-
import {
|
|
41
|
+
import { ScalarLeafsRule } from './rules/ScalarLeafsRule.mjs'; // Spec Section: "Subscriptions with Single Root Field"
|
|
35
42
|
|
|
36
|
-
import {
|
|
43
|
+
import { SingleFieldSubscriptionsRule } from './rules/SingleFieldSubscriptionsRule.mjs';
|
|
44
|
+
import { UniqueArgumentDefinitionNamesRule } from './rules/UniqueArgumentDefinitionNamesRule.mjs'; // Spec Section: "Argument Uniqueness"
|
|
37
45
|
|
|
38
|
-
import {
|
|
46
|
+
import { UniqueArgumentNamesRule } from './rules/UniqueArgumentNamesRule.mjs';
|
|
47
|
+
import { UniqueDirectiveNamesRule } from './rules/UniqueDirectiveNamesRule.mjs'; // Spec Section: "Directives Are Unique Per Location"
|
|
39
48
|
|
|
40
|
-
import {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
} from './rules/KnownArgumentNamesRule.mjs'; // Spec Section: "Argument Uniqueness"
|
|
49
|
+
import { UniqueDirectivesPerLocationRule } from './rules/UniqueDirectivesPerLocationRule.mjs';
|
|
50
|
+
import { UniqueEnumValueNamesRule } from './rules/UniqueEnumValueNamesRule.mjs';
|
|
51
|
+
import { UniqueFieldDefinitionNamesRule } from './rules/UniqueFieldDefinitionNamesRule.mjs'; // Spec Section: "Fragment Name Uniqueness"
|
|
44
52
|
|
|
45
|
-
import {
|
|
53
|
+
import { UniqueFragmentNamesRule } from './rules/UniqueFragmentNamesRule.mjs'; // Spec Section: "Input Object Field Uniqueness"
|
|
46
54
|
|
|
47
|
-
import {
|
|
55
|
+
import { UniqueInputFieldNamesRule } from './rules/UniqueInputFieldNamesRule.mjs'; // Spec Section: "Operation Name Uniqueness"
|
|
48
56
|
|
|
49
|
-
import {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
} from './rules/ProvidedRequiredArgumentsRule.mjs'; // Spec Section: "All Variable Usages Are Allowed"
|
|
57
|
+
import { UniqueOperationNamesRule } from './rules/UniqueOperationNamesRule.mjs';
|
|
58
|
+
import { UniqueOperationTypesRule } from './rules/UniqueOperationTypesRule.mjs';
|
|
59
|
+
import { UniqueTypeNamesRule } from './rules/UniqueTypeNamesRule.mjs'; // Spec Section: "Variable Uniqueness"
|
|
53
60
|
|
|
54
|
-
import {
|
|
61
|
+
import { UniqueVariableNamesRule } from './rules/UniqueVariableNamesRule.mjs'; // Spec Section: "Value Type Correctness"
|
|
55
62
|
|
|
56
|
-
import {
|
|
63
|
+
import { ValuesOfCorrectTypeRule } from './rules/ValuesOfCorrectTypeRule.mjs'; // Spec Section: "Variables are Input Types"
|
|
57
64
|
|
|
58
|
-
import {
|
|
65
|
+
import { VariablesAreInputTypesRule } from './rules/VariablesAreInputTypesRule.mjs'; // Spec Section: "All Variable Usages Are Allowed"
|
|
66
|
+
|
|
67
|
+
import { VariablesInAllowedPositionRule } from './rules/VariablesInAllowedPositionRule.mjs';
|
|
59
68
|
|
|
60
|
-
import { LoneSchemaDefinitionRule } from './rules/LoneSchemaDefinitionRule.mjs';
|
|
61
|
-
import { UniqueOperationTypesRule } from './rules/UniqueOperationTypesRule.mjs';
|
|
62
|
-
import { UniqueTypeNamesRule } from './rules/UniqueTypeNamesRule.mjs';
|
|
63
|
-
import { UniqueEnumValueNamesRule } from './rules/UniqueEnumValueNamesRule.mjs';
|
|
64
|
-
import { UniqueFieldDefinitionNamesRule } from './rules/UniqueFieldDefinitionNamesRule.mjs';
|
|
65
|
-
import { UniqueArgumentDefinitionNamesRule } from './rules/UniqueArgumentDefinitionNamesRule.mjs';
|
|
66
|
-
import { UniqueDirectiveNamesRule } from './rules/UniqueDirectiveNamesRule.mjs';
|
|
67
|
-
import { PossibleTypeExtensionsRule } from './rules/PossibleTypeExtensionsRule.mjs';
|
|
68
69
|
/**
|
|
69
70
|
* This set includes all validation rules defined by the GraphQL spec.
|
|
70
71
|
*
|
|
71
72
|
* The order of the rules in this list has been adjusted to lead to the
|
|
72
73
|
* most clear output when encountering multiple validation errors.
|
|
73
74
|
*/
|
|
74
|
-
|
|
75
75
|
export const specifiedRules = Object.freeze([
|
|
76
76
|
ExecutableDefinitionsRule,
|
|
77
77
|
UniqueOperationNamesRule,
|
package/version.js
CHANGED
|
@@ -10,7 +10,7 @@ exports.versionInfo = exports.version = void 0;
|
|
|
10
10
|
/**
|
|
11
11
|
* A string containing the version of the GraphQL.js library
|
|
12
12
|
*/
|
|
13
|
-
const version = '16.
|
|
13
|
+
const version = '16.3.0';
|
|
14
14
|
/**
|
|
15
15
|
* An object containing the components of the GraphQL.js version string
|
|
16
16
|
*/
|
|
@@ -18,7 +18,7 @@ const version = '16.2.0';
|
|
|
18
18
|
exports.version = version;
|
|
19
19
|
const versionInfo = Object.freeze({
|
|
20
20
|
major: 16,
|
|
21
|
-
minor:
|
|
21
|
+
minor: 3,
|
|
22
22
|
patch: 0,
|
|
23
23
|
preReleaseTag: null,
|
|
24
24
|
});
|
package/version.mjs
CHANGED
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* A string containing the version of the GraphQL.js library
|
|
6
6
|
*/
|
|
7
|
-
export const version = '16.
|
|
7
|
+
export const version = '16.3.0';
|
|
8
8
|
/**
|
|
9
9
|
* An object containing the components of the GraphQL.js version string
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
export const versionInfo = Object.freeze({
|
|
13
13
|
major: 16,
|
|
14
|
-
minor:
|
|
14
|
+
minor: 3,
|
|
15
15
|
patch: 0,
|
|
16
16
|
preReleaseTag: null,
|
|
17
17
|
});
|