Improved
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