0.20.0
0.20.0 (2022-05-03)
Breaking Change
- #722: Fix single variant enums
-
π€ @nalchevanidze
-
## Fix single variant enums
-
hides constructor of .
-
exposes value to build with undefined operations.
-
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
- #723: Allow bytestring-0.11
- π€ @TristanCacqueray
-
This change is necessary to build with ghc-9.2.2 from latest nixpkgs.
- #725: use yaml for stack config instead of json
- π€ @nalchevanidze
- #726: use Next.js for documentations
- π€ @nalchevanidze
- #728: client docs
- π€ @nalchevanidze