Repository navigation
Labels
scope:breaking-changeBreaking change, users will need to update their codetype:enhancementNew feature or enhancement visitble to users
Milestone
Description
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:
- Remove the deprecated
limitargument ofBroadcastChannel()andBroadcastSender.subscribe(), renamed tobuffer_sizein v1.13 (Rename thelimitargument ofBroadcastChannel()andsubscribe()tobuffer_size#579). - Make every argument of
BroadcastChannel()andBroadcastSender.subscribe()exceptnamekeyword-only (resend_latest,warn_on_overflow;buffer_sizealready is since Rename thelimitargument ofBroadcastChannel()andsubscribe()tobuffer_size#579). Not deprecated first, see Rename thelimitargument ofBroadcastChannel()andsubscribe()tobuffer_size#579. - Remove the deprecated
Timer, renamed toMonotonicTimerin v1.13 (RenameTimertoMonotonicTimer#582). - Remove the deprecated
experimentalsymbols:GroupingLatestValueCacheand its type variables,RelaySender(DeprecateGroupingLatestValueCacheandRelaySender#578),OptionalReceiver, and the old names ofWithPreviousandNopReceiver(PromoteWithPreviousandNopReceiverout ofexperimental#577).
#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.
Reacted by Christoph Wasicki
Sub-issues
Collapse Sub-issuesSub-issues
Loading 4 sub-issues
Metadata
Metadata
Assignees
Labels
scope:breaking-changeBreaking change, users will need to update their codetype:enhancementNew feature or enhancement visitble to users
Type
Fields
Priority
None yet
Effort
None yet
Activity
llucax commentedon Feb 14, 2025
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.llucax commentedon Nov 4, 2026
Following the discussion on #565, I want to promote
Pipeout ofexperimentalin v2, not in v1.13, so the API move makes its behavior changes explicit.frequenz.channels.experimental.Pipeimplementation unchanged in 1.x.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
SenderErrorby default. Itsclose_pipe_on_send_error=Falseoption 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.
async close()methods toaclose()#378Receiver.close()abstract #580WithPreviousandNopReceiverout ofexperimental#577GroupingLatestValueCacheandRelaySender#578limitargument ofBroadcastChannel()andsubscribe()tobuffer_size#579TimertoMonotonicTimer#582Pipetofrequenz.channelsin v2 and deprecate the experimental one #583Broadcastwith@deprecatedinstead of an alias to the private_Broadcast#586Promote `NopReceiver` and `WithPrevious` out of `experimental` (frequ…
NoReceiversErroraTransientSenderErrorand rename it toSenderHasNoReceiversError#599Add opt-in blocking sends to `BroadcastChannel` (frequenz-floss#591)
Merge `v1.x.x` into `v2.x.x` (#605)
Remove what v1.13.0 deprecated (#606)