0.27.7
https://pub.dev/packages/rxdart/versions/0.27.7
Fixed
Subject
-
Only call
onAdd
andonError
if the subject is not closed.
This ensuresBehaviorSubject
andReplaySubject
do not update their values after they have been closed. -
Subject.stream
now returns a read-onlyStream
.
Previously,Subject.stream
was identical to theSubject
, so we could add events to it, for example:(subject.stream as Sink<T>).add(event)
.
This behavior is now disallowed, and will throw aTypeError
if attempted. UseSubject.sink
/Subject
itself for adding events. -
Change return type of
ReplaySubject<T>.stream
toReplayStream<T>
. -
Internal refactoring of
Subject.addStream
.
-
What's Changed
- fix(subject): only call
onAdd
andonError
if the subject is not closed by @hoc081098 in #698 - refactor(subject):
Subject.stream
now returns a read-onlyStream
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