Releases: Netflix/dgs-codegen
Releases · Netflix/dgs-codegen
v5.2.0
What’s Changed
New
- GraphQL field with the name 'class' is supported via a [get|set]ObjClass (#402) @springmonster
- We now generate specific types for fields that appear in both GraphQL Query, Subscription, or Mutation types. (#410) @springmonster
- We now generate Java constants for GraphQL Query Input Arguments. (#397) @TYzzt
Generated types can now implement Serializable. (#394) @hdani9307 (#405) @springmonster - Java Classes can be generated with an parameterless constructor (#398) @TYzzt
Fixes
- Fix #711, code generation uses java keyword "default". (#399) @springmonster
- Fix, input type field with reserved name causes error if initial value is set (#396) @springmonster
Other
- Rename client module to shared module (#411) @mbossenbroek
- Upgrade Kotlin, Kotlin Poet, and Kotlinter (#408) @berngp
- Bump assertj-core from 3.22.+ to 3.23.1 (#387) https://github.com/dependabot
- Bump clikt from 3.4.+ to 3.5.0 (#390) https://github.com/dependabot
- Bump actions/cache from 3.0.2 to 3.0.4 (#391) https://github.com/dependabot
- Bump actions/setup-python from 3.1.0 to 4.0.0 (#392) https://github.com/dependabot
- Support a @sensitive directive (#363) @willemmanuel
- Leverage graphql-java in GraphQLQueryRequest and ProjectionSerializer (#380) (#379) @kilink
- Leverage graphql-java in InputValueSerializer (#378) @kilink
- Use kotlin-reflect in InputValueSerializer, add Transient marker (#377) @kilink
- Make GenerateJavaTask cacheable (#358) @kilink
- Parse GraphQL schemas once and in single location (#357) @kilink
- Fix Kotlin Test for interfaces with keywords. (#401) @berngp
- Feature/kotlin codegen (#359) @mbossenbroek
- Bump nebula.netflixoss from 10.5.1 to 10.6.0 (#328) https://github.com/dependabot
- Bump actions/checkout from 2 to 3 (#350) https://github.com/dependabot
- Bump guava from 31.0.1-jre to 31.1-jre (#349) https://github.com/dependabot
- Bump actions/cache from 2.1.7 to 3.0.2 (#373) https://github.com/dependabot
- Bump actions/setup-java from 2 to 3 (#371) https://github.com/dependabot
- Bump actions/setup-python from 2 to 3.1.0 (#366) https://github.com/dependabot
- Bump com.gradle.plugin-publish from 0.20.0 to 0.21.0 (#364) https://github.com/dependabot
- Bump kotlinpoet from 1.10.+ to 1.11.0 (#361) https://github.com/dependabot
- Move to Gradle 7.4.2 (#374) @sullis
- Upgrade kotlin to 1.6 (#376) @mbossenbroek
v5.1.17
What’s Changed
- Add info logs for better debuggability of schema issues during generation. (#342) @srinivasankavitha
- Allow null for optional input args in projection. (#341) @srinivasankavitha
- Fix #337 (#339) @mdaniel
- Bug fixes related to generating kotlin interface types. (#340) @srinivasankavitha
- Correctly model the task-dependencies of the main source-set. (#332) @larsgrefer
- Set max tokens to allow for larger schemas when generating kotlin (#321) @OskarKjellin
- Fix default package name for generated types. (#319) @srinivasankavitha
- Added missing gradle setting for includeSubscriptions (#315) @paulbakker
v5.1.16
v5.1.15
v5.1.14
v5.1.11
v5.1.10
What’s Changed
- feat: Support Generic Types on Type Mapping Definitions (#293) @npwork
- fix: Skip auto-generation for type-mapped enum (#290) @npwork
- fix: Generate interfaces classes when
generateDataTypes=false
butgenerateInterfaces=true
(#285) @npwork - fix: $ in javadoc causes an error (#286) @npwork
- fix: Interfaces implementing interfaces (#289) @npwork
- fix: generateInterfaces creates duplicate methods when implementing interface (#291) @npwork
- Generate companion object for interfaces in Kotlin (#276) @zanonena
- refactor: removed spring dependency (#282) @npwork
Other
- Bump nebula.netflixoss from 10.3.0 to 10.4.0 (#295) @dependabot
- refactor: Replaced google's Truth library -> assertj (#294) @npwork
- refactor: Split tests from ClientApiGenTest to multiple smaller test files (#288) @npwork
- Bump com.gradle.plugin-publish from 0.16.0 to 0.17.0 (#268) @dependabot
- Update Gradle Wrapper from 7.2 to 7.3 (#270) @github-actions
- Update Gradle Wrapper from 7.3 to 7.3.1 (#300) @github-actions
- Bump com.gradle.plugin-publish from 0.17.0 to 0.18.0 (#284) @dependabot
- Bump actions/cache from 2.1.6 to 2.1.7 (#298) @dependabot
Special Thank to @npwork for all the work on this release!
v5.1.9
What’s Changed
- Update the schema token limit to INT.MAX_VALUE. (#275) @srinivasankavitha
v5.1.8
What’s Changed
- Adopt JDKS' SourceVersion to improve which keywords get sanitized (#267, #259) @berngp
- Upgrade kotlinpoet 1.10.+ (#259) @berngp
Other Changes
- Allow SDKMan users to set the project required SDK. (#265) @berngp
- Fix warnings, use more idiomatic constructs (#261) @kilink
- Test against different Gradle Versions (#264) @berngp
- Bump kotlin-compiler to 1.5.31 (#260) @kilink
- Get tests passing in JDK 17 (#263) @kilink
- Fix ci.yml script (#262) @berngp
v5.1.7
Equivalent to v5.1.6