From e208f9306897d7dbb6e942c3c4ebaa216b7cd7c2 Mon Sep 17 00:00:00 2001 From: jinyus Date: Sat, 17 Feb 2024 10:53:59 -0500 Subject: [PATCH] v0.34.4 --- Readme.md | 4 ++-- 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 | 4 ++++ packages/state_beacon/README.md | 4 ++-- packages/state_beacon/pubspec.yaml | 4 ++-- packages/state_beacon_core/CHANGELOG.md | 4 ++++ packages/state_beacon_core/README.md | 7 +++---- packages/state_beacon_core/pubspec.yaml | 2 +- 12 files changed, 33 insertions(+), 26 deletions(-) diff --git a/Readme.md b/Readme.md index 732aa9bb..354ba533 100644 --- a/Readme.md +++ b/Readme.md @@ -749,7 +749,7 @@ final searchQuery = Beacon.writable('').filter(filter: (prev, next) => next.leng ``` > [!IMPORTANT] -> When chaining beacons, all writes made to the returned beacon will be re-routed to the first beacon in the chain. +> When chaining beacons, all writes made to the returned beacon will be re-routed to the first writable beacon in the chain. It is recommended to mutate the source beacons directly. ```dart const k500ms = Duration(milliseconds: 500); @@ -831,7 +831,7 @@ await expectLater(beacon.stream, emitsInOrder([1, 2, 4])); ``` > [!NOTE] -> When `map` returns a different type, writes to the returned beacon will not be re-routed to the original beacon. In the example below, writes to `filteredBeacon` will NOT be re-routed to `count` because `map` returns a `String` and `count` holds an `int`. +> When `map` returns a different type, writes to the returned beacon will not be re-routed to the original beacon. In the example below, writes to `filteredBeacon` will NOT be re-routed to `count` because `map` returns a `String`; which means the type of the returned beacon is FilteredBeacon and `count` holds an `int`. ```dart final count = Beacon.writable(0); diff --git a/examples/auth_flow/pubspec.lock b/examples/auth_flow/pubspec.lock index e5e015c7..09c8e741 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.34.3" + version: "0.34.4" state_beacon_core: dependency: transitive description: name: state_beacon_core - sha256: "2a8352da89c3698da7df88c463c975fb871409100ca5e302ab63e3c1a79f6aaa" + sha256: "584b782710e116637aca9b5297eca9cab711edd86992ce4c2817fd40726b37b4" url: "https://pub.dev" source: hosted - version: "0.34.3" + version: "0.34.4" stream_channel: dependency: transitive description: diff --git a/examples/flutter_main/pubspec.lock b/examples/flutter_main/pubspec.lock index d49d3e44..b546dfa9 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.34.3" + version: "0.34.4" state_beacon_core: dependency: transitive description: name: state_beacon_core - sha256: "2a8352da89c3698da7df88c463c975fb871409100ca5e302ab63e3c1a79f6aaa" + sha256: "584b782710e116637aca9b5297eca9cab711edd86992ce4c2817fd40726b37b4" url: "https://pub.dev" source: hosted - version: "0.34.3" + version: "0.34.4" state_beacon_lint: dependency: "direct dev" description: diff --git a/examples/shopping_cart/pubspec.lock b/examples/shopping_cart/pubspec.lock index 22565c91..83fcb509 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.34.3" + version: "0.34.4" state_beacon_core: dependency: transitive description: name: state_beacon_core - sha256: "2a8352da89c3698da7df88c463c975fb871409100ca5e302ab63e3c1a79f6aaa" + sha256: "584b782710e116637aca9b5297eca9cab711edd86992ce4c2817fd40726b37b4" url: "https://pub.dev" source: hosted - version: "0.34.3" + version: "0.34.4" stream_channel: dependency: transitive description: diff --git a/examples/skeleton/pubspec.lock b/examples/skeleton/pubspec.lock index 61262995..b2d41556 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.34.3" + version: "0.34.4" state_beacon_core: dependency: transitive description: name: state_beacon_core - sha256: "2a8352da89c3698da7df88c463c975fb871409100ca5e302ab63e3c1a79f6aaa" + sha256: "584b782710e116637aca9b5297eca9cab711edd86992ce4c2817fd40726b37b4" url: "https://pub.dev" source: hosted - version: "0.34.3" + version: "0.34.4" stream_channel: dependency: transitive description: diff --git a/examples/vgv_best_practices/pubspec.lock b/examples/vgv_best_practices/pubspec.lock index abc0c80c..945676c2 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.34.3" + version: "0.34.4" state_beacon_core: dependency: transitive description: name: state_beacon_core - sha256: "2a8352da89c3698da7df88c463c975fb871409100ca5e302ab63e3c1a79f6aaa" + sha256: "584b782710e116637aca9b5297eca9cab711edd86992ce4c2817fd40726b37b4" url: "https://pub.dev" source: hosted - version: "0.34.3" + version: "0.34.4" stream_channel: dependency: transitive description: diff --git a/packages/state_beacon/CHANGELOG.md b/packages/state_beacon/CHANGELOG.md index 8f8791ef..4084032e 100644 --- a/packages/state_beacon/CHANGELOG.md +++ b/packages/state_beacon/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.34.4 + +- Internal refactor + # 0.34.3 - [Feat] App `map` to chaining methods diff --git a/packages/state_beacon/README.md b/packages/state_beacon/README.md index 732aa9bb..354ba533 100644 --- a/packages/state_beacon/README.md +++ b/packages/state_beacon/README.md @@ -749,7 +749,7 @@ final searchQuery = Beacon.writable('').filter(filter: (prev, next) => next.leng ``` > [!IMPORTANT] -> When chaining beacons, all writes made to the returned beacon will be re-routed to the first beacon in the chain. +> When chaining beacons, all writes made to the returned beacon will be re-routed to the first writable beacon in the chain. It is recommended to mutate the source beacons directly. ```dart const k500ms = Duration(milliseconds: 500); @@ -831,7 +831,7 @@ await expectLater(beacon.stream, emitsInOrder([1, 2, 4])); ``` > [!NOTE] -> When `map` returns a different type, writes to the returned beacon will not be re-routed to the original beacon. In the example below, writes to `filteredBeacon` will NOT be re-routed to `count` because `map` returns a `String` and `count` holds an `int`. +> When `map` returns a different type, writes to the returned beacon will not be re-routed to the original beacon. In the example below, writes to `filteredBeacon` will NOT be re-routed to `count` because `map` returns a `String`; which means the type of the returned beacon is FilteredBeacon and `count` holds an `int`. ```dart final count = Beacon.writable(0); diff --git a/packages/state_beacon/pubspec.yaml b/packages/state_beacon/pubspec.yaml index b2cf44b2..7e733da2 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.34.3 +version: 0.34.4 repository: https://github.com/jinyus/dart_beacon environment: @@ -10,7 +10,7 @@ environment: dependencies: flutter: sdk: flutter - state_beacon_core: ^0.34.3 + state_beacon_core: ^0.34.4 dev_dependencies: flutter_lints: ^3.0.0 diff --git a/packages/state_beacon_core/CHANGELOG.md b/packages/state_beacon_core/CHANGELOG.md index 8f8791ef..4084032e 100644 --- a/packages/state_beacon_core/CHANGELOG.md +++ b/packages/state_beacon_core/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.34.4 + +- Internal refactor + # 0.34.3 - [Feat] App `map` to chaining methods diff --git a/packages/state_beacon_core/README.md b/packages/state_beacon_core/README.md index 2d2ce5b1..e81cd22a 100644 --- a/packages/state_beacon_core/README.md +++ b/packages/state_beacon_core/README.md @@ -18,7 +18,7 @@ Flutter web demo([source](https://github.com/jinyus/dart_beacon/tree/main/exampl ## Installation ```bash -dart pub add state_beacon_core +dart pub add state_beacon ``` ## Usage @@ -117,7 +117,6 @@ NB: Create the file if it doesn't exist. - [optimistic updates](#asyncvaluetrycatch): Update the value optimistically when using tryCatch. - [Beacon.family](#beaconfamily): Create and manage a family of related beacons. - [Extension Methods](#extensions): Additional methods for beacons that can be chained. - - [stream](#mybeaconstream): Obtain a stream from a beacon, enabling integration with stream-based APIs and libraries. - [wrap](#mywritablewrapanybeacon): Wraps an existing beacon and consumes its values - [ingest](#mywritableingestanystream): Wraps any stream and consumes its values @@ -746,7 +745,7 @@ final searchQuery = Beacon.writable('').filter(filter: (prev, next) => next.leng ``` > [!IMPORTANT] -> When chaining beacons, all writes made to the returned beacon will be re-routed to the first beacon in the chain. +> When chaining beacons, all writes made to the returned beacon will be re-routed to the first writable beacon in the chain. It is recommended to mutate the source beacons directly. ```dart const k500ms = Duration(milliseconds: 500); @@ -828,7 +827,7 @@ await expectLater(beacon.stream, emitsInOrder([1, 2, 4])); ``` > [!NOTE] -> When `map` returns a different type, writes to the returned beacon will not be re-routed to the original beacon. In the example below, writes to `filteredBeacon` will NOT be re-routed to `count` because `map` returns a `String` and `count` holds an `int`. +> When `map` returns a different type, writes to the returned beacon will not be re-routed to the original beacon. In the example below, writes to `filteredBeacon` will NOT be re-routed to `count` because `map` returns a `String`; which means the type of the returned beacon is FilteredBeacon and `count` holds an `int`. ```dart final count = Beacon.writable(0); diff --git a/packages/state_beacon_core/pubspec.yaml b/packages/state_beacon_core/pubspec.yaml index 2c5c1fef..698299f7 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.34.3 +version: 0.34.4 repository: https://github.com/jinyus/dart_beacon environment: