offline_first_cache 0.1.1
offline_first_cache: ^0.1.1 copied to clipboard
An offline-first HTTP client and caching engine for Flutter/Dart with request queuing, GET caching, dead-letter handling, and a Queue Inspector UI.
0.1.1 #
- Dependency Constraints: Updated
diolower bound constraint to^5.5.0to ensure full compatibility withDioMediaTypeduring dependency downgrade testing.
0.1.0 #
- Drop-in UI Widgets:
- Added
OfflineBuilder: reactive widget rebuilding on connectivity and queue mutations. - Added
SyncStatusBanner: animated status banner indicating offline mode, syncing progress, and online status. - Added
QueueBadge: badged wrapper widget for action buttons (e.g. AppBar icons) showing pending sync count.
- Added
- Offline Multipart & File Uploads:
- Added
OfflineFileandMultipartQueueHelperto queue file and media uploads taken offline. - Added
postMultipart,putMultipart, andpatchMultipartonOfflineHttpClient. - Streams files safely from disk on queue flush without database memory bloat.
- Added
- HTTP
Cache-ControlHeader Parsing:- Added
CacheControlparser respectingmax-age,s-maxage,stale-while-revalidate,no-store,no-cache, andAgeresponse headers. - Configurable via
respectCacheControlHeadersonOfflineClientConfig.
- Added
- Static Analysis & Flutter 3.50+ Compatibility:
- Suppressed deprecated member use on
package:flutter/material.dartfor future Flutter versions while maintaining backwards compatibility down to Flutter 3.24.0. - Closed cache storage box on client disposal.
- Standardized code formatting across all files.
- Suppressed deprecated member use on
0.0.10 #
- Package Metadata: Refined package description and pubspec metadata formatting.
- Dependency Constraints: Updated Dio constraint lower bound (
^5.4.0) and added compatibility support forflutter_secure_storagev11.
0.0.9 #
- Structured Logging: Replaced console
printcalls in core interceptors with configurableOfflineLoggercalls. - Dependency Optimization: Cleaned up unused transitive dependencies and updated package environment constraints.
- Documentation: Fixed installation instructions and added package status badges in README.
0.0.8 #
- Infinite Loop Fix (Stale-While-Revalidate): Fixed a critical bug where background
revalidation requests re-entered the interceptor, causing an infinite GET loop on stale
cache entries. Background revalidations are now flagged with
_background_revalidateto bypass the cache-hit branch. - Concurrent Revalidation Deduplication: Background revalidations for the same URL are now deduplicated — multiple rapid GETs against a stale cache entry no longer fire redundant parallel network requests.