Skip to content

Releases: kobylynskyi/graphql-java-codegen

5.10.0

24 Feb 16:57
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v5.9.0...v5.10.0

5.9.0

16 Nov 19:33
Compare
Choose a tag to compare

What's Changed

  • New option to allow excluding fields from generated GraphQL objects: fieldsToExcludeFromGeneration - by @sabirove in #1299
  • New option to disable GraphQL schema token limit validation: skipSchemaSizeLimit by @yholkamp in #1384
  • New option to render Kotlin functions with suspend modifier: generateApisWithSuspendFunctions - by @thevietto in #1377
  • Support all$ method for union and interface projections - by @sdaurea in #1376
  • Fix enum generation when customTypesMapping and directiveAnnotationsMapping are used together - by @jxnu-liguobin in #1298
  • Fix mapping config for generateModelsWithPublicFields - by @ssternal in #1310
  • Fix value sanitization for immutable collections - by @kobylynskyi in #1408

(See docs/codegen-options.md for more details on all the available codegen options.

New Contributors

Full Changelog: v5.8.0...v5.9.0

5.8.0

20 Jul 16:52
Compare
Choose a tag to compare

What's Changed

  • Ability to supply a root directory with custom templates: customTemplatesRoot #1158 #1198
  • Increase customizability of values that can be returned by apiReturnType/apiReturnListType via {{TYPE}} placeholder #1167 #1200
  • Enhance Schema Finder to follow symbolic links #1199
  • Relay support for client classes #1202
  • Kotlin: fix annotations placement on type and input classes #1264

New Contributors

Full Changelog: v5.7.2...v5.8.0

5.7.2

26 Apr 03:49
Compare
Choose a tag to compare

What's Changed

  • Update dependencies:
    • org.freemarker:freemarker: 2.3.31 -> 2.3.32
    • com.graphql-java:graphql-java: 20.0 -> 20.2
    • com.fasterxml.jackson.core:jackson-databind: 2.14.2 -> 2.15.0
    • com.typesafe:config: 1.4.1 -> 1.4.2
  • Fix generation of non-compilable sources when setting generateNoArgsConstructorOnly=true - #1154 #1155
  • Add @Generated annotation to Builder classes - #1159
  • Gradle plugin: Use JavaPluginExtension instead of deprecated JavaPluginConvention - #1150 #1152

New Contributors

Full Changelog: v5.7.1...v5.7.2

5.7.1

23 Mar 01:02
Compare
Choose a tag to compare

What's Changed

  • Gradle: fix setting customAnnotationsMapping (was broken in 5.7.0) #1055 #1056

Full Changelog: v5.7.0...v5.7.1

v5.7.0

22 Mar 02:51
Compare
Choose a tag to compare

What's Changed

  • Mitigate CVE-2022-37734, CVE-2022-42003, CVE-2022-42004 by updating graphql and jackson dependencies #1045 #1046
  • Add resolver argument annotation on generated parameterized field resolver classes #1044
  • New config option to generate models with public fields: generateModelsWithPublicFields #864 #1049
  • New config option to supply paths to custom FreeMarker .ftl templates: customTemplates #860 #1048
  • Support config option generateSealedInterfaces for Scala generated classes #1042

New Contributors

Full Changelog: v5.6.0...v5.7.0

5.6.0

28 Feb 01:27
Compare
Choose a tag to compare

What's Changed

  • Custom @Generated annotation #1016 #1036
    • New config to specify custom @Generated annotation: generatedAnnotation
    • Modified the logic of setting a default value for @Generated annotation (if value for generatedAnnotation config is empty). Following classes will be looked (up in the same order): @jakarta.annotation.Generated -> @javax.annotation.processing.Generated -> @javax.annotation.Generated. If none are present in the classpath then @Generated annotation will not be added on top of the classes.
  • New config to generate only no-args constructor: generateNoArgsConstructorOnly #1017 #1037
  • Generate Jackson annotations in interfaces #1033 #1034
  • Ability to combine multiple response projections #985 #1031
    • Generating a new constructor that accepts a list of response projections of the same type. Resulting response projection will contain a merge of all fields of the provided projections.
  • Fix generation of interfaces when return type of the method has a list of Unions #1018 #1030
  • Kotlin:
    • Added support for annotations in generated kotlin operations #1002 #1003
    • Save kotlin nullable sign for custom type mapping and apiReturnType #1019 #1020
  • SBT:
    • Update dependencies of SBT plugin #1001

New Contributors

Full Changelog: v5.5.0...v5.6.0

5.5.0

11 Sep 14:36
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v5.4.1...v5.5.0

5.4.1

29 May 17:42
Compare
Choose a tag to compare

What's Changed

Full Changelog: v5.4.0...v5.4.1

5.4.0

24 Jan 02:10
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v5.3.0...v5.4.0