Skip to content

v4.0.0

Latest
Compare
Choose a tag to compare
@pshev pshev released this 07 Mar 20:53

<a name"4.0.0">

4.0.0 (2018-03-07)

Bug Fixes

  • catchError: handles promises, internal errors and manages inner subscription (efe840e7)
  • error hanlding: more operator specific error handling (414b4f61)
  • operators: fix a bug in skipWhile with condition (aecfda34)
  • prototype patching operators: adds missing static methods to stream-lite/add/all.js (b28c26ef)
  • skipWhile: fixes condition checking (785917f6)
  • stream activation: calls onStart after activating all needed streams (c76d08ca)
  • stream error propagation: deactivates dependecy streams on error only if deactivation guard pas (409a31ec)
  • subscriber:
    • makes sure default callbacks are provided (c8de4b22)
    • moves subscriber creation into a separate file (eb2cc3ec)

Breaking Changes

  • catchError now manages it's internal subscription: these were actually bugfixes, but also technically could break some code that relied on them working incorrectly (efe840e7)

  • skipWhile predicate behavior change: consider predicate failed when it returns any falsy value, not only strictly false (785917f6)

  • subscriber: default callbacks are now provided both - when given a subscriber object and also
    when given separate callback functions. Also default error callback now re-throws the error instead
    of th rowing a new Error() (c8de4b22)

  • nextGuard: nextGuard is removed from stream's prototype. Doubt anybody relies on it, but it is a
    breaking change (391888df)

  • stream deactivation: deactivates dependency streams on error only if deactivation guard passes (409a31ec)

  • Stream's onStart method now called only after all streams in the activation chained
    have been marked active. Most won't notice, but it is a breaking change (c76d08ca)

  • In the subscribe function, next is now a required (eb2cc3ec)