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_joininstrumentation hook - [View] Generate private
render_template/2clauses for views to allow overridingrender/2clauses before rendering templates - [View] Add
:pathand:patternoptions to allow wildcard template inclusion as well as customized template directory locations
- [CodeReloader] The
- Deprecations
-
[Endpoint] Generated
subscribe/3andunsubscribe/2clauses have been deprecated in favor ofsubscribe/2andunsubscribe/1which uses the caller's pid -
[PubSub]
Phoenix.PubSub.subscribe/3andPhoenix.PubSub.unsubscribe/2have been deprecated in favor ofsubscribe/2andunsubscribe/1which uses the caller's pid -
[Watcher] Using the
:rootendpoint 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.syncStateandPresence.syncDiffnow 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
:pathand:patternoptions to allow wildcard template inclusion as well as customized template directory locations
- [View] Add
- Deprecations
-
[Watcher] Using the
:rootendpoint 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/2andunsubscribe/2to handle external topic subscriptions for a socket - [View] Generate private
render_template/2clauses for views to allow overridingrender/2clauses before rendering templates - [Channel] Add
:phoenix_channel_joininstrumentation hook
- [CodeReloader] The
- JavaScript client enhancements
- Add Presence object for syncing presence state between client and server
- Deprecations
- [Endpoint] Generated
subscribe/3andunsubscribe/2clauses have been deprecated in favor ofsubscribe/2andunsubscribe/1which uses the caller's pid - [PubSub]
Phoenix.PubSub.subscribe/3andPhoenix.PubSub.unsubscribe/2have been deprecated in favor ofsubscribe/2andunsubscribe/1which uses the caller's pid
- [Endpoint] Generated
v1.1.3
- Enhancements
- [phoenix.gen] Support
--binary-idoption when generating scaffold - [phoenix.new] Don't include Ecto gettext translations if
--no-ectois passed
- [phoenix.gen] Support
- JavaScript client bug fixes
- Ensure exports variable does not leak
- Fix
setTimeoutscoping 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_pushandrefute_reply - [Router] Improve error messages when calling Router helpers without matching clauses
- [phoenix.new] Use brunch 2.1.1 npm integration to load
phoenixandphoenix_htmljs deps
v1.1.1
- Bug fixes
- Fix
--no-htmlflag onphoenix.newtask 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
matchmacro - [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.digesttask now digests asset urls in stylesheets automatically - [Channel] Add
Phoenix.Channel.reply/3to reply asynchronously to a channel push - [Channel]
code_change/3is now supported to upgrade channel servers - [Endpoint]
check_originnow supports wildcard hosts, iecheck_origin: ["//*.example.com"] - [Endpoint]
check_origintreats invalid origin hosts as missing for misbehaving clients - [Endpoint] Add
Phoenix.Endpoint.server?/2to check if webserver has been configured to start - [ConnTest] Add
assert_error_sentto 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
@innerassign has been removed in favor of explicit rendering withrender/3and the new@view_moduleandview_templateassigns, for example:<%= @inner %>is replaced by<%= render @view_module, @view_template, assigns %>
- [View] The
v1.0.4
- Enhancements
- [ConnTest] Add
bypass_throughto 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