v0.7.0
Frequenz Microgrid API Client Release Notes
Upgrading
-
Now component and microgrid IDs are wrapped in new classes:
ComponentIdandMicrogridIdrespectively.These classes provide type safety and prevent accidental errors by:
- Making it impossible to mix up microgrid and component IDs (equality comparisons between different ID types always return false).
- Preventing accidental math operations on IDs.
- Providing clear string representations for debugging (MID42, CID42).
- Ensuring proper hash behavior in collections.
To migrate you just need to wrap your
intIDs with the appropriate class:0->ComponentId(0)/MicrogridId(0).
What's Changed
- Clear release notes by @shsms in #117
- Bump nox from 2024.10.9 to 2025.2.9 by @dependabot in #119
- Bump types-protobuf from 5.29.1.20241207 to 5.29.1.20250208 by @dependabot in #120
- Bump the required group across 1 directory with 12 updates by @dependabot in #121
- Add ID wrapper classes by @llucax in #122
- Prepare for release v0.7.0 by @llucax in #123
Full Changelog: v0.6.1...v0.7.0