Skip to content

cynic-parser-v0.8.0

Compare
Choose a tag to compare
@cynic-releaser cynic-releaser released this 07 Nov 19:12
· 25 commits to main since this release
609f661

Breaking Changes

  • Lexing failures now include the token that failed to parse
  • Description::raw_str has been renamed raw_untrimmed_str to make its
    purpose clearer.
  • StringLiteral::raw_str has been renamed raw_untrimmed_str to make its
    purpose clearer.
  • Floats are now correctly represented as f64 rather than f32
  • Value::as_f32 & ConstValue::as_f32 are now as_f64

New Features

  • Added convenience functions to SchemaDefintion to get the individual
    definitions from within
  • Added get function to ConstList, List,, ConstObject and Object to
    get the value of an item or field from the list or object
  • ConstList, List, ConstObject and Object now implement IntoIterator,
    which is equivalent to calling items or fields
  • Added as_f64 & as_str & as_bool functions to the respective scalar
    value types.

Bug Fixes

  • Floats are now correctly represented as f64 rather than f32

Changes

  • Iter types are now reexported in the type_system and executable modules
  • Value & ConstValue are now reexported from the crate root.