stream_core 0.4.0
stream_core: ^0.4.0 copied to clipboard
Internal sdk with low-level utilities for the stream SDKs
0.4.0 #
π₯ BREAKING CHANGES #
SharedEmitterandStateEmitternow implementStream<T>directly instead of exposing astreamgetter- Removed
streamgetter fromSharedEmitterandStateEmitter
β¨ Features #
- Added
hasListenerandisClosedproperties toSharedEmitter - Added
asSharedEmitter()andasStateEmitter()extension methods for read-only views - Added
update,getAndUpdate,updateAndGetextension methods onMutableStateEmitter - Added
StreamEventbase interface andEventResolverfor event transformation
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