v1.8.0
Do you want The Guild to keep your codebase up to date and run your build on each GraphQL Code Generator commit so we'll make sure not to break your app?
Contact us here: the-guild.dev/connected-build
core/cli
- update dependencies
- feat(core): add option for disabling document validation (#2567, thanks @n1ru4l)
- Prepare for federation on top of plugins (#2591)
- Recognize Federation in all plugins (#2508)
- Separate the cli bin and cli execution - now it's possible to execute the codegen cli using programatic API (b4e56da)
- Removed peer dependency for
@types/graphql
from plugins and core (#2488, thanks lifeiscontent) - Fix comments escaping (#2484)
- Bump graphql-toolkit version and fix performance issue (#2655)
- Remove dependency for
@types/graphql
(since GraphQL now has it's own typings)
🚀 NEW PLUGIN: java-apollo-android
Generates a ready-to-use parser and mappers for Apollo Android developers with Java.
More info: #1924
🚀 NEW PLUGIN: kotlin
More info here: #2598
Thanks @tristanlins ❤️
typescript-operations
- fix for enumPrefix and enums in variables (#2622)
- Break fragment spread into sub-types and allow accurate type detection according to
__typename
- now it reflects the exact returns value from a GraphQL engine (#2540, #2490, thanks @n1ru4l ) - fix issue with inline fragments without typeCondition (#2532)
- fix for enumPrefix and enums in variables (#2622)
flow-operations
- fix for enumPrefix and enums in variables (#2622)
- set exact=true as default in flow types (#2613)
- Improve Flow types using spread operator (#2602)
- Break fragment spread into sub-types and allow accurate type detection according to
__typename
- now it reflects the exact returns value from a GraphQL engine (#2540, #2490, thanks @n1ru4l ) - fix issue with inline fragments without typeCondition (#2532)
- fix for enumPrefix and enums in variables (#2622)
flow
flow-resolvers
- Fix for incorrect usage of
SubscriptionSubscriberObject
andSubscriptionObject
(#2533) - Added missing
Origin
to$Diff
declaration (#2533)
near-operation-file
- Fixes for near-operation-file and fragment spread sub-types (#2620)
- Remove file extensions from generated imports when it's not really needed (#2599)
- Fix documents validations with near operation file (#2531)
- Fixes for missing
Types
imports (#2529, #2497) - fix issues with near-operation-files and import-types (#2667)
typescript-resolvers
- Adjust resolver type of __resolveReference field (federation) (#2618)
- Fix
getTypeToUse
within parent resolvers type (#2557, thanks @blakeembrey) - fix for unused GraphQLScalarTypeConfig in resolvers (federation) (#2564)
- fix: do not strip properties from federation resolvers parents (#2534, thanks @ForbesLindesay)
typescript-react-apollo
- Allow to prefix type (to make it compatible with
import-types
preset) (#2344, thanks @veeramarni) - Fix issues with scalars mapping as string (to map all scalars into a single file) (#2600)
- Generate docblocks for hooks (#2572, thanks @CarloPalinckx )
- add missing lazy query hooks result type (#2486, thanks @waynelai614 )
typescript-apollo-angular
- Fix issues with scalars mapping as string (to map all scalars into a single file) (#2600)
typescript-urql
- Fix issues with scalars mapping as string (to map all scalars into a single file) (#2600)
typescript-stencil
- Fix issues with scalars mapping as string (to map all scalars into a single file) (#2600)
Docs
- Documentation improvements (thanks @glenwinters, @pmbanugo, @lookfirst, @Shpota)
- Added docs for
import-types
preset - Updated docs for all plugins
- Updated best practice usage for Java plugins