swift_flutter 1.2.0
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
enableMemoizationparameter) - ✅ 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
- ✅
AnimationControllersupport 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 #
- ✅
SwiftFuturenow supports retry, error recovery, and better error handling - ✅
Computednow supports memoization and circular dependency detection - ✅
SwiftTweennow usesAnimationControllerwhenvsyncis provided - ✅
SwiftPersistednow supports data migrations - ✅ Error messages are more descriptive and user-friendly
- ✅ Test helpers are more comprehensive
Documentation #
- ✅ Added
ADVANCED_PATTERNS.mdwith comprehensive guides on:- State management patterns
- Performance optimization
- Error handling
- Testing patterns
- Migration guides (GetX, Riverpod, Bloc, MobX)
- Best practices
- ✅ Updated
README.mdwith new features and examples - ✅ Updated
LIBRARY_REVIEW.mdwith current status
Breaking Changes #
- ⚠️
SwiftFutureconstructor now accepts optional parameters (backwards compatible) - ⚠️
Computedconstructor now accepts optionalenableMemoizationparameter (backwards compatible) - ⚠️
SwiftTweenconstructor now accepts optionalvsyncparameter (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.