Skip to content

v1.0.0

Compare
Choose a tag to compare
@obmarg obmarg released this 09 Dec 22:48

Breaking Changes

  • The CynicReqwestError enum (behind the reqwest & reqwest-blocking
    feature flags) has a new variant to handle non 2XX responses from servers.
  • Removed the GraphQlResult & PossiblyParsedData types (which weren't being
    used)
  • Removed the following deprecated things: query_dsl!, the query_module
    module attribute, the GraphQLError, GraphQLResponse,
    GraphQLErrorLocation & GraphQlErrorPathSegment type aliases.

New Features

  • The InlineFragments derive now supports a rename attribute on variants

Changes

  • The QueryFragment derive now supports fields with types that take generic
    parameters directly, e.g. DateTime<Utc> from chrono. Previously this would
    have required a type alias to hide the generic parameters from cynic.

Bug Fixes

  • The various HTTP client integrations will now return HTTP error details and
    the full body on non 2XX responses that don't contain a valid GraphQL
    response. Previously they would have tried to decode the response as GraphQL
    and returned the error from that operation.