graphql 17.0.0-beta.1 → 17.0.0-beta.2
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/__dev__/devMode.d.ts +1 -1
- package/__dev__/error/GraphQLError.d.ts +1 -1
- package/__dev__/error/ensureGraphQLError.d.ts +1 -1
- package/__dev__/error/index.d.ts +1 -1
- package/__dev__/error/locatedError.d.ts +1 -1
- package/__dev__/error/syntaxError.d.ts +1 -1
- package/__dev__/execution/AbortedGraphQLExecutionError.d.ts +1 -1
- package/__dev__/execution/AsyncWorkTracker.d.ts +1 -1
- package/__dev__/execution/ExecutionArgs.d.mts +1 -0
- package/__dev__/execution/ExecutionArgs.d.ts +1 -0
- package/__dev__/execution/ExecutionArgs.js +3 -0
- package/__dev__/execution/ExecutionArgs.mjs +3 -0
- package/__dev__/execution/Executor.d.ts +1 -1
- package/__dev__/execution/ExecutorThrowingOnIncremental.d.ts +1 -1
- package/__dev__/execution/buildResolveInfo.d.ts +1 -1
- package/__dev__/execution/cancellablePromise.d.ts +1 -1
- package/__dev__/execution/collectFields.d.ts +1 -1
- package/__dev__/execution/collectIteratorPromises.d.ts +1 -1
- package/__dev__/execution/createSharedExecutionContext.d.ts +1 -1
- package/__dev__/execution/execute.d.ts +1 -1
- package/__dev__/execution/getStreamUsage.d.ts +1 -1
- package/__dev__/execution/getVariableSignature.d.ts +1 -1
- package/__dev__/execution/hooks.d.ts +1 -1
- package/__dev__/execution/incremental/Computation.d.ts +1 -1
- package/__dev__/execution/incremental/IncrementalExecutor.d.ts +1 -1
- package/__dev__/execution/incremental/IncrementalPublisher.d.ts +1 -1
- package/__dev__/execution/incremental/Queue.d.ts +1 -1
- package/__dev__/execution/incremental/WorkQueue.d.ts +1 -1
- package/__dev__/execution/incremental/buildExecutionPlan.d.ts +1 -1
- package/__dev__/execution/index.d.ts +1 -1
- package/__dev__/execution/legacyIncremental/BranchingIncrementalExecutor.d.mts +1 -0
- package/__dev__/execution/legacyIncremental/BranchingIncrementalExecutor.d.ts +1 -0
- package/__dev__/execution/legacyIncremental/BranchingIncrementalExecutor.js +3 -0
- package/__dev__/execution/legacyIncremental/BranchingIncrementalExecutor.mjs +3 -0
- package/__dev__/execution/legacyIncremental/BranchingIncrementalPublisher.d.mts +1 -0
- package/__dev__/execution/legacyIncremental/BranchingIncrementalPublisher.d.ts +1 -0
- package/__dev__/execution/legacyIncremental/BranchingIncrementalPublisher.js +3 -0
- package/__dev__/execution/legacyIncremental/BranchingIncrementalPublisher.mjs +3 -0
- package/__dev__/execution/legacyIncremental/legacyExecuteIncrementally.d.mts +1 -0
- package/__dev__/execution/legacyIncremental/legacyExecuteIncrementally.d.ts +1 -0
- package/__dev__/execution/legacyIncremental/legacyExecuteIncrementally.js +3 -0
- package/__dev__/execution/legacyIncremental/legacyExecuteIncrementally.mjs +3 -0
- package/__dev__/execution/mapAsyncIterable.d.ts +1 -1
- package/__dev__/execution/returnIteratorCatchingErrors.d.ts +1 -1
- package/__dev__/execution/values.d.ts +1 -1
- package/__dev__/execution/withConcurrentAbruptClose.d.ts +1 -1
- package/__dev__/graphql.d.ts +1 -1
- package/__dev__/harness.d.ts +1 -1
- package/__dev__/index.d.ts +1 -1
- package/__dev__/jsutils/AccumulatorMap.d.ts +1 -1
- package/__dev__/jsutils/Maybe.d.ts +1 -1
- package/__dev__/jsutils/ObjMap.d.ts +1 -1
- package/__dev__/jsutils/Path.d.ts +1 -1
- package/__dev__/jsutils/PromiseOrValue.d.ts +1 -1
- package/__dev__/jsutils/capitalize.d.ts +1 -1
- package/__dev__/jsutils/devAssert.d.ts +1 -1
- package/__dev__/jsutils/didYouMean.d.ts +1 -1
- package/__dev__/jsutils/formatList.d.ts +1 -1
- package/__dev__/jsutils/getBySet.d.ts +1 -1
- package/__dev__/jsutils/groupBy.d.ts +1 -1
- package/__dev__/jsutils/identityFunc.d.ts +1 -1
- package/__dev__/jsutils/inspect.d.ts +1 -1
- package/__dev__/jsutils/instanceOf.d.ts +1 -1
- package/__dev__/jsutils/invariant.d.ts +1 -1
- package/__dev__/jsutils/isAsyncIterable.d.ts +1 -1
- package/__dev__/jsutils/isIterableObject.d.ts +1 -1
- package/__dev__/jsutils/isObjectLike.d.ts +1 -1
- package/__dev__/jsutils/isPromise.d.ts +1 -1
- package/__dev__/jsutils/isSameSet.d.ts +1 -1
- package/__dev__/jsutils/keyMap.d.ts +1 -1
- package/__dev__/jsutils/keyValMap.d.ts +1 -1
- package/__dev__/jsutils/mapValue.d.ts +1 -1
- package/__dev__/jsutils/memoize1.d.ts +1 -1
- package/__dev__/jsutils/memoize2.d.ts +1 -1
- package/__dev__/jsutils/memoize3.d.ts +1 -1
- package/__dev__/jsutils/naturalCompare.d.ts +1 -1
- package/__dev__/jsutils/printPathArray.d.ts +1 -1
- package/__dev__/jsutils/promiseForObject.d.ts +1 -1
- package/__dev__/jsutils/promiseReduce.d.ts +1 -1
- package/__dev__/jsutils/promiseWithResolvers.d.ts +1 -1
- package/__dev__/jsutils/suggestionList.d.ts +1 -1
- package/__dev__/jsutils/toError.d.ts +1 -1
- package/__dev__/jsutils/toObjMap.d.ts +1 -1
- package/__dev__/language/KindTypeMap.d.ts +1 -1
- package/__dev__/language/ast.d.ts +1 -1
- package/__dev__/language/blockString.d.ts +1 -1
- package/__dev__/language/characterClasses.d.ts +1 -1
- package/__dev__/language/directiveLocation.d.ts +1 -1
- package/__dev__/language/index.d.ts +1 -1
- package/__dev__/language/kinds.d.ts +1 -1
- package/__dev__/language/kinds_.d.ts +1 -1
- package/__dev__/language/lexer.d.ts +1 -1
- package/__dev__/language/location.d.ts +1 -1
- package/__dev__/language/parser.d.ts +1 -1
- package/__dev__/language/predicates.d.ts +1 -1
- package/__dev__/language/printLocation.d.ts +1 -1
- package/__dev__/language/printString.d.ts +1 -1
- package/__dev__/language/printer.d.ts +1 -1
- package/__dev__/language/schemaCoordinateLexer.d.ts +1 -1
- package/__dev__/language/source.d.ts +1 -1
- package/__dev__/language/tokenKind.d.ts +1 -1
- package/__dev__/language/visitor.d.ts +1 -1
- package/__dev__/type/assertName.d.ts +1 -1
- package/__dev__/type/definition.d.ts +1 -1
- package/__dev__/type/directives.d.ts +1 -1
- package/__dev__/type/index.d.ts +1 -1
- package/__dev__/type/introspection.d.ts +1 -1
- package/__dev__/type/scalars.d.ts +1 -1
- package/__dev__/type/schema.d.ts +1 -1
- package/__dev__/type/validate.d.ts +1 -1
- package/__dev__/utilities/TypeInfo.d.ts +1 -1
- package/__dev__/utilities/astFromValue.d.ts +1 -1
- package/__dev__/utilities/buildASTSchema.d.ts +1 -1
- package/__dev__/utilities/buildClientSchema.d.ts +1 -1
- package/__dev__/utilities/coerceInputValue.d.ts +1 -1
- package/__dev__/utilities/concatAST.d.ts +1 -1
- package/__dev__/utilities/extendSchema.d.ts +1 -1
- package/__dev__/utilities/findSchemaChanges.d.ts +1 -1
- package/__dev__/utilities/getDefaultValueAST.d.ts +1 -1
- package/__dev__/utilities/getIntrospectionQuery.d.ts +1 -1
- package/__dev__/utilities/getOperationAST.d.ts +1 -1
- package/__dev__/utilities/index.d.ts +1 -1
- package/__dev__/utilities/introspectionFromSchema.d.ts +1 -1
- package/__dev__/utilities/lexicographicSortSchema.d.ts +1 -1
- package/__dev__/utilities/mapSchemaConfig.d.ts +1 -1
- package/__dev__/utilities/printSchema.d.ts +1 -1
- package/__dev__/utilities/replaceVariables.d.ts +1 -1
- package/__dev__/utilities/resolveSchemaCoordinate.d.ts +1 -1
- package/__dev__/utilities/separateOperations.d.ts +1 -1
- package/__dev__/utilities/sortValueNode.d.ts +1 -1
- package/__dev__/utilities/stripIgnoredCharacters.d.ts +1 -1
- package/__dev__/utilities/typeComparators.d.ts +1 -1
- package/__dev__/utilities/typeFromAST.d.ts +1 -1
- package/__dev__/utilities/typedQueryDocumentNode.d.ts +1 -1
- package/__dev__/utilities/validateInputValue.d.ts +1 -1
- package/__dev__/utilities/valueFromAST.d.ts +1 -1
- package/__dev__/utilities/valueFromASTUntyped.d.ts +1 -1
- package/__dev__/utilities/valueToLiteral.d.ts +1 -1
- package/__dev__/validation/ValidationContext.d.ts +1 -1
- package/__dev__/validation/index.d.ts +1 -1
- package/__dev__/validation/rules/DeferStreamDirectiveLabelRule.d.ts +1 -1
- package/__dev__/validation/rules/DeferStreamDirectiveOnRootFieldRule.d.ts +1 -1
- package/__dev__/validation/rules/DeferStreamDirectiveOnValidOperationsRule.d.ts +1 -1
- package/__dev__/validation/rules/ExecutableDefinitionsRule.d.ts +1 -1
- package/__dev__/validation/rules/FieldsOnCorrectTypeRule.d.ts +1 -1
- package/__dev__/validation/rules/FragmentsOnCompositeTypesRule.d.ts +1 -1
- package/__dev__/validation/rules/KnownArgumentNamesRule.d.ts +1 -1
- package/__dev__/validation/rules/KnownDirectivesRule.d.ts +1 -1
- package/__dev__/validation/rules/KnownFragmentNamesRule.d.ts +1 -1
- package/__dev__/validation/rules/KnownOperationTypesRule.d.ts +1 -1
- package/__dev__/validation/rules/KnownTypeNamesRule.d.ts +1 -1
- package/__dev__/validation/rules/LoneAnonymousOperationRule.d.ts +1 -1
- package/__dev__/validation/rules/LoneSchemaDefinitionRule.d.ts +1 -1
- package/__dev__/validation/rules/MaxIntrospectionDepthRule.d.ts +1 -1
- package/__dev__/validation/rules/NoFragmentCyclesRule.d.ts +1 -1
- package/__dev__/validation/rules/NoUndefinedVariablesRule.d.ts +1 -1
- package/__dev__/validation/rules/NoUnusedFragmentsRule.d.ts +1 -1
- package/__dev__/validation/rules/NoUnusedVariablesRule.d.ts +1 -1
- package/__dev__/validation/rules/OverlappingFieldsCanBeMergedRule.d.ts +1 -1
- package/__dev__/validation/rules/PossibleFragmentSpreadsRule.d.ts +1 -1
- package/__dev__/validation/rules/PossibleTypeExtensionsRule.d.ts +1 -1
- package/__dev__/validation/rules/ProvidedRequiredArgumentsRule.d.ts +1 -1
- package/__dev__/validation/rules/ScalarLeafsRule.d.ts +1 -1
- package/__dev__/validation/rules/SingleFieldSubscriptionsRule.d.ts +1 -1
- package/__dev__/validation/rules/StreamDirectiveOnListFieldRule.d.ts +1 -1
- package/__dev__/validation/rules/UniqueArgumentDefinitionNamesRule.d.ts +1 -1
- package/__dev__/validation/rules/UniqueArgumentNamesRule.d.ts +1 -1
- package/__dev__/validation/rules/UniqueDirectiveNamesRule.d.ts +1 -1
- package/__dev__/validation/rules/UniqueDirectivesPerLocationRule.d.ts +1 -1
- package/__dev__/validation/rules/UniqueEnumValueNamesRule.d.ts +1 -1
- package/__dev__/validation/rules/UniqueFieldDefinitionNamesRule.d.ts +1 -1
- package/__dev__/validation/rules/UniqueFragmentNamesRule.d.ts +1 -1
- package/__dev__/validation/rules/UniqueInputFieldNamesRule.d.ts +1 -1
- package/__dev__/validation/rules/UniqueOperationNamesRule.d.ts +1 -1
- package/__dev__/validation/rules/UniqueOperationTypesRule.d.ts +1 -1
- package/__dev__/validation/rules/UniqueTypeNamesRule.d.ts +1 -1
- package/__dev__/validation/rules/UniqueVariableNamesRule.d.ts +1 -1
- package/__dev__/validation/rules/ValuesOfCorrectTypeRule.d.ts +1 -1
- package/__dev__/validation/rules/VariablesAreInputTypesRule.d.ts +1 -1
- package/__dev__/validation/rules/VariablesInAllowedPositionRule.d.ts +1 -1
- package/__dev__/validation/rules/custom/NoDeprecatedCustomRule.d.ts +1 -1
- package/__dev__/validation/rules/custom/NoSchemaIntrospectionCustomRule.d.ts +1 -1
- package/__dev__/validation/specifiedRules.d.ts +1 -1
- package/__dev__/validation/validate.d.ts +1 -1
- package/__dev__/version.d.ts +1 -1
- package/devMode.d.mts +29 -0
- package/devMode.d.ts +29 -0
- package/devMode.js.map +1 -1
- package/devMode.mjs.map +1 -1
- package/error/GraphQLError.d.mts +94 -10
- package/error/GraphQLError.d.ts +94 -10
- package/error/GraphQLError.js +11 -20
- package/error/GraphQLError.js.map +1 -1
- package/error/GraphQLError.mjs +11 -20
- package/error/GraphQLError.mjs.map +1 -1
- package/error/ensureGraphQLError.d.mts +2 -0
- package/error/ensureGraphQLError.d.ts +2 -0
- package/error/ensureGraphQLError.js +0 -3
- package/error/ensureGraphQLError.js.map +1 -1
- package/error/ensureGraphQLError.mjs +0 -3
- package/error/ensureGraphQLError.mjs.map +1 -1
- package/error/index.d.mts +6 -0
- package/error/index.d.ts +6 -0
- package/error/index.js.map +1 -1
- package/error/index.mjs.map +1 -1
- package/error/locatedError.d.mts +20 -0
- package/error/locatedError.d.ts +20 -0
- package/error/locatedError.js +0 -6
- package/error/locatedError.js.map +1 -1
- package/error/locatedError.mjs +0 -6
- package/error/locatedError.mjs.map +1 -1
- package/error/syntaxError.d.mts +15 -0
- package/error/syntaxError.d.ts +15 -0
- package/error/syntaxError.js +0 -4
- package/error/syntaxError.js.map +1 -1
- package/error/syntaxError.mjs +0 -4
- package/error/syntaxError.mjs.map +1 -1
- package/execution/AbortedGraphQLExecutionError.d.mts +27 -0
- package/execution/AbortedGraphQLExecutionError.d.ts +27 -0
- package/execution/AbortedGraphQLExecutionError.js.map +1 -1
- package/execution/AbortedGraphQLExecutionError.mjs.map +1 -1
- package/execution/AsyncWorkTracker.d.mts +1 -1
- package/execution/AsyncWorkTracker.d.ts +1 -1
- package/execution/AsyncWorkTracker.js +1 -5
- package/execution/AsyncWorkTracker.js.map +1 -1
- package/execution/AsyncWorkTracker.mjs +1 -5
- package/execution/AsyncWorkTracker.mjs.map +1 -1
- package/execution/ExecutionArgs.d.mts +101 -0
- package/execution/ExecutionArgs.d.ts +101 -0
- package/execution/ExecutionArgs.js +3 -0
- package/execution/ExecutionArgs.js.map +1 -0
- package/execution/ExecutionArgs.mjs +2 -0
- package/execution/ExecutionArgs.mjs.map +1 -0
- package/execution/Executor.d.mts +44 -40
- package/execution/Executor.d.ts +44 -40
- package/execution/Executor.js +2 -122
- package/execution/Executor.js.map +1 -1
- package/execution/Executor.mjs +2 -122
- package/execution/Executor.mjs.map +1 -1
- package/execution/ExecutorThrowingOnIncremental.js +0 -2
- package/execution/ExecutorThrowingOnIncremental.js.map +1 -1
- package/execution/ExecutorThrowingOnIncremental.mjs +0 -2
- package/execution/ExecutorThrowingOnIncremental.mjs.map +1 -1
- package/execution/buildResolveInfo.d.mts +2 -0
- package/execution/buildResolveInfo.d.ts +2 -0
- package/execution/buildResolveInfo.js +0 -3
- package/execution/buildResolveInfo.js.map +1 -1
- package/execution/buildResolveInfo.mjs +0 -3
- package/execution/buildResolveInfo.mjs.map +1 -1
- package/execution/cancellablePromise.d.mts +3 -0
- package/execution/cancellablePromise.d.ts +3 -0
- package/execution/cancellablePromise.js.map +1 -1
- package/execution/cancellablePromise.mjs.map +1 -1
- package/execution/collectFields.d.mts +10 -4
- package/execution/collectFields.d.ts +10 -4
- package/execution/collectFields.js +0 -41
- package/execution/collectFields.js.map +1 -1
- package/execution/collectFields.mjs +0 -41
- package/execution/collectFields.mjs.map +1 -1
- package/execution/collectIteratorPromises.d.mts +2 -0
- package/execution/collectIteratorPromises.d.ts +2 -0
- package/execution/collectIteratorPromises.js +0 -5
- package/execution/collectIteratorPromises.js.map +1 -1
- package/execution/collectIteratorPromises.mjs +0 -5
- package/execution/collectIteratorPromises.mjs.map +1 -1
- package/execution/createSharedExecutionContext.d.mts +1 -0
- package/execution/createSharedExecutionContext.d.ts +1 -0
- package/execution/createSharedExecutionContext.js.map +1 -1
- package/execution/createSharedExecutionContext.mjs.map +1 -1
- package/execution/execute.d.mts +403 -38
- package/execution/execute.d.ts +403 -38
- package/execution/execute.js +0 -161
- package/execution/execute.js.map +1 -1
- package/execution/execute.mjs +0 -161
- package/execution/execute.mjs.map +1 -1
- package/execution/getStreamUsage.d.mts +4 -1
- package/execution/getStreamUsage.d.ts +4 -1
- package/execution/getStreamUsage.js +0 -7
- package/execution/getStreamUsage.js.map +1 -1
- package/execution/getStreamUsage.mjs +0 -7
- package/execution/getStreamUsage.mjs.map +1 -1
- package/execution/getVariableSignature.d.mts +4 -1
- package/execution/getVariableSignature.d.ts +4 -1
- package/execution/getVariableSignature.js +0 -2
- package/execution/getVariableSignature.js.map +1 -1
- package/execution/getVariableSignature.mjs +0 -2
- package/execution/getVariableSignature.mjs.map +1 -1
- package/execution/hooks.d.mts +3 -7
- package/execution/hooks.d.ts +3 -7
- package/execution/hooks.js +0 -1
- package/execution/hooks.js.map +1 -1
- package/execution/hooks.mjs +0 -1
- package/execution/hooks.mjs.map +1 -1
- package/execution/incremental/Computation.d.mts +1 -1
- package/execution/incremental/Computation.d.ts +1 -1
- package/execution/incremental/Computation.js +0 -1
- package/execution/incremental/Computation.js.map +1 -1
- package/execution/incremental/Computation.mjs +0 -1
- package/execution/incremental/Computation.mjs.map +1 -1
- package/execution/incremental/IncrementalExecutor.d.mts +124 -9
- package/execution/incremental/IncrementalExecutor.d.ts +124 -9
- package/execution/incremental/IncrementalExecutor.js +1 -31
- package/execution/incremental/IncrementalExecutor.js.map +1 -1
- package/execution/incremental/IncrementalExecutor.mjs +1 -31
- package/execution/incremental/IncrementalExecutor.mjs.map +1 -1
- package/execution/incremental/IncrementalPublisher.d.mts +1 -3
- package/execution/incremental/IncrementalPublisher.d.ts +1 -3
- package/execution/incremental/IncrementalPublisher.js +0 -5
- package/execution/incremental/IncrementalPublisher.js.map +1 -1
- package/execution/incremental/IncrementalPublisher.mjs +0 -5
- package/execution/incremental/IncrementalPublisher.mjs.map +1 -1
- package/execution/incremental/Queue.js +3 -64
- package/execution/incremental/Queue.js.map +1 -1
- package/execution/incremental/Queue.mjs +2 -62
- package/execution/incremental/Queue.mjs.map +1 -1
- package/execution/incremental/WorkQueue.d.mts +8 -0
- package/execution/incremental/WorkQueue.d.ts +8 -0
- package/execution/incremental/WorkQueue.js +0 -15
- package/execution/incremental/WorkQueue.js.map +1 -1
- package/execution/incremental/WorkQueue.mjs +0 -15
- package/execution/incremental/WorkQueue.mjs.map +1 -1
- package/execution/incremental/buildExecutionPlan.d.mts +3 -0
- package/execution/incremental/buildExecutionPlan.d.ts +3 -0
- package/execution/incremental/buildExecutionPlan.js.map +1 -1
- package/execution/incremental/buildExecutionPlan.mjs.map +1 -1
- package/execution/index.d.mts +12 -3
- package/execution/index.d.ts +12 -3
- package/execution/index.js +4 -1
- package/execution/index.js.map +1 -1
- package/execution/index.mjs +1 -0
- package/execution/index.mjs.map +1 -1
- package/execution/legacyIncremental/BranchingIncrementalExecutor.d.mts +175 -0
- package/execution/legacyIncremental/BranchingIncrementalExecutor.d.ts +175 -0
- package/execution/legacyIncremental/BranchingIncrementalExecutor.js +69 -0
- package/execution/legacyIncremental/BranchingIncrementalExecutor.js.map +1 -0
- package/execution/legacyIncremental/BranchingIncrementalExecutor.mjs +65 -0
- package/execution/legacyIncremental/BranchingIncrementalExecutor.mjs.map +1 -0
- package/execution/legacyIncremental/BranchingIncrementalPublisher.d.mts +12 -0
- package/execution/legacyIncremental/BranchingIncrementalPublisher.d.ts +12 -0
- package/execution/legacyIncremental/BranchingIncrementalPublisher.js +131 -0
- package/execution/legacyIncremental/BranchingIncrementalPublisher.js.map +1 -0
- package/execution/legacyIncremental/BranchingIncrementalPublisher.mjs +127 -0
- package/execution/legacyIncremental/BranchingIncrementalPublisher.mjs.map +1 -0
- package/execution/legacyIncremental/legacyExecuteIncrementally.d.mts +165 -0
- package/execution/legacyIncremental/legacyExecuteIncrementally.d.ts +165 -0
- package/execution/legacyIncremental/legacyExecuteIncrementally.js +17 -0
- package/execution/legacyIncremental/legacyExecuteIncrementally.js.map +1 -0
- package/execution/legacyIncremental/legacyExecuteIncrementally.mjs +13 -0
- package/execution/legacyIncremental/legacyExecuteIncrementally.mjs.map +1 -0
- package/execution/mapAsyncIterable.d.mts +2 -0
- package/execution/mapAsyncIterable.d.ts +2 -0
- package/execution/mapAsyncIterable.js +0 -5
- package/execution/mapAsyncIterable.js.map +1 -1
- package/execution/mapAsyncIterable.mjs +0 -5
- package/execution/mapAsyncIterable.mjs.map +1 -1
- package/execution/returnIteratorCatchingErrors.d.mts +1 -0
- package/execution/returnIteratorCatchingErrors.d.ts +1 -0
- package/execution/returnIteratorCatchingErrors.js +0 -1
- package/execution/returnIteratorCatchingErrors.js.map +1 -1
- package/execution/returnIteratorCatchingErrors.mjs +0 -1
- package/execution/returnIteratorCatchingErrors.mjs.map +1 -1
- package/execution/values.d.mts +187 -5
- package/execution/values.d.ts +187 -5
- package/execution/values.js +14 -55
- package/execution/values.js.map +1 -1
- package/execution/values.mjs +14 -55
- package/execution/values.mjs.map +1 -1
- package/execution/withConcurrentAbruptClose.d.mts +2 -0
- package/execution/withConcurrentAbruptClose.d.ts +2 -0
- package/execution/withConcurrentAbruptClose.js +0 -14
- package/execution/withConcurrentAbruptClose.js.map +1 -1
- package/execution/withConcurrentAbruptClose.mjs +0 -14
- package/execution/withConcurrentAbruptClose.mjs.map +1 -1
- package/graphql.d.mts +192 -44
- package/graphql.d.ts +192 -44
- package/graphql.js +0 -12
- package/graphql.js.map +1 -1
- package/graphql.mjs +0 -12
- package/graphql.mjs.map +1 -1
- package/harness.d.mts +17 -0
- package/harness.d.ts +17 -0
- package/harness.js.map +1 -1
- package/harness.mjs.map +1 -1
- package/index.d.mts +26 -24
- package/index.d.ts +26 -24
- package/index.js +9 -96
- package/index.js.map +1 -1
- package/index.mjs +5 -149
- package/index.mjs.map +1 -1
- package/jsutils/AccumulatorMap.d.mts +2 -0
- package/jsutils/AccumulatorMap.d.ts +2 -0
- package/jsutils/AccumulatorMap.js +0 -4
- package/jsutils/AccumulatorMap.js.map +1 -1
- package/jsutils/AccumulatorMap.mjs +0 -4
- package/jsutils/AccumulatorMap.mjs.map +1 -1
- package/jsutils/Maybe.d.mts +5 -1
- package/jsutils/Maybe.d.ts +5 -1
- package/jsutils/Maybe.js.map +1 -1
- package/jsutils/Maybe.mjs.map +1 -1
- package/jsutils/ObjMap.d.mts +6 -0
- package/jsutils/ObjMap.d.ts +6 -0
- package/jsutils/ObjMap.js.map +1 -1
- package/jsutils/ObjMap.mjs.map +1 -1
- package/jsutils/Path.d.mts +30 -0
- package/jsutils/Path.d.ts +30 -0
- package/jsutils/Path.js +0 -6
- package/jsutils/Path.js.map +1 -1
- package/jsutils/Path.mjs +0 -6
- package/jsutils/Path.mjs.map +1 -1
- package/jsutils/PromiseOrValue.d.mts +1 -0
- package/jsutils/PromiseOrValue.d.ts +1 -0
- package/jsutils/PromiseOrValue.js.map +1 -1
- package/jsutils/PromiseOrValue.mjs.map +1 -1
- package/jsutils/capitalize.d.mts +2 -0
- package/jsutils/capitalize.d.ts +2 -0
- package/jsutils/capitalize.js +0 -3
- package/jsutils/capitalize.js.map +1 -1
- package/jsutils/capitalize.mjs +0 -3
- package/jsutils/capitalize.mjs.map +1 -1
- package/jsutils/devAssert.d.mts +1 -0
- package/jsutils/devAssert.d.ts +1 -0
- package/jsutils/devAssert.js.map +1 -1
- package/jsutils/devAssert.mjs.map +1 -1
- package/jsutils/didYouMean.d.mts +4 -1
- package/jsutils/didYouMean.d.ts +4 -1
- package/jsutils/didYouMean.js.map +1 -1
- package/jsutils/didYouMean.mjs.map +1 -1
- package/jsutils/formatList.d.mts +6 -2
- package/jsutils/formatList.d.ts +6 -2
- package/jsutils/formatList.js +0 -6
- package/jsutils/formatList.js.map +1 -1
- package/jsutils/formatList.mjs +0 -6
- package/jsutils/formatList.mjs.map +1 -1
- package/jsutils/getBySet.d.mts +1 -0
- package/jsutils/getBySet.d.ts +1 -0
- package/jsutils/getBySet.js.map +1 -1
- package/jsutils/getBySet.mjs.map +1 -1
- package/jsutils/groupBy.d.mts +2 -0
- package/jsutils/groupBy.d.ts +2 -0
- package/jsutils/groupBy.js +0 -3
- package/jsutils/groupBy.js.map +1 -1
- package/jsutils/groupBy.mjs +0 -3
- package/jsutils/groupBy.mjs.map +1 -1
- package/jsutils/identityFunc.d.mts +2 -0
- package/jsutils/identityFunc.d.ts +2 -0
- package/jsutils/identityFunc.js +0 -3
- package/jsutils/identityFunc.js.map +1 -1
- package/jsutils/identityFunc.mjs +0 -3
- package/jsutils/identityFunc.mjs.map +1 -1
- package/jsutils/inspect.d.mts +2 -0
- package/jsutils/inspect.d.ts +2 -0
- package/jsutils/inspect.js +0 -4
- package/jsutils/inspect.js.map +1 -1
- package/jsutils/inspect.mjs +0 -4
- package/jsutils/inspect.mjs.map +1 -1
- package/jsutils/instanceOf.d.mts +2 -0
- package/jsutils/instanceOf.d.ts +2 -0
- package/jsutils/instanceOf.js +1 -12
- package/jsutils/instanceOf.js.map +1 -1
- package/jsutils/instanceOf.mjs +1 -12
- package/jsutils/instanceOf.mjs.map +1 -1
- package/jsutils/invariant.d.mts +1 -0
- package/jsutils/invariant.d.ts +1 -0
- package/jsutils/invariant.js.map +1 -1
- package/jsutils/invariant.mjs.map +1 -1
- package/jsutils/isAsyncIterable.d.mts +2 -0
- package/jsutils/isAsyncIterable.d.ts +2 -0
- package/jsutils/isAsyncIterable.js +0 -4
- package/jsutils/isAsyncIterable.js.map +1 -1
- package/jsutils/isAsyncIterable.mjs +0 -4
- package/jsutils/isAsyncIterable.mjs.map +1 -1
- package/jsutils/isIterableObject.d.mts +6 -5
- package/jsutils/isIterableObject.d.ts +6 -5
- package/jsutils/isIterableObject.js +0 -17
- package/jsutils/isIterableObject.js.map +1 -1
- package/jsutils/isIterableObject.mjs +0 -17
- package/jsutils/isIterableObject.mjs.map +1 -1
- package/jsutils/isObjectLike.d.mts +2 -0
- package/jsutils/isObjectLike.d.ts +2 -0
- package/jsutils/isObjectLike.js +0 -4
- package/jsutils/isObjectLike.js.map +1 -1
- package/jsutils/isObjectLike.mjs +0 -4
- package/jsutils/isObjectLike.mjs.map +1 -1
- package/jsutils/isPromise.d.mts +3 -0
- package/jsutils/isPromise.d.ts +3 -0
- package/jsutils/isPromise.js +0 -4
- package/jsutils/isPromise.js.map +1 -1
- package/jsutils/isPromise.mjs +0 -4
- package/jsutils/isPromise.mjs.map +1 -1
- package/jsutils/isSameSet.d.mts +1 -0
- package/jsutils/isSameSet.d.ts +1 -0
- package/jsutils/isSameSet.js.map +1 -1
- package/jsutils/isSameSet.mjs.map +1 -1
- package/jsutils/keyMap.d.mts +7 -14
- package/jsutils/keyMap.d.ts +7 -14
- package/jsutils/keyMap.js +0 -27
- package/jsutils/keyMap.js.map +1 -1
- package/jsutils/keyMap.mjs +0 -27
- package/jsutils/keyMap.mjs.map +1 -1
- package/jsutils/keyValMap.d.mts +9 -6
- package/jsutils/keyValMap.d.ts +9 -6
- package/jsutils/keyValMap.js +0 -17
- package/jsutils/keyValMap.js.map +1 -1
- package/jsutils/keyValMap.mjs +0 -17
- package/jsutils/keyValMap.mjs.map +1 -1
- package/jsutils/mapValue.d.mts +2 -0
- package/jsutils/mapValue.d.ts +2 -0
- package/jsutils/mapValue.js +0 -4
- package/jsutils/mapValue.js.map +1 -1
- package/jsutils/mapValue.mjs +0 -4
- package/jsutils/mapValue.mjs.map +1 -1
- package/jsutils/memoize1.d.mts +2 -0
- package/jsutils/memoize1.d.ts +2 -0
- package/jsutils/memoize1.js +0 -3
- package/jsutils/memoize1.js.map +1 -1
- package/jsutils/memoize1.mjs +0 -3
- package/jsutils/memoize1.mjs.map +1 -1
- package/jsutils/memoize2.d.mts +2 -0
- package/jsutils/memoize2.d.ts +2 -0
- package/jsutils/memoize2.js +0 -3
- package/jsutils/memoize2.js.map +1 -1
- package/jsutils/memoize2.mjs +0 -3
- package/jsutils/memoize2.mjs.map +1 -1
- package/jsutils/memoize3.d.mts +2 -0
- package/jsutils/memoize3.d.ts +2 -0
- package/jsutils/memoize3.js +0 -3
- package/jsutils/memoize3.js.map +1 -1
- package/jsutils/memoize3.mjs +0 -3
- package/jsutils/memoize3.mjs.map +1 -1
- package/jsutils/naturalCompare.d.mts +1 -0
- package/jsutils/naturalCompare.d.ts +1 -0
- package/jsutils/naturalCompare.js +0 -7
- package/jsutils/naturalCompare.js.map +1 -1
- package/jsutils/naturalCompare.mjs +0 -7
- package/jsutils/naturalCompare.mjs.map +1 -1
- package/jsutils/printPathArray.d.mts +2 -0
- package/jsutils/printPathArray.d.ts +2 -0
- package/jsutils/printPathArray.js +0 -3
- package/jsutils/printPathArray.js.map +1 -1
- package/jsutils/printPathArray.mjs +0 -3
- package/jsutils/printPathArray.mjs.map +1 -1
- package/jsutils/promiseForObject.d.mts +2 -0
- package/jsutils/promiseForObject.d.ts +2 -0
- package/jsutils/promiseForObject.js +0 -7
- package/jsutils/promiseForObject.js.map +1 -1
- package/jsutils/promiseForObject.mjs +0 -7
- package/jsutils/promiseForObject.mjs.map +1 -1
- package/jsutils/promiseReduce.d.mts +2 -0
- package/jsutils/promiseReduce.d.ts +2 -0
- package/jsutils/promiseReduce.js +0 -7
- package/jsutils/promiseReduce.js.map +1 -1
- package/jsutils/promiseReduce.mjs +0 -7
- package/jsutils/promiseReduce.mjs.map +1 -1
- package/jsutils/promiseWithResolvers.d.mts +2 -0
- package/jsutils/promiseWithResolvers.d.ts +2 -0
- package/jsutils/promiseWithResolvers.js +0 -5
- package/jsutils/promiseWithResolvers.js.map +1 -1
- package/jsutils/promiseWithResolvers.mjs +0 -5
- package/jsutils/promiseWithResolvers.mjs.map +1 -1
- package/jsutils/suggestionList.d.mts +2 -0
- package/jsutils/suggestionList.d.ts +2 -0
- package/jsutils/suggestionList.js +1 -24
- package/jsutils/suggestionList.js.map +1 -1
- package/jsutils/suggestionList.mjs +1 -24
- package/jsutils/suggestionList.mjs.map +1 -1
- package/jsutils/toError.d.mts +2 -0
- package/jsutils/toError.d.ts +2 -0
- package/jsutils/toError.js +0 -3
- package/jsutils/toError.js.map +1 -1
- package/jsutils/toError.mjs +0 -3
- package/jsutils/toError.mjs.map +1 -1
- package/jsutils/toObjMap.d.mts +2 -0
- package/jsutils/toObjMap.d.ts +2 -0
- package/jsutils/toObjMap.js.map +1 -1
- package/jsutils/toObjMap.mjs.map +1 -1
- package/language/KindTypeMap.d.mts +1 -0
- package/language/KindTypeMap.d.ts +1 -0
- package/language/KindTypeMap.js.map +1 -1
- package/language/KindTypeMap.mjs.map +1 -1
- package/language/ast.d.mts +413 -53
- package/language/ast.d.ts +413 -53
- package/language/ast.js +0 -20
- package/language/ast.js.map +1 -1
- package/language/ast.mjs +0 -20
- package/language/ast.mjs.map +1 -1
- package/language/blockString.d.mts +1 -3
- package/language/blockString.d.ts +1 -3
- package/language/blockString.js +11 -37
- package/language/blockString.js.map +1 -1
- package/language/blockString.mjs +11 -37
- package/language/blockString.mjs.map +1 -1
- package/language/characterClasses.js +2 -45
- package/language/characterClasses.js.map +1 -1
- package/language/characterClasses.mjs +2 -45
- package/language/characterClasses.mjs.map +1 -1
- package/language/directiveLocation.d.mts +24 -5
- package/language/directiveLocation.d.ts +24 -5
- package/language/directiveLocation.js +0 -5
- package/language/directiveLocation.js.map +1 -1
- package/language/directiveLocation.mjs +0 -5
- package/language/directiveLocation.mjs.map +1 -1
- package/language/index.d.mts +6 -0
- package/language/index.d.ts +6 -0
- package/language/index.js +0 -4
- package/language/index.js.map +1 -1
- package/language/index.mjs +0 -4
- package/language/index.mjs.map +1 -1
- package/language/kinds.d.mts +3 -0
- package/language/kinds.d.ts +3 -0
- package/language/kinds.js.map +1 -1
- package/language/kinds.mjs.map +1 -1
- package/language/kinds_.d.mts +100 -12
- package/language/kinds_.d.ts +100 -12
- package/language/kinds_.js +0 -13
- package/language/kinds_.js.map +1 -1
- package/language/kinds_.mjs +0 -13
- package/language/kinds_.mjs.map +1 -1
- package/language/lexer.d.mts +48 -15
- package/language/lexer.d.ts +48 -15
- package/language/lexer.js +37 -278
- package/language/lexer.js.map +1 -1
- package/language/lexer.mjs +37 -278
- package/language/lexer.mjs.map +1 -1
- package/language/location.d.mts +16 -3
- package/language/location.d.ts +16 -3
- package/language/location.js +0 -4
- package/language/location.js.map +1 -1
- package/language/location.mjs +0 -4
- package/language/location.mjs.map +1 -1
- package/language/parser.d.mts +224 -9
- package/language/parser.d.ts +224 -9
- package/language/parser.js +0 -375
- package/language/parser.js.map +1 -1
- package/language/parser.mjs +0 -375
- package/language/parser.mjs.map +1 -1
- package/language/predicates.d.mts +181 -0
- package/language/predicates.d.ts +181 -0
- package/language/predicates.js +0 -6
- package/language/predicates.js.map +1 -1
- package/language/predicates.mjs +0 -6
- package/language/predicates.mjs.map +1 -1
- package/language/printLocation.d.mts +28 -0
- package/language/printLocation.d.ts +28 -0
- package/language/printLocation.js +0 -8
- package/language/printLocation.js.map +1 -1
- package/language/printLocation.mjs +0 -8
- package/language/printLocation.mjs.map +1 -1
- package/language/printString.d.mts +2 -0
- package/language/printString.d.ts +2 -0
- package/language/printString.js +5 -11
- package/language/printString.js.map +1 -1
- package/language/printString.mjs +5 -11
- package/language/printString.mjs.map +1 -1
- package/language/printer.d.mts +12 -0
- package/language/printer.d.ts +12 -0
- package/language/printer.js +0 -25
- package/language/printer.js.map +1 -1
- package/language/printer.mjs +0 -25
- package/language/printer.mjs.map +1 -1
- package/language/schemaCoordinateLexer.d.mts +14 -0
- package/language/schemaCoordinateLexer.d.ts +14 -0
- package/language/schemaCoordinateLexer.js +5 -35
- package/language/schemaCoordinateLexer.js.map +1 -1
- package/language/schemaCoordinateLexer.mjs +5 -35
- package/language/schemaCoordinateLexer.mjs.map +1 -1
- package/language/source.d.mts +28 -1
- package/language/source.d.ts +28 -1
- package/language/source.js +0 -12
- package/language/source.js.map +1 -1
- package/language/source.mjs +0 -12
- package/language/source.mjs.map +1 -1
- package/language/tokenKind.d.mts +5 -0
- package/language/tokenKind.d.ts +5 -0
- package/language/tokenKind.js +0 -4
- package/language/tokenKind.js.map +1 -1
- package/language/tokenKind.mjs +0 -4
- package/language/tokenKind.mjs.map +1 -1
- package/language/visitor.d.mts +182 -72
- package/language/visitor.d.ts +182 -72
- package/language/visitor.js +0 -15
- package/language/visitor.js.map +1 -1
- package/language/visitor.mjs +0 -15
- package/language/visitor.mjs.map +1 -1
- package/package.json +1 -1
- package/type/assertName.d.mts +18 -1
- package/type/assertName.d.ts +18 -1
- package/type/assertName.js +0 -8
- package/type/assertName.js.map +1 -1
- package/type/assertName.mjs +0 -8
- package/type/assertName.mjs.map +1 -1
- package/type/definition.d.mts +3258 -128
- package/type/definition.d.ts +3258 -128
- package/type/definition.js +5 -252
- package/type/definition.js.map +1 -1
- package/type/definition.mjs +5 -252
- package/type/definition.mjs.map +1 -1
- package/type/directives.d.mts +209 -20
- package/type/directives.d.ts +209 -20
- package/type/directives.js +0 -37
- package/type/directives.js.map +1 -1
- package/type/directives.mjs +0 -37
- package/type/directives.mjs.map +1 -1
- package/type/index.d.mts +6 -0
- package/type/index.d.ts +6 -0
- package/type/index.js +0 -23
- package/type/index.js.map +1 -1
- package/type/index.mjs +5 -48
- package/type/index.mjs.map +1 -1
- package/type/introspection.d.mts +36 -0
- package/type/introspection.d.ts +36 -0
- package/type/introspection.js +1 -6
- package/type/introspection.js.map +1 -1
- package/type/introspection.mjs +1 -6
- package/type/introspection.mjs.map +1 -1
- package/type/scalars.d.mts +29 -2
- package/type/scalars.d.ts +29 -2
- package/type/scalars.js +0 -15
- package/type/scalars.js.map +1 -1
- package/type/scalars.mjs +0 -15
- package/type/scalars.mjs.map +1 -1
- package/type/schema.d.mts +507 -31
- package/type/schema.d.ts +507 -31
- package/type/schema.js +0 -97
- package/type/schema.js.map +1 -1
- package/type/schema.mjs +0 -97
- package/type/schema.mjs.map +1 -1
- package/type/validate.d.mts +32 -3
- package/type/validate.d.ts +32 -3
- package/type/validate.js +0 -112
- package/type/validate.js.map +1 -1
- package/type/validate.mjs +0 -112
- package/type/validate.mjs.map +1 -1
- package/utilities/TypeInfo.d.mts +564 -1
- package/utilities/TypeInfo.d.ts +564 -1
- package/utilities/TypeInfo.js +1 -24
- package/utilities/TypeInfo.js.map +1 -1
- package/utilities/TypeInfo.mjs +1 -24
- package/utilities/TypeInfo.mjs.map +1 -1
- package/utilities/astFromValue.d.mts +36 -3
- package/utilities/astFromValue.d.ts +36 -3
- package/utilities/astFromValue.js +0 -42
- package/utilities/astFromValue.js.map +1 -1
- package/utilities/astFromValue.mjs +0 -42
- package/utilities/astFromValue.mjs.map +1 -1
- package/utilities/buildASTSchema.d.mts +66 -6
- package/utilities/buildASTSchema.d.ts +66 -6
- package/utilities/buildASTSchema.js +0 -21
- package/utilities/buildASTSchema.js.map +1 -1
- package/utilities/buildASTSchema.mjs +0 -21
- package/utilities/buildASTSchema.mjs.map +1 -1
- package/utilities/buildClientSchema.d.mts +17 -2
- package/utilities/buildClientSchema.d.ts +17 -2
- package/utilities/buildClientSchema.js +1 -32
- package/utilities/buildClientSchema.js.map +1 -1
- package/utilities/buildClientSchema.mjs +0 -30
- package/utilities/buildClientSchema.mjs.map +1 -1
- package/utilities/coerceInputValue.d.mts +83 -1
- package/utilities/coerceInputValue.d.ts +83 -1
- package/utilities/coerceInputValue.js +21 -50
- package/utilities/coerceInputValue.js.map +1 -1
- package/utilities/coerceInputValue.mjs +21 -50
- package/utilities/coerceInputValue.mjs.map +1 -1
- package/utilities/concatAST.d.mts +12 -0
- package/utilities/concatAST.d.ts +12 -0
- package/utilities/concatAST.js +0 -5
- package/utilities/concatAST.js.map +1 -1
- package/utilities/concatAST.mjs +0 -5
- package/utilities/concatAST.mjs.map +1 -1
- package/utilities/extendSchema.d.mts +58 -3
- package/utilities/extendSchema.d.ts +58 -3
- package/utilities/extendSchema.js +0 -60
- package/utilities/extendSchema.js.map +1 -1
- package/utilities/extendSchema.mjs +0 -60
- package/utilities/extendSchema.mjs.map +1 -1
- package/utilities/findSchemaChanges.d.mts +99 -1
- package/utilities/findSchemaChanges.d.ts +99 -1
- package/utilities/findSchemaChanges.js +3 -35
- package/utilities/findSchemaChanges.js.map +1 -1
- package/utilities/findSchemaChanges.mjs +3 -35
- package/utilities/findSchemaChanges.mjs.map +1 -1
- package/utilities/getDefaultValueAST.d.mts +1 -0
- package/utilities/getDefaultValueAST.d.ts +1 -0
- package/utilities/getDefaultValueAST.js +0 -2
- package/utilities/getDefaultValueAST.js.map +1 -1
- package/utilities/getDefaultValueAST.mjs +0 -2
- package/utilities/getDefaultValueAST.mjs.map +1 -1
- package/utilities/getIntrospectionQuery.d.mts +132 -0
- package/utilities/getIntrospectionQuery.d.ts +132 -0
- package/utilities/getIntrospectionQuery.js +0 -4
- package/utilities/getIntrospectionQuery.js.map +1 -1
- package/utilities/getIntrospectionQuery.mjs +0 -4
- package/utilities/getIntrospectionQuery.mjs.map +1 -1
- package/utilities/getOperationAST.d.mts +15 -0
- package/utilities/getOperationAST.d.ts +15 -0
- package/utilities/getOperationAST.js +0 -8
- package/utilities/getOperationAST.js.map +1 -1
- package/utilities/getOperationAST.mjs +0 -8
- package/utilities/getOperationAST.mjs.map +1 -1
- package/utilities/index.d.mts +18 -3
- package/utilities/index.d.ts +18 -3
- package/utilities/index.js +0 -27
- package/utilities/index.js.map +1 -1
- package/utilities/index.mjs +4 -37
- package/utilities/index.mjs.map +1 -1
- package/utilities/introspectionFromSchema.d.mts +54 -0
- package/utilities/introspectionFromSchema.d.ts +54 -0
- package/utilities/introspectionFromSchema.js +0 -9
- package/utilities/introspectionFromSchema.js.map +1 -1
- package/utilities/introspectionFromSchema.mjs +0 -9
- package/utilities/introspectionFromSchema.mjs.map +1 -1
- package/utilities/lexicographicSortSchema.d.mts +35 -0
- package/utilities/lexicographicSortSchema.d.ts +35 -0
- package/utilities/lexicographicSortSchema.js +0 -5
- package/utilities/lexicographicSortSchema.js.map +1 -1
- package/utilities/lexicographicSortSchema.mjs +0 -5
- package/utilities/lexicographicSortSchema.mjs.map +1 -1
- package/utilities/mapSchemaConfig.d.mts +6 -3
- package/utilities/mapSchemaConfig.d.ts +6 -3
- package/utilities/mapSchemaConfig.js +0 -10
- package/utilities/mapSchemaConfig.js.map +1 -1
- package/utilities/mapSchemaConfig.mjs +0 -10
- package/utilities/mapSchemaConfig.mjs.map +1 -1
- package/utilities/printSchema.d.mts +84 -0
- package/utilities/printSchema.d.ts +84 -0
- package/utilities/printSchema.js +0 -28
- package/utilities/printSchema.js.map +1 -1
- package/utilities/printSchema.mjs +0 -28
- package/utilities/printSchema.mjs.map +1 -1
- package/utilities/replaceVariables.d.mts +36 -0
- package/utilities/replaceVariables.d.ts +36 -0
- package/utilities/replaceVariables.js +0 -8
- package/utilities/replaceVariables.js.map +1 -1
- package/utilities/replaceVariables.mjs +0 -8
- package/utilities/replaceVariables.mjs.map +1 -1
- package/utilities/resolveSchemaCoordinate.d.mts +62 -0
- package/utilities/resolveSchemaCoordinate.d.ts +62 -0
- package/utilities/resolveSchemaCoordinate.js +0 -56
- package/utilities/resolveSchemaCoordinate.js.map +1 -1
- package/utilities/resolveSchemaCoordinate.mjs +0 -56
- package/utilities/resolveSchemaCoordinate.mjs.map +1 -1
- package/utilities/separateOperations.d.mts +30 -0
- package/utilities/separateOperations.d.ts +30 -0
- package/utilities/separateOperations.js +0 -15
- package/utilities/separateOperations.js.map +1 -1
- package/utilities/separateOperations.mjs +0 -15
- package/utilities/separateOperations.mjs.map +1 -1
- package/utilities/sortValueNode.js +0 -7
- package/utilities/sortValueNode.js.map +1 -1
- package/utilities/sortValueNode.mjs +0 -7
- package/utilities/sortValueNode.mjs.map +1 -1
- package/utilities/stripIgnoredCharacters.d.mts +13 -6
- package/utilities/stripIgnoredCharacters.d.ts +13 -6
- package/utilities/stripIgnoredCharacters.js +0 -65
- package/utilities/stripIgnoredCharacters.js.map +1 -1
- package/utilities/stripIgnoredCharacters.mjs +0 -65
- package/utilities/stripIgnoredCharacters.mjs.map +1 -1
- package/utilities/typeComparators.d.mts +84 -0
- package/utilities/typeComparators.d.ts +84 -0
- package/utilities/typeComparators.js +0 -33
- package/utilities/typeComparators.js.map +1 -1
- package/utilities/typeComparators.mjs +0 -33
- package/utilities/typeComparators.mjs.map +1 -1
- package/utilities/typeFromAST.d.mts +86 -0
- package/utilities/typeFromAST.d.ts +86 -0
- package/utilities/typeFromAST.js.map +1 -1
- package/utilities/typeFromAST.mjs.map +1 -1
- package/utilities/typedQueryDocumentNode.d.mts +4 -0
- package/utilities/typedQueryDocumentNode.d.ts +4 -0
- package/utilities/typedQueryDocumentNode.js.map +1 -1
- package/utilities/typedQueryDocumentNode.mjs.map +1 -1
- package/utilities/validateInputValue.d.mts +123 -0
- package/utilities/validateInputValue.d.ts +123 -0
- package/utilities/validateInputValue.js +0 -20
- package/utilities/validateInputValue.js.map +1 -1
- package/utilities/validateInputValue.mjs +0 -20
- package/utilities/validateInputValue.mjs.map +1 -1
- package/utilities/valueFromAST.d.mts +41 -0
- package/utilities/valueFromAST.d.ts +41 -0
- package/utilities/valueFromAST.js +13 -51
- package/utilities/valueFromAST.js.map +1 -1
- package/utilities/valueFromAST.mjs +13 -51
- package/utilities/valueFromAST.mjs.map +1 -1
- package/utilities/valueFromASTUntyped.d.mts +15 -2
- package/utilities/valueFromASTUntyped.d.ts +15 -2
- package/utilities/valueFromASTUntyped.js +0 -16
- package/utilities/valueFromASTUntyped.js.map +1 -1
- package/utilities/valueFromASTUntyped.mjs +0 -16
- package/utilities/valueFromASTUntyped.mjs.map +1 -1
- package/utilities/valueToLiteral.d.mts +30 -1
- package/utilities/valueToLiteral.d.ts +30 -1
- package/utilities/valueToLiteral.js +7 -40
- package/utilities/valueToLiteral.js.map +1 -1
- package/utilities/valueToLiteral.mjs +7 -40
- package/utilities/valueToLiteral.mjs.map +1 -1
- package/validation/ValidationContext.d.mts +490 -0
- package/validation/ValidationContext.d.ts +490 -0
- package/validation/ValidationContext.js +1 -8
- package/validation/ValidationContext.js.map +1 -1
- package/validation/ValidationContext.mjs +1 -8
- package/validation/ValidationContext.mjs.map +1 -1
- package/validation/index.d.mts +7 -0
- package/validation/index.d.ts +7 -0
- package/validation/index.js +0 -34
- package/validation/index.js.map +1 -1
- package/validation/index.mjs +0 -34
- package/validation/index.mjs.map +1 -1
- package/validation/rules/DeferStreamDirectiveLabelRule.d.mts +30 -0
- package/validation/rules/DeferStreamDirectiveLabelRule.d.ts +30 -0
- package/validation/rules/DeferStreamDirectiveLabelRule.js +0 -5
- package/validation/rules/DeferStreamDirectiveLabelRule.js.map +1 -1
- package/validation/rules/DeferStreamDirectiveLabelRule.mjs +0 -5
- package/validation/rules/DeferStreamDirectiveLabelRule.mjs.map +1 -1
- package/validation/rules/DeferStreamDirectiveOnRootFieldRule.d.mts +28 -0
- package/validation/rules/DeferStreamDirectiveOnRootFieldRule.d.ts +28 -0
- package/validation/rules/DeferStreamDirectiveOnRootFieldRule.js +0 -5
- package/validation/rules/DeferStreamDirectiveOnRootFieldRule.js.map +1 -1
- package/validation/rules/DeferStreamDirectiveOnRootFieldRule.mjs +0 -5
- package/validation/rules/DeferStreamDirectiveOnRootFieldRule.mjs.map +1 -1
- package/validation/rules/DeferStreamDirectiveOnValidOperationsRule.d.mts +52 -0
- package/validation/rules/DeferStreamDirectiveOnValidOperationsRule.d.ts +52 -0
- package/validation/rules/DeferStreamDirectiveOnValidOperationsRule.js +0 -5
- package/validation/rules/DeferStreamDirectiveOnValidOperationsRule.js.map +1 -1
- package/validation/rules/DeferStreamDirectiveOnValidOperationsRule.mjs +0 -5
- package/validation/rules/DeferStreamDirectiveOnValidOperationsRule.mjs.map +1 -1
- package/validation/rules/ExecutableDefinitionsRule.d.mts +28 -0
- package/validation/rules/ExecutableDefinitionsRule.d.ts +28 -0
- package/validation/rules/ExecutableDefinitionsRule.js +0 -8
- package/validation/rules/ExecutableDefinitionsRule.js.map +1 -1
- package/validation/rules/ExecutableDefinitionsRule.mjs +0 -8
- package/validation/rules/ExecutableDefinitionsRule.mjs.map +1 -1
- package/validation/rules/FieldsOnCorrectTypeRule.d.mts +28 -0
- package/validation/rules/FieldsOnCorrectTypeRule.d.ts +28 -0
- package/validation/rules/FieldsOnCorrectTypeRule.js +0 -27
- package/validation/rules/FieldsOnCorrectTypeRule.js.map +1 -1
- package/validation/rules/FieldsOnCorrectTypeRule.mjs +0 -27
- package/validation/rules/FieldsOnCorrectTypeRule.mjs.map +1 -1
- package/validation/rules/FragmentsOnCompositeTypesRule.d.mts +28 -0
- package/validation/rules/FragmentsOnCompositeTypesRule.d.ts +28 -0
- package/validation/rules/FragmentsOnCompositeTypesRule.js +0 -9
- package/validation/rules/FragmentsOnCompositeTypesRule.js.map +1 -1
- package/validation/rules/FragmentsOnCompositeTypesRule.mjs +0 -9
- package/validation/rules/FragmentsOnCompositeTypesRule.mjs.map +1 -1
- package/validation/rules/KnownArgumentNamesRule.d.mts +29 -3
- package/validation/rules/KnownArgumentNamesRule.d.ts +29 -3
- package/validation/rules/KnownArgumentNamesRule.js +0 -13
- package/validation/rules/KnownArgumentNamesRule.js.map +1 -1
- package/validation/rules/KnownArgumentNamesRule.mjs +0 -13
- package/validation/rules/KnownArgumentNamesRule.mjs.map +1 -1
- package/validation/rules/KnownDirectivesRule.d.mts +28 -0
- package/validation/rules/KnownDirectivesRule.d.ts +28 -0
- package/validation/rules/KnownDirectivesRule.js +0 -10
- package/validation/rules/KnownDirectivesRule.js.map +1 -1
- package/validation/rules/KnownDirectivesRule.mjs +0 -10
- package/validation/rules/KnownDirectivesRule.mjs.map +1 -1
- package/validation/rules/KnownFragmentNamesRule.d.mts +28 -0
- package/validation/rules/KnownFragmentNamesRule.d.ts +28 -0
- package/validation/rules/KnownFragmentNamesRule.js +0 -8
- package/validation/rules/KnownFragmentNamesRule.js.map +1 -1
- package/validation/rules/KnownFragmentNamesRule.mjs +0 -8
- package/validation/rules/KnownFragmentNamesRule.mjs.map +1 -1
- package/validation/rules/KnownOperationTypesRule.d.mts +20 -0
- package/validation/rules/KnownOperationTypesRule.d.ts +20 -0
- package/validation/rules/KnownOperationTypesRule.js +0 -8
- package/validation/rules/KnownOperationTypesRule.js.map +1 -1
- package/validation/rules/KnownOperationTypesRule.mjs +0 -8
- package/validation/rules/KnownOperationTypesRule.mjs.map +1 -1
- package/validation/rules/KnownTypeNamesRule.d.mts +28 -0
- package/validation/rules/KnownTypeNamesRule.d.ts +28 -0
- package/validation/rules/KnownTypeNamesRule.js +0 -8
- package/validation/rules/KnownTypeNamesRule.js.map +1 -1
- package/validation/rules/KnownTypeNamesRule.mjs +0 -8
- package/validation/rules/KnownTypeNamesRule.mjs.map +1 -1
- package/validation/rules/LoneAnonymousOperationRule.d.mts +28 -0
- package/validation/rules/LoneAnonymousOperationRule.d.ts +28 -0
- package/validation/rules/LoneAnonymousOperationRule.js +0 -8
- package/validation/rules/LoneAnonymousOperationRule.js.map +1 -1
- package/validation/rules/LoneAnonymousOperationRule.mjs +0 -8
- package/validation/rules/LoneAnonymousOperationRule.mjs.map +1 -1
- package/validation/rules/LoneSchemaDefinitionRule.d.mts +21 -0
- package/validation/rules/LoneSchemaDefinitionRule.d.ts +21 -0
- package/validation/rules/LoneSchemaDefinitionRule.js +0 -5
- package/validation/rules/LoneSchemaDefinitionRule.js.map +1 -1
- package/validation/rules/LoneSchemaDefinitionRule.mjs +0 -5
- package/validation/rules/LoneSchemaDefinitionRule.mjs.map +1 -1
- package/validation/rules/MaxIntrospectionDepthRule.d.mts +31 -0
- package/validation/rules/MaxIntrospectionDepthRule.d.ts +31 -0
- package/validation/rules/MaxIntrospectionDepthRule.js +0 -14
- package/validation/rules/MaxIntrospectionDepthRule.js.map +1 -1
- package/validation/rules/MaxIntrospectionDepthRule.mjs +0 -14
- package/validation/rules/MaxIntrospectionDepthRule.mjs.map +1 -1
- package/validation/rules/NoFragmentCyclesRule.d.mts +28 -0
- package/validation/rules/NoFragmentCyclesRule.d.ts +28 -0
- package/validation/rules/NoFragmentCyclesRule.js +0 -15
- package/validation/rules/NoFragmentCyclesRule.js.map +1 -1
- package/validation/rules/NoFragmentCyclesRule.mjs +0 -15
- package/validation/rules/NoFragmentCyclesRule.mjs.map +1 -1
- package/validation/rules/NoUndefinedVariablesRule.d.mts +28 -0
- package/validation/rules/NoUndefinedVariablesRule.d.ts +28 -0
- package/validation/rules/NoUndefinedVariablesRule.js +0 -8
- package/validation/rules/NoUndefinedVariablesRule.js.map +1 -1
- package/validation/rules/NoUndefinedVariablesRule.mjs +0 -8
- package/validation/rules/NoUndefinedVariablesRule.mjs.map +1 -1
- package/validation/rules/NoUnusedFragmentsRule.d.mts +28 -0
- package/validation/rules/NoUnusedFragmentsRule.d.ts +28 -0
- package/validation/rules/NoUnusedFragmentsRule.js +0 -8
- package/validation/rules/NoUnusedFragmentsRule.js.map +1 -1
- package/validation/rules/NoUnusedFragmentsRule.mjs +0 -8
- package/validation/rules/NoUnusedFragmentsRule.mjs.map +1 -1
- package/validation/rules/NoUnusedVariablesRule.d.mts +29 -0
- package/validation/rules/NoUnusedVariablesRule.d.ts +29 -0
- package/validation/rules/NoUnusedVariablesRule.js +0 -8
- package/validation/rules/NoUnusedVariablesRule.js.map +1 -1
- package/validation/rules/NoUnusedVariablesRule.mjs +0 -8
- package/validation/rules/NoUnusedVariablesRule.mjs.map +1 -1
- package/validation/rules/OverlappingFieldsCanBeMergedRule.d.mts +33 -0
- package/validation/rules/OverlappingFieldsCanBeMergedRule.d.ts +33 -0
- package/validation/rules/OverlappingFieldsCanBeMergedRule.js +1 -175
- package/validation/rules/OverlappingFieldsCanBeMergedRule.js.map +1 -1
- package/validation/rules/OverlappingFieldsCanBeMergedRule.mjs +1 -175
- package/validation/rules/OverlappingFieldsCanBeMergedRule.mjs.map +1 -1
- package/validation/rules/PossibleFragmentSpreadsRule.d.mts +36 -0
- package/validation/rules/PossibleFragmentSpreadsRule.d.ts +36 -0
- package/validation/rules/PossibleFragmentSpreadsRule.js +0 -7
- package/validation/rules/PossibleFragmentSpreadsRule.js.map +1 -1
- package/validation/rules/PossibleFragmentSpreadsRule.mjs +0 -7
- package/validation/rules/PossibleFragmentSpreadsRule.mjs.map +1 -1
- package/validation/rules/PossibleTypeExtensionsRule.d.mts +21 -0
- package/validation/rules/PossibleTypeExtensionsRule.d.ts +21 -0
- package/validation/rules/PossibleTypeExtensionsRule.js +0 -9
- package/validation/rules/PossibleTypeExtensionsRule.js.map +1 -1
- package/validation/rules/PossibleTypeExtensionsRule.mjs +0 -9
- package/validation/rules/PossibleTypeExtensionsRule.mjs.map +1 -1
- package/validation/rules/ProvidedRequiredArgumentsRule.d.mts +29 -3
- package/validation/rules/ProvidedRequiredArgumentsRule.d.ts +29 -3
- package/validation/rules/ProvidedRequiredArgumentsRule.js +0 -13
- package/validation/rules/ProvidedRequiredArgumentsRule.js.map +1 -1
- package/validation/rules/ProvidedRequiredArgumentsRule.mjs +0 -13
- package/validation/rules/ProvidedRequiredArgumentsRule.mjs.map +1 -1
- package/validation/rules/ScalarLeafsRule.d.mts +28 -0
- package/validation/rules/ScalarLeafsRule.d.ts +28 -0
- package/validation/rules/ScalarLeafsRule.js +0 -6
- package/validation/rules/ScalarLeafsRule.js.map +1 -1
- package/validation/rules/ScalarLeafsRule.mjs +0 -6
- package/validation/rules/ScalarLeafsRule.mjs.map +1 -1
- package/validation/rules/SingleFieldSubscriptionsRule.d.mts +34 -2
- package/validation/rules/SingleFieldSubscriptionsRule.d.ts +34 -2
- package/validation/rules/SingleFieldSubscriptionsRule.js +0 -9
- package/validation/rules/SingleFieldSubscriptionsRule.js.map +1 -1
- package/validation/rules/SingleFieldSubscriptionsRule.mjs +0 -9
- package/validation/rules/SingleFieldSubscriptionsRule.mjs.map +1 -1
- package/validation/rules/StreamDirectiveOnListFieldRule.d.mts +21 -0
- package/validation/rules/StreamDirectiveOnListFieldRule.d.ts +21 -0
- package/validation/rules/StreamDirectiveOnListFieldRule.js +0 -5
- package/validation/rules/StreamDirectiveOnListFieldRule.js.map +1 -1
- package/validation/rules/StreamDirectiveOnListFieldRule.mjs +0 -5
- package/validation/rules/StreamDirectiveOnListFieldRule.mjs.map +1 -1
- package/validation/rules/UniqueArgumentDefinitionNamesRule.d.mts +21 -0
- package/validation/rules/UniqueArgumentDefinitionNamesRule.d.ts +21 -0
- package/validation/rules/UniqueArgumentDefinitionNamesRule.js +0 -6
- package/validation/rules/UniqueArgumentDefinitionNamesRule.js.map +1 -1
- package/validation/rules/UniqueArgumentDefinitionNamesRule.mjs +0 -6
- package/validation/rules/UniqueArgumentDefinitionNamesRule.mjs.map +1 -1
- package/validation/rules/UniqueArgumentNamesRule.d.mts +28 -0
- package/validation/rules/UniqueArgumentNamesRule.d.ts +28 -0
- package/validation/rules/UniqueArgumentNamesRule.js +0 -8
- package/validation/rules/UniqueArgumentNamesRule.js.map +1 -1
- package/validation/rules/UniqueArgumentNamesRule.mjs +0 -8
- package/validation/rules/UniqueArgumentNamesRule.mjs.map +1 -1
- package/validation/rules/UniqueDirectiveNamesRule.d.mts +21 -0
- package/validation/rules/UniqueDirectiveNamesRule.d.ts +21 -0
- package/validation/rules/UniqueDirectiveNamesRule.js +0 -5
- package/validation/rules/UniqueDirectiveNamesRule.js.map +1 -1
- package/validation/rules/UniqueDirectiveNamesRule.mjs +0 -5
- package/validation/rules/UniqueDirectiveNamesRule.mjs.map +1 -1
- package/validation/rules/UniqueDirectivesPerLocationRule.d.mts +28 -0
- package/validation/rules/UniqueDirectivesPerLocationRule.d.ts +28 -0
- package/validation/rules/UniqueDirectivesPerLocationRule.js +0 -11
- package/validation/rules/UniqueDirectivesPerLocationRule.js.map +1 -1
- package/validation/rules/UniqueDirectivesPerLocationRule.mjs +0 -11
- package/validation/rules/UniqueDirectivesPerLocationRule.mjs.map +1 -1
- package/validation/rules/UniqueEnumValueNamesRule.d.mts +21 -0
- package/validation/rules/UniqueEnumValueNamesRule.d.ts +21 -0
- package/validation/rules/UniqueEnumValueNamesRule.js +0 -5
- package/validation/rules/UniqueEnumValueNamesRule.js.map +1 -1
- package/validation/rules/UniqueEnumValueNamesRule.mjs +0 -5
- package/validation/rules/UniqueEnumValueNamesRule.mjs.map +1 -1
- package/validation/rules/UniqueFieldDefinitionNamesRule.d.mts +21 -0
- package/validation/rules/UniqueFieldDefinitionNamesRule.d.ts +21 -0
- package/validation/rules/UniqueFieldDefinitionNamesRule.js +0 -5
- package/validation/rules/UniqueFieldDefinitionNamesRule.js.map +1 -1
- package/validation/rules/UniqueFieldDefinitionNamesRule.mjs +0 -5
- package/validation/rules/UniqueFieldDefinitionNamesRule.mjs.map +1 -1
- package/validation/rules/UniqueFragmentNamesRule.d.mts +28 -0
- package/validation/rules/UniqueFragmentNamesRule.d.ts +28 -0
- package/validation/rules/UniqueFragmentNamesRule.js +0 -7
- package/validation/rules/UniqueFragmentNamesRule.js.map +1 -1
- package/validation/rules/UniqueFragmentNamesRule.mjs +0 -7
- package/validation/rules/UniqueFragmentNamesRule.mjs.map +1 -1
- package/validation/rules/UniqueInputFieldNamesRule.d.mts +32 -0
- package/validation/rules/UniqueInputFieldNamesRule.d.ts +32 -0
- package/validation/rules/UniqueInputFieldNamesRule.js +0 -8
- package/validation/rules/UniqueInputFieldNamesRule.js.map +1 -1
- package/validation/rules/UniqueInputFieldNamesRule.mjs +0 -8
- package/validation/rules/UniqueInputFieldNamesRule.mjs.map +1 -1
- package/validation/rules/UniqueOperationNamesRule.d.mts +28 -0
- package/validation/rules/UniqueOperationNamesRule.d.ts +28 -0
- package/validation/rules/UniqueOperationNamesRule.js +0 -7
- package/validation/rules/UniqueOperationNamesRule.js.map +1 -1
- package/validation/rules/UniqueOperationNamesRule.mjs +0 -7
- package/validation/rules/UniqueOperationNamesRule.mjs.map +1 -1
- package/validation/rules/UniqueOperationTypesRule.d.mts +21 -0
- package/validation/rules/UniqueOperationTypesRule.d.ts +21 -0
- package/validation/rules/UniqueOperationTypesRule.js +0 -5
- package/validation/rules/UniqueOperationTypesRule.js.map +1 -1
- package/validation/rules/UniqueOperationTypesRule.mjs +0 -5
- package/validation/rules/UniqueOperationTypesRule.mjs.map +1 -1
- package/validation/rules/UniqueTypeNamesRule.d.mts +21 -0
- package/validation/rules/UniqueTypeNamesRule.d.ts +21 -0
- package/validation/rules/UniqueTypeNamesRule.js +0 -5
- package/validation/rules/UniqueTypeNamesRule.js.map +1 -1
- package/validation/rules/UniqueTypeNamesRule.mjs +0 -5
- package/validation/rules/UniqueTypeNamesRule.mjs.map +1 -1
- package/validation/rules/UniqueVariableNamesRule.d.mts +28 -0
- package/validation/rules/UniqueVariableNamesRule.d.ts +28 -0
- package/validation/rules/UniqueVariableNamesRule.js +0 -5
- package/validation/rules/UniqueVariableNamesRule.js.map +1 -1
- package/validation/rules/UniqueVariableNamesRule.mjs +0 -5
- package/validation/rules/UniqueVariableNamesRule.mjs.map +1 -1
- package/validation/rules/ValuesOfCorrectTypeRule.d.mts +28 -0
- package/validation/rules/ValuesOfCorrectTypeRule.d.ts +28 -0
- package/validation/rules/ValuesOfCorrectTypeRule.js +1 -21
- package/validation/rules/ValuesOfCorrectTypeRule.js.map +1 -1
- package/validation/rules/ValuesOfCorrectTypeRule.mjs +1 -21
- package/validation/rules/ValuesOfCorrectTypeRule.mjs.map +1 -1
- package/validation/rules/VariablesAreInputTypesRule.d.mts +32 -0
- package/validation/rules/VariablesAreInputTypesRule.d.ts +32 -0
- package/validation/rules/VariablesAreInputTypesRule.js +0 -8
- package/validation/rules/VariablesAreInputTypesRule.js.map +1 -1
- package/validation/rules/VariablesAreInputTypesRule.mjs +0 -8
- package/validation/rules/VariablesAreInputTypesRule.mjs.map +1 -1
- package/validation/rules/VariablesInAllowedPositionRule.d.mts +28 -0
- package/validation/rules/VariablesInAllowedPositionRule.d.ts +28 -0
- package/validation/rules/VariablesInAllowedPositionRule.js +0 -20
- package/validation/rules/VariablesInAllowedPositionRule.js.map +1 -1
- package/validation/rules/VariablesInAllowedPositionRule.mjs +0 -20
- package/validation/rules/VariablesInAllowedPositionRule.mjs.map +1 -1
- package/validation/rules/custom/NoDeprecatedCustomRule.d.mts +41 -0
- package/validation/rules/custom/NoDeprecatedCustomRule.d.ts +41 -0
- package/validation/rules/custom/NoDeprecatedCustomRule.js +0 -10
- package/validation/rules/custom/NoDeprecatedCustomRule.js.map +1 -1
- package/validation/rules/custom/NoDeprecatedCustomRule.mjs +0 -10
- package/validation/rules/custom/NoDeprecatedCustomRule.mjs.map +1 -1
- package/validation/rules/custom/NoSchemaIntrospectionCustomRule.d.mts +28 -0
- package/validation/rules/custom/NoSchemaIntrospectionCustomRule.d.ts +28 -0
- package/validation/rules/custom/NoSchemaIntrospectionCustomRule.js +0 -10
- package/validation/rules/custom/NoSchemaIntrospectionCustomRule.js.map +1 -1
- package/validation/rules/custom/NoSchemaIntrospectionCustomRule.mjs +0 -10
- package/validation/rules/custom/NoSchemaIntrospectionCustomRule.mjs.map +1 -1
- package/validation/specifiedRules.d.mts +2 -3
- package/validation/specifiedRules.d.ts +2 -3
- package/validation/specifiedRules.js +0 -46
- package/validation/specifiedRules.js.map +1 -1
- package/validation/specifiedRules.mjs +0 -46
- package/validation/specifiedRules.mjs.map +1 -1
- package/validation/validate.d.mts +65 -7
- package/validation/validate.d.ts +65 -7
- package/validation/validate.js +0 -41
- package/validation/validate.js.map +1 -1
- package/validation/validate.mjs +0 -41
- package/validation/validate.mjs.map +1 -1
- package/version.d.mts +3 -6
- package/version.d.ts +3 -6
- package/version.js +2 -10
- package/version.js.map +1 -1
- package/version.mjs +2 -10
- package/version.mjs.map +1 -1
package/language/parser.js
CHANGED
|
@@ -14,10 +14,6 @@ const lexer_ts_1 = require("./lexer.js");
|
|
|
14
14
|
const schemaCoordinateLexer_ts_1 = require("./schemaCoordinateLexer.js");
|
|
15
15
|
const source_ts_1 = require("./source.js");
|
|
16
16
|
const tokenKind_ts_1 = require("./tokenKind.js");
|
|
17
|
-
/**
|
|
18
|
-
* Given a GraphQL source, parses it into a Document.
|
|
19
|
-
* Throws GraphQLError if a syntax error is encountered.
|
|
20
|
-
*/
|
|
21
17
|
function parse(source, options) {
|
|
22
18
|
const parser = new Parser(source, options);
|
|
23
19
|
const document = parser.parseDocument();
|
|
@@ -27,14 +23,6 @@ function parse(source, options) {
|
|
|
27
23
|
});
|
|
28
24
|
return document;
|
|
29
25
|
}
|
|
30
|
-
/**
|
|
31
|
-
* Given a string containing a GraphQL value (ex. `[42]`), parse the AST for
|
|
32
|
-
* that value.
|
|
33
|
-
* Throws GraphQLError if a syntax error is encountered.
|
|
34
|
-
*
|
|
35
|
-
* This is useful within tools that operate upon GraphQL Values directly and
|
|
36
|
-
* in isolation of complete GraphQL documents.
|
|
37
|
-
*/
|
|
38
26
|
function parseValue(source, options) {
|
|
39
27
|
const parser = new Parser(source, options);
|
|
40
28
|
parser.expectToken(tokenKind_ts_1.TokenKind.SOF);
|
|
@@ -42,10 +30,6 @@ function parseValue(source, options) {
|
|
|
42
30
|
parser.expectToken(tokenKind_ts_1.TokenKind.EOF);
|
|
43
31
|
return value;
|
|
44
32
|
}
|
|
45
|
-
/**
|
|
46
|
-
* Similar to parseValue(), but raises a parse error if it encounters a
|
|
47
|
-
* variable. The return type will be a constant value.
|
|
48
|
-
*/
|
|
49
33
|
function parseConstValue(source, options) {
|
|
50
34
|
const parser = new Parser(source, options);
|
|
51
35
|
parser.expectToken(tokenKind_ts_1.TokenKind.SOF);
|
|
@@ -53,16 +37,6 @@ function parseConstValue(source, options) {
|
|
|
53
37
|
parser.expectToken(tokenKind_ts_1.TokenKind.EOF);
|
|
54
38
|
return value;
|
|
55
39
|
}
|
|
56
|
-
/**
|
|
57
|
-
* Given a string containing a GraphQL Type (ex. `[Int!]`), parse the AST for
|
|
58
|
-
* that type.
|
|
59
|
-
* Throws GraphQLError if a syntax error is encountered.
|
|
60
|
-
*
|
|
61
|
-
* This is useful within tools that operate upon GraphQL Types directly and
|
|
62
|
-
* in isolation of complete GraphQL documents.
|
|
63
|
-
*
|
|
64
|
-
* Consider providing the results to the utility function: typeFromAST().
|
|
65
|
-
*/
|
|
66
40
|
function parseType(source, options) {
|
|
67
41
|
const parser = new Parser(source, options);
|
|
68
42
|
parser.expectToken(tokenKind_ts_1.TokenKind.SOF);
|
|
@@ -70,15 +44,6 @@ function parseType(source, options) {
|
|
|
70
44
|
parser.expectToken(tokenKind_ts_1.TokenKind.EOF);
|
|
71
45
|
return type;
|
|
72
46
|
}
|
|
73
|
-
/**
|
|
74
|
-
* Given a string containing a GraphQL Schema Coordinate (ex. `Type.field`),
|
|
75
|
-
* parse the AST for that schema coordinate.
|
|
76
|
-
* Throws GraphQLError if a syntax error is encountered.
|
|
77
|
-
*
|
|
78
|
-
* Consider providing the results to the utility function:
|
|
79
|
-
* resolveASTSchemaCoordinate(). Or calling resolveSchemaCoordinate() directly
|
|
80
|
-
* with an unparsed source.
|
|
81
|
-
*/
|
|
82
47
|
function parseSchemaCoordinate(source) {
|
|
83
48
|
const sourceObj = (0, source_ts_1.isSource)(source) ? source : new source_ts_1.Source(source);
|
|
84
49
|
const lexer = new schemaCoordinateLexer_ts_1.SchemaCoordinateLexer(sourceObj);
|
|
@@ -88,17 +53,6 @@ function parseSchemaCoordinate(source) {
|
|
|
88
53
|
parser.expectToken(tokenKind_ts_1.TokenKind.EOF);
|
|
89
54
|
return coordinate;
|
|
90
55
|
}
|
|
91
|
-
/**
|
|
92
|
-
* This class is exported only to assist people in implementing their own parsers
|
|
93
|
-
* without duplicating too much code and should be used only as last resort for cases
|
|
94
|
-
* such as experimental syntax or if certain features could not be contributed upstream.
|
|
95
|
-
*
|
|
96
|
-
* It is still part of the internal API and is versioned, so any changes to it are never
|
|
97
|
-
* considered breaking changes. If you still need to support multiple versions of the
|
|
98
|
-
* library, please use the `versionInfo` variable for version detection.
|
|
99
|
-
*
|
|
100
|
-
* @internal
|
|
101
|
-
*/
|
|
102
56
|
class Parser {
|
|
103
57
|
constructor(source, options = {}) {
|
|
104
58
|
const { lexer, ..._options } = options;
|
|
@@ -115,9 +69,6 @@ class Parser {
|
|
|
115
69
|
get tokenCount() {
|
|
116
70
|
return this._tokenCounter;
|
|
117
71
|
}
|
|
118
|
-
/**
|
|
119
|
-
* Converts a name lex token into a name parse node.
|
|
120
|
-
*/
|
|
121
72
|
parseName() {
|
|
122
73
|
const token = this.expectToken(tokenKind_ts_1.TokenKind.NAME);
|
|
123
74
|
return this.node(token, {
|
|
@@ -125,44 +76,16 @@ class Parser {
|
|
|
125
76
|
value: token.value,
|
|
126
77
|
});
|
|
127
78
|
}
|
|
128
|
-
// Implements the parsing rules in the Document section.
|
|
129
|
-
/**
|
|
130
|
-
* Document : Definition+
|
|
131
|
-
*/
|
|
132
79
|
parseDocument() {
|
|
133
80
|
return this.node(this._lexer.token, {
|
|
134
81
|
kind: kinds_ts_1.Kind.DOCUMENT,
|
|
135
82
|
definitions: this.many(tokenKind_ts_1.TokenKind.SOF, this.parseDefinition, tokenKind_ts_1.TokenKind.EOF),
|
|
136
83
|
});
|
|
137
84
|
}
|
|
138
|
-
/**
|
|
139
|
-
* Definition :
|
|
140
|
-
* - ExecutableDefinition
|
|
141
|
-
* - TypeSystemDefinition
|
|
142
|
-
* - TypeSystemExtension
|
|
143
|
-
*
|
|
144
|
-
* ExecutableDefinition :
|
|
145
|
-
* - OperationDefinition
|
|
146
|
-
* - FragmentDefinition
|
|
147
|
-
*
|
|
148
|
-
* TypeSystemDefinition :
|
|
149
|
-
* - SchemaDefinition
|
|
150
|
-
* - TypeDefinition
|
|
151
|
-
* - DirectiveDefinition
|
|
152
|
-
*
|
|
153
|
-
* TypeDefinition :
|
|
154
|
-
* - ScalarTypeDefinition
|
|
155
|
-
* - ObjectTypeDefinition
|
|
156
|
-
* - InterfaceTypeDefinition
|
|
157
|
-
* - UnionTypeDefinition
|
|
158
|
-
* - EnumTypeDefinition
|
|
159
|
-
* - InputObjectTypeDefinition
|
|
160
|
-
*/
|
|
161
85
|
parseDefinition() {
|
|
162
86
|
if (this.peek(tokenKind_ts_1.TokenKind.BRACE_L)) {
|
|
163
87
|
return this.parseOperationDefinition();
|
|
164
88
|
}
|
|
165
|
-
// Many definitions begin with a description and require a lookahead.
|
|
166
89
|
const hasDescription = this.peekDescription();
|
|
167
90
|
const keywordToken = hasDescription
|
|
168
91
|
? this._lexer.lookahead()
|
|
@@ -207,12 +130,6 @@ class Parser {
|
|
|
207
130
|
}
|
|
208
131
|
throw this.unexpected(keywordToken);
|
|
209
132
|
}
|
|
210
|
-
// Implements the parsing rules in the Operations section.
|
|
211
|
-
/**
|
|
212
|
-
* OperationDefinition :
|
|
213
|
-
* - SelectionSet
|
|
214
|
-
* - OperationType Name? VariableDefinitions? Directives? SelectionSet
|
|
215
|
-
*/
|
|
216
133
|
parseOperationDefinition() {
|
|
217
134
|
const start = this._lexer.token;
|
|
218
135
|
if (this.peek(tokenKind_ts_1.TokenKind.BRACE_L)) {
|
|
@@ -242,9 +159,6 @@ class Parser {
|
|
|
242
159
|
selectionSet: this.parseSelectionSet(),
|
|
243
160
|
});
|
|
244
161
|
}
|
|
245
|
-
/**
|
|
246
|
-
* OperationType : one of query mutation subscription
|
|
247
|
-
*/
|
|
248
162
|
parseOperationType() {
|
|
249
163
|
const operationToken = this.expectToken(tokenKind_ts_1.TokenKind.NAME);
|
|
250
164
|
switch (operationToken.value) {
|
|
@@ -257,15 +171,9 @@ class Parser {
|
|
|
257
171
|
}
|
|
258
172
|
throw this.unexpected(operationToken);
|
|
259
173
|
}
|
|
260
|
-
/**
|
|
261
|
-
* VariableDefinitions : ( VariableDefinition+ )
|
|
262
|
-
*/
|
|
263
174
|
parseVariableDefinitions() {
|
|
264
175
|
return this.optionalMany(tokenKind_ts_1.TokenKind.PAREN_L, this.parseVariableDefinition, tokenKind_ts_1.TokenKind.PAREN_R);
|
|
265
176
|
}
|
|
266
|
-
/**
|
|
267
|
-
* VariableDefinition : Variable : Type DefaultValue? Directives[Const]?
|
|
268
|
-
*/
|
|
269
177
|
parseVariableDefinition() {
|
|
270
178
|
return this.node(this._lexer.token, {
|
|
271
179
|
kind: kinds_ts_1.Kind.VARIABLE_DEFINITION,
|
|
@@ -278,9 +186,6 @@ class Parser {
|
|
|
278
186
|
directives: this.parseConstDirectives(),
|
|
279
187
|
});
|
|
280
188
|
}
|
|
281
|
-
/**
|
|
282
|
-
* Variable : $ Name
|
|
283
|
-
*/
|
|
284
189
|
parseVariable() {
|
|
285
190
|
const start = this._lexer.token;
|
|
286
191
|
this.expectToken(tokenKind_ts_1.TokenKind.DOLLAR);
|
|
@@ -289,33 +194,17 @@ class Parser {
|
|
|
289
194
|
name: this.parseName(),
|
|
290
195
|
});
|
|
291
196
|
}
|
|
292
|
-
/**
|
|
293
|
-
* ```
|
|
294
|
-
* SelectionSet : { Selection+ }
|
|
295
|
-
* ```
|
|
296
|
-
*/
|
|
297
197
|
parseSelectionSet() {
|
|
298
198
|
return this.node(this._lexer.token, {
|
|
299
199
|
kind: kinds_ts_1.Kind.SELECTION_SET,
|
|
300
200
|
selections: this.many(tokenKind_ts_1.TokenKind.BRACE_L, this.parseSelection, tokenKind_ts_1.TokenKind.BRACE_R),
|
|
301
201
|
});
|
|
302
202
|
}
|
|
303
|
-
/**
|
|
304
|
-
* Selection :
|
|
305
|
-
* - Field
|
|
306
|
-
* - FragmentSpread
|
|
307
|
-
* - InlineFragment
|
|
308
|
-
*/
|
|
309
203
|
parseSelection() {
|
|
310
204
|
return this.peek(tokenKind_ts_1.TokenKind.SPREAD)
|
|
311
205
|
? this.parseFragment()
|
|
312
206
|
: this.parseField();
|
|
313
207
|
}
|
|
314
|
-
/**
|
|
315
|
-
* Field : Alias? Name Arguments? Directives? SelectionSet?
|
|
316
|
-
*
|
|
317
|
-
* Alias : Name :
|
|
318
|
-
*/
|
|
319
208
|
parseField() {
|
|
320
209
|
const start = this._lexer.token;
|
|
321
210
|
const nameOrAlias = this.parseName();
|
|
@@ -343,7 +232,6 @@ class Parser {
|
|
|
343
232
|
const item = isConst ? this.parseConstArgument : this.parseArgument;
|
|
344
233
|
return this.optionalMany(tokenKind_ts_1.TokenKind.PAREN_L, item, tokenKind_ts_1.TokenKind.PAREN_R);
|
|
345
234
|
}
|
|
346
|
-
/* experimental */
|
|
347
235
|
parseFragmentArguments() {
|
|
348
236
|
const item = this.parseFragmentArgument;
|
|
349
237
|
return this.optionalMany(tokenKind_ts_1.TokenKind.PAREN_L, item, tokenKind_ts_1.TokenKind.PAREN_R);
|
|
@@ -361,7 +249,6 @@ class Parser {
|
|
|
361
249
|
parseConstArgument() {
|
|
362
250
|
return this.parseArgument(true);
|
|
363
251
|
}
|
|
364
|
-
/* experimental */
|
|
365
252
|
parseFragmentArgument() {
|
|
366
253
|
const start = this._lexer.token;
|
|
367
254
|
const name = this.parseName();
|
|
@@ -372,14 +259,6 @@ class Parser {
|
|
|
372
259
|
value: this.parseValueLiteral(false),
|
|
373
260
|
});
|
|
374
261
|
}
|
|
375
|
-
// Implements the parsing rules in the Fragments section.
|
|
376
|
-
/**
|
|
377
|
-
* Corresponds to both FragmentSpread and InlineFragment in the spec.
|
|
378
|
-
*
|
|
379
|
-
* FragmentSpread : ... FragmentName Arguments? Directives?
|
|
380
|
-
*
|
|
381
|
-
* InlineFragment : ... TypeCondition? Directives? SelectionSet
|
|
382
|
-
*/
|
|
383
262
|
parseFragment() {
|
|
384
263
|
const start = this._lexer.token;
|
|
385
264
|
this.expectToken(tokenKind_ts_1.TokenKind.SPREAD);
|
|
@@ -408,12 +287,6 @@ class Parser {
|
|
|
408
287
|
selectionSet: this.parseSelectionSet(),
|
|
409
288
|
});
|
|
410
289
|
}
|
|
411
|
-
/**
|
|
412
|
-
* FragmentDefinition :
|
|
413
|
-
* - fragment FragmentName VariableDefinitions? on TypeCondition Directives? SelectionSet
|
|
414
|
-
*
|
|
415
|
-
* TypeCondition : NamedType
|
|
416
|
-
*/
|
|
417
290
|
parseFragmentDefinition() {
|
|
418
291
|
const start = this._lexer.token;
|
|
419
292
|
const description = this.parseDescription();
|
|
@@ -438,9 +311,6 @@ class Parser {
|
|
|
438
311
|
selectionSet: this.parseSelectionSet(),
|
|
439
312
|
});
|
|
440
313
|
}
|
|
441
|
-
/**
|
|
442
|
-
* FragmentName : Name but not `on`
|
|
443
|
-
*/
|
|
444
314
|
parseFragmentName() {
|
|
445
315
|
if (this._lexer.token.value === 'on') {
|
|
446
316
|
throw this.unexpected();
|
|
@@ -564,13 +434,6 @@ class Parser {
|
|
|
564
434
|
arguments: this.parseArguments(isConst),
|
|
565
435
|
});
|
|
566
436
|
}
|
|
567
|
-
// Implements the parsing rules in the Types section.
|
|
568
|
-
/**
|
|
569
|
-
* Type :
|
|
570
|
-
* - NamedType
|
|
571
|
-
* - ListType
|
|
572
|
-
* - NonNullType
|
|
573
|
-
*/
|
|
574
437
|
parseTypeReference() {
|
|
575
438
|
const start = this._lexer.token;
|
|
576
439
|
let type;
|
|
@@ -593,32 +456,20 @@ class Parser {
|
|
|
593
456
|
}
|
|
594
457
|
return type;
|
|
595
458
|
}
|
|
596
|
-
/**
|
|
597
|
-
* NamedType : Name
|
|
598
|
-
*/
|
|
599
459
|
parseNamedType() {
|
|
600
460
|
return this.node(this._lexer.token, {
|
|
601
461
|
kind: kinds_ts_1.Kind.NAMED_TYPE,
|
|
602
462
|
name: this.parseName(),
|
|
603
463
|
});
|
|
604
464
|
}
|
|
605
|
-
// Implements the parsing rules in the Type Definition section.
|
|
606
465
|
peekDescription() {
|
|
607
466
|
return this.peek(tokenKind_ts_1.TokenKind.STRING) || this.peek(tokenKind_ts_1.TokenKind.BLOCK_STRING);
|
|
608
467
|
}
|
|
609
|
-
/**
|
|
610
|
-
* Description : StringValue
|
|
611
|
-
*/
|
|
612
468
|
parseDescription() {
|
|
613
469
|
if (this.peekDescription()) {
|
|
614
470
|
return this.parseStringLiteral();
|
|
615
471
|
}
|
|
616
472
|
}
|
|
617
|
-
/**
|
|
618
|
-
* ```
|
|
619
|
-
* SchemaDefinition : Description? schema Directives[Const]? { OperationTypeDefinition+ }
|
|
620
|
-
* ```
|
|
621
|
-
*/
|
|
622
473
|
parseSchemaDefinition() {
|
|
623
474
|
const start = this._lexer.token;
|
|
624
475
|
const description = this.parseDescription();
|
|
@@ -632,9 +483,6 @@ class Parser {
|
|
|
632
483
|
operationTypes,
|
|
633
484
|
});
|
|
634
485
|
}
|
|
635
|
-
/**
|
|
636
|
-
* OperationTypeDefinition : OperationType : NamedType
|
|
637
|
-
*/
|
|
638
486
|
parseOperationTypeDefinition() {
|
|
639
487
|
const start = this._lexer.token;
|
|
640
488
|
const operation = this.parseOperationType();
|
|
@@ -646,9 +494,6 @@ class Parser {
|
|
|
646
494
|
type,
|
|
647
495
|
});
|
|
648
496
|
}
|
|
649
|
-
/**
|
|
650
|
-
* ScalarTypeDefinition : Description? scalar Name Directives[Const]?
|
|
651
|
-
*/
|
|
652
497
|
parseScalarTypeDefinition() {
|
|
653
498
|
const start = this._lexer.token;
|
|
654
499
|
const description = this.parseDescription();
|
|
@@ -662,11 +507,6 @@ class Parser {
|
|
|
662
507
|
directives,
|
|
663
508
|
});
|
|
664
509
|
}
|
|
665
|
-
/**
|
|
666
|
-
* ObjectTypeDefinition :
|
|
667
|
-
* Description?
|
|
668
|
-
* type Name ImplementsInterfaces? Directives[Const]? FieldsDefinition?
|
|
669
|
-
*/
|
|
670
510
|
parseObjectTypeDefinition() {
|
|
671
511
|
const start = this._lexer.token;
|
|
672
512
|
const description = this.parseDescription();
|
|
@@ -684,28 +524,14 @@ class Parser {
|
|
|
684
524
|
fields,
|
|
685
525
|
});
|
|
686
526
|
}
|
|
687
|
-
/**
|
|
688
|
-
* ImplementsInterfaces :
|
|
689
|
-
* - implements `&`? NamedType
|
|
690
|
-
* - ImplementsInterfaces & NamedType
|
|
691
|
-
*/
|
|
692
527
|
parseImplementsInterfaces() {
|
|
693
528
|
return this.expectOptionalKeyword('implements')
|
|
694
529
|
? this.delimitedMany(tokenKind_ts_1.TokenKind.AMP, this.parseNamedType)
|
|
695
530
|
: undefined;
|
|
696
531
|
}
|
|
697
|
-
/**
|
|
698
|
-
* ```
|
|
699
|
-
* FieldsDefinition : { FieldDefinition+ }
|
|
700
|
-
* ```
|
|
701
|
-
*/
|
|
702
532
|
parseFieldsDefinition() {
|
|
703
533
|
return this.optionalMany(tokenKind_ts_1.TokenKind.BRACE_L, this.parseFieldDefinition, tokenKind_ts_1.TokenKind.BRACE_R);
|
|
704
534
|
}
|
|
705
|
-
/**
|
|
706
|
-
* FieldDefinition :
|
|
707
|
-
* - Description? Name ArgumentsDefinition? : Type Directives[Const]?
|
|
708
|
-
*/
|
|
709
535
|
parseFieldDefinition() {
|
|
710
536
|
const start = this._lexer.token;
|
|
711
537
|
const description = this.parseDescription();
|
|
@@ -723,16 +549,9 @@ class Parser {
|
|
|
723
549
|
directives,
|
|
724
550
|
});
|
|
725
551
|
}
|
|
726
|
-
/**
|
|
727
|
-
* ArgumentsDefinition : ( InputValueDefinition+ )
|
|
728
|
-
*/
|
|
729
552
|
parseArgumentDefs() {
|
|
730
553
|
return this.optionalMany(tokenKind_ts_1.TokenKind.PAREN_L, this.parseInputValueDef, tokenKind_ts_1.TokenKind.PAREN_R);
|
|
731
554
|
}
|
|
732
|
-
/**
|
|
733
|
-
* InputValueDefinition :
|
|
734
|
-
* - Description? Name : Type DefaultValue? Directives[Const]?
|
|
735
|
-
*/
|
|
736
555
|
parseInputValueDef() {
|
|
737
556
|
const start = this._lexer.token;
|
|
738
557
|
const description = this.parseDescription();
|
|
@@ -753,10 +572,6 @@ class Parser {
|
|
|
753
572
|
directives,
|
|
754
573
|
});
|
|
755
574
|
}
|
|
756
|
-
/**
|
|
757
|
-
* InterfaceTypeDefinition :
|
|
758
|
-
* - Description? interface Name Directives[Const]? FieldsDefinition?
|
|
759
|
-
*/
|
|
760
575
|
parseInterfaceTypeDefinition() {
|
|
761
576
|
const start = this._lexer.token;
|
|
762
577
|
const description = this.parseDescription();
|
|
@@ -774,10 +589,6 @@ class Parser {
|
|
|
774
589
|
fields,
|
|
775
590
|
});
|
|
776
591
|
}
|
|
777
|
-
/**
|
|
778
|
-
* UnionTypeDefinition :
|
|
779
|
-
* - Description? union Name Directives[Const]? UnionMemberTypes?
|
|
780
|
-
*/
|
|
781
592
|
parseUnionTypeDefinition() {
|
|
782
593
|
const start = this._lexer.token;
|
|
783
594
|
const description = this.parseDescription();
|
|
@@ -793,20 +604,11 @@ class Parser {
|
|
|
793
604
|
types,
|
|
794
605
|
});
|
|
795
606
|
}
|
|
796
|
-
/**
|
|
797
|
-
* UnionMemberTypes :
|
|
798
|
-
* - = `|`? NamedType
|
|
799
|
-
* - UnionMemberTypes | NamedType
|
|
800
|
-
*/
|
|
801
607
|
parseUnionMemberTypes() {
|
|
802
608
|
return this.expectOptionalToken(tokenKind_ts_1.TokenKind.EQUALS)
|
|
803
609
|
? this.delimitedMany(tokenKind_ts_1.TokenKind.PIPE, this.parseNamedType)
|
|
804
610
|
: undefined;
|
|
805
611
|
}
|
|
806
|
-
/**
|
|
807
|
-
* EnumTypeDefinition :
|
|
808
|
-
* - Description? enum Name Directives[Const]? EnumValuesDefinition?
|
|
809
|
-
*/
|
|
810
612
|
parseEnumTypeDefinition() {
|
|
811
613
|
const start = this._lexer.token;
|
|
812
614
|
const description = this.parseDescription();
|
|
@@ -822,17 +624,9 @@ class Parser {
|
|
|
822
624
|
values,
|
|
823
625
|
});
|
|
824
626
|
}
|
|
825
|
-
/**
|
|
826
|
-
* ```
|
|
827
|
-
* EnumValuesDefinition : { EnumValueDefinition+ }
|
|
828
|
-
* ```
|
|
829
|
-
*/
|
|
830
627
|
parseEnumValuesDefinition() {
|
|
831
628
|
return this.optionalMany(tokenKind_ts_1.TokenKind.BRACE_L, this.parseEnumValueDefinition, tokenKind_ts_1.TokenKind.BRACE_R);
|
|
832
629
|
}
|
|
833
|
-
/**
|
|
834
|
-
* EnumValueDefinition : Description? EnumValue Directives[Const]?
|
|
835
|
-
*/
|
|
836
630
|
parseEnumValueDefinition() {
|
|
837
631
|
const start = this._lexer.token;
|
|
838
632
|
const description = this.parseDescription();
|
|
@@ -845,9 +639,6 @@ class Parser {
|
|
|
845
639
|
directives,
|
|
846
640
|
});
|
|
847
641
|
}
|
|
848
|
-
/**
|
|
849
|
-
* EnumValue : Name but not `true`, `false` or `null`
|
|
850
|
-
*/
|
|
851
642
|
parseEnumValueName() {
|
|
852
643
|
if (this._lexer.token.value === 'true' ||
|
|
853
644
|
this._lexer.token.value === 'false' ||
|
|
@@ -856,10 +647,6 @@ class Parser {
|
|
|
856
647
|
}
|
|
857
648
|
return this.parseName();
|
|
858
649
|
}
|
|
859
|
-
/**
|
|
860
|
-
* InputObjectTypeDefinition :
|
|
861
|
-
* - Description? input Name Directives[Const]? InputFieldsDefinition?
|
|
862
|
-
*/
|
|
863
650
|
parseInputObjectTypeDefinition() {
|
|
864
651
|
const start = this._lexer.token;
|
|
865
652
|
const description = this.parseDescription();
|
|
@@ -875,28 +662,9 @@ class Parser {
|
|
|
875
662
|
fields,
|
|
876
663
|
});
|
|
877
664
|
}
|
|
878
|
-
/**
|
|
879
|
-
* ```
|
|
880
|
-
* InputFieldsDefinition : { InputValueDefinition+ }
|
|
881
|
-
* ```
|
|
882
|
-
*/
|
|
883
665
|
parseInputFieldsDefinition() {
|
|
884
666
|
return this.optionalMany(tokenKind_ts_1.TokenKind.BRACE_L, this.parseInputValueDef, tokenKind_ts_1.TokenKind.BRACE_R);
|
|
885
667
|
}
|
|
886
|
-
/**
|
|
887
|
-
* TypeSystemExtension :
|
|
888
|
-
* - SchemaExtension
|
|
889
|
-
* - TypeExtension
|
|
890
|
-
*
|
|
891
|
-
* TypeExtension :
|
|
892
|
-
* - ScalarTypeExtension
|
|
893
|
-
* - ObjectTypeExtension
|
|
894
|
-
* - InterfaceTypeExtension
|
|
895
|
-
* - UnionTypeExtension
|
|
896
|
-
* - EnumTypeExtension
|
|
897
|
-
* - InputObjectTypeDefinition
|
|
898
|
-
* - DirectiveDefinitionExtension
|
|
899
|
-
*/
|
|
900
668
|
parseTypeSystemExtension() {
|
|
901
669
|
const keywordToken = this._lexer.lookahead();
|
|
902
670
|
if (keywordToken.kind === tokenKind_ts_1.TokenKind.NAME) {
|
|
@@ -924,13 +692,6 @@ class Parser {
|
|
|
924
692
|
}
|
|
925
693
|
throw this.unexpected(keywordToken);
|
|
926
694
|
}
|
|
927
|
-
/**
|
|
928
|
-
* ```
|
|
929
|
-
* SchemaExtension :
|
|
930
|
-
* - extend schema Directives[Const]? { OperationTypeDefinition+ }
|
|
931
|
-
* - extend schema Directives[Const]
|
|
932
|
-
* ```
|
|
933
|
-
*/
|
|
934
695
|
parseSchemaExtension() {
|
|
935
696
|
const start = this._lexer.token;
|
|
936
697
|
this.expectKeyword('extend');
|
|
@@ -946,10 +707,6 @@ class Parser {
|
|
|
946
707
|
operationTypes,
|
|
947
708
|
});
|
|
948
709
|
}
|
|
949
|
-
/**
|
|
950
|
-
* ScalarTypeExtension :
|
|
951
|
-
* - extend scalar Name Directives[Const]
|
|
952
|
-
*/
|
|
953
710
|
parseScalarTypeExtension() {
|
|
954
711
|
const start = this._lexer.token;
|
|
955
712
|
this.expectKeyword('extend');
|
|
@@ -965,12 +722,6 @@ class Parser {
|
|
|
965
722
|
directives,
|
|
966
723
|
});
|
|
967
724
|
}
|
|
968
|
-
/**
|
|
969
|
-
* ObjectTypeExtension :
|
|
970
|
-
* - extend type Name ImplementsInterfaces? Directives[Const]? FieldsDefinition
|
|
971
|
-
* - extend type Name ImplementsInterfaces? Directives[Const]
|
|
972
|
-
* - extend type Name ImplementsInterfaces
|
|
973
|
-
*/
|
|
974
725
|
parseObjectTypeExtension() {
|
|
975
726
|
const start = this._lexer.token;
|
|
976
727
|
this.expectKeyword('extend');
|
|
@@ -992,12 +743,6 @@ class Parser {
|
|
|
992
743
|
fields,
|
|
993
744
|
});
|
|
994
745
|
}
|
|
995
|
-
/**
|
|
996
|
-
* InterfaceTypeExtension :
|
|
997
|
-
* - extend interface Name ImplementsInterfaces? Directives[Const]? FieldsDefinition
|
|
998
|
-
* - extend interface Name ImplementsInterfaces? Directives[Const]
|
|
999
|
-
* - extend interface Name ImplementsInterfaces
|
|
1000
|
-
*/
|
|
1001
746
|
parseInterfaceTypeExtension() {
|
|
1002
747
|
const start = this._lexer.token;
|
|
1003
748
|
this.expectKeyword('extend');
|
|
@@ -1019,11 +764,6 @@ class Parser {
|
|
|
1019
764
|
fields,
|
|
1020
765
|
});
|
|
1021
766
|
}
|
|
1022
|
-
/**
|
|
1023
|
-
* UnionTypeExtension :
|
|
1024
|
-
* - extend union Name Directives[Const]? UnionMemberTypes
|
|
1025
|
-
* - extend union Name Directives[Const]
|
|
1026
|
-
*/
|
|
1027
767
|
parseUnionTypeExtension() {
|
|
1028
768
|
const start = this._lexer.token;
|
|
1029
769
|
this.expectKeyword('extend');
|
|
@@ -1041,11 +781,6 @@ class Parser {
|
|
|
1041
781
|
types,
|
|
1042
782
|
});
|
|
1043
783
|
}
|
|
1044
|
-
/**
|
|
1045
|
-
* EnumTypeExtension :
|
|
1046
|
-
* - extend enum Name Directives[Const]? EnumValuesDefinition
|
|
1047
|
-
* - extend enum Name Directives[Const]
|
|
1048
|
-
*/
|
|
1049
784
|
parseEnumTypeExtension() {
|
|
1050
785
|
const start = this._lexer.token;
|
|
1051
786
|
this.expectKeyword('extend');
|
|
@@ -1063,11 +798,6 @@ class Parser {
|
|
|
1063
798
|
values,
|
|
1064
799
|
});
|
|
1065
800
|
}
|
|
1066
|
-
/**
|
|
1067
|
-
* InputObjectTypeExtension :
|
|
1068
|
-
* - extend input Name Directives[Const]? InputFieldsDefinition
|
|
1069
|
-
* - extend input Name Directives[Const]
|
|
1070
|
-
*/
|
|
1071
801
|
parseInputObjectTypeExtension() {
|
|
1072
802
|
const start = this._lexer.token;
|
|
1073
803
|
this.expectKeyword('extend');
|
|
@@ -1101,12 +831,6 @@ class Parser {
|
|
|
1101
831
|
directives,
|
|
1102
832
|
});
|
|
1103
833
|
}
|
|
1104
|
-
/**
|
|
1105
|
-
* ```
|
|
1106
|
-
* DirectiveDefinition :
|
|
1107
|
-
* - Description? directive @ Name ArgumentsDefinition? `repeatable`? on DirectiveLocations
|
|
1108
|
-
* ```
|
|
1109
|
-
*/
|
|
1110
834
|
parseDirectiveDefinition() {
|
|
1111
835
|
const start = this._lexer.token;
|
|
1112
836
|
const description = this.parseDescription();
|
|
@@ -1131,44 +855,9 @@ class Parser {
|
|
|
1131
855
|
locations,
|
|
1132
856
|
});
|
|
1133
857
|
}
|
|
1134
|
-
/**
|
|
1135
|
-
* DirectiveLocations :
|
|
1136
|
-
* - `|`? DirectiveLocation
|
|
1137
|
-
* - DirectiveLocations | DirectiveLocation
|
|
1138
|
-
*/
|
|
1139
858
|
parseDirectiveLocations() {
|
|
1140
859
|
return this.delimitedMany(tokenKind_ts_1.TokenKind.PIPE, this.parseDirectiveLocation);
|
|
1141
860
|
}
|
|
1142
|
-
/*
|
|
1143
|
-
* DirectiveLocation :
|
|
1144
|
-
* - ExecutableDirectiveLocation
|
|
1145
|
-
* - TypeSystemDirectiveLocation
|
|
1146
|
-
*
|
|
1147
|
-
* ExecutableDirectiveLocation : one of
|
|
1148
|
-
* `QUERY`
|
|
1149
|
-
* `MUTATION`
|
|
1150
|
-
* `SUBSCRIPTION`
|
|
1151
|
-
* `FIELD`
|
|
1152
|
-
* `FRAGMENT_DEFINITION`
|
|
1153
|
-
* `FRAGMENT_SPREAD`
|
|
1154
|
-
* `INLINE_FRAGMENT`
|
|
1155
|
-
* `VARIABLE_DEFINITION`
|
|
1156
|
-
* `FRAGMENT_VARIABLE_DEFINITION`
|
|
1157
|
-
*
|
|
1158
|
-
* TypeSystemDirectiveLocation : one of
|
|
1159
|
-
* `SCHEMA`
|
|
1160
|
-
* `SCALAR`
|
|
1161
|
-
* `OBJECT`
|
|
1162
|
-
* `FIELD_DEFINITION`
|
|
1163
|
-
* `ARGUMENT_DEFINITION`
|
|
1164
|
-
* `INTERFACE`
|
|
1165
|
-
* `UNION`
|
|
1166
|
-
* `ENUM`
|
|
1167
|
-
* `ENUM_VALUE`
|
|
1168
|
-
* `INPUT_OBJECT`
|
|
1169
|
-
* `INPUT_FIELD_DEFINITION`
|
|
1170
|
-
* `DIRECTIVE_DEFINITION`
|
|
1171
|
-
*/
|
|
1172
861
|
parseDirectiveLocation() {
|
|
1173
862
|
const start = this._lexer.token;
|
|
1174
863
|
const name = this.parseName();
|
|
@@ -1177,15 +866,6 @@ class Parser {
|
|
|
1177
866
|
}
|
|
1178
867
|
throw this.unexpected(start);
|
|
1179
868
|
}
|
|
1180
|
-
// Implements the parsing rules in the Schema Coordinates section.
|
|
1181
|
-
/**
|
|
1182
|
-
* SchemaCoordinate :
|
|
1183
|
-
* - Name
|
|
1184
|
-
* - Name . Name
|
|
1185
|
-
* - Name . Name ( Name : )
|
|
1186
|
-
* - @ Name
|
|
1187
|
-
* - @ Name ( Name : )
|
|
1188
|
-
*/
|
|
1189
869
|
parseSchemaCoordinate() {
|
|
1190
870
|
const start = this._lexer.token;
|
|
1191
871
|
const ofDirective = this.expectOptionalToken(tokenKind_ts_1.TokenKind.AT);
|
|
@@ -1234,28 +914,15 @@ class Parser {
|
|
|
1234
914
|
name,
|
|
1235
915
|
});
|
|
1236
916
|
}
|
|
1237
|
-
// Core parsing utility functions
|
|
1238
|
-
/**
|
|
1239
|
-
* Returns a node that, if configured to do so, sets a "loc" field as a
|
|
1240
|
-
* location object, used to identify the place in the source that created a
|
|
1241
|
-
* given parsed object.
|
|
1242
|
-
*/
|
|
1243
917
|
node(startToken, node) {
|
|
1244
918
|
if (this._options.noLocation !== true) {
|
|
1245
919
|
node.loc = new ast_ts_1.Location(startToken, this._lexer.lastToken, this._lexer.source);
|
|
1246
920
|
}
|
|
1247
921
|
return node;
|
|
1248
922
|
}
|
|
1249
|
-
/**
|
|
1250
|
-
* Determines if the next token is of a given kind
|
|
1251
|
-
*/
|
|
1252
923
|
peek(kind) {
|
|
1253
924
|
return this._lexer.token.kind === kind;
|
|
1254
925
|
}
|
|
1255
|
-
/**
|
|
1256
|
-
* If the next token is of the given kind, return that token after advancing the lexer.
|
|
1257
|
-
* Otherwise, do not change the parser state and throw an error.
|
|
1258
|
-
*/
|
|
1259
926
|
expectToken(kind) {
|
|
1260
927
|
const token = this._lexer.token;
|
|
1261
928
|
if (token.kind === kind) {
|
|
@@ -1264,10 +931,6 @@ class Parser {
|
|
|
1264
931
|
}
|
|
1265
932
|
throw (0, syntaxError_ts_1.syntaxError)(this._lexer.source, token.start, `Expected ${getTokenKindDesc(kind)}, found ${getTokenDesc(token)}.`);
|
|
1266
933
|
}
|
|
1267
|
-
/**
|
|
1268
|
-
* If the next token is of the given kind, return "true" after advancing the lexer.
|
|
1269
|
-
* Otherwise, do not change the parser state and return "false".
|
|
1270
|
-
*/
|
|
1271
934
|
expectOptionalToken(kind) {
|
|
1272
935
|
const token = this._lexer.token;
|
|
1273
936
|
if (token.kind === kind) {
|
|
@@ -1276,10 +939,6 @@ class Parser {
|
|
|
1276
939
|
}
|
|
1277
940
|
return false;
|
|
1278
941
|
}
|
|
1279
|
-
/**
|
|
1280
|
-
* If the next token is a given keyword, advance the lexer.
|
|
1281
|
-
* Otherwise, do not change the parser state and throw an error.
|
|
1282
|
-
*/
|
|
1283
942
|
expectKeyword(value) {
|
|
1284
943
|
const token = this._lexer.token;
|
|
1285
944
|
if (token.kind === tokenKind_ts_1.TokenKind.NAME && token.value === value) {
|
|
@@ -1289,10 +948,6 @@ class Parser {
|
|
|
1289
948
|
throw (0, syntaxError_ts_1.syntaxError)(this._lexer.source, token.start, `Expected "${value}", found ${getTokenDesc(token)}.`);
|
|
1290
949
|
}
|
|
1291
950
|
}
|
|
1292
|
-
/**
|
|
1293
|
-
* If the next token is a given keyword, return "true" after advancing the lexer.
|
|
1294
|
-
* Otherwise, do not change the parser state and return "false".
|
|
1295
|
-
*/
|
|
1296
951
|
expectOptionalKeyword(value) {
|
|
1297
952
|
const token = this._lexer.token;
|
|
1298
953
|
if (token.kind === tokenKind_ts_1.TokenKind.NAME && token.value === value) {
|
|
@@ -1301,18 +956,10 @@ class Parser {
|
|
|
1301
956
|
}
|
|
1302
957
|
return false;
|
|
1303
958
|
}
|
|
1304
|
-
/**
|
|
1305
|
-
* Helper function for creating an error when an unexpected lexed token is encountered.
|
|
1306
|
-
*/
|
|
1307
959
|
unexpected(atToken) {
|
|
1308
960
|
const token = atToken ?? this._lexer.token;
|
|
1309
961
|
return (0, syntaxError_ts_1.syntaxError)(this._lexer.source, token.start, `Unexpected ${getTokenDesc(token)}.`);
|
|
1310
962
|
}
|
|
1311
|
-
/**
|
|
1312
|
-
* Returns a possibly empty list of parse nodes, determined by the parseFn.
|
|
1313
|
-
* This list begins with a lex token of openKind and ends with a lex token of closeKind.
|
|
1314
|
-
* Advances the parser to the next lex token after the closing token.
|
|
1315
|
-
*/
|
|
1316
963
|
any(openKind, parseFn, closeKind) {
|
|
1317
964
|
this.expectToken(openKind);
|
|
1318
965
|
const nodes = [];
|
|
@@ -1321,12 +968,6 @@ class Parser {
|
|
|
1321
968
|
}
|
|
1322
969
|
return nodes;
|
|
1323
970
|
}
|
|
1324
|
-
/**
|
|
1325
|
-
* Returns a list of parse nodes, determined by the parseFn.
|
|
1326
|
-
* It can be empty only if open token is missing otherwise it will always return non-empty list
|
|
1327
|
-
* that begins with a lex token of openKind and ends with a lex token of closeKind.
|
|
1328
|
-
* Advances the parser to the next lex token after the closing token.
|
|
1329
|
-
*/
|
|
1330
971
|
optionalMany(openKind, parseFn, closeKind) {
|
|
1331
972
|
if (this.expectOptionalToken(openKind)) {
|
|
1332
973
|
const nodes = [];
|
|
@@ -1337,11 +978,6 @@ class Parser {
|
|
|
1337
978
|
}
|
|
1338
979
|
return undefined;
|
|
1339
980
|
}
|
|
1340
|
-
/**
|
|
1341
|
-
* Returns a non-empty list of parse nodes, determined by the parseFn.
|
|
1342
|
-
* This list begins with a lex token of openKind and ends with a lex token of closeKind.
|
|
1343
|
-
* Advances the parser to the next lex token after the closing token.
|
|
1344
|
-
*/
|
|
1345
981
|
many(openKind, parseFn, closeKind) {
|
|
1346
982
|
this.expectToken(openKind);
|
|
1347
983
|
const nodes = [];
|
|
@@ -1350,11 +986,6 @@ class Parser {
|
|
|
1350
986
|
} while (!this.expectOptionalToken(closeKind));
|
|
1351
987
|
return nodes;
|
|
1352
988
|
}
|
|
1353
|
-
/**
|
|
1354
|
-
* Returns a non-empty list of parse nodes, determined by the parseFn.
|
|
1355
|
-
* This list may begin with a lex token of delimiterKind followed by items separated by lex tokens of tokenKind.
|
|
1356
|
-
* Advances the parser to the next lex token after last item in the list.
|
|
1357
|
-
*/
|
|
1358
989
|
delimitedMany(delimiterKind, parseFn) {
|
|
1359
990
|
this.expectOptionalToken(delimiterKind);
|
|
1360
991
|
const nodes = [];
|
|
@@ -1375,16 +1006,10 @@ class Parser {
|
|
|
1375
1006
|
}
|
|
1376
1007
|
}
|
|
1377
1008
|
exports.Parser = Parser;
|
|
1378
|
-
/**
|
|
1379
|
-
* A helper function to describe a token as a string for debugging.
|
|
1380
|
-
*/
|
|
1381
1009
|
function getTokenDesc(token) {
|
|
1382
1010
|
const value = token.value;
|
|
1383
1011
|
return getTokenKindDesc(token.kind) + (value != null ? ` "${value}"` : '');
|
|
1384
1012
|
}
|
|
1385
|
-
/**
|
|
1386
|
-
* A helper function to describe a token kind as a string for debugging.
|
|
1387
|
-
*/
|
|
1388
1013
|
function getTokenKindDesc(kind) {
|
|
1389
1014
|
return (0, lexer_ts_1.isPunctuatorTokenKind)(kind) ? `"${kind}"` : kind;
|
|
1390
1015
|
}
|