phoenix v1.6.0-dev Release Notes

  • ✨ Enhancements

    • [Controller] Do not create compile-time dependency for action_fallback
    • [Endpoint] Allow custom error response from socket handler
    • [Endpoint] Do not require a pubsub server in the socket (only inside channels)
    • [mix phx.gen.auth] Add mix phx.gen.auth generator
    • [mix phx.gen.context] Support enum types and the redact option when declaring fields
    • [mix] Update mix to require Elixir v1.11 and use the new config/runtime.exs
    • [mix] Add description to Ecto telemetry metrics
    • [mix] Use Ecto.Adapters.SQL.Sandbox.start_owner!/2 in generators - this approach provides proper shutdown semantics for apps using LiveView and Presence
    • [mix] Add --install and --no-install options to
    • [mix] Add --database sqlite3 option to
    • [View] Extracted Phoenix.View into its own project to facilitate reuse
    • [mix] Remove usage of Sass

    JavaScript Client Enhancements

    • Add new replaceTransport function to socket with extended onError API to allow simplified LongPoll fallback
    • Fire each event in a separate task for the LongPoll transport to fix ordering
    • Optimize presence syncing

    🐛 Bug fixes

    • [Controller] Return normalized paths in current_path/1 and current_path/2
    • [mix] Fix a bug where tests with utc_datetime and boolean fields did not pass out of the box

    🛠 JavaScript Client Bug fixes

    • Bind to beforeunload instead of unload to solve Firefox connection issues
    • Fix presence onJoin including current metadata in new presence

    🗄 Deprecations

    • [Endpoint] Phoenix now requires Cowboy v2.7+
    • [View] @view_module is deprecated in favor of Phoenix.Controller.view_module/1 and @view_template is deprecated in favor of Phoenix.Controller.view_template/1