Skip to content

0.20.0

Compare
Choose a tag to compare
@github-actions github-actions released this 03 May 19:54
918c8b0

0.20.0 (2022-05-03)

Breaking Change

  • #722: Fix single variant enums
    • πŸ‘€ @nalchevanidze

    • ## Fix single variant enums
      1. hides constructor of .

      2. exposes value to build with undefined operations.

      3. converts types with singe empty constructors to single value enums

      fixes #721

  • #727: Local/Global Type Generation
    • πŸ“¦ client

    • πŸ‘€ @nalchevanidze

    • ## Local/Global Type Generation

      Type generation is divided into local and global types. Global types should be declared only once and have no namespaces. These types are enums, scalars, inputs and can be used by multiple queries that have their own namespaced local type definitions.

      Data.Morpheus.Client

      Deprecated:

      • gql
      • defineByDocument
      • defineByDocumentFile
      • defineByDocumentFile'
      • defineByIntrospection
      • defineByIntrospectionFile
      • defineByIntrospectionFile'

      new:

      • raw
      • clientTypeDeclarations
      • declareGlobalTypes
      • declareLocalTypes
      • declareLocalTypesInline

      Fixes #696

  • #729: clean up client interface
    • πŸ“¦ client
    • πŸ‘€ @nalchevanidze
    • - legacy client template Haskell functions declare only local types and should be supported by . declarations are namespaced by operation name. - new function which enables selectively import global types.

Minor Changes