Releases: obmarg/cynic
Releases · obmarg/cynic
v3.13.0
Note that this is the last release that will be pushed to github - development of cynic
will continue over on codeberg.org/obmarg/cynic.
New Features
- Feature flags are now supported on on arguments (#1181)
- An
InputObjecton aoneOftype will automatically skip serializing all of
it's null fields (#1179) InputObjectcan now be derived on enums for oneOf inputs (#1174)Operationis nowClone(#1170)- The reqwest integation now accepts
&Operationas well asOperation(#1169) - The
QueryFragmentderive now supports therename_allattribute (#1167) - add
@oneOfsupport to introspection (#1177) - oneOf input objects are now supported in the in the generator (#1175)
- cynic-introspection now supports additions from the 2025 spec (#1180)
cynic-querygennow has afield_overridesoption that can be used to
customize the type of individual scalar fields in generatedQueryFragments (#1184)
Bug Fixes
cynic_querygenhas a new interface based around theGeneratortype
(#1187)- Fixed an issue with lifetime detection on nested input objects in the
generator
Deprecations
- The old intrerface to cynic_querygen has been marked deprecated
Changes
cynic-parser-v0.11.0
v3.12.0
New Features
- The
graphql_typeattribute on fields of variable structs can now specify
generic types instead of just single named types.
Bug Fixes
cynic-parser-v0.10.0
New Features
- Added a
revfunction on TypeWrappersIter (#1161)
v3.11.0
New Features
- Optional fields on a
QueryFragmentcan now be marked with
#[cynic(default)]. If this directive is present the field does not have to
be wrapped inOptionand theDefaultimpl of the type will be used if the
field is null (#1144) - The generator now supports directives (#1139)
- Users can opt out of Deserialize for QueryFragment (#1147)
cynic-introspectionnow includes directives in its SDL (#1140)
Bug Fixes
cynic-parser-v0.9.1
Bug Fixes
TryFrom<Value<'_>> for ConstValue<'_>now returns an error when an object
or list contains aValue, rather than panicing (#1133)
v3.10.0
New Features
- Added initial suppport for directives:
@skip,@includeare supported, and
other field level directives can be used provided they don't require
specific client support (#900)
Bug Fixes
- Parsing will no longer fail if keywords like
mutationare used as enum
values. (#1128)
Changes
Changes
- Bumped the MSRV to 1.80
cynic-parser-v0.9.0
Breaking Changes
- Added new variants to
cynic_parser::Errorto handle empty documents, these
errors were previous ambiguous parser errors (#1117) Error::spannow returns anOption<Span>instead of aSpan
Bug Fixes
- Parsing will no longer fail if keywords like
mutationare used as enum
values. (#1128)
Changes
- Parse schema with
cynic_parserin querygen (#1124) - Bumped the MSRV to 1.80