npm @graphql-codegen/typescript-resolvers 1.4.0
v1.4.0

Core

  • Update dependencies
  • Fix a bug that caused the programmatic usage to fail when there were not documents (https://github.com/dotansimha/graphql-code-generator/commit/d38dde47dad9f8314d8ef782f722f57ba3feeaea)
  • Fix watch mode when using presets (#2072, thanks @mvestergaard)
  • Improve performance by not building schema AST over and over (#2073, thanks @mvestergaard)
  • Add config option for disabling output formatting (#2074, thanks @mvestergaard)
  • Allow codegen to skip schema building when it's not possible - required for plugins that use addToSchema (#2120)
  • Fix import causing issues when compiled to commonjs (#2126, thanks @mvestergaard and @therealtbs)

NEW PLUGIN: typescript-document-nodes

With this plugin, you can easily compile your GraphQL document files into a .ts file that exports DocumentNode (so no need to do that on runtime).
Thanks @dex4er !

typescript plugin

flow plugin

near-operation-file preset

typescript-operations plugin

typescript-compatibility plugin

typescript-react-apollo plugin

  • new option reactApolloVersion- allow you to get the correct output according to the version of React-Apollo you prefer to use (#2077, thanks @ken0x0a )
  • Generate HookResult type (#2133)

typescript-stencil plugin

  • Added support for Stencil v1 (#2075)

schema-ast plugin

typescript-urql plugin

  • Fix generics for operation props to match the latest api (#2132)

typescript-resolvers plugin

  • Strip all extraneous type import characters (#2090, thanks @blakeembrey)
  • Override optional declaration of arguments type when used with default values (#2122)

flow-resolvers plugin

  • Strip all extraneous type import characters (#2090, thanks @blakeembrey)
  • Override optional declaration of arguments type when used with default values (#2122)

Docs & Website

  • Update incorrect example in write-your-plugin (#2063, thanks @DylanRJohnston)
  • Fix incorrect comment position (#2076, thanks @ken0x0a)
  • Update programmatic-usage.md (#2123, thanks @ellord )
latest releases: 2.3.2, 2.3.1, 2.3.1-alpha-143b4bc91.0...
2 years ago