CHANGELOG.md in react_on_rails-2.1.1 vs CHANGELOG.md in react_on_rails-2.2.0

- old
+ new

@@ -2,14 +2,22 @@ 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] + +## [2.2.0] - 2016-01-29 +##### Added +- New JavaScript API for debugging TurboLinks issues. Be sure to see [turbolinks docs](docs/additional_reading/turbolinks.md). `ReactOnRails.setOptions({ traceTurbolinks: true });`. Removed the file `debug_turbolinks` added in 2.1.1. See [#243](https://github.com/shakacode/react_on_rails/pull/243). + +## [2.1.1] - 2016-01-28 + ##### Fixed - Fixed regression where apps that were not using Turbolinks would not render components on page load. ##### Added +- `ReactOnRails.render` returns a virtualDomElement Reference to your React component's backing instance. See [#234](https://github.com/shakacode/react_on_rails/pull/234). - `debug_turbolinks` helper for debugging turbolinks issues. See [turbolinks](docs/additional_reading/turbolinks.md). - Enhanced regression testing for non-turbolinks apps. Runs all tests for dummy app with turbolinks both disabled and enabled. ## [2.1.0] - 2016-01-26 ##### Added @@ -70,21 +78,22 @@ - All npm dependency libraries updated. Most notable is going to Babel 6. - Dropped support for react 0.13. - JS Linter uses ShakaCode JavaScript style: https://github.com/shakacode/style-guide-javascript - Generators account these differences. -##### Migration Steps +##### Migration Steps v1 to v2 [Example of upgrading](https://github.com/shakacode/react-webpack-rails-tutorial/commit/5b1b8698e8daf0f0b94e987740bc85ee237ef608) 1. Update the `react_on_rails` gem. 2. Remove `//= require react_on_rails` from any files such as `app/assets/javascripts/application.js`. This file comes from npm now. 3. Search you app for 'generator_function' and remove lines in layouts and rb files that contain it. Determination of a generator function is handled automatically. 4. Find your files where you registered client and server globals, and use the new ReactOnRails.register syntax. Optionally rename the files `clientRegistration.jsx` and `serverRegistration.jsx` rather than `Globals`. 5. Update your index.jade to use the new API `ReactOnRails.render("MyApp", !{props}, 'app');` 6. Update your webpack files per the example commit. Remove globally exposing React and ReactDom, as well as their inclusion in the `entry` section. These are automatically included now. 7. Run `cd client && npm i --save react-on-rails` to get react-on-rails into your `client/package.json`. -8. You should also update any other dependencies if possible to match up with the [react-webpack-rails-tutorial](https://github.com/shakacode/react-webpack-rails-tutorial/). +8. You should also update any other dependencies if possible to match up with the [react-webpack-rails-tutorial](https://github.com/shakacode/react-webpack-rails-tutorial/). This includes updating to Babel 6. +9. If you want to stick with Babel 5 for a bit, see [Issue #238](https://github.com/shakacode/react_on_rails/issues/238). --- ## [1.2.2] ##### Fixed @@ -117,10 +126,12 @@ - Turbolinks support. ##### Fixed - Fix several generator related issues. -[Unreleased]: https://github.com/shakacode/react_on_rails/compare/v2.1.0...HEAD +[Unreleased]: https://github.com/shakacode/react_on_rails/compare/2.2.0...HEAD +[2.2.0]: https://github.com/shakacode/react_on_rails/compare/2.1.1...2.2.0 +[2.1.1]: https://github.com/shakacode/react_on_rails/compare/v2.1.0...2.1.1 [2.1.0]: https://github.com/shakacode/react_on_rails/compare/v2.0.2...v2.1.0 [2.0.2]: https://github.com/shakacode/react_on_rails/compare/v2.0.1...v2.0.2 [2.0.1]: https://github.com/shakacode/react_on_rails/compare/v2.0.0...v2.0.1 [2.0.0]: https://github.com/shakacode/react_on_rails/compare/v1.2.2...v2.0.0 [1.2.2]: https://github.com/shakacode/react_on_rails/compare/v1.2.0...v1.2.2