shared_preferences_stateful_service_cache 5.0.0
shared_preferences_stateful_service_cache: ^5.0.0 copied to clipboard
A shared_preferences-based cache implementation for stateful_service. See the stateful_service package for more information.
5.0.0 #
- BREAKING: The
setSavePointfunction now takes the new save point as a parameter, instead of using the current state, to avoid race conditions. - BREAKING: Split the service error state out into a separate type
- BREAKING: Renamed
mapandmapOrNulltowhenandwhenOrNullto be more in line with traditional naming and avoid confusion. - BREAKING: Renamed
mapValuetomapto be more in line with traditional naming and avoid confusion.
4.1.0 #
- shared_preferences_stateful_service_cache encoders and decoders now return a FutureOr
- Fixed riverpod_stateful_service to use new name for
ServiceState.value. - Renamed riverpod_stateful_service_generator extension methods to reflect the new name for
ServiceState.value.
4.0.0 #
- BREAKING: Renamed the
ServiceState.statetoServiceState.value. - BREAKING: Created a separate
ServiceErrortype instead of using a tuple. - Added convenience methods
map,mapOrNull, andmapValueonServiceState. - Changed shared_preferences_stateful_service_cache to use the new async API for shared_preferences.
- Added an init function to allow for potentially asynchronous initialization of the service state before initialization is reported complete.
- Added some more logging, and a
verboseLoggingflag.
3.0.0 #
- BREAKING:
StatefulServices now wrap their state in aServiceStateobject. - Add some more convenience methods to riverpod_stateful_service.
- Remove exports of things in
riverpod_annotationfromriverpod_stateful_service_annotation, since we cannot export all of them and it causes some confusion that is sometimes not detected until run time. riverpod_stateful_service_generatornow requires bothriverpodandriverpod_stateful_serviceto be imported in the file where the@riverpodServiceannotation is used.
2.0.3 #
- Hide invalid exports in riverpod_stateful_service_annotation
2.0.2 #
- Bump riverpod to 2.6.1.
- Handle services that store ref as a member variable using 'this'.
2.0.1 #
- Export
riverpod-annotation andProviderForfrom riverpod_stateful_service_annotation. - Fixes for indicators for isUpdating and ignoring concurrent updates.
2.0.0 #
- Use logging-package instead of logger.
- Allow
streamUpdatesto set a savepoint for rollback. - Avoid
LateInitializationErrors in generated Riverpod services.
1.1.1 #
Improve generator output.
1.1.0 #
Add riverpod_stateful_service_generator and riverpod_stateful_service_annotation.
1.0.0+2 #
Add more documentation and usage examples.
1.0.0+1 #
- Updates to the README.
- Fixes to pubspec.yaml to improve pana score.
- Fix formatting and add more documentation.
1.0.0 #
Initial release