All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
-
BREAKING: Configuration now takes a path for
render_service_path
instead of a file.Before:
render_service_path = "assets/js/server.js" supervisor(ReactRender, [render_service_path: render_service_path])
After:
render_service_path = "assets" supervisor(ReactRender, [render_service_path: render_service_path])
-
BREAKING: Use
assets/render_server.js
as the main render server and configuration file. Refer to "Getting Started with Phoenix" section inREADME.md
for details. -
React/ReactDOM are now peer dependencies
- Ability to configure Babel plugins
- Render unicode characters properly
- Make sure server uses the correct babel preset
-
BREAKING: ReactRender.render/2 now returns
{:safe, html}
so that calls toraw
in phoenix are no longer needed -
BREAKING: Configuration now takes a keyword list.
Before:
render_service_path = "assets/js/server.js" worker(ReactRender, [render_service_path])
After:
render_service_path = "assets/js/server.js" supervisor(ReactRender, [render_service_path: render_service_path])
- ReactRender is now a supervisor
pool_size
option to control the number of renderers
- ReactRender.get_html/2
- ReactRender.render/2