Skip to content

Releases: teamwalnut/graphql-ppx

v1.0.1

07 Sep 02:41
Compare
Choose a tag to compare
  • 🐛 remove @ppxConfig directive from query output (b697b83)

  • 🐛 do not strengthen module type of extended module to prevent type errors like below when the the definition is being extended (546e15f)

This has type:
  MyQuery.t_variables
But somewhere wanted:
  MyQuery.MyQuery_inner.t_variables

v1.0.0

07 Sep 02:40
Compare
Choose a tag to compare

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 of bsDecoder
  • 🚀 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

13 Apr 09:18
Compare
Choose a tag to compare
1.0 Beta 6 Pre-release
Pre-release

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

13 Apr 09:19
Compare
Choose a tag to compare
v1.0.0-beta.5 Pre-release
Pre-release
Beta 5

v1.0.0-beta.4

13 Apr 09:19
Compare
Choose a tag to compare
v1.0.0-beta.4 Pre-release
Pre-release
Beta 4

Native, BuckleScript 6 and required arguments validation

08 Oct 11:42
Compare
Choose a tag to compare

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 your esy.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 your bsconfig.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

10 Aug 13:54
Compare
Choose a tag to compare
Release: 0.1.0-beta.2

0.1.0-beta.1

10 Aug 12:51
Compare
Choose a tag to compare
Relase: 0.1.0-beta.1

0.0.12

10 Aug 12:26
Compare
Choose a tag to compare
ci: add skip cleanup to npm publish step

0.0.11

10 Aug 11:57
Compare
Choose a tag to compare
version: 0.0.11