npm @graphql-codegen/typescript-resolvers 1.5.0
v1.5.0

Core

  • Update dependencies
  • Fixes for process.env.DEBUG - not it's possible to mute it if needed (#2227, thanks @Qeneke)
  • Minor type changes for visitor-plugin-common (#2266, thanks @james2mid)
  • Allow plugin's addToSchema to be a function that depends on plugin config.
  • Fix for prettier parsers (use latest instead of deprecated).
  • Upgrade graphql-toolkit and use globby for easier glob (#2283) - not it's easier to exclude documents of schema files using negative glob.
  • Add newline character at the first line of multiline comments (#2291)

typescript

  • Fixed issue with enumValues as string (import all enums from a single file and introspection types - now they are ignored) (#2181)
  • Fix external enums to be re-exported from the generated file when they are imported from external file (#2233)
  • Added enumPrefix configuration - you can now disable the typesPrefix for enums (#2267)
  • Added missing dependency in package.json (https://github.com/dotansimha/graphql-code-generator/commit/ae47c7152ba3c896f16bf175a0ecb5517fe8f8d7)
  • [TypeScript] Added support for generating output with no export (#2278)
  • Fixes for issues with js objects and scalars config (#2286)

flow

  • Fixed issue with enumValues as string (import all enums from a single file and introspection types - now they are ignored) (#2181)
  • Fix external enums to be re-exported from the generated file when they are imported from external file (#2233)
  • Added enumPrefix configuration - you can now disable the typesPrefix for enums (#2267)
  • Added support for generating output with no export (#2278)

typescript-react-apollo

  • Added support for React-Apollo V3 (https://github.com/dotansimha/graphql-code-generator/pull/2182)
  • Remove Partial from ReactApollo HOC (#2297)
  • Fix custom HOC data props type names (#2166)
  • Add withResultType and withMutationOptionsType options (#2172, thanks @eddeee888)
  • Fix issues with unused fragments imports with noGraphQLTag (#2260)
  • Allow for skip to be a boolean type (#2251, thanks @boom)
  • Fix issues with react-apollo plugin and compatibility plugin (#2285)
  • Add option to import document nodes from an external file (#2261, thanks @eddeee888)

documents-nodes

  • Fixed issue with missing fragments (#2295)

typescript-operations

  • Fix for issues with RequireFields that caused invalid usage of generics (#2169)
  • Introduce dedupeOperationSuffix to operations plugin - allow you to make sure the operation suffix is not duplicated (#2258)
  • Introduce a new way to use avoidOptionals - now you can specify when to use it (#2191, thanks @ekfn)
  • Fixes for missing modifiers with preResolveType (#2175) (#2270)
  • Added support for generating output with no export (#2278)
  • Fixes for enums and preResolveTypes - now enums values will be pre-resolved as well (#2284)

near-operation-files preset

  • Allow duplicate operations when near-operation-file is used (#2269)

typescript-resolvers

add

  • Fixed issues with multiline string (#2169)

typescript-urql

  • Add variables type parameter to urql useMutation hook (#2171)
  • Fix issues with unused fragments imports with noGraphQLTag (#2260)
  • Add option to import document nodes from an external file (#2261, thanks @eddeee888)

typescript-apollo-angular

  • Fix issues with unused fragments imports with noGraphQLTag (#2260)
  • Add option to import document nodes from an external file (#2261, thanks @eddeee888)

🚀🚀🚀 NEW PLUGIN: @graphql-codegen/type-graphql

#2177, thanks @borremosch

Documentation

Thanks @glenwinters for the help with the docs!

latest releases: 2.3.2, 2.3.1, 2.3.1-alpha-143b4bc91.0...
2 years ago