Releases: jozzdart/shrink
Releases · jozzdart/shrink
v1.5.12
shrink 1.5.12
- Moved internal files to
lib/src/to improve encapsulation and API clarity - Updated README
- Fixed pub.dev link issues
- Fixed root repository pubspec colliding with the package pubspec
shrink_flutter 0.0.5
- Updated README.md
- Moved internal files to
lib/src/to improve encapsulation and API clarity
v1.5.9
v1.5.7
1.5.7 shrink
- Refactored the internal compression method selection logic for better maintainability
- Improved the handling of compression method identification for more consistent behavior
0.0.2 shrink_flutter
Added ShrinkAsync and RestoreAsync for isolate-based compression/decompression.
v1.5.6 - Fixes & Improvements
Fixed
- Fixed a critical bug where compression method values 1–9 were ambiguously used for both ZLIB and GZIP
Changed
- Simplified compression logic by removing redundant GZIP compression options
- Migrated to a new fixed method ID scheme (identity=0, zlib=10) while maintaining backward compatibility
Added
- Improved compression performance by 90%+ across all compressions
- Optimized ZLIB level probing with early stopping when no further size gain is observed
- Added extensive test coverage, including legacy method fallback
- Added performance benchmarking and validation against real-world data samples
- Added a comprehensive beginner's guide to the README with detailed step-by-step explanations for:
- Package installation and setup
- Importing and basic usage
- Compressing different data types
- Restoring compressed data
- Firebase integration examples
- Best practices and common patterns
v1.5.5 - released to pub.dev!
🚀 Just released a new Dart package: shrink
📦 Compress any data in one line — no setup, no boilerplate.
🎯 Automatically picks the best method. Fully lossless.
🔥 Typical savings: 5×–40×, and up to 1,000×+ for structured data.
Supports:
- String (text)
- Map<String, dynamic> (JSON)
- Uint8List (raw bytes)
- List (unique IDs)
final compressed = data.shrink();
final restored = compressed.restoreJson();Or
final compressed = Shrink.json(data);
final restored = Restore.json(data);Great for Firebase, offline storage, and low-bandwidth apps.
Check it out → https://pub.dev/packages/shrink