app_checkpoint 1.0.0 copy "app_checkpoint: ^1.0.0" to clipboard
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 includePaths parameter to capture() 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 keys parameter to restoreFromJson() and restoreFromJsonMap() to restore only specific state keys
  • Error tolerance: Added continueOnError parameter to continue restoring other keys even if one fails

Snapshot Enhancements (v0.5.0) #

  • Metadata support: Added optional metadata parameter to capture() for attaching custom information (bug IDs, reporter names, etc.)
  • Selective capture: Added keys parameter to capture() to capture only specific state contributors
  • Snapshot validation: Added validateSnapshot() method to check snapshot compatibility before restoring

Storage #

  • Web storage support: Added SharedPreferencesSnapshotStorage for 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_preferences to ^2.5.4 for better cross-platform support

Bug Fixes #

  • Fixed lint errors and code formatting issues
  • Improved type safety and null handling

0.1.0 #

  • Initial release.
1
likes
160
points
--
downloads

Publisher

verified publishervsevex.me

Weekly Downloads

A Flutter package for checkpointing and restoring app state.

Repository (GitHub)
View/report issues

Topics

#debugging #restore #state #snapshot

Documentation

API reference

License

MIT (license)

Dependencies

flutter, meta, shared_preferences

More

Packages that depend on app_checkpoint