Skip to content

Breaking changes for v2.0 #365

Closed
4 of 4 issues completed
Closed

Description

@llucax

This is a tracking issue to document all breaking changes we want to introduce for v2.0.

Changes with their own issue are tracked as sub-issues. The rest:

#565 (broadcast channel lifecycle fixes) is also part of v2.0, and its new Pipe moves to the top level, with the old one kept in experimental, deprecated (#583).

Anycast is removed in v2.0 with no replacement (#614). Broadcast and the experimental Pipe stay deprecated in v2.0. Removing them moved to #581, together with tick_on_init. A wall clock Timer (#584) isn't a breaking change, so it can come in any v2 minor.

Sub-issues

Sub-issues

4 of 4 Issues completed
Loading 4 sub-issues

Activity

  1. added
    scope:breaking-change
    type:enhancement
    on Jan 16, 2025
  2. added this to the v2.0.0 milestone on Jan 16, 2025
  3. llucax commented on Feb 14, 2025

    @llucax
    ContributorAuthor

    When we have a wall clock timer, I feel the complexity of the monotonic timer can be greatly reduced, as many of the features needed there are just to support using it as a base to construct wall clock timers, so I hope in v2 we can actually remove complexity from the monotonic timer (like start_delay) instead of adding more.

  4. llucax commented on Nov 4, 2026

    @llucax
    ContributorAuthor

    Following the discussion on #565, I want to promote Pipe out of experimental in v2, not in v1.13, so the API move makes its behavior changes explicit.

    • Keep the existing frequenz.channels.experimental.Pipe implementation unchanged in 1.x.
    • Introduce the new implementation in a regular, non-experimental module in 2.x.
    • Retain the old experimental implementation in 2.x as a deprecated compatibility implementation, not an alias to the new one.
    • Make the deprecation warning explain the behavior changes and point to migration documentation, rather than only telling users to change their import.

    In particular, the old implementation leaves its endpoints open when the input ends or a send fails. The new implementation closes its sender on input completion and closes both endpoints on a SenderError by default. Its close_pipe_on_send_error=False option drops a failed message and continues forwarding; it does not restore the old behavior of stopping without closing the endpoints.

    We agreed that breaking changes to this experimental API are acceptable, but keeping the old implementation alongside the new stable API gives users a clearer migration path and lets them choose when to adopt the new ownership and error-handling behavior. The old experimental name should therefore not be removed as part of the v2 cleanup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope:breaking-changetype:enhancement

    Fields

    Priority

    None yet

    Effort

    None yet

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions