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