Phoenix.PubSub 2.0 has been released with a more flexible and powerful fastlane mechanism. We use this opportunity to also move Phoenix.PubSub out of the endpoint and explicitly into your supervision tree. To update, you will need to remove or update the {:phoenix_pubsub, "~> 1.x"}
entry in your mix.exs
to at least "2.0".
Then once you start an application, you will get a warning about the :pubsub
key in your endpoint being deprecated. Follow the steps in the warning and you are good to go!
- [Channel] Do not block the channel supervisor on join
- [Controller] Support
:disposition
option insend_download/3
- [Controller] Allow filename encoding to be disabled in
send_download/3
- [Endpoint] Allow named params to be used when defining socket paths
- [Generator] Allow a custom migration module to be given to the migration generator
- [PubSub] Migrate to PubSub 2.0 with a more flexible fastlaning mechanism
- [Testing] Allow a custom list of headers for recycling to be given to
recycle/2
- [Endpoint] The outdated
Phoenix.Endpoint.CowboyAdapter
for Cowboy 1 is deprecated. Please make sure{:plug_cowboy, "~> 2.1"}
or later is listed in yourmix.exs
- [Endpoint]
subscribe
andunsubscribe
via the endpoint is deprecated, please usePhoenix.PubSub
directly instead
Phoenix.PubSub
is now started directly in your application supervision tree
The CHANGELOG for v1.4 releases can be found in the v1.4 branch.