redux-offline

Build Offline-First Apps for Web and React Native

MIT License

Downloads
246K
Stars
6.1K
Committers
56

Bot releases are hidden (Show)

redux-offline - Latest Release

Published by sorodrigo over 3 years ago

Patches

  • Update AsyncStorage dependence to new repository: 6f4db932054cc48c4469f621935d5243a69461eb
  • Add React Native dependencies to Readme.md: 1a862b41a0e36f994f63fddd4171414886a93fbd
  • Ignore import/unresolved warn in persist-native: bbe876e003f15372b18ffaf7dd653656941730fb
redux-offline - 2.6.0-expo.0

Published by sorodrigo over 4 years ago

redux-offline - v2.6.0

Published by sorodrigo over 4 years ago

Minor Changes

  • Bumps all dependencies: 1910b0af292d447f32c33853f2ce29361b460671

Patches

  • Update config import in getting started documentation - resolves #324: 838d8796ce7bfaf8e6d37331d8828124639992e5
  • Create empty-outbox.md: cd86e30e70ca03ef5ab2e24f40993d492cb5ee85
  • Update README.md: 4a78f86006c762c091a8b38628a43608e86c87f4
  • Fixed args in example for REGISTER_USER action: 9dca4f9ce8f8f22f43f4ed54bbf2ad6ef7ffaf0b
  • Fix for sending FormData after restart the app: 88349802010cc0f5a4b8a40ae59f28dc3a07ca0b
redux-offline - v2.5.2-expo.0

Published by sorodrigo over 4 years ago

Support for Expo SDK 36

redux-offline - Re-tagging cuz I messed up original npm publish

Published by sorodrigo almost 5 years ago

redux-offline -

Published by sorodrigo almost 5 years ago

Major changes

  • Fix Previously deprecated methods have been removed in NetInfo 7715a207bbbd711bc7352c0f12ec1595189cb602
redux-offline -

Published by sorodrigo about 5 years ago

Major Changes

Previous version native was installed using the native.0 tag on NPM. Now we're using native tag.

  • Replace RN AsyncStorage with community package: b2361a47534b3520c9981d8d11257345573d27a0
redux-offline -

Published by sorodrigo about 5 years ago

Major Changes

  • Use @react-native-community/netinfo for react native 0.60.x compatibility: 660a78572a0b22b49adadeca52b4affccc430a1b
  • Remove backwards compatibility for old react-native versions: 0e934966c93ce3f76c62c9f21ee77fd33d11ae15
redux-offline - 2.5.2

Published by sorodrigo about 5 years ago

Patches

  • Adds support for capitalized Content-Type header: 113cd9b946492e496c66b2d969aca2abc9568bed
  • Chore(typings): Added typings for constants: 0895438fef658beced1cac169fb24f5415d717a4
    • Added troubleshooting sections to docs. - Added section on offline queue not triggering.: 9645b0984bff2044eb7f9b62c04c933909e09e49
  • Removed "" from a link.: c7ac7a491638aca09d6ba5cf09a49aa8b4994b86
  • Adds missing type-defs to TypeScript def file: b47e74ea8f5d5e362fa9e2cf90d2ada5c3e6d4cf
  • Fix 'Last Value Queue' documentation: aaf3e20e14b28a2a41582d23825fc57eb8406ab5
  • Fix #327 updating offline & createOffline sign: 2d2cbddffe3c30c15b753cbc5db08e4a19aba41e
  • Updates dev-dependencies: 598ebd8db9db2849ffe988cdaa2600f755ffb900
redux-offline - 2.5.1

Published by sorodrigo almost 6 years ago

Patches

  • Fix: Ammend createOffline middleware typing: f5ec573d0d2df823418ce03b1b6dc1274e214f1b
redux-offline - 2.5.0

Published by sorodrigo almost 6 years ago

Minor Changes

  • Support 'json' property in effect in addition to 'body': 71c16959188bae486fafcef5c9ee878519ae68d7
  • Update dev dependencies: #256

Patches

  • Fix: detach promises from queue order: 60a9ae0d3bb91b7ad61f9462f8bf2dd90ff1d05c
  • Fix typings for Config’s offlineActionTracker callbacks: 066b73c80feb90f643a602c8d0388bb82731d8e8
  • Fix docs links: 054ed620181321517d3cee2390e71c2acee4d6f9
  • Remove diff formatting from README: #246
  • Remove nextjs guide: bf870451594431044541807fe501bf901fa247ec

Credits

Huge thanks to @tobloef @jarvisluong @echoes221 @evilmarty @saiichihashimoto @alexan @python273 for helping!

redux-offline - 2.4.0

Published by sorodrigo over 6 years ago

Minor Changes

  • Add sagas config docs: #215
  • Queue methods with additional context parameter: #217

Patches

  • Update createOffline's middleware typings: c8665379b63caf3f341f9432b2569d44b05d2329
  • Fix: middleware can't listen to persist/REHYDRATE: #229
  • Updating typescript typings to match current js types: 9ba9a442d9e248e24246cccd943031156d28af69
  • Fix missing Offline/Busy action: 679c3df8d96f1d3b079cc022360e4f3a685ac291

Credits

Huge thanks to @Xyzor, @aviadavretz & @echoes221 for helping!

redux-offline -

Published by sorodrigo over 6 years ago

Patches

  • Add defaultQueue location to README: 0b372e7c57bd1936ca3a3392b0a316bf32efa6e7
  • Toggle offlineActionTracker with returnPromises (Fixes unhandled promise rejection error): f6ef8bc308455a1e2c80dc3b5d23c8e5b20c7cb6
  • Fix no promises example app: 870eea00229629f767b176edea8376a846402b16
  • Full Docs Rewrite πŸŽ‰ πŸŽ‰ πŸŽ‰ : 15f2bb65e07952f0e7d5b4ca574219aef6789394
  • Adds missing flow types for offlineActionTracker: e1c8aab02bf6006006ccd58b15ac99fcad171ff9
redux-offline - v2.3.2

Published by sorodrigo over 6 years ago

Minor Changes

  • Adds org symbol: 92d68c83920f6597abe73f0d55f1e4361037b130 (by @juancarlosalonso )
  • Add HMR test for createOffline API: 9dc4f5a5a42730a79b0b5fec1dd4378da4171e62 (by @wacii )
  • Toggle whether promises are returned in config: cd7e9ee2339b4d588910f9399cbbb63b73e6e6d6 (by @wacii )

Patches

  • Fix badges link: ca35303b22aa869c2a2246efbce1d4dbdc2c6569 (by @sorodrigo )
  • Fix: includes missing flow types due to queue config: 76192fda151025b93054a3963a6e1c6a3fe8c7ea (by @sorodrigo )
  • Add missing bracket: 80061516955bf80e322ee38449c699d559e9b760 (by @luisfmsouza )
  • Fix HMR: 84e7bc53518e545f106579e8d1657b7c503c6089 (by @wacii )
redux-offline - v2.3.1

Published by sorodrigo over 6 years ago

2.3.1 (2018-02-07)

Bug Fixes

  • Fixes default discard not detecting NetworkError correctly. (@jsslai in #185)
  • Error object in JS_ERROR action was being overwritten with undefined, includes it as meta.error .
    (@jordoh in #152)

Features

  • New feature (EXPERIMENTAL & UNSTABLE): store.dispatch now returns a promise for offline actions.
    This allows
    chaining
    actions and
    callbacks with offline actions. Does not work after rehydration!
  • Adds test for processing outbox when coming online.
  • Improve docs in README (@wacii and @sorodrigo in #153, #160, #163, #176, #181)
redux-offline - v2.2.1

Published by sorodrigo almost 7 years ago

Bug Fixes

  • Adds backwards compatibility for network status reducer (@sorodrigo in #147 )
  • Removes unused variable persistor (@wacii in #139 )
  • Includes polyfills (@wacii in #144 )

Features

  • Improves docs in README (@wacii in #138 )
redux-offline - v2.2.0

Published by sorodrigo almost 7 years ago

Bug Fixes

  • Prevent outdated connectivity info from updating the online status. (@birgernass in #58 )
  • Updated deprecated Net Info. (@kbrandwijk in #52 )
  • Fix failing test. (@wacii in #51 )
  • Fix payload/meta inconsistency in README.MD. (@elf-pavlik in #38 )
  • Remove console statements. (@wacii in #34 )

Features

  • Allow to use promises in discard function. (@piranna in #53 )
  • Add basic example (@wacii in #46 )
  • Tests for default effector (@piranna in #43 )
  • Immutable js root state (@fabriziomoscon and @Ashmalech in #42 )
  • Support HMR (@wacii in #32 )
  • Optional commit/rollback. (@sebasgarcep in #30 )
  • Alternative API: Give user control over where the middleware is applied. (@wacii in #26 )
  • Add prettier as eslint plugin (@wacii in #24 )
  • Extract send from middleware. (@wacii in #23 )
redux-offline - v2.1.0

Published by sorodrigo almost 7 years ago

  • Adds netInfo to detectNetwork.native.js .
  • Adds fallback to prevent crashes when no Content-Type header is found on effect.js .
  • Prevents js errors on commit reducers bubbling up to the rollback. Expose the error with a redux action for handling.
  • Fixes offline not being restored correctly on persist rehydrate actions.
  • Adds tests.
  • Fixes redux dev-tools integration.
  • Removes unsupported code.
  • Changes eslint config to airbnb.
redux-offline - BREAKING: Migrate to Store Enhancer API

Published by jevakallio over 7 years ago

This release removes the special snowflake createOfflineStore method in favor of Redux store enhancers. This will get us better interoperability with other redux libraries, and paves way to "universal" Redux Offline that can be used with frameworks likes Vue and Angular.

This release also contains the bugfixes released as v1.1.0 earlier today. If you are migrating from 1.0.x, check that change log for a full list of improvements and fixes.

Migration guide

The changes are simple, and limited to your store creation logic:

  1. Instead of createOfflineStore, import the offline store enhancer from redux-offline
  2. Instead of createOfflineStore, use the default redux createStore
  3. Instead of passing the offline config as the last argument to createOfflineStore, pass it to the offline store enhancer
  4. If using other middleware/enhancers, use compose from redux to compose the offline enhancer with them
-import { applyMiddleware } from 'redux';
+import { applyMiddleware, createStore, compose } from 'redux';

// import the "offline" store enhancer instead of createOfflineStore
- import { createOfflineStore } from 'redux-offline'
+import { offline } from 'redux-offline';

import offlineConfig from 'redux-offline/lib/defaults';

 // ...

-const store = createOfflineStore(
+const store = createStore(
   reducer,
   preloadedState,
-  applyMiddleware(middleware),
-  offlineConfig
+  compose(
+    applyMiddleware(middleware), 
+    offline(offlineConfig)
+ ) 
 );

Thank you @migueloller and @gaearon for contributing to this release! πŸŽ‰

redux-offline - 1.1.0: Bugfixes

Published by jevakallio over 7 years ago

This release contains mainly backwards-compatible bugfixes in preparation for a larger, breaking 2.0 release.

Bugfixes

  • #23 commit is fired multiple times if other actions are dispatched during request - fixes a dispatch race condition by sending a "Offline/BUSY" action and filtering dispatches while busy. Please note this solution is a workaround, and the BUSY action should be considered an implementation detail that will change in the future.
  • #34 window is not defined - fixes issue with window not being available when rendering on server. There may still be other server rendering issues, and in fact it might be a better idea to not load Redux Offline in server rendering context at all.
  • #39 204 status code - default effects reconciler now handles responses with empty response body, even if server sends a json content type
  • #50 Redux Offline depends on React - removed flow transform that generated React PropTypes from Flow types, and added an implicit dependency on React.

New features

Thank you @benlime @SashaSirotkin @n-sviridenko @rtkhanas @unindented for contributing to this release! βœ‹