redux_persist_encoder 0.7.0-rc.5

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • new58

redux_persist_encoder pub package

This is fork of redux_persist that adds support for an encoder, because the original package lacks it. I don't plan on further support for it.

Usage:

// Create Persistor
final persistor = Persistor<AppState>(
  storage: FlutterStorage("my-app"), // Or use other engines
  decoder: /* *something* */,
  encoder: (data) {
    return serializers.serializeWith(AppState.serializer, data)
  }
);

0.7.0-rc.2 - 2018-04-09

  • Fix middleware typing.

0.7.0-rc.1 - 2018-03-31

  • Breaking: Dart 2.
  • Breaking: Upgraded redux to v3.0.0.
  • Breaking: Changed loading flow:
    • persistor.start has been deprecated (will be removed in next major version). Use persistor.load
    • Loading dispatched PersistLoadAction, then PersistLoadedAction once completed.
  • Breaking: Changed action names:
    • LoadAction: PersistLoadingAction
    • LoadedAction: PersistLoadedAction
    • PersistorErrorAction: PersistErrorAction
  • Added saving actions (PersistSavingAction and PersistSavedAction)
  • Added MemoryStorage.
  • Added loadFromStorage and saveToStorage for more manual control.
  • Refactor, new tests.

0.6.0 - 2018-03-18

  • Breaking: Change saved state format. This will break your saved state, will only happen once.
  • Added migrations and version key.
  • Fix JSON deprecation warning.
  • Added tests.
  • Added exceptions.
  • Added FileStorage.

0.5.2 - 2018-03-14

  • Fix library export.

0.5.1 - 2018-03-13

  • Made persistor.start return a Future.
  • Add type to persistor.loadStream.

0.5.0 - 2018-03-12

  • Breaking: Change persistor.load(store) to persistor.start(store) for initial loading.
  • Breaking: Change LoadAction<T> to LoadedAction<T>.
  • Add LoadAction (action dispatch to start loading).
  • Add PersistorErrorAction (action dispatched on save/load error).
  • Add debug persistor option, doesn't do anything yet.

0.4.0 - 2018-03-10

  • Breaking: Decouple Flutter and Web into different packages.

0.3.0 - 2018-03-10

  • Add state and raw transformers.
  • Added better error handling (persistor.errorStream)

0.2.0 - 2018-03-10

  • Move Flutter-specific code to separate, unexported file. It is likely this will become it's own package.
  • Add SaveLocation for Flutter storage engine.
  • Add SharedPreference sub-engine for Flutter storage engine (make default).
  • Fix PersistorGatepassing variables to state and initialization.
  • Add more docs.

0.1.0 - 2018-03-09

  • Create generic StorageEngine.
  • Create FlutterStorage.

0.0.3 - 2018-03-09

  • Added documentation.

0.0.2 - 2018-03-09

  • Added PersistorGate.

0.0.1 - 2018-03-09

  • Initial release.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  redux_persist_encoder: ^0.7.0-rc.5

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:redux_persist_encoder/redux_persist_encoder.dart';
  
Version Uploaded Documentation Archive
0.7.0-rc.5 Oct 16, 2018 Go to the documentation of redux_persist_encoder 0.7.0-rc.5 Download redux_persist_encoder 0.7.0-rc.5 archive
0.7.0-rc.4 Oct 16, 2018 Go to the documentation of redux_persist_encoder 0.7.0-rc.4 Download redux_persist_encoder 0.7.0-rc.4 archive
0.7.0-rc.3 Oct 16, 2018 Go to the documentation of redux_persist_encoder 0.7.0-rc.3 Download redux_persist_encoder 0.7.0-rc.3 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
31
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
65
Overall:
Weighted score of the above. [more]
58
Learn more about scoring.

We analyzed this package on Nov 14, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.12.6

Platforms

Detected platforms: Flutter, other

Primary library: package:redux_persist_encoder/redux_persist_encoder.dart with components: io.

Maintenance suggestions

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use redux_persist_encoder.dart.

Package is pre-release. (-5 points)

Pre-release versions should be used with caution, their API may change in breaking ways.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev <3.0.0
redux ^3.0.0 3.0.0
Dev dependencies
test ^0.12.33