Skip to content

Commit d304163

Browse files
authored
chore: Bump version (#8)
## Description Waiting for #7 to go in, but then would like to merge & release.
1 parent 437cf43 commit d304163

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# v0.3.0 - 2025-07-24
2+
3+
Features:
4+
- Added `Watchable::has_watchers(&self) -> bool`
5+
- Added `Watcher::is_connected(&self) -> bool`
6+
7+
Breaking Changes:
8+
- `Watcher::get` now takes `&mut self` instead of `&self` and returns `Self::Value` instead of `Result<Self::Value, Disconnected>`.
9+
It will now update the watcher to the latest value internally, so a call to `Watcher::get` in between two `Watcher::poll_updated` calls will potentially have an effect it didn't have before.
10+
It now also returns the last known state intsead of potentially returning disconnected.
11+
If you want to know about the disconnected state, use `Watcher::is_connected`.
12+
- `InitializedFut` now implements `Future<Output = T>` instead of `Future<Output = Result<T, Disconnected>>`.
13+
Should the underlying watchable disconnect, the future will now be pending forever.

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "n0-watcher"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
edition = "2021"
55
readme = "README.md"
66
description = "async watchable values"

0 commit comments

Comments
 (0)