flutter_sync_client 0.1.9 copy "flutter_sync_client: ^0.1.9" to clipboard
flutter_sync_client: ^0.1.9 copied to clipboard

Real-time data synchronization plugin for Flutter with Hive and Socket.IO

0.1.9 #

  • Refactored Decompression: Switched from third-party libraries to Dart's built-in dart:io for ZLib decompression and dart:convert for JSON serialization. This removes the archive and msgpack_dart dependencies and resolves web compatibility issues.

0.1.8 #

  • Upsert and Delete Handling: Updated HiveManager to handle upsert (update or insert) and delete operations from the server.
  • Data Decompression: Implemented data decompression for incoming data from the server using msgpack_dart and archive.
  • Refactored SocketManager: Moved the decompression logic to the SocketManager to handle all incoming events.

0.1.5 #

  • Added Hive web test example demonstrating IndexedDB storage
  • Confirmed Hive fully works on web through IndexedDB
  • Added visual test app for web platform validation
  • Documentation clarification: Hive uses IndexedDB on web (no limitations)

0.1.4 #

  • Flutter Web support - Full support for running in web browsers
  • Production server support - Fixed connection issues with production servers
  • Added configurable Socket.IO transport (polling, websocket, or both)
  • Added custom Socket.IO path configuration
  • Added configurable reconnection attempts, delay, and timeout
  • Created web example with real-time sync demo
  • Created SmartWind production server example
  • Added comprehensive web support guide (WEB_SUPPORT.md)
  • Added comprehensive troubleshooting guide (SMARTWIND_SETUP.md)
  • Added flutter_web_plugins dependency for web platform
  • Default transport changed to ['polling', 'websocket'] for better compatibility

New Platform Support:

  • ✅ Flutter Web (Chrome, Firefox, Safari, Edge)
  • ✅ Works with IndexedDB for offline storage on web
  • ✅ Socket.IO works in browser with polling/websocket

Breaking Changes:

  • None - fully backward compatible with default settings

0.1.3 #

  • Documentation release - comprehensive README update
  • Added pub.flutter-io.cn and MIT license badges
  • Improved documentation structure with complete examples
  • Added authentication and advanced features sections
  • Added server setup example with Socket.IO code
  • Added links to all documentation files
  • Enhanced overall package presentation

0.1.2 #

  • Internal version (not published)

0.1.1 #

  • Added type-safe TypedCollectionReference<T> with generics support
  • Implemented fast O(1) searching with in-memory field indexing
  • Added in-memory caching for instant ID-based lookups
  • New query methods: findByField(), where(), findFirst(), count()
  • Fixed type casting issue in SyncItem.fromJson() to handle both string and numeric IDs
  • Added comprehensive documentation in TYPED_COLLECTIONS.md
  • Added typed collection example code

0.1.0 #

  • Initial release
  • Real-time data synchronization with Socket.IO
  • Local storage with Hive database
  • Automatic offline/online detection and sync
  • Support for Android and iOS platforms

0.0.1 #

  • Project setup