Skip to content

Releases: oliyh/re-graph

Query and queriouser

05 Mar 08:54
Compare
Choose a tag to compare

This release fixes:

  • Query and mutate API functions #38, thanks @qiuyin
  • Retrying queries over websocket when the websocket is not ready #39

Lelu Dallas Singlepass

20 Dec 09:41
Compare
Choose a tag to compare

This release fixes:

  • Initialisation via the re-frame event now behaves as 0.1.5 when no instance name is specified #34

Lelu Dallas Multipass

21 Nov 21:33
Compare
Choose a tag to compare

This release adds support for:

  • Multiple named instances as per #30, see updated README
  • HTTP errors are now expressed in the same manner as Websocket errors #28, thanks @pbostrom

Initialising connection...

13 May 18:48
Compare
Choose a tag to compare

This release adds support for:

  • Providing the payload to be sent in the connection_init message, sent whenever a websocket connection is made. See #19 and #20 for details, thanks to @gabrielnau
  • Now works on React native. See #25, thanks to @madstap
  • Working with query builders like venia which include "query" at the start of the string, see #18

Authorise and destroy

21 Feb 08:57
Compare
Choose a tag to compare

This release adds support for:

  • Providing arbitrary parameters to the underlying cljs-http request used with the HTTP transport. This allows, among other things, authorisation. See #13 for details, thanks to @chrisbetz
  • Ability to destroy the re-graph state, including stopping all subscriptions and closing the websocket first. See #12 for details.

This release improves:

  • Subscriptions are deduplicated by id, helping to reduce workload on servers which do not support deduplication #16
  • Unsuccessful reconnection attempts no longer add messages to the websocket queue #17
  • Should work better with advanced compilation #15

Vanilla Clojurescript API

04 Jan 10:53
Compare
Choose a tag to compare

This release adds support for:

Mutations and error handling

29 Dec 13:51
Compare
Choose a tag to compare

This release adds support for:

This release changes:

  • Callback events now receive the entire payload map, consisting of :data and :error keys and possibly more. This is a breaking change and any existing callback events will need to destructure the payload map to obtain the :data value which was passed in previously. See the README or tests for examples. This change was added in order to provide better support for error handling, as it now gives you access to the :error key, if present, to use in this workflow. Thanks again to @r0man