app_checkpoint 1.0.0
app_checkpoint: ^1.0.0 copied to clipboard
A Flutter package for checkpointing and restoring app state.
1.0.0 #
New Features #
Snapshot Enhancements #
- Field-level selective capture: Added
includePathsparameter tocapture()for capturing only specific fields/paths within each state contributor's data using dot notation (e.g.,['name', 'profile.email']). This reduces snapshot size and improves performance by allowing fine-grained control over what data is captured.
0.5.0 #
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 (v0.5.0) #
- 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.