Skip to content

v0.7.0

Choose a tag to compare

@github-actions github-actions released this 24 Mar 13:56
· 139 commits to v0.x.x since this release
v0.7.0
af4f0b5

Frequenz Microgrid API Client Release Notes

Upgrading

  • Now component and microgrid IDs are wrapped in new classes: ComponentId and MicrogridId respectively.

    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 int IDs with the appropriate class: 0 -> ComponentId(0) / MicrogridId(0).

What's Changed

Full Changelog: v0.6.1...v0.7.0