Skip to content

Releases: rt2zz/redux-persist

v6.0.0

02 Sep 00:41
Compare
Choose a tag to compare

v6.0.0-pre2.0

05 Jul 16:10
Compare
Choose a tag to compare
v6.0.0-pre2.0 Pre-release
Pre-release
  • Add an option to delay the automatic persistence. (#986) 7bbf971
  • Update createPersistoid.js (#803) 5a5f463
  • Add expire redux-persist-expire transformer (#901) 4e40283
  • add link to redux-persist-pouchdb (#1055) 6f4a81e
  • fix(persistReducer): Ensure nested reducers can handle PERSIST too. Fixes #940 (#1048) 5ad36b8

v6.0.0-pre2...v6.0.0-pre2.0

v6.0.0 Preview

07 May 21:16
Compare
Choose a tag to compare
v6.0.0 Preview Pre-release
Pre-release

The breaking change is that we no longer allow react-native users to import out of redux-persist/lib/storage. Instead use import AsyncStorage from '@react-native-community/async-storage'

Changelog to come

v5.7.0

10 Feb 08:50
Compare
Choose a tag to compare

This release adds a timeout config. This will hopefully ease some of the pain on react native android caused by occasional AsyncStorage unresolved promises.

Changelog

  • add timeout config to persistReducer config, default to 5000 ms

v5.6.x

01 Feb 08:08
Compare
Choose a tag to compare

This release includes a number of improvements. Notably:

  1. transforms now have access to a third argument of the "full state"
  2. persisted state now updates immediately after rehydration rather than waiting for a subsequent action to persist
  3. persisted reducers now passthrough if the base reducer does not modify state (performance fix)
  4. fix hardSet issue when inbound state is undefined (state is now only reconciled if inbound state is defined)

Changelog

  • (persistReducer): only reconciler defined state (#698)
  • (general): bump deps, cleanup, prettierrc (#694) 0cab4f0
  • (createTransform) Give transformers access to the full state (i.e., across all available keys) (#682) 0db73d3
  • (types): flow fixes (#692) de1dbcf
  • (test): use memory storage in tests (#691) 58e14d6
  • (docs): Update README with redux-persist-expo-securestore (#678) b357b7f
  • (persistReducer): return unmodified state if possible (#689) 96525fb
  • (persistReducer): update persistoid on rehydrate (#688) f89d60b
  • (docs): Update v4 link (#684) 21cbb5e
  • (test) switch to storage-memory module (#683) f1ef085
  • (docs): fix typo (#665) 2cb1a15
  • (docs) update stateReconciler import (#666) 26109c0

v5.4.0

19 Nov 22:08
Compare
Choose a tag to compare

Changes

  • Added serialize to persistConfig. If false redux-persist will not apply JSON.parse / JSON.stringify during storage & rehydration

v4.6.0

02 Apr 19:15
Compare
Choose a tag to compare
  • simplify process.env.NODE_ENV access
    • now does not trigger webpack polyfill
    • now works with standard envify solutions
  • remove process.nextTick in favor of setImmediate

v4.0.0

20 Jan 08:17
Compare
Choose a tag to compare

Breaking Changes

  • 25f2f0648ba34c85283d2e5051232c83f996d056]liftReducer with autorehydrate (fix bug with hmr, non-hmr users should be unaffected)
  • 5aef897 remove purgeAll(), purge all now default behavior of purge()
  • 1786899 config.serialize is now a boolean option instead of a function. custom serialize function can still be achieved via transform.

New features

v3.0.0

05 May 06:15
b7bc43d
Compare
Choose a tag to compare
New Features:
- createTransform method
- getStoredState returns a promise
- createPersistor method
- localForage support
- migrations via redux-persist-migrate

Breaking Changes:
- autoRehydrate no longer implement action buffer

Legacy

12 Feb 23:44
Compare
Choose a tag to compare

This is the (hopefully) last release of redux-persist@1.*

There will be breaking changes going into future 2.0 development on master.