Releases: teamwalnut/graphql-ppx
Releases · teamwalnut/graphql-ppx
v1.0.1
v1.0.0
There has been a lot of new features in version 1.0 of graphql-ppx
. Below some
of the main changes. After 1.0 we are going to record a more detailed changelog.
Large changes
- 🚀 💥 New API, no definition, first class modules and clients can
extend definitions - 🚀 💥 Using records instead of objects
- 🚀 Generating types
- 🚀 Serialization
Other features
- 🚀 Generating a module signature
- 🚀 Support for recursive modules
- 🚀 💥 Raw types
- 🚀 Leaner parse
- 🚀 💥
ppxCustom
instead ofbsDecoder
- 🚀
ppxAs
- 🚀 Better editor support
- 🚀 Better errors
- 🚀 Docstrings
- 🚀 Multiple fragments or operations per extension point
- 🚀 Configuration in
bsconfig.json
- 🚀 Tagged template literal support
- 🚀
graphql
extension points in interface files - 🏠 Snapshot and compile testing
1.0 Beta 6
This is a further breaking change because it introduces a "raw" type (Query.Raw.t
). This is the type of the GraphQL response that is compatible with the raw JSON response. This is a milestone towards a serialize function (converting between Query.t
and Query.Raw.t
, basically the opposite of parse
).
If you want to try this out with Apollo check out this PR on reason-apollo-hooks
; reasonml-community/reason-apollo-hooks#117.
v1.0.0-beta.5
Beta 5
v1.0.0-beta.4
Beta 4
Native, BuckleScript 6 and required arguments validation
Installation
yarn add @baransu/graphql_ppx_re@0.2.0 --dev
npm install @baransu/graphql_ppx_re@0.2.0 --saveDev
Changes
- Native Reason support (@baransu )
Just update youresy.json
file with
{
"dependencies": {
"@baransu/graphql_ppx_re": "*"
},
"resolutions": {
"@baransu/graphql_ppx_re": "baransu/graphql_ppx_re:esy.json#<use latest stable commit from master>"
}
}
and add
(preprocess (pps graphql_ppx))
to your dune
file. Now you're ready to go!
- BuckleScript 6 support (@baransu @Schmavery)
Required binaries are distributed alongsite BuckleScript 5 binaries. Just update yourbsconfig.json
with:
"ppx-flags": ["@baransu/graphql_ppx_re/ppx6"]
- Validate required arguments on any field (@baransu)
All fields are validated for all required are provided in a query. Slightly reduces the chance of runtime error when query is sent to the server!
0.1.0-beta.2
Release: 0.1.0-beta.2
0.1.0-beta.1
Relase: 0.1.0-beta.1