Skip to content

Commit

Permalink
prepare for 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hoc081098 committed Jun 16, 2024
1 parent 98491bf commit 57931d3
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 10 deletions.
21 changes: 19 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
## 0.3.0 - Jun 16, 2024

- Accept Dart SDK versions above 3.0 (`sdk: '>=2.12.0 <4.0.0'`).
- Only support `rxdart: ^0.28.0`.

- **state_stream** and **not_replay_value_stream**:
- Implement `lastEventOrNull` for `NotReplayValueStream` and `StateStream`.

- **single**:
- Breaking: `RxSingles.using`
- Convert all _required positional parameters_ to _required named parameters_.
- The `disposer` is now called after the future returned from `StreamSubscription.cancel` completes.

- Docs: update broken doc link (thanks to [@dungngminh](https://github.com/dungngminh)).

## 0.2.9 - Apr 20, 2023

- **operators**:
Expand Down Expand Up @@ -30,8 +45,10 @@
- `ValueStreamController.sink` now processes events correctly.

- `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.
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.

- Several docs and example improvements.

Expand Down
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Liked some of my work? Buy me a coffee (or more likely a beer)

<a href="https://www.buymeacoffee.com/hoc081098" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-blue.png" alt="Buy Me A Coffee" height=64></a>

## Supported Dart SDK version: `>=2.12.0 <3.0.0`
## Supported Dart SDK version: `>=2.12.0 <4.0.0`

## RxDart compatibility

Expand All @@ -26,16 +26,19 @@ Liked some of my work? Buy me a coffee (or more likely a beer)
| `^0.27.3` | `0.1.3 → 0.2.0` |
| `^0.27.4` | `0.2.1 → 0.2.2` |
| `^0.27.5` | `0.2.3 → 0.2.9` |
| `^0.28.0` | `^0.3.0` |

- For example: when using `rxdart: ^0.27.4` → we can use `rxdart_ext: ^v` where `v` in `0.2.1 → 0.2.9`
(i.e. all rows since `^0.27.4` row in the above table).
**The latest version of `rxdart_ext` always works fine with the latest version of `rxdart`.**

- But in some cases there is any **conflict** between `rxdart` version and `rxdart_ext` version,
> [!TIP]
>
> For example: when using `rxdart: ^0.27.4` → we can use `rxdart_ext: ^v` where `v` in `0.2.1 → 0.2.9`
(i.e. all rows since `^0.27.4` row in the above table).
>
> But in some cases there is any **conflict** between `rxdart` version and `rxdart_ext` version,
you must use **stricter version**, e.g. `rxdart: ^0.27.4``rxdart_ext: ^v` where `v` in `0.2.1 → 0.2.2`
(**same row** in the above table)

- **The latest version of `rxdart_ext` always works fine with the latest version of `rxdart`.**

## API - [Documentation](https://pub.dev/documentation/rxdart_ext/latest/)

### 1. [Single](https://pub.dev/documentation/rxdart_ext/latest/rxdart_ext/Single-class.html)
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.3.0-dev.0"
version: "0.3.0"
source_span:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: rxdart_ext
description: Some extension methods and classes built on top of RxDart - RxDart extension.
version: 0.3.0-dev.0
version: 0.3.0
homepage: https://github.com/hoc081098/rxdart_ext.git
repository: https://github.com/hoc081098/rxdart_ext.git
issue_tracker: https://github.com/hoc081098/rxdart_ext/issues
Expand Down

0 comments on commit 57931d3

Please sign in to comment.