Skip to content
Compare
Choose a tag to compare
@lrlna lrlna released this 04 Nov 16:30
· 594 commits to main since this release
979a783

0.3.1 - 2022-11-04

Features

  • streaming lexer - Geal + goto-bus-stop, pull/115

    To help improve performance and memory usage in the lexer, we are now
    streaming all incoming tokens in the lexer implementation.

  • extend ast::*Value node conversions - SimonSapin, pull/344

    The following node types implement conversion to standard types, extracting
    their value:

    • StringValueString
    • IntValuei32
    • FloatValuef64
    • BoolValuebool

    These conversions are now also available:

    • Through the From trait, not just the Into trait
    • With borrowed nodes, not just owned

    Example:

    let node: &apollo_parser::ast::StringValue = /* something */;
    let value: String = node.clone().into(); // before
    let value = String::from(node); // now also possible

Documentation

  • example of modifying queries with parser + encoder - lrlna, pull/346
    An addition to apollo-parser's example directory encoding various parts of the AST using apollo-encoder's new TryFrom implementation. Examples include:

    • merging two queries
    • omitting certain fields in a query.