From 57931d3254fb6e35edfd14f70581da27a75033ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petrus=20Nguy=E1=BB=85n=20Th=C3=A1i=20H=E1=BB=8Dc?= Date: Sun, 16 Jun 2024 18:45:35 +0700 Subject: [PATCH] prepare for 0.3.0 --- CHANGELOG.md | 21 +++++++++++++++++++-- README.md | 15 +++++++++------ example/pubspec.lock | 2 +- pubspec.yaml | 2 +- 4 files changed, 30 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 120cc1e..62ec73f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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**: @@ -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).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).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. diff --git a/README.md b/README.md index 06d0516..ca771bc 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Liked some of my work? Buy me a coffee (or more likely a beer) Buy Me A Coffee -## Supported Dart SDK version: `>=2.12.0 <3.0.0` +## Supported Dart SDK version: `>=2.12.0 <4.0.0` ## RxDart compatibility @@ -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) diff --git a/example/pubspec.lock b/example/pubspec.lock index 7eefba6..4cf4814 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -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: diff --git a/pubspec.yaml b/pubspec.yaml index bec92e6..e0179b7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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