CHANGELOG.md in react_on_rails-6.0.0.rc.1 vs CHANGELOG.md in react_on_rails-6.0.0.rc.2

- old
+ new

@@ -2,23 +2,33 @@ All notable changes to this project will be documented in this file. Items under `Unreleased` is upcoming features that will be out in next version. Contributors: please follow the recommendations outlined at [keepachangelog.com](http://keepachangelog.com/). Please use the existing headings and styling as a guide, and add a link for the version diff at the bottom of the file. Also, please update the `Unreleased` link to compare to the latest release version. ## [Unreleased] -## [6.0.0-rc1] +## [6.0.0-rc.1] ##### Breaking Changes - Added automatic compilation of assets at precompile is now done by ReactOnRails. Thus, you don't need to provide your own assets.rake file that does the precompilation. [#398](https://github.com/shakacode/react_on_rails/pull/398) by [robwise](https://github.com/robwise), [jbhatab](https://github.com/jbhatab), and [justin808](https://github.com/justin808). -- **Migration to v6: you can either:** +- **Migration to v6** - 1. Specify a `config/react_on_rails` setting for `npm_build_production_command` to be nil to turn this feature off. - 2. Specify the script command you want to run to build your production assets, and remove your assets.rake file. + - To configure the asset compliation you can either + 1. Specify a `config/react_on_rails` setting for `npm_build_production_command` to be nil to turn this feature off. + 2. Specify the script command you want to run to build your production assets, and remove your assets.rake file. + - If you are using the ReactOnRails test helper, then you will need to add the 'config.npm_build_test_command' to your config to tell react_on_rails what command to run when you run rspec. + +- See [shakacode/react-webpack-rails-tutorial #287](https://github.com/shakacode/react-webpack-rails-tutorial/pull/287/files) for an upgrade example. The PR has a few comments on the upgrade. + Here is the addition to the generated config file: ```ruby # This configures the script to run to build the production assets by webpack. Set this to nil # if you don't want react_on_rails building this file for you. config.npm_build_production_command = "npm run build:production" + + # If you are using the ReactOnRails::TestHelper.configure_rspec_to_compile_assets(config) + # with rspec then this controls what npm command is run + # to automatically refresh your webpack assets on every test run. + config.npm_build_test_command = "npm run build:test" ``` ##### Fixed - Fixed errors when server rendered props contain \u2028 or \u2029 characters [#375](https://github.com/shakacode/react_on_rails/pull/375) by [mariusandra](https://github.com/mariusandra)