Skip to content

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

v4.3.0

27 Nov 19:16
Compare
Choose a tag to compare

4.3.0 (2019-11-27)

Features

v4.2.0

18 Oct 14:42
Compare
Choose a tag to compare

4.2.0 (2019-10-18)

Features

v4.1.0

23 Sep 14:27
Compare
Choose a tag to compare

4.1.0 (2019-09-23)

Features

  • use relay-runtime a peer dependency instead of react-relay (c589e55)

v4.0.4

01 Aug 10:19
Compare
Choose a tag to compare

4.0.4 (2019-08-01)

Bug Fixes

v4.0.3

30 Jul 07:30
Compare
Choose a tag to compare

4.0.3 (2019-07-30)

Bug Fixes

  • isMutation when using persisted queries (d83904c)
  • add execute method to TypeScript def for RelayNetworkLayer (1957f78)

v4.0.2

01 Jul 06:49
Compare
Choose a tag to compare

v4.0.1

16 Jun 06:47
Compare
Choose a tag to compare

4.0.1 (2019-06-16)

Bug Fixes

  • TypeScript definitions for re-exported type (36aa96b)

v4.0.0

11 Jun 16:32
Compare
Choose a tag to compare

4.0.0 (2019-06-11)

Safe to upgrade if you don't use batchMiddleware. If you use batchMiddleware you should use legacyBatchMiddleware or change batching response on your server.

BREAKING CHANGES

  • batchMiddleware: batch request list as array & check duplicates comparing body

How batching works internally from v4.0.0

Internally batching in NetworkLayer prepare list of queries [ {id, query, variables}, ...] sends it to server. And server returns list of responces [ {id, payload}, ...], (where id is the same value as client requested for identifying which data goes with which query, and payload is standard response of GraphQL server: { data, error }). Internally batching in NetworkLayer prepare list of queries [ {query, variables}, ...] sends it to server. And server returns list of results [ {data}, ...]. The server is expected to return the results in the same order as the requests.

As of v4.0.0, the batch middleware utilizing request IDs in queries and corresponding results has been renamed legacyBatchMiddleware. The legacy middleware included a request ID with each query included in the batch and expected the server to return each result with the corresponding request ID. The new batchMiddleware simply expects results be returned in the same order as the batched queries.

NOTE: legacyBatchMiddleware does not correctly deduplicate queries when batched because query variables may be ignored in a comparison. This means that two identical queries with different variables will show the same results due to a bug (#31). It is highly encouraged to use the new order-based batchMiddleware, which still deduplicates queries, but includes the variables in the comparison.

v3.0.4

02 Jun 14:55
Compare
Choose a tag to compare

3.0.4 (2019-06-02)

Bug Fixes

v3.0.3

16 May 03:50
Compare
Choose a tag to compare

3.0.3 (2019-05-16)

Bug Fixes

  • type declarations for batchMiddleware (97a7fe9)