Skip to content

Commit

Permalink
v0.34.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jinyus committed Feb 17, 2024
1 parent 25ac0b6 commit e208f93
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 26 deletions.
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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<String> and `count` holds an `int`.

```dart
final count = Beacon.writable(0);
Expand Down
6 changes: 3 additions & 3 deletions examples/auth_flow/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions examples/flutter_main/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions examples/shopping_cart/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions examples/skeleton/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions examples/vgv_best_practices/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions packages/state_beacon/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.34.4

- Internal refactor

# 0.34.3

- [Feat] App `map` to chaining methods
Expand Down
4 changes: 2 additions & 2 deletions packages/state_beacon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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<String> and `count` holds an `int`.

```dart
final count = Beacon.writable(0);
Expand Down
4 changes: 2 additions & 2 deletions packages/state_beacon/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand Down
4 changes: 4 additions & 0 deletions packages/state_beacon_core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.34.4

- Internal refactor

# 0.34.3

- [Feat] App `map` to chaining methods
Expand Down
7 changes: 3 additions & 4 deletions packages/state_beacon_core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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<String> and `count` holds an `int`.

```dart
final count = Beacon.writable(0);
Expand Down
2 changes: 1 addition & 1 deletion packages/state_beacon_core/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit e208f93

Please sign in to comment.