Repository navigation
v2.4.1 - Quality Improvements & Test Coverage
·
123 commits
to main
since this release
🎯 What's New in v2.4.1
This is a quality-focused patch release that improves pub.dev scores, adds comprehensive test coverage, and cleans up documentation.
📦 Published Packages
All three packages have been updated to v2.4.1:
- dart_debounce_throttle 2.4.1 - Fixed lint issues for better pub score
- flutter_debounce_throttle 2.4.1 - Applied dart fix and updated examples
- flutter_debounce_throttle_hooks 2.4.1 - Added comprehensive tests + cleaned docs
🔧 Bug Fixes & Quality Improvements
dart_debounce_throttle
- Fixed redundant length check in
RateLimiterState.fromList()(pub.dev lint warning) - Applied dart fix auto-corrections
- Improved pub.dev score: targeting 160/160 pub points
flutter_debounce_throttle
- Applied dart fix:
use_super_parameters(2 fixes) - Applied dart fix:
sized_box_for_whitespace(1 fix) - Fixed missing import in
gesture_detector_demo.dart - Updated example dependencies to use local path
flutter_debounce_throttle_hooks
- Applied dart fix across codebase
- All packages now pass
dart analyzewith 0 issues ✅
✅ Test Coverage (NEW!)
Added 16 comprehensive tests for flutter_debounce_throttle_hooks:
Hook Coverage (100%)
- ✅
useDebouncer- Instance creation & debounce behavior - ✅
useThrottler- Instance creation & throttle behavior - ✅
useDebouncedCallback- Callback debouncing - ✅
useThrottledCallback- Callback throttling - ✅
useDebouncedValue- Value debouncing - ✅
useThrottledValue- Value throttling - ✅
useAsyncDebouncer- Async debouncing - ✅
useAsyncThrottler- Async throttling
Additional Test Coverage
- Lifecycle management (auto-dispose on unmount)
- Keys parameter handling (hook recreation on key change)
- Multiple hooks coexistence in same widget
- Hook persistence across rebuilds
Total Test Cases Across All Packages: 357 (16 new in this release)
📚 Documentation Improvements
flutter_debounce_throttle_hooks
- ❌ Removed outdated "v1.1.0 Features" section (was misleading)
- ❌ Removed inaccurate "50+ tests" badge
- ✅ Updated Quality Assurance section with accurate information
- ✅ Clarified that package is built on flutter_debounce_throttle (340+ tests)
📊 Quality Metrics
✅ All packages pass dart analyze with 0 issues
✅ All 357 tests passing (100% pass rate)
✅ Improved pub.dev scores
✅ Zero warnings in production code
🚀 Upgrade Guide
This is a patch release with no breaking changes. Simply update your pubspec.yaml:
dependencies:
dart_debounce_throttle: ^2.4.1 # or
flutter_debounce_throttle: ^2.4.1 # or
flutter_debounce_throttle_hooks: ^2.4.1Then run:
flutter pub upgrade📦 What's Next?
v2.4.1 is a quality-focused release. All features from v2.4.0 remain unchanged:
- ✅ ThrottledGestureDetector (flutter_debounce_throttle)
- ✅ DistributedRateLimiter (dart_debounce_throttle)
- ✅ All 8 hooks (flutter_debounce_throttle_hooks)
See v2.4.0 release notes for major features.
Full Changelog: v2.4.0...v2.4.1