[ANN] re-graph 0.1.13 - the GraphQL client for Clojure/script

37 views
Skip to first unread message

Oliver Hine

unread,
Jun 2, 2020, 4:29:04 AM6/2/20
to Clojure
Hi everyone,

I'm pleased to announce the release of re-graph 0.1.13. re-graph is a GraphQL client for Clojurescript and Clojure with re-frame bindings and support for queries, subscriptions and mutations over websocket or HTTP.

Many thanks to @loomis for implementing the vast majority of the features in this release.

This release changes:

  • Running on JDK 10 or lower will require the original Clojure implementation based on clj-http and gniazdo. See the README for details
  • The options supplied in init have been reorganised to separate websocket and http parameters as follows:

Previously:

(re-frame/dispatch
  [::re-graph/init
    {:ws-url "wss://foo.io/graphql-ws"
     :connection-init-payload {}
     :http-url "http://bar.io/graphql"}])

Now:

(re-frame/dispatch
  [::re-graph/init
    {:ws {:url "wss://foo.io/graphql-ws"
             :connection-init-payload {}}
     :http {:url "http://bar.io/graphql"}}])

See the README for all option parameters.

This release adds support for:

  • Finer control over the http and websocket connections (:impl option) e.g. sharing a cookie store as per #58

This release improves:

  • Fewer dependencies on the JVM

It's available now on Clojars.

Thanks and enjoy,
Oliy
Reply all
Reply to author
Forward
0 new messages