Releases: oliyh/re-graph
Releases · oliyh/re-graph
Query and queriouser
Lelu Dallas Singlepass
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
Initialising connection...
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
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:
Vanilla Clojurescript API
This release adds support for:
- Vanilla Clojurescript usage via normal functions with function callbacks, so re-frame is not required to use re-graph anymore.
Mutations and error handling
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