Releases: phoenixframework/phoenix
v1.5.3
v1.2.1
- Enhancements
- [Router] Improve errors for invalid route paths
- [Plug] Include new development error pages
- Bug Fixes
- [Endpoint] Fixed issue where endpoint would fail to code reload on next request after an endpoint compilation error
v1.2.0
1.2.0 (2016-6-23)
See these 1.1.x
to 1.2.x
upgrade instructions to bring your existing apps up to speed.
- Enhancements
- [CodeReloader] The
lib/
directory is now code reloaded by default along withweb/
in development - [Channel] Add
:phoenix_channel_join
instrumentation hook - [View] Generate private
render_template/2
clauses for views to allow overridingrender/2
clauses before rendering templates - [View] Add
:path
and:pattern
options to allow wildcard template inclusion as well as customized template directory locations
- [CodeReloader] The
- Deprecations
-
[Endpoint] Generated
subscribe/3
andunsubscribe/2
clauses have been deprecated in favor ofsubscribe/2
andunsubscribe/1
which uses the caller's pid -
[PubSub]
Phoenix.PubSub.subscribe/3
andPhoenix.PubSub.unsubscribe/2
have been deprecated in favor ofsubscribe/2
andunsubscribe/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__)]]
-
- Bug Fixes
- [Template] Prevent infinite call stack when rendering a non-existent template from
template_not_found
- [Template] Prevent infinite call stack when rendering a non-existent template from
- JavaScript client enhancements
- Add Presence object for syncing presence state between client and server
- Use return value of channel onMessage callback for specialized message transformations before dispatching to the channel
- JavaScript client backward incompatible changes
Presence.syncState
andPresence.syncDiff
now return a copy of the state instead of mutating it
v1.2.0-rc.1
1.2.0-rc.1 (2016-05-25)
See these 1.1.x
to 1.2.x
upgrade instructions to bring your existing apps up to speed.
- Enhancements
- [View] Add
:path
and:pattern
options to allow wildcard template inclusion as well as customized template directory locations
- [View] Add
- Deprecations
-
[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__)]]
-
v1.2.0-rc.0
See these 1.1.x
to 1.2.0
upgrade instructions to bring your existing apps up to speed.
- Enhancements
- [CodeReloader] The
lib/
directory is now code reloaded by default along withweb/
in development - [Channel] Add
subscribe/2
andunsubscribe/2
to handle external topic subscriptions for a socket - [View] Generate private
render_template/2
clauses for views to allow overridingrender/2
clauses before rendering templates - [Channel] Add
:phoenix_channel_join
instrumentation hook
- [CodeReloader] The
- JavaScript client enhancements
- Add Presence object for syncing presence state between client and server
- Deprecations
- [Endpoint] Generated
subscribe/3
andunsubscribe/2
clauses have been deprecated in favor ofsubscribe/2
andunsubscribe/1
which uses the caller's pid - [PubSub]
Phoenix.PubSub.subscribe/3
andPhoenix.PubSub.unsubscribe/2
have been deprecated in favor ofsubscribe/2
andunsubscribe/1
which uses the caller's pid
- [Endpoint] Generated
v1.1.3
- Enhancements
- [phoenix.gen] Support
--binary-id
option when generating scaffold - [phoenix.new] Don't include Ecto gettext translations if
--no-ecto
is passed
- [phoenix.gen] Support
- JavaScript client bug fixes
- Ensure exports variable does not leak
- Fix
setTimeout
scoping issue for Babel
v1.1.2
See these optional 1.1.1
to 1.1.2
upgrade instructions to bring your existing apps up to speed.
- Enhancements
- [Cowboy] Improve log report for errors from the UserSocket
- [ChannelTest] Add
refute_push
andrefute_reply
- [Router] Improve error messages when calling Router helpers without matching clauses
- [phoenix.new] Use brunch 2.1.1 npm integration to load
phoenix
andphoenix_html
js deps
v1.1.1
- Bug fixes
- Fix
--no-html
flag onphoenix.new
task failing to generate ErrorHelpers module
- Fix
v1.1.0
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
v1.0.4
- Enhancements
- [ConnTest] Add
bypass_through
to pass a connection through a Router and pipelines while bypassing route dispatch.
- [ConnTest] Add
- Bug fixes
- [LongPoll] force application/json content-type to fix blank JSON bodies on older IE clients using xdomain