apollo-compiler@0.4.0
Features
-
add parser recursion limit API - SimonSapin, pull/353, issue/296
Calling
ApolloCompiler::with_recursion_limitinstead ofApolloCompiler::new
makes the compiler configure the corresponding parser limit.
This limit protects against stack overflow and is enabled either way.
Configuring it may be useful for example if you’re also configuring the stack size. -
expose the repeatable attribute on
DirectiveDefinition- allancalix, pull/367There was previously no way to access the
repeatablefield on theDirectiveDefinitiontype.
This field is required for validation rules. -
add type extensions - SimonSapin, pull/369
apollo-compiler now partially supports GraphQL
extendtypes. Theis_subtypequery takes
extensions into account.Some other parts of the compiler, like validation, do not yet support extensions.
Fixes
-
fix
@includeallowed directive locations - allancalix, pull/366The locations for the
@includedirective wrongly specifiedFragmentDefinitioninstead ofFragmentSpread.
It now matches the spec.
Maintenance
- avoid double lookup in
SchemaDefinition::{query,mutation,subscription}- SimonSapin, pull/364