Skip to content

Commit 3d1b6c0

Browse files
authored
chore(publish): prepare for v0.27.7 (#701)
* chore(publish): prepare for v0.27.7 * chore(publish): prepare for v0.27.7 * chore(publish): prepare for v0.27.7 * chore(publish): prepare for v0.27.7 * chore(publish): prepare for v0.27.7
1 parent b0d6ad1 commit 3d1b6c0

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

CHANGELOG.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1-
## Unreleased
1+
## 0.27.7 (2022-11-16)
22

33
### Fixed
44

5-
- Subject: only call `onAdd` and `onError` if the subject is not closed.
5+
* `Subject`
6+
* Only call `onAdd` and `onError` if the subject is not closed.
7+
This ensures `BehaviorSubject` and `ReplaySubject` do not update their values after they have been closed.
8+
9+
* `Subject.stream` now returns a **read-only** `Stream`.
10+
Previously, `Subject.stream` was identical to the `Subject`, so we could add events to it, for example: `(subject.stream as Sink<T>).add(event)`.
11+
This behavior is now disallowed, and will throw a `TypeError` if attempted. Use `Subject.sink`/`Subject` itself for adding events.
12+
13+
* Change return type of `ReplaySubject<T>.stream` to `ReplayStream<T>`.
14+
* Internal refactoring of `Subject.addStream`.
615

716
## 0.27.6 (2022-11-11)
817

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: rxdart
2-
version: 0.27.6
2+
version: 0.27.7
33
description: >
44
RxDart is an implementation of the popular reactiveX api for asynchronous
55
programming, leveraging the native Dart Streams api.

0 commit comments

Comments
 (0)