Skip to content

Commit 83c8ace

Browse files
committed
Bump minor version.
1 parent 66d4828 commit 83c8ace

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

context/migration.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,3 +309,9 @@ The new approach provides:
309309
- Simpler ID management.
310310
- Better controller-based API.
311311
- More explicit worker lifecycle management.
312+
313+
### Connection State Handling
314+
315+
State has moved from `connection.state` to `supervisor_controller.state`. Monitors receive `supervisor_controller` objects instead of `connection` objects, and access state via `supervisor_controller.state[:name]` instead of `connection.state[:name]`.
316+
317+
By default, the `Supervised` module automatically includes the service name in state via `supervisor_worker_state`. Override `supervisor_worker_state` in your service environment to customize the state.

lib/async/service/supervisor/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module Async
99
module Service
1010
# @namespace
1111
module Supervisor
12-
VERSION = "0.10.1"
12+
VERSION = "0.11.0"
1313
end
1414
end
1515
end

readme.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ Please see the [project documentation](https://socketry.github.io/async-service-
2828

2929
Please see the [project releases](https://socketry.github.io/async-service-supervisor/releases/index) for all releases.
3030

31+
### v0.11.0
32+
33+
- Add `state` attribute to `SupervisorController` to store per-worker metadata (e.g., service name).
34+
- Add `state` parameter to `Worker#initialize` to allow workers to provide state during registration.
35+
- State is now accessible via `supervisor_controller.state` instead of `connection.state` (as it was in `Async::Container::Supervisor`).
36+
3137
### v0.10.0
3238

3339
- Serialize `register`/`remove` and `check!` operations in `MemoryMonitor` to prevent race conditions.
@@ -71,10 +77,6 @@ Please see the [project releases](https://socketry.github.io/async-service-super
7177

7278
- Add `async:container:supervisor:reload` command to restart the container (blue/green deployment).
7379

74-
### v0.1.0
75-
76-
- Initial implementation.
77-
7880
## Contributing
7981

8082
We welcome contributions to this project.

releases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Releases
22

3-
## Unreleased
3+
## v0.11.0
44

55
- Add `state` attribute to `SupervisorController` to store per-worker metadata (e.g., service name).
66
- Add `state` parameter to `Worker#initialize` to allow workers to provide state during registration.

0 commit comments

Comments
 (0)