Skip to content

Releases: relay-tools/react-relay-network-layer

v2.2.1

03 Nov 15:18
Compare
Choose a tag to compare

2.2.1 (2018-11-03)

Bug Fixes

  • Flowtype: add credentials in Fetch Options (84b3361)
  • Don't throw in addition to rejecting a request (484d77c)

v2.2.0

06 Sep 09:04
Compare
Choose a tag to compare

2.2.0 (2018-09-06)

Bug Fixes

  • BatchMiddleware: add additional check for global errors (6684a93)

Features

  • Add noThrow option to NetworkLayer advanced options (thanks @jamesone) (827ea30)

v2.1.3

22 May 13:27
Compare
Choose a tag to compare

2.1.3 (2018-05-22)

Bug Fixes

v2.1.2

24 Nov 12:13
Compare
Choose a tag to compare

2.1.2 (2017-11-24)

Bug Fixes

  • middleware: Correlate responses by index when server does not return ID (#56) (3af7e69), closes #55

v2.1.1

14 Nov 04:00
Compare
Choose a tag to compare

2.1.1 (2017-11-14)

Bug Fixes

  • revert async/await to Promise for removing regenerator-runtime deps (5a1970f), closes #54

v2.1.0

06 Nov 10:16
Compare
Choose a tag to compare

2.1.0 (2017-11-06)

Features

  • Flowtype: add Flowtype declarations (3ec89f6)

Also was refactored all code, covered by Flow and migrated tests to Jest. It's done due to preparation to Relay Modern and will be published as a new package https://github.com/nodkz/react-relay-network-modern

v2.0.2

25 Oct 19:00
Compare
Choose a tag to compare

2.0.2 (2017-10-25)

Bug Fixes

  • if relay dedups requests, not all requests are completed (#52) (16516a3c)

v2.0.1

20 Mar 14:38
Compare
Choose a tag to compare

2.0.1 (2017-03-20)

Bug Fixes

  • AuthMiddleware: Fix catching 401 error, add tests (87f2b876, closes #42)

v2.0.0

14 Mar 17:21
Compare
Choose a tag to compare

2.0.0 (2017-03-14)

Breaking Changes

  • completely rewritten batch logic as middleware, added additional cool options to it batchTimeout, maxBatchSize (b903597e)
  • throw Error object on non-200 response (before thrown response)
  • bunch of small fixes, refactoring, cleanups (a5b6f1b2)

If you use request batching, you should change your config:

import Relay from 'react-relay';
import {
  RelayNetworkLayer,
  urlMiddleware,
+  batchMiddleware,
} from 'react-relay-network-layer';

Relay.injectNetworkLayer(new RelayNetworkLayer([
+  batchMiddleware({
+    batchUrl: (req) => '/graphql/batch',
+  }),
  urlMiddleware({
    url: (req) => '/graphql',
-    batchUrl: (req) => '/graphql/batch',
  }),
- ], { disableBatchQuery: false }));
+ ]));

Big thanks to @brad-decker and @jeanregisser in helping to done this release.

v1.5.0

04 Mar 09:16
Compare
Choose a tag to compare

Features

  • BatchRequest: Add support for apollo server batch format (7d2e6223)
    It allows to 3rd party server implementations, like graphene-django be compatible with appolo client (details).

Build

  • Remove babel-runtime, migrate to babel-preset-env, refreshed package.json (ab6e8df8)
  • Test with travis, auto package publishing with semantic-release (6eb36166)