Skip to content

Commit

Permalink
chore(publish): prepare for v0.27.7 (#701)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
hoc081098 committed Nov 16, 2022
1 parent b0d6ad1 commit 3d1b6c0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
## Unreleased
## 0.27.7 (2022-11-16)

### Fixed

- Subject: only call `onAdd` and `onError` if the subject is not closed.
* `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`.

## 0.27.6 (2022-11-11)

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: rxdart
version: 0.27.6
version: 0.27.7
description: >
RxDart is an implementation of the popular reactiveX api for asynchronous
programming, leveraging the native Dart Streams api.
Expand Down

0 comments on commit 3d1b6c0

Please sign in to comment.