app_checkpoint 0.5.0
app_checkpoint: ^0.5.0 copied to clipboard
A Flutter package for checkpointing and restoring app state.
0.5.0 #
New Features #
State Management #
- Unregister functionality: Added
StateSnapshot.unregister(key)to remove state contributors when they're no longer needed - Partial restore: Added
keysparameter torestoreFromJson()andrestoreFromJsonMap()to restore only specific state keys - Error tolerance: Added
continueOnErrorparameter to continue restoring other keys even if one fails
Snapshot Enhancements #
- Metadata support: Added optional
metadataparameter tocapture()for attaching custom information (bug IDs, reporter names, etc.) - Selective capture: Added
keysparameter tocapture()to capture only specific state contributors - Snapshot validation: Added
validateSnapshot()method to check snapshot compatibility before restoring
Storage #
- Web storage support: Added
SharedPreferencesSnapshotStoragefor cross-platform persistence including web - Platform support: Added support for Linux, macOS, Windows, and Web platforms
Improvements #
- Enhanced error handling with better error messages and recovery options
- Improved documentation with examples for all new features
- Better validation with detailed error and warning messages
Dependencies #
- Updated
shared_preferencesto^2.5.4for better cross-platform support
Bug Fixes #
- Fixed lint errors and code formatting issues
- Improved type safety and null handling
0.1.0 #
- Initial release.