Skip to content

Releases: rgommezz/react-native-offline

v6.0.1

24 Jan 22:56
Compare
Choose a tag to compare

Fixes a peer dependency issue with [email protected]

v6.0.0

01 Oct 16:54
Compare
Choose a tag to compare

v5.8.0

25 Feb 18:54
Compare
Choose a tag to compare

Added useIsConnected hook

v5.7.0

11 Jun 23:56
Compare
Choose a tag to compare

What's new

  • Support for custom headers when pinging your own server

v5.3.0

09 Feb 23:02
Compare
Choose a tag to compare

TypeScript Support 🚀

Rewriting the library with Typescript + exporting types to consumers

v5.2.0

20 Oct 19:05
Compare
Choose a tag to compare

Offline queue semaphore

Adds a mechanism control for the offline queue, in order to decide when to release it.

For that, createNetworkMiddleware now receives a new optional parameter, shouldDequeueSelector. See more here

v5.1.0

19 Sep 09:15
Compare
Choose a tag to compare

This release exposes a new api, createReducer, that allows you to customise the way the offline queue handles duplicates.

v4.3.0

03 Feb 22:12
112cd6e
Compare
Choose a tag to compare

New features

createNetworkMiddleware

A new optional parameter has been added, queueReleaseThrottle. It allows you to interval the dispatches when flushing the offline queue. It defaults to 50ms.

v4.1.0

01 Jan 17:26
f200cd6
Compare
Choose a tag to compare
  • Fixes bug on iOS on checkInternetConnection
  • Added a 3rd optional parameter: shouldPing
  • Added documentation around it

v4.0.0

26 Dec 23:54
a656d2f
Compare
Choose a tag to compare

Summary

This release is a full-blown refactor of the library, where some of the core components have been re-written from scratch, providing a better modularity, using the latest React features and adopting a TDD strategy, where all the code is unit tested to facilitate external contributions in the future.

image

Added

  • Full feature parity between components and sagas
  • 100% unit test coverage in components, redux utilities and sagas

Breaking changes

Components

  • withNetworkConnectivity HOC has been replaced with NetworkProvider and NetworkConsumer components, that leverage the new React Context API.
  • The following props/config have changed:
    • timeout -> pingTimeout
    • withExtraHeadRequest -> shouldPing
    • checkConnectionInterval -> pingInterval
    • checkIntervalOfflineOnly -> pingOnlyIfOffline
    • checkInBackground -> pingInBackground
  • ConnectivityRenderer doesn't exist anymore. Use NetworkConsumer from now on.

Redux integration

Utilities

  • checkInternetConnection Function params order has been reversed. Now 1st argument is the url and 2nd the timeout.