Skip to content

Releases: obmarg/cynic

v3.4.3

22 Jan 14:31
Compare
Choose a tag to compare

Bug Fixes

  • Handle disabled introspection better in cynic-introspection & cynic-cli.
    This is technically a breaking change, but it's small and fixes a bug so I'll
    allow it.

v3.4.2

22 Jan 12:23
Compare
Choose a tag to compare

Changes

  • If you accidentally write a recursive query without the recurse attribute
    you'll now get a panic suggesting to use recurse. This may cause false
    positives if you're writing a particularly large query - users should raise
    an issue if I've picked a number that's too low.

Bug Fixes

  • The recurse attribute now works if an InlineFragments derive is used in
    the recursive path.

v3.4.1

22 Jan 10:44
Compare
Choose a tag to compare

Bug Fixes

  • Fixed an issue with object literals inside arguments

v3.4.0

09 Jan 12:08
Compare
Choose a tag to compare

New Features

  • Enums can now opt out of exhaustiveness checking with the non_exhaustive
    attribute

v3.3.3

09 Jan 10:19
Compare
Choose a tag to compare

Bug Fixes

  • cynic-introspection now omits the {} if a definition is empty.

v3.3.2

08 Jan 22:01
Compare
Choose a tag to compare

Changes

  • GraphQlResponse is now Clone provided its contents are also

v3.3.1

05 Jan 19:18
Compare
Choose a tag to compare

Bug Fixes

  • Fixed an issue where #[cynic(flatten)] would not work on scalar fields.

v3.3.0

14 Nov 11:03
53be535
Compare
Choose a tag to compare

New Features

  • The QueryVariables derive now supports skip_serializing_if
  • cynic-cli has a new querygen command as an alternative to the
    web-based generator (Note: this is experimental and may be subject
    to change)

Changes

  • Operations generated by cynic will now omit un-used variables
  • The #[cynic(spread)] attribute now outputs an inline fragment in GraphQL

Fixes

  • Using #[cynic(spread)] more than once no longer results in rust compile
    errors.
  • The generator won't output an incorrect comma in between attributes in
    certain circumstances.
  • The generator now uses the same re-casing as codegen - leading to less bugs.
  • The generator will now rename more QueryFragment fields that require it.
  • cynic-introspection now escapes deprecated strings that require it in SDL.

v3.2.2

26 Jun 23:22
Compare
Choose a tag to compare

Bug Fixes

  • Various SDL output fixes in cynic-introspection:
    • It no longer prints ? where it means !
    • It omits the schema definition if all the root operation types are using
      default names
    • Enum values no longer have empty lines between them
    • We no longer erronously print the Boolean scalar
    • Fields now have a hacky heuristic that decides when to wrap them
    • Unions also have a wrapping heuristic
    • Deprecation reasons will now correclty be wrapped in strings

v3.2.1

26 Jun 19:31
Compare
Choose a tag to compare

Changes

  • Building binaries with different GitHub action