v0.17.0
版本发布时间: 2015-08-19 17:05:41
phoenixframework/phoenix最新发布版本:v1.5.3(2020-06-26 19:06:09)
See these 0.16.x
to 0.17.0
upgrade instructions to bring your existing apps up to speed.
- Enhancements
- [Endpoint] Allow
check_origin
andforce_ssl
to be config in transports and fallback to endpoint config - [Transport] Log when
check_origin
fails
- [Endpoint] Allow
- Bug fixes
- [Mix] Properly humanize names in the generator
- Deprecations
- [Endpoint]
render_errors: [default_format: "html"]
is deprecated in favor ofrender_errors: [accepts: ["html"]]
- [Endpoint]
- Backward incompatible changes
- [Controller] The "format" param for overriding the accept header has been renamed to "_format" and is no longer injected into the params when parsing the Accept headers. Use
get_format/1
to access the negotiated format. - [ChannelTest] In order to test channels, one must now explicitly create a socket and pass it to
subscribe_and_join
. For example,subscribe_and_join(MyChannel, "my_topic")
should now becomesocket() |> subscribe_and_join(MyChannel, "my_topic")
orsocket("user:id", %{user_id: 13}) |> subscribe_and_join(MyChannel, "my_topic")
.
- [Controller] The "format" param for overriding the accept header has been renamed to "_format" and is no longer injected into the params when parsing the Accept headers. Use