Release Notes
What shipped in the v1.0.x line of @remotex-labs/xobservable.
v1.0.0
Initial release: a lightweight, dependency-free observable implementation for TypeScript.
Core
Observable<T>: a lazy, push-based stream.subscribeaccepts a full observer object or positionalnext/error/completecallbacks and returns an unsubscribe function that stops delivery and runs the handler's cleanup.Subject<T>: a multicast stream that is both an observable and an observer, with error aggregation across observers.BehaviorSubject<T>: a subject that holds a current value (readable viavalue) and replays it to new subscribers.
Operators
map,filter,distinctUntilChanged, andtap, composed throughpipewith full type inference.
Error handling
- Safe observers: a handler that throws synchronously routes the error to the observer instead of crashing the subscription. See Error Handling.
Types
- Exported types:
ObserverInterface,NextType,ErrorType,CompleteType,UnsubscribeType,OperatorFunctionType,UnaryFunctionInterface.
