Skip to content

apollo-compiler@1.28.0

Choose a tag to compare

@goto-bus-stop goto-bus-stop released this 24 Apr 08:53
· 65 commits to main since this release
b734550

Features

  • Reject @skip/@include on subscription root fields - dariuszkuc SimonSapin and goto-bus-stop, pull/963

    This implements a GraphQL spec RFC, rejecting
    subscriptions in validation that can be invalid during execution.

  • New shorthand methods for mutable directive argument access - tninesling, pull/967

    Introduces new methods:

    • DirectiveList::get_all_mut
    • DirectiveList::argument_by_name_mut
    • DirectiveList::specified_argument_by_name_mut

Fixes

  • Update ariadne trait implementations - lrlna, pull/960

    ariadne@0.5.1 release changed their type signature for ariadne::Cache trait, which required an
    update to apollo-compiler's implementation of ariadne::Cache<FileId>.

    This release also had a slight change to path formatting, so if you had any snapshots in your
    tests, you can expect a change from this:

    Error: `typeFragment1` contains too much nesting
        ╭─[overflow.graphql:11:11]
    

    to this (notice the extra white space around the file path):

    Error: `typeFragment1` contains too much nesting
        ╭─[ overflow.graphql:11:11 ]
    
  • Harden stack overflow protection - goto-bus-stop, pull/966

    Closes a theoretical gap in stack overflow protection when processing long fragment chains, and
    significantly improves validation performance on documents with thousands of fragment definitions.