Skip to content

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. subscribe accepts a full observer object or positional next/error/complete callbacks 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 via value) and replays it to new subscribers.

Operators

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.

See also

Released under the Mozilla Public License 2.0