Closed hoc081098 closed 1 year ago
Merging #701 (a27f939) into master (b0d6ad1) will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## master #701 +/- ##
=======================================
Coverage 92.95% 92.95%
=======================================
Files 77 77
Lines 2384 2384
=======================================
Hits 2216 2216
Misses 168 168
0.27.7 (2022-11-16)
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
.