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