Skip to content

Bump phoenix_pubsub from 2.3.0 to 2.4.1 - #141

Merged
nelsonic merged 1 commit into
mainfrom
dependabot/hex/phoenix_pubsub-2.4.1
Nov 16, 2026
Merged

nelsonic merged 1 commit into
mainfrom
dependabot/hex/phoenix_pubsub-2.4.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 1, 2026

Copy link
Copy Markdown
Contributor

Bumps phoenix_pubsub from 2.3.0 to 2.4.1.

Changelog

Sourced from phoenix_pubsub's changelog.

2.4.1 (2026-10-08)

Enhancements

  • Add c:Phoenix.PubSub.Sender.finalize/1 as optional callback

2.4.0 (2026-10-07)

Enhancements

  • Add Phoenix.PubSub.Sender as a successor for custom dispatchers
  • Add Phoenix.PubSub.unsubscribe_sender/3 to selectively remove sender subscriptions

Migrating custom dispatchers

Custom dispatchers and the :metadata subscription option are deprecated in favor of per-subscription senders. Existing dispatchers continue to work, except that subscribing with :metadata in the shape of [atom | term] now raises. That shape is reserved for senders.

To migrate:

  1. Implement the Phoenix.PubSub.Sender behaviour in your delivery module. Its send/4 callback receives one subscriber pid, its metadata, the message, and an accumulator. Move the delivery logic from dispatch/3 into this callback. PubSub handles iterating over subscribers and excluding the originating pid for broadcast_from calls.

  2. Replace metadata: metadata in subscriptions with sender: {MySender, metadata}:

    Phoenix.PubSub.subscribe(MyApp.PubSub, "topic", sender: {MySender, metadata})
  3. Remove custom dispatcher arguments from broadcast calls and remove the :dispatcher option from your PubSub child specification to use the default Phoenix.PubSub dispatcher. Custom dispatchers control delivery themselves and do not automatically invoke senders, so changing subscriptions alone is not sufficient.

  4. Replace unsubscribe_match/3 calls for migrated subscriptions with unsubscribe_sender/3, passing the same sender tuple:

    Phoenix.PubSub.unsubscribe_sender(MyApp.PubSub, "topic", {MySender, metadata})
Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [phoenix_pubsub](https://github.com/phoenixframework/phoenix_pubsub) from 2.3.0 to 2.4.1.
- [Changelog](https://github.com/phoenixframework/phoenix_pubsub/blob/main/CHANGELOG.md)
- [Commits](phoenixframework/phoenix_pubsub@v2.3.0...v2.4.1)

---
updated-dependencies:
- dependency-name: phoenix_pubsub
  dependency-version: 2.4.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file elixir Pull requests that update elixir code labels Nov 1, 2026

@nelsonic nelsonic left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @dependabot 🤖📕👌

@nelsonic
nelsonic merged commit 4ae7543 into main Nov 16, 2026
2 checks passed
@dependabot
dependabot Bot deleted the dependabot/hex/phoenix_pubsub-2.4.1 branch November 16, 2026 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file elixir Pull requests that update elixir code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant