stream_core 0.3.3
stream_core: ^0.3.3 copied to clipboard
Internal sdk with low-level utilities for the stream SDKs
0.3.3 #
✨ Features #
- Added
partitionmethod for splitting lists into two based on a filter condition - Added
compareparameter toupdateWherefor optional sorting after updates
0.3.2 #
✨ Features #
- Added location-based filtering support with
LocationCoordinate,Distance,CircularRegion, andBoundingBox - Added
insertAtparameter toupsertfor controlling insertion position of new elements
0.3.1 #
✨ Features #
- Added
updateWheremethod for updating elements matching a filter condition - Added
batchReplacemethod for replacing multiple elements based on matching keys - Added
insertUniquemethod for inserting elements ensuring uniqueness by key with optional sorting - Added
updateparameter toupsertfor custom merge logic when replacing existing elements - Added
updateparameter tobatchReplacefor custom merge logic - Added
updateparameter tosortedUpsertfor custom merge logic when replacing existing elements
🐛 Bug Fixes #
- Fixed
StreamDioException.toClientException()not handling invalid JSON strings gracefully
0.3.0 #
💥 BREAKING CHANGES #
FilterFieldnow requires a value getter functionObject? Function(T)- Filter classes renamed (e.g.,
EqualOperator→Equal,AndOperator→And) Filtersignature changed toFilter<T extends Object>
✨ Features #
- Added
matches(T other)method for client-side filtering with PostgreSQL-like semantics - Added utility functions for deep equality, subset containment, and type-safe comparisons
- Enhanced
Sortcomparator to handle incompatible types safely
0.2.0 #
💥 BREAKING CHANGES #
- Renamed
AppLifecycleStateProvidertoLifecycleStateProviderandAppLifecycleStatetoLifecycleState
✨ Features #
- Added
keepConnectionAliveInBackgroundoption toConnectionRecoveryHandler - Added
unknownstate toNetworkStateandLifecycleStateenums
🐛 Bug Fixes #
- Fixed
onClose()not being called when disconnecting during connecting state - Fixed unnecessary reconnection attempts when network is offline
- Fixed existing connections not being closed before opening new ones
0.1.0 #
- Initial release