v1.6.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
- Sort documents by file-path in order to avoid inconsistency coming from globy (#2311)
- Fix issues with swallowed errors when schema/documents are loaded (#2318)
- Introduce Lifecycle hooks (#2361), make sure to read the latest docs in order to use Prettier now.
- Removed
prettify
option (not a breaking change because it only apply to code beautify - you can now use lifecycle hooks for that) - Fix for issues with output file not being ignored correctly
- Move normalize method to plugin-helpers lib
- Able to provide custom fetch implementation (#2369)
- Allow to load schema and documents from
node_modules
- Fixes for issues with exported schema from code file that has scalars.
- Support
extend input
. - Improvements for watch mode: avoid triggering the codegen when not need, added hash calculation to avoid file-system access when not needed, trigger reload when the config file changes.
typescript-react-apollo
- Generate lazy query hooks on react-apollo plugin (#2309)
- [typescript-react-apollo] Add support for importing document node from external file for hooks and HOCs (#2331, thanks @eddeee888)
- properly dedupe react hooks names (#2375, thanks @anderson-amorim )
- Fix problem with unnecessary fragment imports for external mode (#2360, thanks @eddeee888)
typescript-operations
- Generate correct union/interface type definitions (#2248, thanks @n1ru4l)
- Fixed issue with missing Types import when variables are set for queries (when used with
near-operation-file
preset) - Fix issues with non-boolean
avoidOptionals
- now onlytrue
will be considered as true value, and not object. - Fix issues with
preResolveTypes
and enums (#2385)
flow-operations
- Generate correct union/interface type definitions (#2248, thanks @n1ru4l)
- Fixed issue with missing Types import when variables are set for queries (when used with
near-operation-file
preset) - Fix issues with
preResolveTypes
and enums (#2385)
typescript
- Fix enums usage in args (#2370)
typescript-resolvers
- Fix SubscriptionSubscribeFn interface (#2346, thanks @const86)
- Support namespaces in mappers (#2352)
- Include NonNull argument as required (#2348)
- Some resolver query arguments are generated as optional but are required in schema #2323
near-operation-file
- Deduplicate fragment names (#2371)
docs/website
- Added documentation for
typescript-type-graphql
(#2303, thanks @borremosch) - hint how to use generated resolvers directly (#2376, thanks @stoically)