Peace of mind from prototype to production
pipe_through
:params
option of the Socket constructor--database mongodb
when generating new appsbinary_id
and migration
configuration for modelsmix phoenix.routes
connect/2
helper for test UserSocket handlersstruct_url/0
in the endpoint that returns the URL as struct for further manipulationURI
structs to be given to generated url/1
and path/2
helperspipe_through
not respecting halting when piping through mulitple pipelinesSee these 0.16.x
to 0.17.0
upgrade instructions to bring your existing apps up to speed.
check_origin
and force_ssl
to be config in transports and fallback to endpoint configcheck_origin
failsrender_errors: [default_format: "html"]
is deprecated in favor of render_errors: [accepts: ["html"]]
get_format/1
to access the negotiated format.subscribe_and_join
. For example, subscribe_and_join(MyChannel, "my_topic")
should now become socket() |> subscribe_and_join(MyChannel, "my_topic")
or socket("user:id", %{user_id: 13}) |> subscribe_and_join(MyChannel, "my_topic")
.See these 0.15.x
to 0.16.0
upgrade instructions to bring your existing apps up to speed.
sass-brunch
dependencyforce_ssl
supportphoenix.gen.*
tasks templates to be customized by the target application by placing copies at priv/template/phoenix.gen.*
mix phoenix.gen.model Comment comment post_id:references:posts
mix phoenix.gen.secret
put_secure_browser_headers/2
and use it by default in the browser pipelinePhoenix.Token
for easy signing and verification of tokensconfig :phoenix, :gzippable_exts, ~w(.txt .html .js .css)
and so onjsonp/3
function has been removed in favor of the plug :allow_jsonp
controller_template/1
has been renamed to view_template/1
phoenix_html ~> 2.0
which includes its own phoenix_html.js
version:origins
transport option has been renamed to :check_origin
render_one
and render_many
no longer inflect the view module from the model in favor of explicitly passing the viewsocket.connect()
instead of an option on the constructor.connect/2
on the server to wire up default channel assigns.chan
has been renamed to channel
, for example socket.channel("some:topic")
See these 0.14.x
to 0.15.0
upgrade instructions to bring your existing apps up to speed.
Phoenix.Socket
behaviour that allows socket authentication, termination, and default channel socket assignssocket
mounts have been moved from the Router to the Endpointhandle_out
callbacks now require explicit event intercept for callback to be invoked, with Phoenix.Channel.intercept/1
Phoenix.LongPoller
has been renamed to Phoenix.LongPoll
See these 0.13.x
to 0.14.0
upgrade instructions to bring your existing apps up to speed.
jsonp/2
for handling JSONP responsesforward
macro to forward a requests to a Plug, invoking the pipelinelogger
option to Phoenix.Socket
, now uses three arguments, ie: logger: (kind, msg, data) => { console.log(
${kind}: ${msg}, data) }
plug :action
is now called automatically:format
option in :render_errors
has been renamed to :default_format
web/templates/layout/application.html.eex
has been renamed to app.html.eex