3.4 KiB
3.4 KiB
Change Log
All notable changes to this project will be documented in this file.
Unreleased
0.5.0.1 - 2019-09-10
Added
- Minimal documentation for all public symbols.
Deprecated
Language.GraphQL.AST.FragmentName
. Replaced with Language.GraphQL.AST.Name.Language.GraphQL.Execute.Schema
- It is not a schema (at least not a complete one), but a resolver list, and the resolvers should be provided by the user separately, because the schema can originate from a GraphQL document.Schema
name should be free to provide a data type for the real schema later.Language.GraphQL.Schema
:enum
,enumA
,wrappedEnum
andwrappedEnumA
. There are actually only two generic types in GraphQL: Scalars and objects. Enum is a scalar value.
Fixed
- Parsing block string values.
0.5.0.0 - 2019-08-14
Added
executeWithName
executes an operation with the given name.- Export
Language.GraphQL.Encoder.definition
,Language.GraphQL.Encoder.type'
andLanguage.GraphQL.Encoder.directive
. - Export
Language.GraphQL.Encoder.value
. Escapes \ and " in strings now.
Changed
Operation
includes now possible operation name which allows to support documents with multiple operations.Language.GraphQL.Encoder.document
and other encoding functions take aFormatter
as argument to distinguish between minified and pretty printing.- All encoder functions return
Data.Text.Lazy
.
Removed
- Unused
Language.GraphQL.Encoder.spaced
.
0.4.0.0 - 2019-07-23
Added
- Support for mutations.
- Error handling (with monad transformers).
- Nullable types.
- Arbitrary nested lists support.
- Potential BOM header parsing.
Changed
- attoparsec is replaced with megaparsec.
- The library is now under
Language.GraphQL
(instead ofData.GraphQL
). - HUnit and tasty are replaced with Hspec.
Alternative
/MonadPlus
resolver constraints are replaced withMonadIO
.
Removed
- Duplicates from
Language.GraphQL.AST
already available inLanguage.GraphQL.AST.Core
. - All module exports are now explicit, so private and help functions aren't exported anymore.
0.3 - 2015-09-22
Changed
- Exact match numeric types to spec.
- Names follow now the spec.
- AST slightly different for better readability or easier parsing.
- Replace golden test for test to validate parsing/encoding.
Added
- Parsing errors in all cases where
Alternative
is used. - GraphQL encoder.
Fixed
- Expect braces
inputValueDefinitions
instead of parens when parsing.
0.2.1 - 2015-09-16
Fixed
- Include data files for golden tests in Cabal package.
- Support for ghc-7.8.
0.2 - 2015-09-14
Added
- Rudimentary parser for
GraphQL
which successfully parses the sample filekitchen-sink.graphql
fromgraphql-js
tests. - Golden test for
kitchen-sink.grahql
parsing.
Changed
- Many optional data types in
GraphQl
didn't need to be wrapped in aMaybe
. - Some
newtype
s became type synonyms for easier parsing.
0.1 - 2015-09-12
Added
- Data types for the GraphQL language.