From 1d1827cc9e96f95fa45e78c56af17bb1ae2a8e8c Mon Sep 17 00:00:00 2001 From: jinyus Date: Mon, 19 Feb 2024 22:48:41 -0500 Subject: [PATCH] v0.38.0 --- examples/auth_flow/pubspec.lock | 6 +++--- examples/flutter_main/pubspec.lock | 6 +++--- examples/shopping_cart/pubspec.lock | 6 +++--- examples/skeleton/pubspec.lock | 6 +++--- examples/vgv_best_practices/pubspec.lock | 6 +++--- packages/state_beacon/CHANGELOG.md | 9 +++++++++ packages/state_beacon/README.md | 4 ++-- packages/state_beacon/pubspec.yaml | 4 ++-- packages/state_beacon_core/CHANGELOG.md | 9 +++++++++ packages/state_beacon_core/README.md | 4 ++-- packages/state_beacon_core/pubspec.yaml | 2 +- 11 files changed, 40 insertions(+), 22 deletions(-) diff --git a/examples/auth_flow/pubspec.lock b/examples/auth_flow/pubspec.lock index 2f4d6ec7..4bd6a456 100644 --- a/examples/auth_flow/pubspec.lock +++ b/examples/auth_flow/pubspec.lock @@ -163,15 +163,15 @@ packages: path: "../../packages/state_beacon" relative: true source: path - version: "0.37.0" + version: "0.38.0" state_beacon_core: dependency: transitive description: name: state_beacon_core - sha256: "41f8ba1f11f484a93eb0f605992fed1e3b7ddb050a580d91a0e5b4c9bcedfb1e" + sha256: "8632c728dc3c038ad145f1347b50e457785378efa09fc70c19be8c9731e3d309" url: "https://pub.dev" source: hosted - version: "0.37.0" + version: "0.38.0" stream_channel: dependency: transitive description: diff --git a/examples/flutter_main/pubspec.lock b/examples/flutter_main/pubspec.lock index 1324facf..01f2bf98 100644 --- a/examples/flutter_main/pubspec.lock +++ b/examples/flutter_main/pubspec.lock @@ -366,15 +366,15 @@ packages: path: "../../packages/state_beacon" relative: true source: path - version: "0.37.0" + version: "0.38.0" state_beacon_core: dependency: transitive description: name: state_beacon_core - sha256: "41f8ba1f11f484a93eb0f605992fed1e3b7ddb050a580d91a0e5b4c9bcedfb1e" + sha256: "8632c728dc3c038ad145f1347b50e457785378efa09fc70c19be8c9731e3d309" url: "https://pub.dev" source: hosted - version: "0.37.0" + version: "0.38.0" state_beacon_lint: dependency: "direct dev" description: diff --git a/examples/shopping_cart/pubspec.lock b/examples/shopping_cart/pubspec.lock index 3cfb6daf..240dd4c5 100644 --- a/examples/shopping_cart/pubspec.lock +++ b/examples/shopping_cart/pubspec.lock @@ -171,15 +171,15 @@ packages: path: "../../packages/state_beacon" relative: true source: path - version: "0.37.0" + version: "0.38.0" state_beacon_core: dependency: transitive description: name: state_beacon_core - sha256: "41f8ba1f11f484a93eb0f605992fed1e3b7ddb050a580d91a0e5b4c9bcedfb1e" + sha256: "8632c728dc3c038ad145f1347b50e457785378efa09fc70c19be8c9731e3d309" url: "https://pub.dev" source: hosted - version: "0.37.0" + version: "0.38.0" stream_channel: dependency: transitive description: diff --git a/examples/skeleton/pubspec.lock b/examples/skeleton/pubspec.lock index 5a3a0424..1f0f0a31 100644 --- a/examples/skeleton/pubspec.lock +++ b/examples/skeleton/pubspec.lock @@ -147,15 +147,15 @@ packages: path: "../../packages/state_beacon" relative: true source: path - version: "0.37.0" + version: "0.38.0" state_beacon_core: dependency: transitive description: name: state_beacon_core - sha256: "41f8ba1f11f484a93eb0f605992fed1e3b7ddb050a580d91a0e5b4c9bcedfb1e" + sha256: "8632c728dc3c038ad145f1347b50e457785378efa09fc70c19be8c9731e3d309" url: "https://pub.dev" source: hosted - version: "0.37.0" + version: "0.38.0" stream_channel: dependency: transitive description: diff --git a/examples/vgv_best_practices/pubspec.lock b/examples/vgv_best_practices/pubspec.lock index 248dcc30..657152f4 100644 --- a/examples/vgv_best_practices/pubspec.lock +++ b/examples/vgv_best_practices/pubspec.lock @@ -155,15 +155,15 @@ packages: path: "../../packages/state_beacon" relative: true source: path - version: "0.37.0" + version: "0.38.0" state_beacon_core: dependency: transitive description: name: state_beacon_core - sha256: "41f8ba1f11f484a93eb0f605992fed1e3b7ddb050a580d91a0e5b4c9bcedfb1e" + sha256: "8632c728dc3c038ad145f1347b50e457785378efa09fc70c19be8c9731e3d309" url: "https://pub.dev" source: hosted - version: "0.37.0" + version: "0.38.0" stream_channel: dependency: transitive description: diff --git a/packages/state_beacon/CHANGELOG.md b/packages/state_beacon/CHANGELOG.md index 40da123f..bd39dfb4 100644 --- a/packages/state_beacon/CHANGELOG.md +++ b/packages/state_beacon/CHANGELOG.md @@ -1,3 +1,12 @@ +# 0.38.0 + +- [Feat] Add methods to `Beacon.streamRaw` that operates on the internal stream: `unsubscribe` `pause` and `resume`. +- [Feat] `onDispose` now returns a function that can be used to unregister the dispose listener. +- [Breaking] `anybeacon.next()` no longer takes a timeout parameter. It will also throw an error if called on a lazy beacon and the beacon is disposed before emitting a value; unless a [fallback] value is provided. + +Removed Deprecated methods: +`anybeacon.toStream()` is now removed. Use `anybeacon.stream` instead. + # 0.37.0 - [Breaking] Remove `unsubscribe` method from `Beacon.streamRaw` diff --git a/packages/state_beacon/README.md b/packages/state_beacon/README.md index 612d2b74..8192b73d 100644 --- a/packages/state_beacon/README.md +++ b/packages/state_beacon/README.md @@ -736,8 +736,8 @@ returns `false` for a emitted value, the method continues waiting for the next value that matches the filter. If no [filter] is provided, the method completes with the first value received. -If a value is not emitted within the specified [timeout] duration (default -is 10 seconds), the method times out and returns the current value of the beacon. +If this is a lazy beacon and it's disposed before a value is emitted, +the future will be completed with an error if a [fallback] value is not provided. ```dart final age = Beacon.writable(20); diff --git a/packages/state_beacon/pubspec.yaml b/packages/state_beacon/pubspec.yaml index 0cfced12..2fe187d2 100644 --- a/packages/state_beacon/pubspec.yaml +++ b/packages/state_beacon/pubspec.yaml @@ -1,6 +1,6 @@ name: state_beacon description: A reactive primitive and simple state managerment solution for dart and flutter -version: 0.37.0 +version: 0.38.0 repository: https://github.com/jinyus/dart_beacon environment: @@ -10,7 +10,7 @@ environment: dependencies: flutter: sdk: flutter - state_beacon_core: ^0.37.0 + state_beacon_core: ^0.38.0 dev_dependencies: flutter_lints: ^3.0.0 diff --git a/packages/state_beacon_core/CHANGELOG.md b/packages/state_beacon_core/CHANGELOG.md index 40da123f..bd39dfb4 100644 --- a/packages/state_beacon_core/CHANGELOG.md +++ b/packages/state_beacon_core/CHANGELOG.md @@ -1,3 +1,12 @@ +# 0.38.0 + +- [Feat] Add methods to `Beacon.streamRaw` that operates on the internal stream: `unsubscribe` `pause` and `resume`. +- [Feat] `onDispose` now returns a function that can be used to unregister the dispose listener. +- [Breaking] `anybeacon.next()` no longer takes a timeout parameter. It will also throw an error if called on a lazy beacon and the beacon is disposed before emitting a value; unless a [fallback] value is provided. + +Removed Deprecated methods: +`anybeacon.toStream()` is now removed. Use `anybeacon.stream` instead. + # 0.37.0 - [Breaking] Remove `unsubscribe` method from `Beacon.streamRaw` diff --git a/packages/state_beacon_core/README.md b/packages/state_beacon_core/README.md index 612d2b74..8192b73d 100644 --- a/packages/state_beacon_core/README.md +++ b/packages/state_beacon_core/README.md @@ -736,8 +736,8 @@ returns `false` for a emitted value, the method continues waiting for the next value that matches the filter. If no [filter] is provided, the method completes with the first value received. -If a value is not emitted within the specified [timeout] duration (default -is 10 seconds), the method times out and returns the current value of the beacon. +If this is a lazy beacon and it's disposed before a value is emitted, +the future will be completed with an error if a [fallback] value is not provided. ```dart final age = Beacon.writable(20); diff --git a/packages/state_beacon_core/pubspec.yaml b/packages/state_beacon_core/pubspec.yaml index 14b579a2..5fda19fc 100644 --- a/packages/state_beacon_core/pubspec.yaml +++ b/packages/state_beacon_core/pubspec.yaml @@ -1,6 +1,6 @@ name: state_beacon_core description: A reactive primitive and simple state managerment solution for dart. -version: 0.37.0 +version: 0.38.0 repository: https://github.com/jinyus/dart_beacon environment: