Peace of mind from prototype to production
See these 1.1.x
to 1.2.x
upgrade instructions to bring your existing apps up to speed.
lib/
directory is now code reloaded by default along with web/
in development:phoenix_channel_join
instrumentation hookrender_template/2
clauses for views to allow overriding render/2
clauses before rendering templates:path
and :pattern
options to allow wildcard template inclusion as well as customized template directory locations[Endpoint] Generated subscribe/3
and unsubscribe/2
clauses have been deprecated in favor of subscribe/2
and unsubscribe/1
which uses the caller's pid
[PubSub] Phoenix.PubSub.subscribe/3
and Phoenix.PubSub.unsubscribe/2
have been deprecated in favor of subscribe/2
and unsubscribe/1
which uses the caller's pid
[Watcher] Using the :root
endpoint configuration for watchers is deprecated. Pass the :cd option at the end of your watcher argument list in config/dev.exs. For example:
watchers: [node: ["node_modules/brunch/bin/brunch", "watch", "--stdin",
cd: Path.expand("../", __DIR__)]]
template_not_found
Presence.syncState
and Presence.syncDiff
now return a copy of the state instead of mutating itSee these 1.1.x
to 1.2.x
upgrade instructions to bring your existing apps up to speed.
:path
and :pattern
options to allow wildcard template inclusion as well as customized template directory locations[Watcher] Using the :root
endpoint configuration for watchers is deprecated. Pass the :cd option at the end of your watcher argument list in config/dev.exs. For example:
watchers: [node: ["node_modules/brunch/bin/brunch", "watch", "--stdin",
cd: Path.expand("../", __DIR__)]]
See these 1.1.x
to 1.2.0
upgrade instructions to bring your existing apps up to speed.
lib/
directory is now code reloaded by default along with web/
in developmentsubscribe/2
and unsubscribe/2
to handle external topic subscriptions for a socketrender_template/2
clauses for views to allow overriding render/2
clauses before rendering templates:phoenix_channel_join
instrumentation hooksubscribe/3
and unsubscribe/2
clauses have been deprecated in favor of subscribe/2
and unsubscribe/1
which uses the caller's pidPhoenix.PubSub.subscribe/3
and Phoenix.PubSub.unsubscribe/2
have been deprecated in favor of subscribe/2
and unsubscribe/1
which uses the caller's pid--binary-id
option when generating scaffold--no-ecto
is passedsetTimeout
scoping issue for BabelSee these optional 1.1.1
to 1.1.2
upgrade instructions to bring your existing apps up to speed.
refute_push
and refute_reply
phoenix
and phoenix_html
js deps--no-html
flag on phoenix.new
task failing to generate ErrorHelpers moduleSee these 1.0.x
to 1.1.0
upgrade instructions to bring your existing apps up to speed.
match
macrophoenix.digest
task now digests asset urls in stylesheets automaticallyPhoenix.Channel.reply/3
to reply asynchronously to a channel pushcode_change/3
is now supported to upgrade channel serverscheck_origin
now supports wildcard hosts, ie check_origin: ["//*.example.com"]
check_origin
treats invalid origin hosts as missing for misbehaving clientsPhoenix.Endpoint.server?/2
to check if webserver has been configured to startassert_error_sent
to assert an error was wrapped and sent with a given status@inner
assign has been removed in favor of explicit rendering with render/3
and the new @view_module
and view_template
assigns, for example: <%= @inner %>
is replaced by <%= render @view_module, @view_template, assigns %>
bypass_through
to pass a connection through a Router and pipelines while bypassing route dispatch.