-
0.11.0.0 Stable
released this
2020-11-07 09:05:47 +01:00 | 122 commits to master since this releaseChanged
AST.Document.Selection
wraps additional new types:Field
,FragmentSpread
andInlineFragment
. Thus validation rules can be defined more concise.AST.Document
:Argument
andDirective
contain token location.AST.Document.Argument
contains theValue
wrapped in theNode
.AST.Lexer.colon
andAST.Lexer.at
ignore the result (it is always the- same).
Validate.Validation
:Validation.rules
was removed.Validation.rules
contained the list of rules, but the executed rules shouldn't know about other
rules.rules
was a part of theValidation
context to pass it easier
around, but since the rules are traversed once now and applied to all nodes in
the tree at the beginning, it isn't required anymore.Validate.Validation.Error
:path
is removed since it isn't possible to get
the path without executing the query.Error.Error
:path
added. It is currently always empty.Validate.Validation.Path
was moved toError
.Type.Schema.Schema
: data constructor is hidden, fields are accessible with
freestanding functions:query
,mutation
,subscription
,directives
and
types
.
Added
Validate.Validation.Rule
constructors:SelectionRule
FragmentRule
FragmentSpreadRule
ArgumentsRule
DirectivesRule
VariablesRule
FieldRule
Validate.Rules
:fragmentsOnCompositeTypesRule
fragmentSpreadTargetDefinedRule
fragmentSpreadTypeExistenceRule
noUnusedFragmentsRule
noFragmentCyclesRule
uniqueArgumentNamesRule
uniqueDirectiveNamesRule
uniqueVariableNamesRule
variablesAreInputTypesRule
noUndefinedVariablesRule
noUndefinedVariablesRule
noUnusedVariablesRule
uniqueInputFieldNamesRule
fieldsOnCorrectTypeRule
scalarLeafsRule
knownArgumentNamesRule
knownDirectiveNamesRule
directivesInValidLocationsRule
providedRequiredArgumentsRule
providedRequiredInputFieldsRule
AST.Document.Field
.AST.Document.FragmentSpread
.AST.Document.InlineFragment
.AST.Document.Node
.Type.In.Arguments
: Type alias for an argument map.Type.Schema.Directive
andType.Schema.Directives
are directive definition
representation.Type.Schema.schema
: Schema constructor.
Fixed
- Collecting existing types from the schema considers subscriptions.
Removed
AST.Document.Alias
. UseAST.Document.Name
instead.
Downloads