Releases: kobylynskyi/graphql-java-codegen
Releases · kobylynskyi/graphql-java-codegen
5.3.0
- Support RegEx in
customAnnotationsMapping
#783 #793 @kobylynskyi - Add @JvmStatic annotation to Kotlin builders #771 @kbrooks
- Support mapping of enum values in directive parameters #673 #674 @meistermeier
- Scala: Avoid duplicates in enum imports #674 @meistermeier
- Scala: Fix
generateModelOpenClasses
#741 @jxnu-liguobin
5.2.0
- Ability to provide a custom operation name in GraphQL request #681 by @robbertnoordzij
5.1.0
- Ability to disable generation of the
all$
method in projections #645- Using a new config option:
generateAllMethodInProjection
- Using a new config option:
- Generate jackson type id resolver annotation #637
- Using a new config option:
generateJacksonTypeIdResolver
- Using a new config option:
- Add directive support for types #660 #665
- GraphQL serialization of java.util.Map #668 #669
Thanks to @robbertnoordzij, @gdhordain and @jxnu-liguobin for participating in this release!
5.0.0
New features
- Support multiple external configuration files #585 #608
- Breaking change: applied only if you were using
jsonConfogurationFile
config. Migration is described below.
- Breaking change: applied only if you were using
- Do not include external dependencies into codegen library #564 #611
graphql-java
and other libraries are now excluded fromgraphql-java-codegen
library. So that now it is a lightweight library containing only the classes related to code-generation (including model classes for request serialization). So if you have no explicit declaration ofgraphql-java
dependency and having compilation issues, then please add it.
- Add ability to generate particular types as Java interfaces #606 #610
- Add a new config option
typesAsInterfaces
which can describe which types will be generated as interfaces (in contrast to POJOs).
- Add a new config option
- Bump
graphql-java
to 16.2 #589 #611- Update version of
graphql-java
library from 15.0 to 16.2.
- Update version of
Breaking changes
This release has the following breaking change:
- Renamed
jsonConfigurationFile
toconfigurationFiles
#585 #608- Follow migration guide to update your build script.
4.1.6
4.1.5
- Revert back
jackson-databind
version from 2.12.2 to 2.12.1 due to FasterXML/jackson-jaxrs-providers#138 - #584 by @streibeb generatedLanguage
is invalid when config comes from jsonConfigurationFile - #572 by @jxnu-liguobin was closed- Scala: optimizations in generated classes - #588 by @jxnu-liguobin
- Scala: fix imports in enum classes - #576 by @jxnu-liguobin
- Scala, Kotlin: fix compilation issues in ParameterizedInput classes - #573 by @jxnu-liguobin
4.1.4
- Fix compilation error when the field is non-null in type and nullable in interface #556 #557
- Fix parameterized input serialization #563 by @streibeb
- Kotlin - option to generate open class instead of data class #524 by @ntf
- Support generation of normal public class for Kotlin and Scala #547 by @jxnu-liguobin
- Optimizations and fixes in SBT plugin #554 #558 by @jxnu-liguobin
4.1.3
- Introduce flag to specifying whether
@Generated
annotation should be added to generated classes: addGeneratedAnnotation (default: true) #534 by @streibeb - Fix Kotlin interfaces generation:
extends
interface was missingoverride
modifier #508 by @jxnu-liguobin - Fix client code generation from introspection result #535
4.1.2
- Scala: Consider generating additional classes required for serialization of scala enumerations #479 by @jxnu-liguobin
- Support generic over generic response type #482
4.1.1
- Fix exception for non-query compound requests #477 by @WouterG
- Bump jackson-databind from 2.12.0 to 2.12.1 #478