See these 1.0.x
to 1.1.0
upgrade instructions to bring your existing apps up to speed.
- Enhancements
- [Router] Enable defining routes for custom http methods with a new
match
macro - [CodeReloader] The socket transports now trigger the code reloader when enabled for external clients that only connect to channels without trigger a recompile through the normal page request.
- [phoenix.digest] The
phoenix.digest
task now digests asset urls in stylesheets automatically - [Channel] Add
Phoenix.Channel.reply/3
to reply asynchronously to a channel push - [Channel]
code_change/3
is now supported to upgrade channel servers - [Endpoint]
check_origin
now supports wildcard hosts, iecheck_origin: ["//*.example.com"]
- [Endpoint]
check_origin
treats invalid origin hosts as missing for misbehaving clients - [Endpoint] Add
Phoenix.Endpoint.server?/2
to check if webserver has been configured to start - [ConnTest] Add
assert_error_sent
to assert an error was wrapped and sent with a given status
- [Router] Enable defining routes for custom http methods with a new
- Backward incompatible changes
- [View] The
@inner
assign has been removed in favor of explicit rendering withrender/3
and the new@view_module
andview_template
assigns, for example:<%= @inner %>
is replaced by<%= render @view_module, @view_template, assigns %>
- [View] The