- Major: unwrap GraphQLErrors rejected from execute or subscribe
- Fix: built files modified in 2.0.6
- Fix: return correct error status code from server
- Fix: keep correct status code on client
- Fix: upgrade observable-backoff
- Fix: stop subscriptions retries if err.statusCode < 500
- Fix: better spark close handling
- Fix: misc module updates
- Fix: update readme
- Fix: iterator creation vs spark close race
- Fix: backwards compatibility with primus-graphql relay-classic network-layer
- Fix: travis tests
- Fix: update package-lock.json
- Breaking: client was rewritten to work with relay-modern
- Breaking: remove reconnect input field on subscriptions
- Feature: server now uses official graphql subscriptions
- Fix: travis-ci tests...
- Fix: subscription
resolve
s should share execution variables w/ rootobserve
- Fix: client timeout errors resulted in non-array
err.errors
- Fix: remove subscription from active-subscriptions onCompleted/onError
- Improvement: moved "subscribe callbacks onNext graphql-execute mapping" for subscription to query-executor.
- Fix: query-executor changes not published (not built)
- Fix: handle edgecase where uncaught (by promise) runtime errors in query "resolve" (and subscription "observe") would be set as
data.data
- Feature: auto-setup primus-graphql with primus.use
- Feature: added
primus.graphql()
to attach connection/disconnection handlers - Fix: fixed potential active-subscription memory leak
- Fix: standard lint
- Fix: subscriptions observable "next" value does not need to contain subscription name
- Fix: e2e tests improvements, more robust subscription tests.
- Fix: default primus-graphql data-payload-key to be "primus-graphql"
- Fix: improved warning messages for retries
- Fix: remove graphql from peer deps, as it is optional.
- Fix: remove react-relay from peer deps, as it is optional.
- Fix: improved error messages on client side
- Fix: fixed edgecase where error payload would have a 200 status code
- Features:
subscriptions.observe
now recievescontext
andinfo
just likemutation.mutateAndGetPayload
- Feature: GraphQL Relay Subscription observe - added support for promises (that resolve observables)
- Feature: Added support for relay subscriptions
- Fix: OOP cleanup
- Feature: Improved browser bundling, removed relay-network-layer from index.
- Fix: Add keywords in package.json, for easier discovery
- Feature: Add relay support via relay-network-layer
- Initial implementation
- Supports similar to express-graphql