swift_flutter 1.2.2
swift_flutter: ^1.2.2 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.2 2024 - Code Quality & Linting Fixes #
Fixed #
- ✅ Removed unused field
_visitedInCycleincomputed.dart - ✅ Removed unused imports across multiple files
- ✅ Fixed error in
example/test/widget_test.dart(MyApp → SwiftFlutterExampleApp) - ✅ Removed unused catch stack trace parameters
- ✅ Fixed invalid use of
notifyListenersintransaction.dart - ✅ Fixed unnecessary type check warnings
- ✅ Fixed HTML in doc comments
- ✅ Removed platform-specific folders and build artifacts from git tracking
Improved #
- ✅ Better pub.dev static analysis scores
- ✅ Cleaner codebase with no critical linting issues
- ✅ Improved code quality and maintainability
Notes #
- All changes are backwards compatible
- Code quality improvements for better pub.dev scores
1.2.1 2024 - Bug Fixes & Improvements #
Fixed #
- ✅ Fixed
rethrowkeyword conflict inSwiftFuture(renamed parameter toshouldRethrow) - ✅ Fixed
ReactiveChaintype handling for better type safety
Added #
- ✅ Routing integration (
RxRoutingfor reactive routing state) - ✅ Enhanced type safety (
TypedRx,TypedComputed,TypeGuard) - ✅ Structured patterns (
StructuredStore,OpinionatedStorefor Bloc-like patterns)
Improved #
- ✅ Performance comparison documentation
- ✅ Library review with comprehensive performance metrics
- ✅ Better competitor comparisons with performance data
Notes #
- All changes are backwards compatible
- Performance improvements documented and benchmarked
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.