Releases: kobylynskyi/graphql-java-codegen
Releases Β· kobylynskyi/graphql-java-codegen
5.10.0
What's Changed
- Support custom type default values for enums - by @rwo-trackunit in #1458 #1429
- Support ArgumentValue wrapper for input parameters via
useWrapperForNullableInputTypes
- by @rwo-trackunit in #1450 - Support DataFetchResult generation via
fieldsWithDataFetcherResult
- by @kirill071992 in #1431 #1416 - SBT: fix publish - by @jxnu-liguobin in #1410
New Contributors
- @rwo-trackunit made their first contribution in #1458
- @kirill071992 made their first contribution in #1431
Full Changelog: v5.9.0...v5.10.0
5.9.0
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
anddirectiveAnnotationsMapping
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
- @sabirove made their first contribution in #1299
- @ssternal made their first contribution in #1310
- @thevietto made their first contribution in #1377
- @sdaurea made their first contribution in #1376
- @yholkamp made their first contribution in #1384
Full Changelog: v5.8.0...v5.9.0
5.8.0
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
- @isaac-mercieca made their first contribution in #1198
- @matsudamper made their first contribution in #1201
Full Changelog: v5.7.2...v5.8.0
5.7.2
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 deprecatedJavaPluginConvention
- #1150 #1152
New Contributors
- @yeikel made their first contribution in #1061
- @andreloeffelmann made their first contribution in #1155
Full Changelog: v5.7.1...v5.7.2
5.7.1
What's Changed
Full Changelog: v5.7.0...v5.7.1
v5.7.0
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
- @upendrao made their first contribution in #1046
- @clement-buchart made their first contribution in #1044
- @velo made their first contribution in #1048
Full Changelog: v5.6.0...v5.7.0
5.6.0
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 forgeneratedAnnotation
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 specify custom
- 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:
- SBT:
- Update dependencies of SBT plugin #1001
New Contributors
- @romash1408 made their first contribution in #1020
- @esfomeado made their first contribution in #1034
Full Changelog: v5.5.0...v5.6.0
5.5.0
What's Changed
- spring-graphql support: Ability to supply
resolverArgumentAnnotations
andparametrizedResolverAnnotations
(usage) #983 by @kobylynskyi in #990 - Properly close resources when generating files (fix a leak) #987 by @JamesPeters98 in #989
- Add
skip
parameter to skip execution when true #961 by @kobylynskyi in #991 - Kotlin: Use
objectMapperForSerialization
for kotlin type classes #995 by @jay3047 in #996 - Handle POJO generation when GraphQL type has field named "class" #994 by @kobylynskyi in #998
New Contributors
- @JamesPeters98 made their first contribution in #989
- @jay3047 made their first contribution in #996
Full Changelog: v5.4.1...v5.5.0
5.4.1
What's Changed
- Do not put validation annotation if return type is a nullable list having non-null values #959 by @kobylynskyi in #960
- Fix generated interfaces with disabled
generateParameterizedFieldsResolvers
#976 by @kobylynskyi in #977 - Fix invalid parameter names for
extensions
andcustomTypeMappings
#964 by @kobylynskyi in #979 - Upgrade jackson libs to 2.13.3 #970 by @kobylynskyi in #978
Full Changelog: v5.4.0...v5.4.1
5.4.0
What's Changed
- Support parameterized field getters in generated interfaces #859 #913 @kobylynskyi
- Add
serialVersionUID
to generated classes that implementSerializable
#810 #811 @rolevinks - Don't fail with enums in directive parameters #673 #674 @meistermeier
- Support unknown fields during serialization or deserialization of
GraphQLRequest
#866 @aldib - Support
modelNameSuffix
suffix inGraphqlJacksonTypeIdResolver
#914 #915 @YarLyashenko - [Kotlin] Ability to generate sealed interfaces #868 #869 @kbrooks
- [Kotlin] Add option to add defaults to nullable fields #863 @zmack
- [Kotlin] Add
@JvmStatic
annotation in generated builders #767 #771 @kbrooks - [Kotlin] Fix
default
value initialization #880 #882 @jxnu-liguobin - [Scala] Fix generateModelOpenClasses #741 @jxnu-liguobin
New Contributors
- @kbrooks made their first contribution in #771
- @meistermeier made their first contribution in #674
- @rolevinks made their first contribution in #811
- @zmack made their first contribution in #863
- @YarLyashenko made their first contribution in #915
- @aldib made their first contribution in #866
Full Changelog: v5.3.0...v5.4.0