flutter_sync_client 0.2.7
flutter_sync_client: ^0.2.7 copied to clipboard
Real-time data synchronization plugin for Flutter with Hive and Socket.IO. Supports both untyped and type-safe collections with fast O(1) indexed searching, bulk operations, and offline support.
0.2.5 #
- Fix: Fixed a
TypeErrorby ensuring allidfields are safely converted to strings, preventing crashes when the server sends numeric IDs.
0.2.4 #
- Refactor: Removed client-side data decompression to simplify the logic and enforce that the server sends uncompressed data.
0.2.3 #
- Fix: Correctly use
ZLibCodecfor data decompression to match server-side compression, resolving mobile client errors.
0.2.2 #
- Refactor: Centralized server data handling logic into
SyncClientto simplify collection classes and improve data processing consistency.
0.2.1 #
- Fix: Resolved a data deserialization issue by improving the handling of mixed compressed and uncompressed server data.
0.2.0 #
- Critical Fix: Cross-Platform Decompression: Replaced
dart:ioZLibDecoderwithGZipCodecand a fallback for web compatibility, fixing data decompression on web builds. - Enhanced Error Handling: Introduced an
onErrorstream inSyncClientto allow developers to listen for and handle synchronization and connection errors. - Optimized Typed Collections: Refactored
TypedCollectionReferenceto use incremental updates for caching and indexing, significantly improving performance for large collections. - Implemented Bulk Operations: Added
insertMany,updateMany, anddeleteManymethods to bothCollectionReferenceandTypedCollectionReferencefor efficient batch operations. - Updated Example App: Revamped the example app to demonstrate the new features, including typed collections, bulk operations, and error handling.
0.1.10 #
- Dependency Updates: Upgraded
socket_io_clientto^3.1.2anduuidto^4.5.2. - Minor bug fixes and performance improvements.
0.1.9 #
- Refactored Decompression: Switched from third-party libraries to Dart's built-in
dart:iofor ZLib decompression anddart:convertfor JSON serialization. This removes thearchiveandmsgpack_dartdependencies and resolves web compatibility issues.
0.1.8 #
- Upsert and Delete Handling: Updated
HiveManagerto handleupsert(update or insert) anddeleteoperations from the server. - Data Decompression: Implemented data decompression for incoming data from the server using
msgpack_dartandarchive. - Refactored SocketManager: Moved the decompression logic to the
SocketManagerto 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_pluginsdependency 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