Releases: relay-tools/react-relay-network-layer
Releases · relay-tools/react-relay-network-layer
v2.2.1
v2.2.0
v2.1.3
v2.1.2
v2.1.1
v2.1.0
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
v2.0.1
v2.0.0
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.