v0.2.0
Frequenz Dispatch Client Library Release Notes
Summary
This release contains a few breaking changes that were required to enhance the
API.
Upgrading
- The
Dispatchclass is now a frozen dataclass, meaning that it is immutable. Modifications can still be done usingreplace:dispatch = replace(dispatch, start_time=new_start_time). - The
Client.update()method now requires named parameters. Client.update()no longer accepts changes to thetypeanddry_runfields.
New Features
- A new module
frequenz.client.dispatch.testhas been added, providing a fake Service and Client as well as aDispatchGeneratorto generateDispatchinstances filled with random data. - The
DispatchGenerator.generate_dispatchmethod now accepts amicrogrid_idparameter to generateDispatchinstances with a specific microgrid ID. - The
Client.create()method now returns the newly createdDispatchobject.
What's Changed
- Apply missing upgrade-step after repo-config update by @Marenz in #20
- Bump grpc-stubs from 1.53.0.2 to 1.53.0.5 by @dependabot in #23
- Bump the optional group with 7 updates by @dependabot in #24
- Downgrade pytest as release was yanked by @Marenz in #25
- Make test classes available by @Marenz in #21
- Useful additions for testing by @Marenz in #26
- Fix the Python package name by @llucax in #27
- Bump nox from 2023.4.22 to 2024.3.2 by @dependabot in #30
- Bump the optional group with 11 updates by @dependabot in #31
- Make
Dispatchclass frozen by @Marenz in #32 - Make
Client.updaterequire named parameters by @Marenz in #34 - Disallow updating
typeanddry_runby @Marenz in #35 - Use client-common v0.1.0 and api-dispatch v0.13.0 by @Marenz in #36
- Enhancements to the interface and bugfixes by @Marenz in #37
- Prepare release notes by @Marenz in #38
- Update api-reference in docs by @Marenz in #39
Full Changelog: v0.1.0...v0.2.0