stateful_service 7.0.1
stateful_service: ^7.0.1 copied to clipboard
This package provides a stream-based way to represent stateful services in Dart, agnostic to any state management solution (BLoC, Riverpod, etc.).
Unreleased #
7.0.0 #
riverpod_stateful_service, riverpod_stateful_service_generator, riverpod_stateful_service_annotation #
- Support Riverpod 3
6.2.0+2 #
- Check code format in CI and publish script
riverpod_stateful_service_generator #
- Add missing explicit dependencies
6.2.0+1 #
- Fix analyzer warning.
- Switch to mise.
- Fix some outdated tests.
- Improve publish script.
- Fix LICENSE file symlinks.
6.2.0 #
riverpod_stateful_service_generator #
- Support named parameters in
@riverpodServiceannotation target. - Update to build_test 3.2.1.
- Switch to use code_builder instead template strings.
- Stop using deprecated analyzer APIs.
6.0.1 #
- Fix
riverpod_stateful_service_generatorbuilder parameter.
6.0.0 #
- BREAKING: Update
riverpod_stateful_service_generatordependency major versions:analyzerto7.0.0source_gento2.0.0
5.2.0 #
- Add
StatefulService.setto directly set the state of a concrete value without going through a loading state. - Various fixes for
Loaderto prevent excessive state updates.
5.1.1 #
- Re-apply changes from 5.0.4 that were lost in the 5.1.0 release.
5.1.0 #
- Add
Loaderutility class.
5.0.4 #
- Don't crash on empty stream in
streamUpdates
5.0.3 #
- Ensure that state updates are properly reflected in
values-stream. - Add
isInitializedgetter toStatefulService
5.0.2 #
shouldBeEmittedshould only be applied to updates that change the state's inner value.riverpod_stateful_servicenow logs errors instead of throwing exceptions when there are missing imports.
5.0.1 #
- Fixed riverpod_stateful_service
asAsyncValueto use new service state error type.
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