apollo-compiler@0.4.1
·
649 commits
to main
since this release
Features
- add new APIs - SimonSapin, pull/382
db.find_enum_by_name()to look up anEnumTypeDefinition.directive.argument_by_name()to look up the value of an argument to a directive call.scalar_type.is_built_in()to check if aScalarTypeDefinitionis defined by the GraphQL spec rather than the schema text.enum_value.directives()to access the directives used on an enum value.hir::Floatis nowCopyso it can be passed around more easily; usehir_float.get()to access the underlyingf64orhir_float.to_i32_checked()to convert to ani32.
Fixes
-
do not panic when creating HIR from a parse tree with syntax errors - goto-bus-stop, pull/381
When using the compiler, nodes with syntax errors in them are ignored. As syntax errors are returned
from the parser, you can still tell that something is wrong. The compiler just won't crash the whole
program anymore.