Skip to content

v1.4.0

Compare
Choose a tag to compare
@dotansimha dotansimha released this 12 Jul 06:42
· 5111 commits to master since this release

Core

  • Update dependencies
  • Fix a bug that caused the programmatic usage to fail when there were not documents (d38dde4)
  • 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

  • You can now pre-resolve types, and avoid using Pick in your generated output (#2107)
  • Added addUnderscoreToArgsType - set this to true if you have a conflicts with generates Args types (#2111, thanks @mxstbr)
  • Fix the combination of typesPrefix and enumValues (#2121)
  • Allow to use a single file for all enums with enumValues (#2121)
  • Added graphql as peerDependency (#2142)

flow plugin

  • You can now pre-resolve types, and avoid using $Pick in your generated output (#2107)
  • Fix the combination of typesPrefix and enumValues (#2121)
  • Allow to use a single file for all enums with enumValues (#2121)

near-operation-file preset

  • Use the proper output filename when invoking prettier (#2071, thanks @mvestergaard)
  • Fixed fragments imports and eliminate all unnecessary imports (#2099)
  • Fixed: before declare fragment for .graphql files causes self imports and duplicated declarations as a result (#2099)
  • Fixes issue where base types file is not referenced (#2137, thanks @mvestergaard)
  • Guard against duplicate fragment names in near-operations-file (#2139, thanks @mvestergaard)

typescript-operations plugin

  • Fixed issues with fragments and noGraphQlTag (#2106)
  • Added queryResponseSuffix that allow you to customize the suffix of the generated result type (#2116, thanks @jlkiri)

typescript-compatibility plugin

  • Fixes issues with interfaces (d4804df)

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

  • Set comment descriptions to false by default (#2085, thanks @jdreg95)
  • Allow to print schema with directives (#2129, thanks @alx13)

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