Changelog

Tags:

  • 💥 - Breaking Change
  • 🚀 - New Feature
  • 🐛 - Bug Fix
  • 📝 - Documentation
  • 🏠 - Internal
  • 💅 - Polish

(Tags are copied from babel)

1.2.0 (2021-03-30)

  • 🐛 Fix issue with the ppx when @deriving attribute is used in ReScript (b7aff4e2)

    Note: the version number was accidentilly updated to 1.2.0 instead of 1.1.1, we cannot fix this, but there was no change other than fixing the compiler error when using @deriving(abstract)

1.1.0 (2021-03-29)

  • 🚀 Support calling the template tag as function (when require is not available in tools like esbuild)! (52b8f783)

  • 💅 Use ppxlib, thanks @anmonteiro! (a09a18fa)

  • 🚀 Support for ReasonML/OCaml native in the new 1.0 ppx! (72513262)

  • 🐛 Support variables in JSON arguments, thanks (A C SREEDHAR REDDY) (da52c7d8)

  • 🐛 fix recovery build (missed catching a possible exception) (a81e58f6) (9e212f0c6)

  • 🚀 add apple silicon support (based on rosetta for now until we got cross-compile to work on the CI (39ff6ab2)

1.0.2 (2021-01-05)

  • 🚀 add templateTagIsFunction configuration. This will call the configured template tag not as a template tag, but as a function. This solves use cases where require is not allowed (which we need to inject to support template tags) (5d92a6b)

  • 🚀 add include syntax for extension points (f5d5187)

You can now do the following to inline the query (as an alternative to the @ppxConfig(inline: true) decorator):

include [%graphql {|
...
|}]
  • 🐛 Fix postinstall (it wouldn't trigger when updating the ppx) (b5c3318)

  • 🐛 Only set the type of a query using templateTagReturnType if there is a template tag defined: (5b2b3d8)

1.0.1 (2020-09-07)

  • 🐛 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

1.0.0 (2020-09-06)

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

0.7.2 (2020-08-10)

  • 🏠 fix issues with running graphql-ppx in a high-concurrency environment

0.7.1 (2020-02-25)

0.7.0 (2020-02-24)

  • 🏠 use OMP (ocaml-migrate-parsetree) 1.6.0 (f7ded8d)

0.6.2 (2020-02-18)

  • 🚀 decoder support on fragment definition (77d8c45)
  • 🚀 add unified definition on native (e240bf3)
  • 💅 support OCaml 4.08 on native (c533986)
  • 💅 use internally AST 4.08 (6acea38)

0.6.1 (2020-01-23)

  • 🚀 Lean parse available under experimental -lean-parse feature flag (6e7224b)
  • 🏠 Update repository to name and organization change (5df9be8)

0.5.0 (2020-01-11)

  • 💥 Support configuration via ppx-flags, drop env based one (3ed986e)
  • 🏠 Move pipeline to one file, add esy cache (b9517da9)

0.4.9 (2020-01-06)

  • :feature: build linux binary on alpine with static linking (9a4f31b)

0.4.1 (2019-12-04)

  • 🐛 one field query with bs record (e231d19)
  • 🏠 bucklescript test suite upgrade and how to run tests documentation improved (19db453)
  • 🚀 Multiple schemas support (467d557)

0.4.0 (2019-11-25)

  • 🚀 Unified definition - (parse, query, combineVariables) tuple to improve client side usage 8de2419

0.3.5 (2019-11-23)

  • 🐛 explicit annotate custom scalar as Yojson.Basic.t for return type magic (1fa67ae)
  • 🚀 add makeVariables function (667673c)

0.3.3 (2019-11-23)

  • 🐛 remove @bsField directive from query output (b3b17f3)
  • 🐛 bucklescript: polymorphic comparison on Js.Json.t (d1897c2)

0.3.2 (2019-10-21)

  • 🐛 improve schema reading (handle case where data is not in json schema) (9324ba2)

0.3.1 (2019-10-19)

  • 🐛 tests: change how tests are run (8295a7e)
  • 🚀 validation: no undefined variables rule (5d8772a)