# react-rails #### Breaking Changes #### New Features #### Deprecation #### Bug Fixes ## 2.4.1 #### Breaking Changes #### New Features - Webpacker gets ES6 components by default #822 - ReactDOM.hydrate() #828 - Documentation updates #830 #### Deprecation #### Bug Fixes - Webpacker local manifest sometimes had double asset_hosts if the dev server was running #834 thanks @joeyparis ## 2.4.0 #### Breaking Changes - (Sprockets) Prebundled React upgraded to 16 #792 - (Sprockets) Addons removed #792 #### New Features #### Deprecation #### Bug Fixes - Coffeescript generator exports correctly #799, #800 - Running detector manually no longer breaks if Turbolinks is not preset #802 ## 2.3.1 #### Breaking Changes - React Deprecations for 15.4, 15.5, 15.6 in preparation for 16 handled in prebundled version #789, #798 #### New Features - Generator now makes modern style `createReactClass`(JS) or `extends React.Component`(ES6, CoffeeScript) code #### Deprecation - Next version will drop the addons option as they are not supported with React 16 - TheRubyRacer's newest version (0.12.3 at time of writing) only supports libV8 (3.16.14.15) which is too old for some new JS features, future versions of this gem will need more modern ExecJS runtimes such as mini_racer (currently on libV8 5.9.x) #### Bug Fixes ## 2.3.0 #### New Features - Webpacker and Webpack 3 support #777 - Update to React 15.6.2 #789 #### Deprecation #### Bug Fixes ## 2.2.1 #### New Features - Support `config.react.server_renderer_directories` in initializers #729 #### Bug Fixes - Fix Railtie watcher to update its timestamp when files change #722 - Don't use `yarn` binstub because webpacker doesn't provide it anymore #717 ## 2.2.0 #### New Features - Improve error handling when components aren't found #704 #### Bug Fixes - Camelize filename when generating for webpack #703 - Include node module boilerplate when generating for webpack #710 - Don't look for non-existent `Turbolinks.EVENTS` #708 ## 2.1.0 (April 18, 2017) #### New Features - Support Rails 5.1 #697 #### Bug Fixes - Fix UJS unmounting by selector #696 ## 2.0.2 (April 13, 2017) #### New Features - Rerun events detection at any time with `ReactRailsUJS.detectEvents()` #693 - Make the NPM version of `react_ujs` match the Rubygem version `2.0.1` was skipped because a bad version of `react_ujs` was published to NPM. ## 2.0.0 (April 13, 2017) #### Breaking Changes - Server rendering loads `server_rendering.js` by default #471 . Upgrade by adding a new file which requires the previous defaults: ```js // app/assets/javascripts/server_rendering.js // = require react-server // = require components ``` #### New Features - Webpacker support: - `react_component` can find components via `require.context` + `ReactRailsUJS.useContext` #678 - Server rendering detects Webpacker and uses packs #683, #687 - `ReactRailsUJS` is available from `npm` with `yarn add react_ujs` or `npm install react_ujs` #678 - `per_request_react_rails_prerenderer` Allows you to check out a renderer for the _whole request_ instead of once-per-`react_component` #559 #### Bug Fixes - Improved watching of server-rendering JS files #687 - Fix console replay: - Put the `