• v0.11.0.0 445f33dcf3

    0.11.0.0 Stable

    belka released this 2020-11-07 09:05:47 +01:00 | 122 commits to master since this release

    Changed

    • AST.Document.Selection wraps additional new types: Field, FragmentSpread
      and InlineFragment. Thus validation rules can be defined more concise.
    • AST.Document: Argument and Directive contain token location.
    • AST.Document.Argument contains the Value wrapped in the Node.
    • AST.Lexer.colon and AST.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 the Validation 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 to Error.
    • 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 and Type.Schema.Directives are directive definition
      representation.
    • Type.Schema.schema: Schema constructor.

    Fixed

    • Collecting existing types from the schema considers subscriptions.

    Removed

    • AST.Document.Alias. Use AST.Document.Name instead.
    Downloads