apollo-compiler@1.28.0
Features
-
Reject
@skip/@includeon subscription root fields - dariuszkuc SimonSapin and goto-bus-stop, pull/963This 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_mutDirectiveList::argument_by_name_mutDirectiveList::specified_argument_by_name_mut
Fixes
-
Update
ariadnetrait implementations - lrlna, pull/960ariadne@0.5.1release changed their type signature forariadne::Cachetrait, which required an
update toapollo-compiler's implementation ofariadne::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.