Skip to content

Releases: jozzdart/shrink

v1.5.12

25 May 23:26
f4e42ab

Choose a tag to compare

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

21 Apr 04:31
5ddfd51

Choose a tag to compare

  • Fixed root repository pubspec colliding with the package pubspec

1.5.8

  • Updated repository, homepage, and issue_tracker fields in pubspec.yaml
  • Ensures correct links are shown on pub.dev and GitHub

v1.5.7

21 Apr 03:17

Choose a tag to compare

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

10 Apr 02:11
eb24501

Choose a tag to compare

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!

09 Apr 18:08

Choose a tag to compare

🚀 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