Apart from the breaking changes, other great changes were introduced:

~v0.5.0:

Add LoadAction (action dispatch to start loading).

(action dispatch to start loading). Add PersistorErrorAction (action dispatched on save/load error).

(action dispatched on save/load error). Add debug persistor option, with basic support.

persistor option, with basic support. Made persistor.start return a Future .

v0.6.0:

Added migrations and version key.

Added basic tests and exceptions.

Added FileStorage (file storage engine).

There also was a few changes to redux_persist_flutter.

Migrations

redux_persist now supports migrations! You can version your state, and upgrades between versions. You simply have to describe the migration as a function, from the previous to next version.

final persistor = new Persistor<State>(

// ...

version: 1,

migrations: {

// Renamed fields from "oldCounter" to "counter"

0: (dynamic state) => {"counter": state["oldCounter"]},

// "counter" is now a string

1: (dynamic state) => {"counter": state["counter"].toString() }

},

);

You can see more information in the README section.

Upcoming v1.0.0 Release

The v1.0.0 is coming up soon. You can see the progress (or contribute) on the release project board. File issues for suggestions!

The notable features left to do are:

SQLite Storage for Flutter.

More thorough testing.

More debug print statements.

MemoryStorage engine (done, releasing in v0.6.1).

Check out the project on GitHub (⭐ it ) or on Pub!