Skip to content

chore(main): release phoenix-channels-python-client 0.3.0 - #67

Merged
AlexanderZ-Band merged 1 commit into
mainfrom
release-please--branches--main--components--phoenix-channels-python-client
Oct 12, 2026
Merged

AlexanderZ-Band merged 1 commit into
mainfrom
release-please--branches--main--components--phoenix-channels-python-client

Conversation

@band-release-please-public

@band-release-please-public band-release-please-public Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

🤖 I have created a release beep boop

0.3.0 (2026-10-12)

⚠ BREAKING CHANGES

  • client: drop a topic the server closes, and reject lifecycle event handlers
  • client: phx_error and phx_close no longer reach a topic's message handler or event handlers, and add_event_handler raises ValueError for PHXEvent.error and PHXEvent.close. Use on_topic_lost and is_topic_joined instead.
  • client: An invalid ReconnectPolicy now raises pydantic.ValidationError (a ValueError) when the policy is built, instead of "Invalid reconnect policy configuration" when the client is built. Unknown ReconnectPolicy fields raise. dataclasses.replace, asdict and fields no longer work on ReconnectPolicy or the PHX messages: use model_dump() instead of asdict, and derive a policy with ReconnectPolicy.model_validate(policy.model_dump() | {...}), because model_copy(update=...) skips validation. Positional construction and positional case patterns are gone. PHXChannelsClient.reconnect_policy_is_invalid is removed. ClientState, PhoenixChannelsProtocolVersion and TopicProcessingState are now StrEnums, so a member equals its string value (ClientState.CONNECTED == "connected") and str() returns the value instead of the member name. pydantic is a new runtime dependency.

Features

  • client: add on_topic_lost and is_topic_joined (62c376e)
  • client: model the reconnect policy and messages with Pydantic (6d66140)

Bug Fixes

  • client: close, reconnect and rejoin edge cases around shutdown (#61) (7c1d69e)
  • client: drop a topic the server closes, and reject lifecycle event handlers (62c376e)
  • client: keep rejoining topics when a draining callback is cancelled or fails (#59) (e1ad092)
  • client: let a rejoin drain finish the held message and start no other (#66) (57db8f5)
  • client: rejoin a crashed channel while the socket stays up (62c376e)
  • client: retry a timed-out rejoin on the live socket (62c376e)
  • client: stop logging "never retrieved" for a rejected join (#57) (3789853)

Code Refactoring

  • client: split oversized functions and name protocol constants (#63) (bbb96de)

Tests

  • client: share fixtures and one fake server for both protocols (#60) (f270f96)

Continuous Integration

  • deps: bump actions/checkout from 6 to 7 (#45) (173848d)
  • deps: bump actions/setup-python from 6 to 7 (#49) (8be656f)
  • deps: bump pypa/gh-action-pypi-publish from 1.14.1 to 1.14.2 (#52) (6d69260)

This PR was generated with Release Please. See documentation.

@band-release-please-public
band-release-please-public Bot force-pushed the release-please--branches--main--components--phoenix-channels-python-client branch 3 times, most recently from d33f809 to f4dd9b3 Compare October 12, 2026 11:33
@band-release-please-public band-release-please-public Bot changed the title chore(main): release phoenix-channels-python-client 0.2.6 chore(main): release phoenix-channels-python-client 0.3.0 Oct 12, 2026
@band-release-please-public
band-release-please-public Bot force-pushed the release-please--branches--main--components--phoenix-channels-python-client branch 6 times, most recently from 659576e to f965ee6 Compare October 12, 2026 12:23
@band-release-please-public
band-release-please-public Bot force-pushed the release-please--branches--main--components--phoenix-channels-python-client branch from f965ee6 to 82c6c2d Compare October 12, 2026 13:08
@AlexanderZ-Band
AlexanderZ-Band enabled auto-merge (squash) October 12, 2026 13:09
@AlexanderZ-Band
AlexanderZ-Band merged commit 71c8caf into main Oct 12, 2026
12 checks passed
@AlexanderZ-Band
AlexanderZ-Band deleted the release-please--branches--main--components--phoenix-channels-python-client branch October 12, 2026 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant