apollo-compiler@0.8.0
·
558 commits
to main
since this release
0.8.0 - 2023-04-13
BREAKING
There is now an API to set parser's token limits via apollo-compiler. To
accommodate an additional limit, we changed the API to set several limits
simultaneously.
let op = r#"
query {
a {
a {
a {
a
}
}
}
}
"#;
let mut compiler = ApolloCompiler::new().token_limit(22).recursion_limit(10);
compiler.add_executable(op, "op.graphql");
let errors = compiler.db.syntax_errors();
assert_eq!(errors.len(), 1)Features
- validate fragment definitions are used, by gocamille in pull/483
- validate fragment type condition exists in the type system and are declared on composite types, by gocamille in pull/483
- validate fragment definitions do not contain cycles, by goto-bus-stop in pull/518
Fixes
- fix duplicate directive location info, by goto-bus-stop in pull/516
- use
LimitExceededdiagnostic for limit related errors, by lrlna in pull/520