swift_flutter 1.2.0 copy "swift_flutter: ^1.2.0" to clipboard
swift_flutter: ^1.2.0 copied to clipboard

A reactive state management library for Flutter with automatic dependency tracking, computed values, async state, form validation, and more.

Changelog #

1.2.0 2024 - Major Enhancements #

Added #

Error Handling & Recovery

  • ✅ Automatic retry for async operations with configurable retry policies
  • ✅ Exponential backoff support for retries
  • ✅ Error recovery strategies (fallback, custom, retry)
  • ✅ Error boundary UI components (ErrorBoundaryWidget)
  • ✅ Better error messages with context
  • ✅ User-friendly error message extraction

Performance Optimizations

  • ✅ Memoization for computed values (optional, enabled via enableMemoization parameter)
  • ✅ Circular dependency detection in computed values
  • ✅ Dependency graph optimization
  • ✅ Enhanced performance monitoring

State Management Patterns

  • ✅ Redux-like reducer pattern (ReduxStore, Reducer, Action)
  • ✅ State normalization utilities (RxNormalizedState, NormalizedState)
  • ✅ Pagination support (PaginationController, SwiftFuturePagination)
  • ✅ Action history tracking in Redux stores

Enhanced Debugging

  • ✅ Debug mode with verbose logging (DebugMode)
  • ✅ Context-aware logging (DebugLogger)
  • ✅ Dependency tracking for debugging
  • ✅ Enhanced test helpers with async support

Animation Improvements

  • AnimationController support for better performance (replaces polling)
  • ✅ Staggered animations (animateSequence)
  • ✅ More animation curves support
  • ✅ Backwards compatibility with polling fallback

Persistence Enhancements

  • ✅ Data migration support (MigrationConfig, MigrationHelper)
  • ✅ Version tracking for persisted data
  • ✅ Migration utilities for common scenarios

Testing Utilities

  • ✅ Enhanced test helpers (SwiftTestHelpers)
  • ✅ Mock reactive state (MockReactiveState)
  • ✅ Async operation test helpers
  • ✅ Transaction testing support
  • ✅ Debug mode for testing

Improved #

  • SwiftFuture now supports retry, error recovery, and better error handling
  • Computed now supports memoization and circular dependency detection
  • SwiftTween now uses AnimationController when vsync is provided
  • SwiftPersisted now supports data migrations
  • ✅ Error messages are more descriptive and user-friendly
  • ✅ Test helpers are more comprehensive

Documentation #

  • ✅ Added ADVANCED_PATTERNS.md with comprehensive guides on:
    • State management patterns
    • Performance optimization
    • Error handling
    • Testing patterns
    • Migration guides (GetX, Riverpod, Bloc, MobX)
    • Best practices
  • ✅ Updated README.md with new features and examples
  • ✅ Updated LIBRARY_REVIEW.md with current status

Breaking Changes #

  • ⚠️ SwiftFuture constructor now accepts optional parameters (backwards compatible)
  • ⚠️ Computed constructor now accepts optional enableMemoization parameter (backwards compatible)
  • ⚠️ SwiftTween constructor now accepts optional vsync parameter (backwards compatible)

Notes #

  • All new features are backwards compatible
  • Performance improvements are opt-in (memoization, AnimationController)
  • Error handling improvements are automatic but configurable

1.1.1 Previous Version #

See git history for previous changelog entries.

15
likes
0
points
667
downloads

Publisher

verified publisherswiftflutter.com

Weekly Downloads

A reactive state management library for Flutter with automatic dependency tracking, computed values, async state, form validation, and more.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on swift_flutter