Skip to content

Commit b513c89

Browse files
committed
Bump version to 0.4.0
Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
1 parent f6cdd67 commit b513c89

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "frequenz-microgrid"
3-
version = "0.3.0"
3+
version = "0.4.0"
44
edition = "2024"
55
description = "A high-level interface to the Frequenz Microgrid API."
66
repository = "https://github.com/frequenz-floss/frequenz-microgrid-rs"

RELEASE_NOTES.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
# Frequenz Microgrid Release Notes
22

3-
## Summary
4-
5-
<!-- Here goes a general summary of what this release is about -->
6-
73
## Upgrading
84

95
- This updates the component-graph version to 0.5, which treats unhandled component categories as pass-through.
@@ -17,12 +13,11 @@
1713
- The microgrid client now tolerates the API server being absent or returning incomplete data at startup. `MicrogridClientHandle::try_new` establishes the gRPC connection lazily, so it succeeds regardless of whether the server is reachable; transient stream errors are then handled by the existing per-stream retry loop. `LogicalMeterHandle::try_new` (and therefore `Microgrid::try_new`) wraps the entire component-graph setup — listing components, listing connections, and building the graph — in a single retry loop that sleeps 3 seconds between attempts, so applications block waiting for the server and a valid graph instead of exiting with an error.
1814

1915
- `Bounds::combine_parallel`, `Bounds::intersect`, and `Bounds::merge_if_overlapping` are now public, allowing external callers to combine bounds without going through higher-level types.
20-
- Put test utils under a feature gate.
16+
17+
- Expose test utils behind the `test-utils` feature gate.
18+
2119
- Added `MockMicrogridApiClient::augment_electrical_component_bounds`: It captures requests so that these can be used in test cases. Obtain the list of captured requests using `MockMicrogridApiClient::augment_bounds_calls_handle` (also new).
20+
2221
- Added `MockComponent.add_component_bounds`: It allows to add metric bounds to a mock component.
2322

2423
- `LogicalMeterConfig::with_component_graph_config` lets callers pass a custom `ComponentGraphConfig` to the underlying graph builder (e.g. to enable phantom loads in the consumer formula or to flip the meter-vs-device preference for per-category formulas).
25-
26-
## Bug Fixes
27-
28-
<!-- Here goes notable bug fixes that are worth a special mention or explanation -->

0 commit comments

Comments
 (0)