Skip to content

0.27.7

Compare
Choose a tag to compare
@hoc081098 hoc081098 released this 16 Nov 10:04
· 46 commits to master since this release
3d1b6c0

https://pub.dev/packages/rxdart/versions/0.27.7

Fixed

  • Subject
    • Only call onAdd and onError if the subject is not closed.
      This ensures BehaviorSubject and ReplaySubject do not update their values after they have been closed.

    • Subject.stream now returns a read-only Stream.
      Previously, Subject.stream was identical to the Subject, so we could add events to it, for example: (subject.stream as Sink<T>).add(event).
      This behavior is now disallowed, and will throw a TypeError if attempted. Use Subject.sink/Subject itself for adding events.

    • Change return type of ReplaySubject<T>.stream to ReplayStream<T>.

    • Internal refactoring of Subject.addStream.


What's Changed

  • fix(subject): only call onAdd and onError if the subject is not closed by @hoc081098 in #698
  • refactor(subject): Subject.stream now returns a read-only Stream by @hoc081098 in #699
  • refactor(subject): addStream by @hoc081098 in #700
  • chore(publish): prepare for v0.27.7 by @hoc081098 in #701

Full Changelog: 0.27.6...0.27.7