react-on-rails 12.5.2 → 13.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +1137 -0
  2. package/README.md +10 -12
  3. package/package.json +1 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,1137 @@
1
+ # Change Log
2
+ All notable changes to this project's source code will be documented in this file. Items under `Unreleased` is upcoming features that will be out in next version. NOTE: major versions of the npm module and the gem must be kept in sync.
3
+
4
+ Migration instructions for the major updates can be found [here](https://www.shakacode.com/react-on-rails/docs/guides/upgrading-react-on-rails#upgrading-to-version-9.md). Some smaller migration information can be found here.
5
+
6
+ ## Need Help Migrating?
7
+ If you would like help in migrating between React on Rails versions or help with implementing server rendering, please contact [justin@shakacode.com](mailto:justin@shakacode.com) for information about our [React on Rails Pro Support Options](https://www.shakacode.com/react-on-rails-pro).
8
+
9
+ We specialize in helping companies to quickly and efficiently move from versions before 9 to current. The older versions use the Rails asset pipeline to package client assets. The current and recommended way is to use Webpack 4 for asset preparation. You may also need help migrating from the `rails/webpacker`'s Webpack configuration to a better setup ready for Server Side Rendering.
10
+
11
+ ## Contributors
12
+ 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.
13
+
14
+ ## Versions
15
+ ### [Unreleased]
16
+ Changes since last non-beta release.
17
+
18
+ *Please add entries here for your pull requests that are not yet released.*
19
+ ### [13.0.1] - 2022-02-09
20
+ #### Improved
21
+ - Updated the default generator [PR 1431](https://github.com/shakacode/react_on_rails/pull/1431) by [justin808](https://github.com/justin808).
22
+
23
+ ### [13.0.0] - 2022-02-08
24
+ #### Breaking
25
+ - Removed webpacker as a dependency. Add gem Shakapacker to your project, and update your package.json to also use shakapacker.
26
+
27
+ #### Fixed
28
+ - Propper throwing of exceptions.
29
+ - Default configuration better handles test env.
30
+
31
+ ### [12.6.0] - 2022-01-22
32
+
33
+ ### Added
34
+ - A `rendering_props_extension` configuration which takes a module with an `adjust_props_for_client_side_hydration` method, which is used to process props differently for server/client if `prerender` is set to `true`. [PR 1413](https://github.com/shakacode/react_on_rails/pull/1413) by [gscarv13](https://github.com/gscarv13) & [judahmeek](https://github.com/judahmeek).
35
+
36
+ ### [12.5.2] - 2021-12-29
37
+ ### Fixed
38
+ - Usage of config.build_production_command for custom command for production builds fixed. [PR 1415](https://github.com/shakacode/react_on_rails/pull/1415) by [judahmeek](https://github.com/judahmeek).
39
+
40
+ ### [12.5.1] - 2021-12-27
41
+
42
+ ### Fixed
43
+ - A fatal server rendering error if running an ReactOnRails >=12.4.0 with ReactOnRails Pro <2.4.0. [PR 1412](https://github.com/shakacode/react_on_rails/pull/1412) by [judahmeek](https://github.com/judahmeek).
44
+
45
+ ### [12.5.0] - 2021-12-26
46
+
47
+ #### Added
48
+ - Support for React 18, including the changed SSR API. [PR 1409](https://github.com/shakacode/react_on_rails/pull/1409) by [kylemellander](https://github.com/kylemellander).
49
+ - Added webpack configuration files as part of the generator and updated webpacker to version 6. [PR 1404](https://github.com/shakacode/react_on_rails/pull/1404) by [gscarv13](https://github.com/gscarv13).
50
+ - Supports Rails 7.
51
+
52
+ #### Changed
53
+ - Changed logic of determining the usage of the default rails/webpacker webpack config or a custom command to only check if the config.build_production_command is defined. [PR 1402](https://github.com/shakacode/react_on_rails/pull/1402) by [justin808](https://github.com/justin808) and [gscarv13](https://github.com/gscarv13).
54
+ - Minimimum required Ruby is 2.7 to match lastest rails/webpacker.
55
+
56
+ ### [12.4.0] - 2021-09-22
57
+ #### Added
58
+ - ScoutAPM tracing support for server rendering [PR 1379](https://github.com/shakacode/react_on_rails/pull/1379) by [justin808](https://github.com/justin808).
59
+
60
+ - Ability to stop React on Rails from modifying or creating the `assets:precompile` task. [PR 1371](https://github.com/shakacode/react_on_rails/pull/1371) by [justin808](https://github.com/justin808). Thanks to [elstgav](https://github.com/elstgav) for [the suggestion](https://github.com/shakacode/react_on_rails/issues/1368)!
61
+
62
+ - Ability to stop stubbing of setTimeout, setInterval, & clearTimeout conditional by setting `ReactOnRailsPro.config.include_execjs_polyfills = false` in the React on Rails Pro configuration file. Also, added the ability to have render functions return a promise to be awaited by React on Rails Pro Node Renderer. [PR 1380](https://github.com/shakacode/react_on_rails/pull/1380) by [judahmeek](https://github.com/judahmeek)
63
+
64
+ ### [12.3.0] - 2021-07-26
65
+ #### Added
66
+ - Ability to use with Turbo (@hotwired/turbo), as Turbolinks gets obsolete. [PR 1374](https://github.com/shakacode/react_on_rails/pull/1374) by [pgruener](https://github.com/pgruener) and [PR 1377](https://github.com/shakacode/react_on_rails/pull/1377) by [mdesantis](https://github.com/mdesantis).
67
+
68
+ To configure turbo the following option can be set:
69
+ `ReactOnRails.setOptions({ turbo: true })`
70
+
71
+ ### [12.2.0] - 2021-03-25
72
+ #### Added
73
+ - Ability to configure server react rendering to throw rather than just logging the error. Useful for
74
+ React on Rails Pro Node rendering [PR 1365](https://github.com/shakacode/react_on_rails/pull/1365) by [justin808](https://github.com/justin808).
75
+
76
+ ### [12.1.0] - 2021-03-23
77
+ #### Added
78
+ - Added the ability to assign a module with a `call` method to `config.build_production_command`. See [the configuration docs](https://www.shakacode.com/react-on-rails/docs/guides/configuration). [PR 1362: Accept custom module for config.build_production_command](https://github.com/shakacode/react_on_rails/pull/1362).
79
+
80
+ #### Fixed
81
+ - Stop setting NODE_ENV value during precompile, as it interferred with rails/webpacker's setting of NODE_ENV to production by default. Fixes [#1334](https://github.com/shakacode/react_on_rails/issues/1334). [PR 1356: Don't set NODE_ENV in assets.rake](https://github.com/shakacode/react_on_rails/pull/1356) by [alexrozanski](https://github.com/alexrozanski).
82
+
83
+ ### [12.0.4] - 2020-11-14
84
+ #### Fixed
85
+ - Install generator now specifies the version. Fixes [React on Rails Generator installs the older npm package #1336](https://github.com/shakacode/react_on_rails/issues/1336). [PR 1338: Fix Generator to use Exact NPM Version](https://github.com/shakacode/react_on_rails/pull/1338) by [justin808](https://github.com/justin808).
86
+
87
+ ### [12.0.3] - 2020-09-20
88
+ #### Fixed
89
+ - Async script loading optimizes page load speed. With this fix, a bundle
90
+ can be loaded "async" and a handler function can determine when to hydrate.
91
+ For an example of this, see the [docs for loadable-components SSR](https://loadable-components.com/docs/server-side-rendering/#4-add-loadableready-client-side).
92
+ [PR 1327](https://github.com/shakacode/react_on_rails/pull/1327) by [justin808](https://github.com/justin808).
93
+ Loadable-Components is supported by [React on Rails Pro](https://www.shakacode.com/react-on-rails-pro).
94
+
95
+ ### [12.0.2] - 2020-07-09
96
+ #### Fixed
97
+ - Remove dependency upon Redux for Typescript types. [PR 1323](https://github.com/shakacode/react_on_rails/pull/1323) by [justin808](https://github.com/justin808).
98
+
99
+ ### [12.0.1] - 2020-07-09
100
+ #### Fixed
101
+ - Changed invocation of webpacker:clean to use a very large number of versions so it does not acidentally delete the server-bundle.js. [PR 1306](https://github.com/shakacode/react_on_rails/pull/1306) by By [justin808](https://github.com/justin808).
102
+
103
+ ### [12.0.0] - 2020-07-08
104
+ For upgrade instructions, see [docs/guides/upgrading-react-on-rails.md](https://www.shakacode.com/react-on-rails/docs/guides/upgrading-react-on-rails).
105
+
106
+ #### Major Improvements
107
+ 1. **React Hooks Support** for top level components
108
+ 2. **Typescript bindings**
109
+ 3. **rails/webpacker** "just works" with React on Rails by default.
110
+ 4. i18n support for generating a JSON file rather than a JS file.
111
+
112
+ #### BREAKING CHANGE
113
+ In order to solve the issues regarding React Hooks compatibility, the number of parameters
114
+ for functions is used to determine if you have a generator function that will get invoked to
115
+ return a React component, or you are registering a functional React component. Alternately, you can
116
+ set JavaScript property `renderFunction` on the function for which you want to return to be
117
+ invoked to return the React component. In that case, you won't need to pass any unused params.
118
+ [PR 1268](https://github.com/shakacode/react_on_rails/pull/1268) by [justin808](https://github.com/justin808)
119
+
120
+ See [docs/guides/upgrading-react-on-rails](https://www.shakacode.com/react-on-rails/docs/guides/upgrading-react-on-rails#upgrading-to-v12)
121
+ for details.
122
+
123
+ #### Other Updates
124
+ * `react_on_rails` fully supports `rails/webpacker`. The example test app in `spec/dummy` was recently converted over to use rails/webpacker v4+. It's a good example of how to leverage rails/webpacker's webpack configuration for server-side rendering.
125
+ * Changed the precompile task to use the rails/webpacker one by default
126
+ * Updated generators to use React hooks
127
+ * Requires the use of rails/webpacker view helpers
128
+ * If the webpacker webpack config files exist, then React on Rails will not override the default
129
+ assets:precompile setup by rails/webpacker. If you are not using the rails/webpacker setup for webpack,
130
+ then be sure to remove the JS files inside of config/webpack, like `config/webpack/production.js.`
131
+ * Removed **env_javascript_include_tag** and **env_stylesheet_link_tag** as these are replaced by view helpers
132
+ from rails/webpacker
133
+ * Removal of support for old Rubies and Rails.
134
+ * Removal of config.symlink_non_digested_assets_regex as it's no longer needed with rails/webpacker.
135
+ If any business needs this, we can move the code to a separate gem.
136
+ * Added configuration option `same_bundle_for_client_and_server` with default `false` because
137
+
138
+ 1. Production applications would typically have a server bundle that differs from the client bundle
139
+ 2. This change only affects trying to use HMR with react_on_rails with rails/webpacker.
140
+
141
+ The previous behavior was to always go to the webpack-dev-server for the server bundle if the
142
+ webpack-dev-server was running _and_ the server bundle was found in the `manifest.json`.
143
+
144
+ If you are using the **same bundle for client and server rendering**, then set this configuration option
145
+ to `true`. By [justin808](https://github.com/shakacode/react_on_rails/pull/1240).
146
+
147
+ * Added support to export locales in JSON format. New option added `i18n_output_format` which allows to
148
+ specify locales format either `JSON` or `JS`. **`JSON` format is now the default.**
149
+
150
+ **Use this config setting to get the old behavior: config.i18n_output_format = 'js'**
151
+
152
+ [PR 1271](https://github.com/shakacode/react_on_rails/pull/1271) by [ashgaliyev](https://github.com/ashgaliyev).
153
+
154
+ - Added Typescript definitions to the Node package. By [justin808](https://github.com/justin808) and [judahmeek](https://github.com/judahmeek) in [PR 1287](https://github.com/shakacode/react_on_rails/pull/1287).
155
+ - Removed restriction to keep the server bundle in the same directory with the client bundles. Rails/webpacker 4 has an advanced cleanup that will remove any files in the directory of other webpack files. Removing this restriction allows the server bundle to be created in a sibling directory. By [justin808](https://github.com/shakacode/react_on_rails/pull/1240).
156
+
157
+ ### [11.3.0] - 2019-05-24
158
+ #### Added
159
+ - Added method for retrieving any option from `render_options` [PR 1213](https://github.com/shakacode/react_on_rails/pull/1213)
160
+ by [ashgaliyev](https://github.com/ashgaliyev).
161
+
162
+ - html_options has an option for 'tag' to set the html tag name like this: `html_options: { tag: "span" }`.
163
+ [PR 1208](https://github.com/shakacode/react_on_rails/pull/1208) by [tahsin352](https://github.com/tahsin352).
164
+
165
+ ### [11.2.2] - 2018-12-24
166
+ #### Improved
167
+ - rails_context can more easily be called from controller methods. The mandatory param of server_side has been made optional.
168
+
169
+ ### [11.2.1] - 2018-12-06
170
+ ## MIGRATION for v11.2
171
+ - If using **React on Rails Pro**, upgrade react_on_rails_pro to a version >= 1.3.
172
+
173
+ #### Improved
174
+ - To support React v16, updated API for manually calling `ReactOnRails.render(name, props, domNodeId, hydrate)`. Added 3rd @param hydrate Pass truthy to update server rendered html. Default is falsey Any truthy values calls hydrate rather than render. [PR 1159](https://github.com/shakacode/react_on_rails/pull/1159) by [justin808](https://github.com/justin808) and [coopersamuel](https://github.com/coopersamuel).
175
+
176
+ - Enabled the use of webpack-dev-server with Server-side rendering. [PR 1173](https://github.com/shakacode/react_on_rails/pull/1173) by [justin808](https://github.com/justin808) and [judahmeek](https://github.com/judahmeek).
177
+
178
+ #### Changed
179
+ - Changed the default for:
180
+ ```rb
181
+ config.raise_on_prerender_error = Rails.env.development?
182
+ ```
183
+
184
+ Thus, developers will need to fix server rendering errors before continuing.
185
+ [PR 1145](https://github.com/shakacode/react_on_rails/pull/1145) by [justin808](https://github.com/justin808).
186
+
187
+ ### 11.2.0 - 2018-12-06
188
+ Do not use. Unpublished. Caused by an issue with the release script.
189
+
190
+ ### [11.1.8] - 2018-10-14
191
+
192
+ #### Improved
193
+ - Improved tutorial and support for HMR when using `rails/webpacker` for Webpack configuration. [PR 1156](https://github.com/shakacode/react_on_rails/pull/1156) by [justin808](https://github.com/justin808).
194
+
195
+ ### [11.1.7] - 2018-10-10
196
+ #### Fixed
197
+ - Fixed bug where intl parsing would fail when trying to parse integers or blank entries. by [sepehr500](https://github.com/sepehr500)
198
+
199
+ ### [11.1.6] - 2018-10-05
200
+ #### Fixed
201
+ - Fix client startup invoking render prematurely, **AGAIN**. Fix additional cases of client startup failing during interactive readyState". Closes [issue #1150](https://github.com/shakacode/react_on_rails/issues/1150). [PR 1152](https://github.com/shakacode/react_on_rails/pull/1152) by [rakelley](https://github.com/rakelley).
202
+
203
+ ### [11.1.5] - 2018-10-03
204
+ #### Fixed
205
+ - Fix client startup invoking render prematurely. Closes [issue #1150](https://github.com/shakacode/react_on_rails/issues/1150). [PR 1151](https://github.com/shakacode/react_on_rails/pull/1151) by [rakelley](https://github.com/rakelley).
206
+
207
+ ### [11.1.4] - 2018-09-12
208
+
209
+ #### Fixed
210
+ - Ignore Arrays in Rails i18n yml files. [PR 1129](https://github.com/shakacode/react_on_rails/pull/1129) by [vcarel](https://github.com/vcarel).
211
+ - Fix to apply transform-runtime. And work with Babel 6 and 7. (Include revert of [PR 1136](https://github.com/shakacode/react_on_rails/pull/1136)) [PR 1140](https://github.com/shakacode/react_on_rails/pull/1140) by [Ryunosuke Sato](https://github.com/tricknotes).
212
+ - Upgrade Babel version to 7 [PR 1141](https://github.com/shakacode/react_on_rails/pull/1141) by [Ryunosuke Sato](https://github.com/tricknotes).
213
+
214
+ ### [11.1.3] - 2018-08-26
215
+
216
+ #### Fixed
217
+ - Don't apply babel-plugin-transform-runtime inside react-on-rails to work with babel 7. [PR 1136](https://github.com/shakacode/react_on_rails/pull/1136) by [Ryunosuke Sato](https://github.com/tricknotes).
218
+ - Add support for webpacker 4 prereleases. [PR 1134](https://github.com/shakacode/react_on_rails/pull/1134) by [Judahmeek](https://github.com/Judahmeek))
219
+
220
+ ### [11.1.2] - 2018-08-18
221
+
222
+ #### Fixed
223
+ - Tests now properly exit if the config.build_test_command fails!
224
+ - Source path for project using Webpacker would default to "app/javascript" even if when the node_modules
225
+ directory was set to "client". Fix now makes the configuration of this crystal clear.
226
+ - renamed method RenderOptions.has_random_dom_id? to RenderOptions.random_dom_id? for rubocop rule.
227
+ [PR 1133](https://github.com/shakacode/react_on_rails/pull/1133) by [justin808](https://github.com/justin808)
228
+
229
+ ### [11.1.1] - 2018-08-09
230
+ #### Fixed
231
+ - `TRUE` was deprecated in ruby 2.4, using `true` instead. [PR 1128](https://github.com/shakacode/react_on_rails/pull/1128) by [Aguardientico](https://github.com/Aguardientico).
232
+
233
+ ### [11.1.0] - 2018-08-07
234
+ #### Added
235
+ - Add random dom id option. This new global and react_component helper option allows configuring whether or not React on Rails will automatically add a random id to the DOM node ID. [PR 1121](https://github.com/shakacode/react_on_rails/pull/1121) by [justin808](https://github.com/justin808)
236
+ * Added configuration option random_dom_id
237
+ * Added method RenderOptions has_random_dom_id?
238
+ #### Fixed
239
+ - Fix invalid warn directive. [PR 1123](https://github.com/shakacode/react_on_rails/pull/1123) by [mustangostang](https://github.com/mustangostang).
240
+
241
+ ### [11.0.10] - 2018-07-22
242
+ #### Fixed
243
+ - Much better logging of rendering errors when there are lots of props. Only the a 1,000 chars are logged, and the center is indicated to be truncated. [PR 1117](https://github.com/shakacode/react_on_rails/pull/1117) and [PR 1118](https://github.com/shakacode/react_on_rails/pull/1118) by [justin808](https://github.com/justin808).
244
+ - Properly clearing hydrated stores when server rendering. [PR 1120](https://github.com/shakacode/react_on_rails/pull/1120) by [squadette](https://github.com/squadette).
245
+
246
+ ### [11.0.9] - 2018-06-24
247
+ - Handle <script async> for Webpack bundle transparently. Closes [issue #290](https://github.com/shakacode/react_on_rails/issues/290) [PR 1099](https://github.com/shakacode/react_on_rails/pull/1099) by [squadette](https://github.com/squadette). Merged in [PR 1107]( https://github.com/shakacode/react_on_rails/pull/1107).
248
+
249
+ ### [11.0.8] - 2018-06-15
250
+ #### Fixed
251
+ - HashWithIndifferent access for props threw if used for props. [PR 1100](https://github.com/shakacode/react_on_rails/pull/1100) by [justin808](https://github.com/justin808).
252
+ - Test helper for detecting stale bundles did not properly handle the case of a server-bundle.js without a hash.[PR 1102](https://github.com/shakacode/react_on_rails/pull/1102) by [justin808](https://github.com/justin808).
253
+ - Fix test helper determination of stale assets. [PR 1093](https://github.com/shakacode/react_on_rails/pull/1093) by [justin808](https://github.com/justin808).
254
+
255
+ #### Changed
256
+ - Document how to manually rehydrate XHR-substituted components on client side. [PR 1095](https://github.com/shakacode/react_on_rails/pull/1095) by [hchevalier](https://github.com/hchevalier).
257
+
258
+ ### [11.0.7] - 2018-05-16
259
+ #### Fixed
260
+ - Fix npm publshing. [PR 1090](https://github.com/shakacode/react_on_rails/pull/1090) by [justin808](https://github.com/justin808).
261
+
262
+ ### [11.0.6] - 2018-05-15
263
+ #### Changed
264
+ - Even more detailed errors for Honeybadger and Sentry when there's a JSON parse error on server rendering. [PR 1086](https://github.com/shakacode/react_on_rails/pull/1086) by [justin808](https://github.com/justin808).
265
+
266
+ ### [11.0.5] - 2018-05-11
267
+ #### Changed
268
+ - More detailed errors for Honeybadger and Sentry. [PR 1081](https://github.com/shakacode/react_on_rails/pull/1081) by [justin808](https://github.com/justin808).
269
+
270
+ ### [11.0.4] - 2018-05-3
271
+
272
+ #### Changed
273
+ - Throw if configuration.generated_assets_dir specified, and using webpacker, and if that doesn't match the public_output_path. Otherwise, warn if generated_assets_dir is specified
274
+ - Fix the setup for tests for spec/dummy so they automatically rebuild by correctly setting the source_path in the webpacker.yml
275
+ - Updated documentation for the testing setup.
276
+ - Above in [PR 1072](https://github.com/shakacode/react_on_rails/pull/1072) by [justin808](https://github.com/justin808).
277
+ - `react_component_hash` has implicit `prerender: true` because it makes no sense to have react_component_hash not use prerrender. Improved docs on `react_component_hash`. Also, fixed issue where checking gem existence. [PR 1077](https://github.com/shakacode/react_on_rails/pull/1077) by [justin808](https://github.com/justin808).
278
+
279
+ ### [11.0.3] - 2018-04-24
280
+
281
+ #### Fixed
282
+ - Fixed issue with component script initialization when using react_component_hash. [PR 1071](https://github.com/shakacode/react_on_rails/pull/1071) by [jblasco3](https://github.com/jblasco3).
283
+
284
+ ### [11.0.2] - 2018-04-24
285
+
286
+ #### Fixed
287
+ - Server rendering error for React on Rails Pro. [PR 1069](https://github.com/shakacode/react_on_rails/pull/1069) by [justin808](https://github.com/justin808).
288
+
289
+ ### [11.0.1] - 2018-04-23
290
+
291
+ #### Added
292
+ - `react_component` allows logging_on_server specified at the component level. [PR 1068](https://github.com/shakacode/react_on_rails/pull/1068) by [justin808](https://github.com/justin808).
293
+
294
+ #### Fixed
295
+ - Missing class when throwing some error messages. [PR 1068](https://github.com/shakacode/react_on_rails/pull/1068) by [justin808](https://github.com/justin808).
296
+
297
+ ### [11.0.0] - 2018-04-21
298
+
299
+ ## MIGRATION for v11
300
+ - Unused `server_render_method` was removed from the configuration. If you want to use a custom renderer, contact justin@shakacode.com. We have a custom node rendering solution in production for egghead.io.
301
+ - Removed ReactOnRails::Utils.server_bundle_file_name and ReactOnRails::Utils.bundle_file_name. These are part of the performance features of "React on Rails Pro".
302
+ - Removed ENV["TRACE_REACT_ON_RAILS"] usage and replacing it with config.trace.
303
+
304
+ #### Enhancements: Better Error Messages, Support for React on Rails Pro
305
+ - Tracing (debugging) options are simplified with a single `config.trace` setting that defaults to true for development and false otherwise.
306
+ - Calls to setTimeout, setInterval, clearTimeout will now always log some message if config.trace is true. Your JavaScript code should not be calling setTimout when server rendering.
307
+ - Errors raised are of type ReactOnRailsError, so you can see they came from React on Rails for debugging.
308
+ - Removed ReactOnRails::Utils.server_bundle_file_name and ReactOnRails::Utils.bundle_file_name.
309
+ - No longer logging the `railsContext` when server logging.
310
+ - Rails.env is provided in the default railsContext, as suggested in [issue #697](https://github.com/shakacode/react_on_rails/issues/697).
311
+ [PR 1065](https://github.com/shakacode/react_on_rails/pull/1065) by [justin808](https://github.com/justin808).
312
+
313
+ #### Fixes
314
+ - More exact version checking. We keep the react_on_rails gem and the react-on-rails node package at
315
+ the same exact versions so that we can be sure that the interaction between them is precise.
316
+ This is so that if a bug is detected after some update, it's critical that
317
+ both the gem and the node package get the updates. This change ensures that the package.json specification does not use a
318
+ ~ or ^ as reported in [issue #1062](https://github.com/shakacode/react_on_rails/issues/1062). [PR 1063](https://github.com/shakacode/react_on_rails/pull/1063) by [justin808](https://github.com/justin808).
319
+ - Sprockets: Now use the most recent manifest when creating symlinks. See [issue #1023](https://github.com/shakacode/react_on_rails/issues/1023). [PR 1064](https://github.com/shakacode/react_on_rails/pull/1064) by [justin808](https://github.com/justin808).
320
+
321
+ ### [10.1.4] - 2018-04-11
322
+
323
+ #### Fixed
324
+ - Changed i18n parsing to convert ruby i18n argument syntax into FormatJS argument syntax. [PR 1046](https://github.com/shakacode/react_on_rails/pull/1046) by [sepehr500](https://github.com/sepehr500).
325
+
326
+ - Fixed an issue where the spec compiler check would fail if the project path contained spaces. [PR 1045](https://github.com/shakacode/react_on_rails/pull/1045) by [andrewmarkle](https://github.com/andrewmarkle).
327
+
328
+ - Updated the default `build_production_command` that caused production assets to be built with development settings. [PR 1053](https://github.com/shakacode/react_on_rails/pull/1053) by [Roman Kushnir](https://github.com/RKushnir).
329
+
330
+ ### [10.1.3] - 2018-02-28
331
+ #### Fixed
332
+ - Improved error reporting on version mismatches between Javascript and Ruby packages. [PR 1025](https://github.com/shakacode/react_on_rails/pull/1025) by [theJoeBiz](https://github.com/squadette).
333
+
334
+ ### [10.1.2] - 2018-02-27
335
+ #### Fixed
336
+ - Use ReactDOM.hydrate() for hydrating a SSR component if available. ReactDOM.render() has been deprecated for use on SSR components in React 16 and this addresses the warning. [PR 1028](https://github.com/shakacode/react_on_rails/pull/1028) by [theJoeBiz](https://github.com/theJoeBiz).
337
+
338
+ ### [10.1.1] - 2018-01-26
339
+ #### Fixed
340
+ - Fixed issue with server-rendering error handler: [PR 1020](https://github.com/shakacode/react_on_rails/pull/1020) by [jblasco3](https://github.com/jblasco3).
341
+
342
+ ### [10.1.0] - 2018-01-23
343
+ #### Added
344
+ - Added 2 cache helpers: ReactOnRails::Utils.bundle_file_name(bundle_name) and ReactOnRails::Utils.server_bundle_file_name
345
+ for easy access to the hashed filenames for use in cache keys. [PR 1018](https://github.com/shakacode/react_on_rails/pull/1018) by [justin808](https://github.com/justin808).
346
+
347
+ #### Fixed
348
+ - Use redux component in generated redux Hello World example: [PR 1006](https://github.com/shakacode/react_on_rails/pull/1006) by [lewaabahmad](https://github.com/lewaabahmad).
349
+ - Fixed `Utils.bundle_js_file_path` generating the incorrect path for `manifest.json` in webpacker projects: [Issue #1011](https://github.com/shakacode/react_on_rails/issues/1011) by [elstgav](https://github.com/elstgav)
350
+
351
+ ### [10.0.2] - 2017-11-10
352
+ #### Fixed
353
+ - Remove unnecessary dependencies from released NPM package: [PR 968](https://github.com/shakacode/react_on_rails/pull/968) by [tricknotes](https://github.com/tricknotes).
354
+
355
+ ### [10.0.1] - 2017-10-28
356
+ #### Fixed
357
+ - Fixed `react_component_hash` functionality in cases of prerendering errors: [PR 960](https://github.com/shakacode/react_on_rails/pull/960) by [Judahmeek](https://github.com/Judahmeek).
358
+ - Fix to add missing dependency to run generator spec individually: [PR 962](https://github.com/shakacode/react_on_rails/pull/962) by [tricknotes](https://github.com/tricknotes).
359
+ - Fixes check for i18n_dir in LocalesToJs returning false when i18n_dir was set. [PR 899](https://github.com/shakacode/react_on_rails/pull/899) by [hakongit](https://github.com/hakongit).
360
+ - Fixed mistake in rubocop comments that led to errors when handling exceptions in ReactOnRails::ServerRendering::Exec [PR 963](https://github.com/shakacode/react_on_rails/pull/963) by [railsme](https://github.com/railsme).
361
+ - Fixed and improved I18n directories checks: [PR 967](https://github.com/shakacode/react_on_rails/pull/967) by [railsme](https://github.com/railsme)
362
+
363
+ ### [10.0.0] - 2017-10-08
364
+ #### Created
365
+ - Created `react_component_hash` method for react_helmet support.
366
+ #### Deprecated
367
+ - Deprecated `react_component` functionality for react_helmet support.
368
+ To clarify, the method itself is not deprecated, only certain functionality which has been moved to `react_component_hash`
369
+ [PR 951](https://github.com/shakacode/react_on_rails/pull/951) by [Judahmeek](https://github.com/Judahmeek).
370
+
371
+ ### [9.0.3] - 2017-09-20
372
+ #### Improved
373
+ - Improved comments in generated Procfile.dev-server. [PR 940](https://github.com/shakacode/react_on_rails/pull/940) by [justin808](https://github.com/justin808).
374
+
375
+ ### [9.0.2] - 2017-09-10
376
+ #### Fixed
377
+ - Improved post install doc comments for generator. [PR 933](https://github.com/shakacode/react_on_rails/pull/933) by [justin808](https://github.com/justin808).
378
+
379
+ ### [9.0.1] - 2017-09-10
380
+
381
+ #### Fixed
382
+ - Fixes Rails 3.2 compatability issues. [PR 926](https://github.com/shakacode/react_on_rails/pull/926) by [morozovm](https://github.com/morozovm).
383
+
384
+ ### [9.0.0] - 2017-09-06
385
+ Updated React on Rails to depend on [rails/webpacker](https://github.com/rails/webpacker). [PR 908](https://github.com/shakacode/react_on_rails/pull/908) by [justin808](https://github.com/justin808).
386
+
387
+
388
+ #### 9.0 from 8.x. Upgrade Instructions
389
+ Moved to [our documentation](https://www.shakacode.com/react-on-rails/docs/guides/upgrading-react-on-rails#upgrading-to-version-9).
390
+
391
+ ### [8.0.7] - 2017-08-16
392
+ #### Fixed
393
+ - Fixes generator bug by keeping blank line at top in case existing .gitignore does not end in a newline. [#916](https://github.com/shakacode/react_on_rails/pull/916) by [justin808](https://github.com/justin808).
394
+
395
+ ### [8.0.6] - 2017-07-19
396
+ #### Fixed
397
+ - Fixes server rendering when using a CDN. Server rendering would try to fetch a file with the "asset_host". This change updates the webpacker_lite dependency to 2.1.0 which has a new helper `pack_path`. [#901](https://github.com/shakacode/react_on_rails/pull/901) by [justin808](https://github.com/justin808). Be sure to update webpacker_lite to 2.1.0.
398
+ - The package.json file created by the generator now creates minified javascript production builds by default. This was done by adding the -p flag to webpack on the build:production script. [#895](https://github.com/shakacode/react_on_rails/pull/895) by [serodriguez68 ](https://github.com/serodriguez68)
399
+ - Fixes GitUtils.uncommitted_changes? throwing an error when called in an environment without Git, and allows install generator to be run successfully with `--ignore-warnings` [#878](https://github.com/shakacode/react_on_rails/pull/878) by [jasonblalock](https://github.com/jasonblalock).
400
+
401
+ ## [8.0.5] - 2017-07-04
402
+ ### fixed
403
+ - Corrects `devBuild` value for webpack production build from webpackConfigLoader. [#877](https://github.com/shakacode/react_on_rails/pull/877) by [chenqingspring](https://github.com/chenqingspring).
404
+ - Remove contentBase deprecation warning message. [#878](https://github.com/shakacode/react_on_rails/pull/878) by [ened ](https://github.com/ened).
405
+ - Removes invalid reference to _railsContext in the generated files. [#886](https://github.com/shakacode/react_on_rails/pull/886) by [justin808](https://github.com/justin808).
406
+ - All tests run against Rails 5.1.2
407
+
408
+ *Note: 8.0.4 skipped.*
409
+
410
+ ## [8.0.3] - 2017-06-19
411
+ ### Fixed
412
+ - Ruby 2.1 issue due to `<<~` as reported in [issue #870](https://github.com/shakacode/react_on_rails/issues/870). [#867](https://github.com/shakacode/react_on_rails/pull/867) by [justin808](https://github.com/justin808)
413
+
414
+ ## [8.0.2] - 2017-06-04
415
+ ### Fixed
416
+ - Any failure in webpack to build test files quits tests.
417
+ - Fixed a Ruby 2.4 potential crash which could cause a crash due to pathname change in Ruby 2.4.
418
+ - CI Improvements:
419
+ - Switched to yarn link and removed relative path install of react-on-rails
420
+ - Removed testing of Turbolinks 2
421
+ - All tests run against Rails 5.1.1
422
+ - Fixed test failures against Ruby 2.4
423
+ - [#862](https://github.com/shakacode/react_on_rails/pull/862) by [justin808](https://github.com/justin808)
424
+
425
+ ## [8.0.1] - 2017-05-30
426
+ ### Fixed
427
+ - Generator no longer modifies `assets.rb`. [#859](https://github.com/shakacode/react_on_rails/pull/859) by [justin808](https://github.com/justin808)
428
+
429
+ ## [8.0.0] - 2017-05-29
430
+ - Generators and full support for [webpacker_lite](https://github.com/shakacode/webpacker_lite)
431
+ - No breaking changes to move to 8.0.0 other than the default for this setting changed to nil. If you depended on the default of this setting and are using the asset pipeline (and not webpacker_lite), then add this to your `config/initializers/react_on_rails.rb`:
432
+ ```
433
+ symlink_non_digested_assets_regex: /\.(png|jpg|jpeg|gif|tiff|woff|ttf|eot|svg|map)/,
434
+ ```
435
+ - For an example of migration, see: [react-webpack-rails-tutorial PR #395](https://github.com/shakacode/react-webpack-rails-tutorial/pull/395)
436
+ - For a simple example of the webpacker_lite setup, run the basic generator.
437
+
438
+ ## [8.0.0-beta.3] - 2017-05-27
439
+ ### Changed
440
+ - Major updates for WebpackerLite 2.0.2. [#844](https://github.com/shakacode/react_on_rails/pull/845) by [justin808](https://github.com/justin808) with help from ](https://github.com/robwise)
441
+ - Logging no longer occurs when trace is turned to false. [#845](https://github.com/shakacode/react_on_rails/pull/845) by [conturbo](https://github.com/Conturbo)
442
+
443
+ ## [8.0.0-beta.2] - 2017-05-08
444
+
445
+ ### Changed
446
+ Removed unnecessary values in default paths.yml files for generators. [#834](https://github.com/shakacode/react_on_rails/pull/834) by [justin808](https://github.com/justin808).
447
+
448
+ ## [8.0.0-beta.1] - 2017-05-03
449
+
450
+ ### Added
451
+ Support for WebpackerLite in the generators. [#822](https://github.com/shakacode/react_on_rails/pull/822) by [kaizencodes](https://github.com/kaizencodes) and [justin808](https://github.com/justin808).
452
+
453
+ ### Changed
454
+ Breaking change is that the default value of symlink_non_digested_assets_regex has changed from this
455
+ old value to nil. This is a breaking change if you didn't have this value set in your
456
+ config/initializers/react_on_rails.rb file and you need this because you're using webpack's CSS
457
+ features and you have not switched to webpacker lite.
458
+
459
+ ```
460
+ symlink_non_digested_assets_regex: /\.(png|jpg|jpeg|gif|tiff|woff|ttf|eot|svg|map)/,
461
+ ```
462
+
463
+ ## [7.0.4] - 2017-04-27
464
+ - Return empty json when nil in json_safe_and_pretty [#824](https://github.com/shakacode/react_on_rails/pull/824) by [dzirtusss](https://github.com/dzirtusss)
465
+
466
+ ## [7.0.3] - 2017-04-27
467
+ Same as 7.0.1.
468
+
469
+ ## 7.0.2 - 2017-04-27
470
+ *Accidental release of beta gem here*
471
+
472
+ ## [7.0.1] - 2017-04-27
473
+ ### Fixed
474
+ - Fix to handle nil values in json_safe_and_pretty [#823](https://github.com/shakacode/react_on_rails/pull/823) by [dzirtusss](https://github.com/dzirtusss)
475
+
476
+ ## [7.0.0] - 2017-04-25
477
+ ### Changed
478
+ - Any version differences in gem and node package for React on Rails throw an error [#821](https://github.com/shakacode/react_on_rails/pull/821) by [justin808](https://github.com/justin808)
479
+
480
+ ### Fixed
481
+ - Fixes serious performance regression when using String props for rendering. [#821](https://github.com/shakacode/react_on_rails/pull/821) by [justin808](https://github.com/justin808)
482
+
483
+ ## [6.10.1] - 2017-04-23
484
+ ### Fixed
485
+ - Improve json conversion with tests and support for older Rails 3.x. [#787](https://github.com/shakacode/react_on_rails/pull/787) by [cheremukhin23](https://github.com/cheremukhin23) and [Ynote](https://github.com/Ynote).
486
+
487
+ ## [6.10.0] - 2017-04-13
488
+
489
+ ### Added
490
+ - Add an ability to return multiple HTML strings in a `Hash` as a result of `react_component` method call. Allows to build `<head>` contents with [React Helmet](https://github.com/nfl/react-helmet). [#800](https://github.com/shakacode/react_on_rails/pull/800) by [udovenko](https://github.com/udovenko).
491
+
492
+ ### Fixed
493
+ - Fix PropTypes, createClass deprecation warnings for React 15.5.x. [#804](https://github.com/shakacode/react_on_rails/pull/804) by [udovenko ](https://github.com/udovenko).
494
+
495
+ ## [6.9.3] - 2017-04-03
496
+
497
+ ### Fixed
498
+ - Removed call of to_json on strings when formatting props. [#791](https://github.com/shakacode/react_on_rails/pull/791) by [justin808](https://github.com/justin808).
499
+
500
+ ## [6.9.2] - 2017-04-02
501
+
502
+ ### Changed
503
+ - Update version_checker.rb to `logger.error` rather than `logger.warn` for gem/npm version mismatch. [#788](https://github.com/shakacode/react_on_rails/issues/788) by [justin808](https://github.com/justin808).
504
+
505
+ ### Fixed
506
+ - Remove pretty formatting of JSON in development. [#789](https://github.com/shakacode/react_on_rails/pull/789) by [justin808](https://github.com/justin808)
507
+ - Clear hydrated stores with each server rendered block. [#785](https://github.com/shakacode/react_on_rails/pull/785) by [udovenko](https://github.com/udovenko)
508
+
509
+ ## [6.9.1] - 2017-03-30
510
+
511
+ ### Fixed
512
+ - Fixes Crash in Development for String Props. [#784](https://github.com/shakacode/react_on_rails/issues/784) by [justin808](https://github.com/justin808).
513
+
514
+ ## [6.9.0] - 2017-03-29
515
+
516
+ ### Fixed
517
+ - Fixed error in the release script. [#767](https://github.com/shakacode/react_on_rails/issues/767) by [isolo](https://github.com/isolo).
518
+
519
+ ### Changed
520
+ - Use <script type="application/json"> for props and store instead of hidden div. [#775] (https://github.com/shakacode/react_on_rails/pull/775) by [cheremukhin23](https://github.com/cheremukhin23).
521
+
522
+ ### Added
523
+ - Add option to specify i18n_yml_dir in order to include only subset of locale files when generating translations.js & default.js for react-intl.
524
+ [#777](https://github.com/shakacode/react_on_rails/pull/777) by [danijel](https://github.com/danijel).
525
+
526
+ ## [6.8.2] - 2017-03-24
527
+ ### Fixed
528
+ - Change webpack output path to absolute and update webpack to version ^2.3.1. [#771](https://github.com/shakacode/react_on_rails/pull/771) by [cheremukhin23](https://github.com/cheremukhin23).
529
+
530
+ ## [6.8.1] - 2017-03-21
531
+ ### Fixed
532
+ - Fixed error "The node you're attempting to unmount was rendered by another copy of React." [#706](https://github.com/shakacode/react_on_rails/issues/706) when navigating to cached page using Turbolinks [#763](https://github.com/shakacode/react_on_rails/pull/763) by [szyablitsky](https://github.com/szyablitsky).
533
+
534
+ ## [6.8.0] - 2017-03-06
535
+ ## Added
536
+ - Converted to Webpack v2 for generators, tests, and all example code. [#742](https://github.com/shakacode/react_on_rails/pull/742) by [justin808](https://github.com/justin808).
537
+
538
+ ## [6.7.2] - 2017-03-05
539
+ ### Improved
540
+ - Improve i18n Integration with a better error message if the value of the i18n directory is invalid. [#748](https://github.com/shakacode/react_on_rails/pull/748) by [justin808](https://github.com/justin808).
541
+
542
+ ## [6.7.1] - 2017-02-28
543
+ No changes other than a test fix.
544
+
545
+ ## [6.7.0] - 2017-02-28
546
+
547
+ ### IMPORTANT
548
+ - If you installed 6.6.0, you will need to comment out the line matching i18n_dir unless you are using this feature. 6.7.1 will give you an error like:
549
+
550
+ ```
551
+ Errno::ENOENT: No such file or directory @ rb_sysopen - /tmp/build_1444a5bb9dd16ddb2561c7aff40f0fc7/my-app-816d31e9896edd90cecf1402acd002c724269333/client/app/libs/i18n/translations.js
552
+ ```
553
+
554
+ Commenting out this line addresses the issue:
555
+
556
+ ```
557
+ config.i18n_dir = Rails.root.join("client", "app", "libs", "i18n")
558
+ ```
559
+
560
+ ### Added
561
+ - Allow using rake task to generate javascript locale files. The test helper automatically creates the localization files when needed. [#717](https://github.com/shakacode/react_on_rails/pull/717) by [JasonYCHuang](https://github.com/JasonYCHuang).
562
+
563
+ ### Fixed
564
+ - Upgrade Rails to 4.2.8 to fix security vulnerabilities in 4.2.5. [#735](https://github.com/shakacode/react_on_rails/pull/735) by [hrishimittal](https://github.com/hrishimittal).
565
+ - Fix spec failing due to duplicate component. [#734](https://github.com/shakacode/react_on_rails/pull/734) by [hrishimittal](https://github.com/hrishimittal).
566
+
567
+ ## [6.6.0] - 2017-02-18
568
+ ### Added
569
+ - Switched to yarn! [#715](https://github.com/shakacode/react_on_rails/pull/715) by [squadette](https://github.com/squadette).
570
+
571
+ ## [6.5.1] - 2017-02-11
572
+ ### Fixed
573
+ - Allow using gem without sprockets. [#671](https://github.com/shakacode/react_on_rails/pull/671) by [fc-arny](https://github.com/fc-arny).
574
+ - Fixed issue [#706](https://github.com/shakacode/react_on_rails/issues/706) with "flickering" components when they are unmounted too early [#709](https://github.com/shakacode/react_on_rails/pull/709) by [szyablitsky](https://github.com/szyablitsky).
575
+ - Small formatting fix for errors [#703](https://github.com/shakacode/react_on_rails/pull/703) by [justin808](https://github.com/justin808).
576
+
577
+ ## [6.5.0] - 2017-01-31
578
+ ### Added
579
+ - Allow generator function to return Object with property `renderedHtml` (already could return Object with props `redirectLocation, error`) rather than a React component or a function that returns a React component. One reason to use a generator function is that sometimes in server rendering, specifically with React Router v4, you need to return the result of calling ReactDOMServer.renderToString(element). [#689](https://github.com/shakacode/react_on_rails/issues/689) by [justin808](https://github.com/justin808).
580
+
581
+ ### Fixed
582
+ - Fix incorrect "this" references of Node.js SSR [#690](https://github.com/shakacode/react_on_rails/issues/689) by [nostophilia](https://github.com/nostophilia).
583
+
584
+ ## [6.4.2] - 2017-01-17
585
+ ### Fixed
586
+ - Added OS detection for install generator, system call for Windows and unit-tests for it. [#666](https://github.com/shakacode/react_on_rails/pull/666) by [GeorgeGorbanev](https://github.com/GeorgeGorbanev).
587
+
588
+ ## [6.4.1] - 2017-1-17
589
+ No changes.
590
+
591
+ ## [6.4.0] - 2017-1-12
592
+
593
+ ### Possible Breaking Change
594
+ - Since foreman is no longer a dependency of the React on Rails gem, please run `gem install foreman`. If you are using rvm, you may wish to run `rvm @global do gem install foreman` to install foreman for all your gemsets.
595
+
596
+ ### Fixed
597
+ - Removed foreman as a dependency. [#678](https://github.com/shakacode/react_on_rails/pull/678) by [x2es](https://github.com/x2es).
598
+
599
+ ### Added
600
+ - Automatically generate __i18n__ javascript files for `react-intl` when the serve starts up. [#642](https://github.com/shakacode/react_on_rails/pull/642) by [JasonYCHuang](https://github.com/JasonYCHuang).
601
+
602
+ ## [6.3.5] - 2017-1-6
603
+ ### Fixed
604
+ - The redux generator now creates a HelloWorld component that uses redux rather than local state. [#669](https://github.com/shakacode/react_on_rails/issues/669) by [justin808](https://github.com/justin808).
605
+
606
+ ## [6.3.4] - 2016-12-25
607
+ ##### Fixed
608
+ - Disable Turbolinks support when not supported. [#650](https://github.com/shakacode/react_on_rails/pull/650) by [ka2n](https://github.com/ka2n).
609
+
610
+ ## [6.3.3] - 2016-12-25
611
+ ##### Fixed
612
+ - By using the hook on `turbolinks:before-visit` to unmount the components, we can ensure that components are unmounted even when Turbolinks cache is disabled. Previously, we used `turbolinks:before-cache` event hook. [#644](https://github.com/shakacode/react_on_rails/pull/644) by [volkanunsal](https://github.com/volkanunsal).
613
+ - Added support for Ruby 2.0 [#651](https://github.com/shakacode/react_on_rails/pull/651) by [bbonamin](https://github.com/bbonamin).
614
+
615
+ ## [6.3.2] - 2016-12-5
616
+ ##### Fixed
617
+ - The `react_component` method was raising a `NameError` when `ReactOnRailsHelper` was included in a plain object. [#636](https://github.com/shakacode/react_on_rails/pull/636) by [jtibbertsma](https://github.com/jtibbertsma).
618
+ - "Node parse error" for node server rendering. [#641](https://github.com/shakacode/react_on_rails/pull/641) by [alleycat-at-git](https://github.com/alleycat-at-git) and [rocLv](https://github.com/rocLv)
619
+ - Better error handling when the react-on-rails node package entry is missing.[#602](https://github.com/shakacode/react_on_rails/pull/602) by [benjiwheeler](https://github.com/benjiwheeler).
620
+
621
+ ## [6.3.1] - 2016-11-30
622
+ ##### Changed
623
+ - Improved generator post-install help messages. [#631](https://github.com/shakacode/react_on_rails/pull/631) by [justin808](https://github.com/justin808).
624
+
625
+ ## [6.3.0] - 2016-11-30
626
+ ##### Changed
627
+ - Modified register API to allow registration of renderers, allowing a user to manually render their app to the DOM. This allows for code splitting and deferred loading. [#581](https://github.com/shakacode/react_on_rails/pull/581) by [jtibbertsma](https://github.com/jtibbertsma).
628
+
629
+ - Updated Basic Generator & Linters. Examples are simpler. [#624](https://github.com/shakacode/react_on_rails/pull/624) by [Judahmeek](https://github.com/Judahmeek).
630
+
631
+ - Slight improvement to the 'no hydrated stores' error. [#605](https://github.com/shakacode/react_on_rails/pull/605) by [cookiefission](https://github.com/cookiefission).
632
+
633
+ - Don't assume ActionMailer is available. [#608](https://github.com/shakacode/react_on_rails/pull/608) by [tuzz](https://github.com/tuzz).
634
+
635
+ ## [6.2.1] - 2016-11-19
636
+ - Removed unnecesary passing of context in the HelloWorld Container example and basic generator. [#612](https://github.com/shakacode/react_on_rails/pull/612) by [justin808](https://github.com/justin808)
637
+
638
+ - Turbolinks 5 bugfix to use `before-cache`, not `before-render`. [#611](https://github.com/shakacode/react_on_rails/pull/611) by [volkanunsal](https://github.com/volkanunsal).
639
+
640
+ ## [6.2.0] - 2016-11-19
641
+ ##### Changed
642
+ - Updated the generator templates to reflect current best practices, especially for the redux version. [#584](https://github.com/shakacode/react_on_rails/pull/584) by [nostophilia](https://github.com/nostophilia).
643
+
644
+ ## [6.1.2] - 2016-10-24
645
+ ##### Fixed
646
+ - Added compatibility with older manifest.yml files produced by Rails 3 Sprockets when symlinking digested assets during precompilation [#566](https://github.com/shakacode/react_on_rails/pull/566) by [etripier](https://github.com/etripier).
647
+
648
+ ## [6.1.1] - 2016-09-09
649
+ ##### Fixed
650
+ - React on Rails was incorrectly failing to create symlinks when a file existed in the location for the new symlink. [#491](https://github.com/shakacode/react_on_rails/pull/541) by [robwise ](https://github.com/robwise) and [justin808](https://github.com/justin808).
651
+
652
+ ## [6.1.0] - 2016-08-21
653
+
654
+ ##### Added
655
+ - Node option for installer added as alternative for server rendering [#469](https://github.com/shakacode/react_on_rails/pull/469) by [jbhatab](https://github.com/jbhatab).
656
+ - Server rendering now supports contexts outside of browser rendering, such as ActionMailer templates [#486](https://github.com/shakacode/react_on_rails/pull/486) by [eacaps](https://github.com/eacaps).
657
+ - Added authenticityToken() and authenticityHeaders() javascript helpers for easier use when working with CSRF protection tag generated by Rails [#517](https://github.com/shakacode/react_on_rails/pull/517) by [dzirtusss](https://github.com/dzirtusss).
658
+ - Updated JavaScript error handling on the client side. Errors in client rendering now pass through to the browser [#521](https://github.com/shakacode/react_on_rails/pull/521) by [dzirtusss](https://github.com/dzirtusss).
659
+
660
+ ##### Fixed
661
+ - React on Rails now correctly parses single-digit version strings from package.json [#491](https://github.com/shakacode/react_on_rails/pull/491) by [samphilipd ](https://github.com/samphilipd).
662
+ - Fixed assets symlinking to correctly use filenames with spaces. Begining in [#510](https://github.com/shakacode/react_on_rails/pull/510), ending in [#513](https://github.com/shakacode/react_on_rails/pull/513) by [dzirtusss](https://github.com/dzirtusss).
663
+ - Check encoding of request's original URL and force it to UTF-8 [#527](https://github.com/shakacode/react_on_rails/pull/527) by [lucke84](https://github.com/lucke84)
664
+
665
+ ## [6.0.5] - 2016-07-11
666
+ ##### Added
667
+ - Added better error messages to avoid issues with shared redux stores [#470](https://github.com/shakacode/react_on_rails/pull/470) by by [justin808](https://github.com/justin808).
668
+
669
+ ## [6.0.4] - 2016-06-13
670
+ ##### Fixed
671
+ - Added polyfill for clearTimeout which is used by babel-polyfill [#451](https://github.com/shakacode/react_on_rails/pull/451) by [martyphee](https://github.com/martyphee)
672
+
673
+ ## [6.0.3] - 2016-06-07
674
+ ##### Fixed
675
+ - Added assets symlinking support on Heroku [#446](https://github.com/shakacode/react_on_rails/pull/446) by [Alexey Karasev](https://github.com/alleycat-at-git).
676
+
677
+ ## [6.0.2] - 2016-06-06
678
+ ##### Fixed
679
+ - Fix colisions in ids of DOM nodes generated by `react_component` by indexing in using an UUID rather than an auto-increment value. This means that it should be overriden using the `id` parameter of `react_component` if one wants to generate a predictable id (_e.g._ for testing purpose). See [Issue #437](https://github.com/shakacode/react_on_rails/issues/437). Fixed in [#438](https://github.com/shakacode/react_on_rails/pull/438) by [Michael Baudino](https://github.com/michaelbaudino).
680
+
681
+ ## [6.0.1] - 2016-05-27
682
+ ##### Fixed
683
+ - Allow for older version of manifest.json for older versions of sprockets. See [Issue #435](https://github.com/shakacode/react_on_rails/issues/435). Fixed in [#436](https://github.com/shakacode/react_on_rails/pull/436) by [alleycat-at-git](https://github.com/alleycat-at-git).
684
+
685
+ ## [6.0.0] - 2016-05-25
686
+ ##### Breaking Changes
687
+ - 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.
688
+ [#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).
689
+ - **Migration to v6**
690
+ - Do not run the generator again if you've already run it.
691
+
692
+ - See [shakacode/react-webpack-rails-tutorial/pull/287](https://github.com/shakacode/react-webpack-rails-tutorial/pull/287) for an example of upgrading from v5.
693
+
694
+ - To configure the asset compliation you can either
695
+ 1. Specify a `config/react_on_rails` setting for `build_production_command` to be nil to turn this feature off.
696
+ 2. Specify the script command you want to run to build your production assets, and remove your assets.rake file.
697
+
698
+ - 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.
699
+
700
+ - 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.
701
+
702
+ Here is the addition to the generated config file:
703
+ ```ruby
704
+ # This configures the script to run to build the production assets by webpack. Set this to nil
705
+ # if you don't want react_on_rails building this file for you.
706
+ config.build_production_command = "npm run build:production"
707
+
708
+ # If you are using the ReactOnRails::TestHelper.configure_rspec_to_compile_assets(config)
709
+ # with rspec then this controls what npm command is run
710
+ # to automatically refresh your webpack assets on every test run.
711
+ config.npm_build_test_command = "npm run build:test"
712
+ ```
713
+
714
+ ##### Fixed
715
+ - 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)
716
+ - Fixed "too early unmount" which caused problems with Turbolinks 5 not updating the screen [#425](https://github.com/shakacode/react_on_rails/pull/425) by [szyablitsky](https://github.com/szyablitsky)
717
+
718
+ ##### Added
719
+ - Experimental ability to use node.js process for server rendering. See [#380](https://github.com/shakacode/react_on_rails/pull/380) by [alleycat-at-git](https://github.com/alleycat-at-git).
720
+ - Non-digested version of assets in public folder [#413](https://github.com/shakacode/react_on_rails/pull/413) by [alleycat-at-git](https://github.com/alleycat-at-git).
721
+ - Cache client/node_modules directory to prevent Heroku from reinstalling all modules from scratch [#324](https://github.com/shakacode/react_on_rails/pull/324) by [modosc](https://github.com/modosc).
722
+ - ReactOnRails.reactOnRailsPageLoaded() is exposed in case one needs to call this manually and information on async script loading added. See [#315](https://github.com/shakacode/react_on_rails/pull/315) by [SqueezedLight](https://github.com/SqueezedLight).
723
+
724
+ ##### Changed
725
+ - [#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) contains:
726
+ - Only one webpack config is generated for server and client config. Package.json files were changed to reflect this.
727
+ - Added npm_build_test_command to allow developers to change what npm command is automatically run from rspec.
728
+ - Replace URI with Addressable gem. See [#405](https://github.com/shakacode/react_on_rails/pull/405) by [lucke84](https://github.com/lucke84)
729
+
730
+ ##### Removed
731
+ - [#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) contains:
732
+ - Server rendering is no longer an option in the generator and is always accessible.
733
+ - Removed lodash, jquery, and loggerMiddleware from the generated code.
734
+ - Removed webpack watch check for test helper automatic compilation.
735
+
736
+ ## [5.2.0] - 2016-04-08
737
+ ##### Added
738
+ - Support for React 15.0 to react_on_rails. See [#379](https://github.com/shakacode/react_on_rails/pull/379) by [brucek](https://github.com/brucek).
739
+ - Support for Node.js server side rendering. See [#380](https://github.com/shakacode/react_on_rails/pull/380) by [alleycat](https://github.com/alleycat-at-git) and [doc](https://www.shakacode.com/react-on-rails/docs/react-on-rails-pro/react-on-rails-pro#pro-integration-with-nodejs-for-server-rendering)
740
+
741
+ ##### Removed
742
+ - Generator removals to simplify installer. See [#364](https://github.com/shakacode/react_on_rails/pull/364) by [jbhatab](https://github.com/jbhatab).
743
+ - Removed options for heroku, boostrap, and the linters from generator.
744
+ - Removed install for the Webpack Dev Server, as we can now do hot reloading with Rails, so the complexity of this feature is not justified. Nevertheless, the setup of React on Rails still supports this setup, just not with the generator.
745
+ - Documentation added for removed installer options.
746
+
747
+ ## [5.1.1] - 2016-04-04
748
+ ##### Fixed
749
+ - Security Fixes: Address failure to sanitize console messages when server rendering and displaying in the browser console. See [#366](https://github.com/shakacode/react_on_rails/pull/366) and [#370](https://github.com/shakacode/react_on_rails/pull/370) by [justin808](https://github.com/justin808)
750
+
751
+ ##### Added
752
+ - railsContext includes the port number and a boolean if the code is being run on the server or client.
753
+
754
+ ## [5.1.0] - 2016-04-03
755
+ ##### Added
756
+ All 5.1.0 changes can be found in [#362](https://github.com/shakacode/react_on_rails/pull/362) by [justin808](https://github.com/justin808).
757
+ - Generator enhancements
758
+ - Generator adds line to spec/rails_helper.rb so that running specs will ensure assets are compiled.
759
+ - Other small changes to the generator including adding necessary npm scripts to allow React on Rails to build assets.
760
+ - Npm modules updated for generator.
761
+ - Added babel-runtime in to the client/package.json created.
762
+ - Server rendering
763
+ - Added more diagnostics for server rendering.
764
+ - Calls to setTimeout and setInterval are not logged for server rendering unless env TRACE_REACT_ON_RAILS is set to YES.
765
+ - Updated all project npm dependencies to latest.
766
+ - Update to node 5.10.0 for CI.
767
+ - Added babel-runtime as a peer dependency for the npm module.
768
+
769
+ ## [5.0.0] - 2016-04-01
770
+
771
+ ##### Added
772
+ - Added `railsContext`, an object which gets passed always as the second parameter to both react component and redux store generator functions, both for server and client rendering. This provides data like the current locale, the pathname, etc. The data values are customizable by a new configuration called `rendering_extension` where you can create a module with a method called `rendering_extension`. This allows you to add additional values to the Rails Context. Implement one static method called `custom_context(view_context)` and return a Hash. See [#345](https://github.com/shakacode/react_on_rails/pull/345) by [justin808](https://github.com/justin808)
773
+
774
+ ##### Changed
775
+ - Previously, you could pass arbitrary additional html attributes to react_component. Now, you need to pass them in as a named parameter `html_options` to react_component.
776
+
777
+ ##### Breaking Changes
778
+ - You must provide named attributes, including `props` for view helper `react_component`. See [this commit](https://github.com/shakacode/react-webpack-rails-tutorial/commit/a97fa90042cbe27be7fd7fa70b5622bfcf9c3673) for an example migration used for [www.reactrails.com](http://www.reactrails.com).
779
+
780
+ ## [4.0.3] - 2016-03-17
781
+
782
+ ##### Fixed
783
+ - `ReactOnRailsHelper#react_component`: Invalid deprecation message when called with only one paramter, the component name.
784
+
785
+ ## [4.0.2] - 2016-03-17
786
+
787
+ ##### Fixed
788
+ - `ReactOnRails::Controller#redux_store`: 2nd parameter changed to a named parameter `props` for consistency.
789
+
790
+ ## [4.0.1] - 2016-03-16
791
+
792
+ ##### Fixed
793
+ - Switched to `heroku buildpacks:set` syntax rather than using a `.buildpacks` file, which is deprecated. See [#319](https://github.com/shakacode/react_on_rails/pull/319) by [esauter5](https://github.com/esauter5). Includes both generator and doc updates.
794
+
795
+ ## [4.0.0] - 2016-03-14
796
+
797
+ ##### Added
798
+ - [spec/dummy](spec/dummy) is a full sample app of React on Rails techniques **including** the hot reloading of assets from Rails!
799
+ - Added helpers `env_stylesheet_link_tag` and `env_javascript_include_tag` to support hot reloading Rails. See the [README.md](./README.md) for more details and see the example application in `spec/dummy`. Also see how this is used in the [tutorial: application.html.erb](https://github.com/shakacode/react-webpack-rails-tutorial/blob/master/app%2Fviews%2Flayouts%2Fapplication.html.erb#L6)
800
+ - Added optional parameter for ReactOnRails.getStore(name, throwIfMissing = true) so that you can check if a store is defined easily.
801
+ - Added controller `module ReactOnRails::Controller`. Adds method `redux_store` to setup redux stores in the view.
802
+ - Added option `defer: true` for view helper `redux_store`. This allows the view helper to specify the props for store hydration, yet still render the props at the bottom of the view.
803
+ - Added view helper `redux_store_hydration_data` to render the props on the application's layout, near the bottom. This allows for the client hydration data to be parsed after the server rendering, which may result in a faster load time.
804
+ - The checker for outdated bundles before running tests will two configuration options: `generated_assets_dir` and `webpack_generated_files`.
805
+ - Better support for Turbolinks 5!
806
+ - Fixed generator check of uncommitted code for foreign languages. See [#303](https://github.com/shakacode/react_on_rails/pull/303) by [nmatyukov](https://github.com/nmatyukov).
807
+ - Added several parameters used for ensuring webpack assets are built for running tests:
808
+ - `config.generated_assets_dir`: Directory where your generated webpack assets go. You can have only **one** directory for this.
809
+ - `config.webpack_generated_files`: List of files that will get created in the `generated_assets_dir`. The test runner helper will ensure these generated files are newer than any of the files in the client directory.
810
+
811
+ ##### Changed
812
+ - Generator default for webpack generated assets is now `app/assets/webpack` as we use this for both JavaScript and CSS generated assets.
813
+
814
+ ##### Fixed
815
+ - The test runner "assets up to date checker" is greatly improved.
816
+ - Lots of doc updates!
817
+ - Improved the **spec/dummy** sample app so that it supports CSS modules, hot reloading, etc, and it can server as a template for a new ReactOnRails installation.
818
+
819
+ ##### Breaking Changes
820
+ - Deprecated calling `redux_store(store_name, props)`. The API has changed. Use `redux_store(store_name, props: props, defer: false)` A new option called `defer` allows the rendering of store hydration at the bottom of the your layout. Place `redux_store_hydration_data` on your layout.
821
+ - `config.server_bundle_js_file` has changed. The default value is now blank, meaning no server rendering. Addtionally, if you specify the file name, you should not include the path, as that should be specified in the `config.generated_assets_dir`.
822
+ - `config.generated_assets_dirs` has been renamed to `config.generated_assets_dir` (singular) and it only takes one directory.
823
+
824
+ ## [3.0.6] - 2016-03-01
825
+ ##### Fixed
826
+ - Improved errors when registered store is not found. See [#301](https://github.com/shakacode/react_on_rails/pull/301) by [justin808](https://github.com/justin808).
827
+
828
+ ## [3.0.5] - 2016-02-26
829
+ ##### Fixed
830
+ - Fixed error in linters rake file for generator. See [#299](https://github.com/shakacode/react_on_rails/pull/299) by [mpugach](https://github.com/mpugach).
831
+
832
+ ## [3.0.4] - 2016-02-25
833
+ ##### Fixed
834
+ - Updated CHANGELOG.md to include contributors for each PR.
835
+ - Fixed config.server_bundle_js file value in generator to match generator setting of server rendering. See [#295](https://github.com/shakacode/react_on_rails/pull/295) by [aaronvb](https://github.com/aaronvb).
836
+
837
+ ## [3.0.3] - 2016-02-21
838
+ ##### Fixed
839
+ - Cleaned up code in `spec/dummy` to latest React and Redux APIs. See [#282](https://github.com/shakacode/react_on_rails/pull/282).
840
+ - Update generator messages with helpful information. See [#279](https://github.com/shakacode/react_on_rails/pull/279).
841
+ - Other small generated comment fixes and doc fixes.
842
+
843
+ ## [3.0.2] - 2016-02-15
844
+ ##### Fixed
845
+ - Fixed missing information in the helpful message after running the base install generator regarding how to run the node server with hot reloading support.
846
+
847
+ ## [3.0.1] - 2016-02-15
848
+ ##### Fixed
849
+ - Fixed several jscs linter issues.
850
+
851
+ ## [3.0.0] - 2016-02-15
852
+ ##### Fixed
853
+ - Fix Bootstrap Sass Append to Gemfile, missing new line. [#262](https://github.com/shakacode/react_on_rails/pull/262).
854
+
855
+ ##### Added
856
+ - Added helper `redux_store` and associated JavaScript APIs that allow multiple React components to use the same store. Thus, you initialize the store, with props, separately from the components.
857
+ - Added forman to gemspec in case new dev does not have it globally installed. [#248](https://github.com/shakacode/react_on_rails/pull/248).
858
+ - Support for Turbolinks 5! [#270](https://github.com/shakacode/react_on_rails/pull/270).
859
+ - Added better error messages for `ReactOnRails.register()`. [#273](https://github.com/shakacode/react_on_rails/pull/273).
860
+
861
+ ##### Breaking Change
862
+ - Calls to `react_component` should use a named argument of props. For example, change this:
863
+ ```ruby
864
+ <%= react_component("ReduxSharedStoreApp", {}, prerender: false, trace: true) %>
865
+ ```
866
+
867
+ to
868
+ ```ruby
869
+ <%= react_component("ReduxSharedStoreApp", props: {}, prerender: false, trace: true) %>
870
+ ```
871
+ You'll get a deprecation message to change this.
872
+ - Renamed `ReactOnRails.configure_rspec_to_compile_assets` to `ReactOnRails::TestHelper.configure_rspec_to_compile_assets`. The code has also been optimized to check for whether or not the compiled webpack bundles are up to date or not and will not run if not necessary. If you are using non-standard directories for your generated webpack assets (`app/assets/javascripts/generated` and `app/assets/stylesheets/generated`) or have additional directories you wish the helper to check, you need to update your ReactOnRails configuration accordingly. See [documentation](https://www.shakacode.com/react-on-rails/docs/guides/rspec_configuration) for how to do this. [#253](https://github.com/shakacode/react_on_rails/pull/253).
873
+ - You have to call `ReactOnRails.register` to register react components. This was deprecated in v2. [#273](https://github.com/shakacode/react_on_rails/pull/273).
874
+
875
+ ##### Migration Steps v2 to v3
876
+ - See [these changes of spec/dummy/spec/rails_helper.rb](https://github.com/shakacode/react_on_rails/blob/master/spec/dummy/spec/rails_helper.rb#L36..38) for an example. Add this line to your `rails_helper.rb`:
877
+ ```ruby
878
+ RSpec.configure do |config|
879
+ # Ensure that if we are running js tests, we are using latest webpack assets
880
+ ReactOnRails::TestHelper.configure_rspec_to_compile_assets(config)
881
+ ```
882
+ - Change view helper calls to react_component to use the named param of `props`. See forum post [Using Regexp to update to ReactOnRails v3](http://forum.shakacode.com/t/using-regexp-to-update-to-reactonrails-v3/481).
883
+
884
+ ## [2.3.0] - 2016-02-01
885
+ ##### Added
886
+ - Added polyfills for `setInterval` and `setTimeout` in case other libraries expect these to exist.
887
+ - Added much improved debugging for errors in the server JavaScript webpack file.
888
+ - See [#244](https://github.com/shakacode/react_on_rails/pull/244/) for these improvements.
889
+
890
+ ## [2.2.0] - 2016-01-29
891
+ ##### Added
892
+ - New JavaScript API for debugging TurboLinks issues. Be sure to see [turbolinks docs](https://www.shakacode.com/react-on-rails/docs/rails/turbolinks). `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).
893
+
894
+ ## [2.1.1] - 2016-01-28
895
+
896
+ ##### Fixed
897
+ - Fixed regression where apps that were not using Turbolinks would not render components on page load.
898
+
899
+ ##### Added
900
+ - `ReactOnRails.render` returns a virtualDomElement Reference to your React component's backing instance. See [#234](https://github.com/shakacode/react_on_rails/pull/234).
901
+ - `debug_turbolinks` helper for debugging turbolinks issues. See [turbolinks](https://www.shakacode.com/react-on-rails/docs/rails/turbolinks).
902
+ - Enhanced regression testing for non-turbolinks apps. Runs all tests for dummy app with turbolinks both disabled and enabled.
903
+
904
+ ## [2.1.0] - 2016-01-26
905
+ ##### Added
906
+ - Added EnsureAssetsCompiled feature so that you do not accidentally run tests without properly compiling the JavaScript bundles. Add a line to your `rails_helper.rb` file to check that the latest Webpack bundles have been generated prior to running tests that may depend on your client-side code. See [docs](https://www.shakacode.com/react-on-rails/docs/guides/rspec_configuration) for more detailed instructions. [#222](https://github.com/shakacode/react_on_rails/pull/222)
907
+ - Added [migration guide](https://www.shakacode.com/react-on-rails/docs/additional-details/migrating-from-react-rails) for migrating from React-Rails. [#219](https://github.com/shakacode/react_on_rails/pull/219)
908
+ - Added [React on Rails Doctrine](https://www.shakacode.com/react-on-rails/docs/misc/doctrine) to docs. Discusses the project's motivations, conventions, and principles. [#220](https://github.com/shakacode/react_on_rails/pull/220)
909
+ - Added ability to skip `display:none` style in the generated content tag for a component. Some developers may want to disable inline styles for security reasons. See generated config [initializer file](lib/generators/react_on_rails/templates/base/base/config/initializers/react_on_rails.rb#L27) for example on setting `skip_display_none`. [#218](https://github.com/shakacode/react_on_rails/pull/218)
910
+
911
+ ##### Changed
912
+ - Changed message when running the dev (a.k.a. "express" server). [#227](https://github.com/shakacode/react_on_rails/commit/543ae70254d0c7b477e2c92af86f40746e58a431)
913
+
914
+ ##### Fixed
915
+ - Fixed handling of Turbolinks. Code was checking that Turbolinks was installed when it was not yet because some setups load Turbolinks after the bundles. The changes to the code will check if Turbolinks is installed after the page loaded event fires. Code was also added to allow easy debugging of Turbolinks, which should be useful when v5 of Turbolinks is released shortly. Details of how to configure Turbolinks with troubleshooting were added to `docs` directory. [#221](https://github.com/shakacode/react_on_rails/pull/221)
916
+ - Fixed issue with already initialized constant warning appearing when starting a Rails server [#226](https://github.com/shakacode/react_on_rails/pull/226)
917
+ - Fixed to make backwards compatible with Ruby v2.0 and updated all Ruby and Node dependencies.
918
+
919
+ ---
920
+
921
+ ## [2.0.2]
922
+ - Added better messages after generator runs. [#210](https://github.com/shakacode/react_on_rails/pull/210)
923
+
924
+ ## [2.0.1]
925
+ - Fixed bug with version matching between gem and npm package.
926
+
927
+ ## [2.0.0]
928
+ - Move JavaScript part of react_on_rails to npm package 'react-on-rails'.
929
+ - Converted JavaScript code to ES6! with tests!
930
+ - No global namespace pollution. ReactOnRails is the only global added.
931
+ - New API. Instead of placing React components on the global namespace, you instead call ReactOnRails.register, passing an object where keys are the names of your components:
932
+ ```
933
+ import ReactOnRails from 'react-on-rails';
934
+ ReactOnRails.register({name: component});
935
+ ```
936
+ Best done with Object destructing:
937
+ ```
938
+ import ReactOnRails from 'react-on-rails';
939
+ ReactOnRails.register(
940
+ {
941
+ Component1,
942
+ Component2
943
+ }
944
+ );
945
+ ```
946
+ Previously, you used
947
+ ```
948
+ window.Component1 = Component1;
949
+ window.Component2 = Component2;
950
+ ```
951
+ This would pollute the global namespace. See details in the README.md for more information.
952
+ - Your jade template for the WebpackDevServer setup should use the new API:
953
+ ```
954
+ ReactOnRails.render(componentName, props, domNodeId);
955
+ ```
956
+ such as:
957
+ ```
958
+ ReactOnRails.render("HelloWorldApp", {name: "Stranger"}, 'app');
959
+ ```
960
+ - All npm dependency libraries updated. Most notable is going to Babel 6.
961
+ - Dropped support for react 0.13.
962
+ - JS Linter uses ShakaCode JavaScript style: https://github.com/shakacode/style-guide-javascript
963
+ - Generators account these differences.
964
+
965
+ ##### Migration Steps v1 to v2
966
+ [Example of upgrading](https://github.com/shakacode/react-webpack-rails-tutorial/commit/5b1b8698e8daf0f0b94e987740bc85ee237ef608)
967
+
968
+ 1. Update the `react_on_rails` gem.
969
+ 2. Remove `//= require react_on_rails` from any files such as `app/assets/javascripts/application.js`. This file comes from npm now.
970
+ 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.
971
+ 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`.
972
+ 5. Update your index.jade to use the new API `ReactOnRails.render("MyApp", !{props}, 'app');`
973
+ 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.
974
+ 7. Run `cd client && npm i --save react-on-rails` to get react-on-rails into your `client/package.json`.
975
+ 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.
976
+ 9. If you want to stick with Babel 5 for a bit, see [Issue #238](https://github.com/shakacode/react_on_rails/issues/238).
977
+
978
+ ---
979
+
980
+ ## [1.2.2]
981
+ ##### Fixed
982
+ - Missing Lodash from generated package.json [#175](https://github.com/shakacode/react_on_rails/pull/175)
983
+ - Rails 3.2 could not run generators [#182](https://github.com/shakacode/react_on_rails/pull/182)
984
+ - Better placement of jquery_ujs dependency [#171](https://github.com/shakacode/react_on_rails/pull/171)
985
+ - Add more detailed description when adding --help option to generator [#161](https://github.com/shakacode/react_on_rails/pull/161)
986
+ - Lots of better docs.
987
+
988
+ ## [1.2.0]
989
+ ##### Added
990
+ - Support `--skip-bootstrap` or `-b` option for generator.
991
+ - Create examples tasks to test generated example apps.
992
+
993
+ ##### Fixed
994
+ - Fix non-server rendering configuration issues.
995
+ - Fix application.js incorrect overwritten issue.
996
+ - Fix Gemfile dependencies.
997
+ - Fix several generator issues.
998
+
999
+ ##### Removed
1000
+ - Removed templates/client folder.
1001
+
1002
+ ---
1003
+
1004
+ ## [1.1.1] - 2015-11-28
1005
+ ##### Added
1006
+ - Support for React Router.
1007
+ - Error and redirect handling.
1008
+ - Turbolinks support.
1009
+
1010
+ ##### Fixed
1011
+ - Fix several generator related issues.
1012
+
1013
+ [Unreleased]: https://github.com/shakacode/react_on_rails/compare/13.0.1...master
1014
+ [13.0.1]: https://github.com/shakacode/react_on_rails/compare/13.0.0...13.0.1
1015
+ [13.0.0]: https://github.com/shakacode/react_on_rails/compare/12.6.0...13.0.0
1016
+ [12.6.0]: https://github.com/shakacode/react_on_rails/compare/12.5.2...12.6.0
1017
+ [12.5.2]: https://github.com/shakacode/react_on_rails/compare/12.5.1...12.5.2
1018
+ [12.5.1]: https://github.com/shakacode/react_on_rails/compare/12.5.0...12.5.1
1019
+ [12.5.0]: https://github.com/shakacode/react_on_rails/compare/12.4.0...12.5.0
1020
+ [12.4.0]: https://github.com/shakacode/react_on_rails/compare/12.3.0...12.4.0
1021
+ [12.3.0]: https://github.com/shakacode/react_on_rails/compare/12.2.0...12.3.0
1022
+ [12.2.0]: https://github.com/shakacode/react_on_rails/compare/12.1.0...12.2.0
1023
+ [12.1.0]: https://github.com/shakacode/react_on_rails/compare/12.0.4...12.1.0
1024
+ [12.0.4]: https://github.com/shakacode/react_on_rails/compare/12.0.3...12.0.4
1025
+ [12.0.3]: https://github.com/shakacode/react_on_rails/compare/12.0.2...12.0.3
1026
+ [12.0.2]: https://github.com/shakacode/react_on_rails/compare/12.0.1...12.0.2
1027
+ [12.0.1]: https://github.com/shakacode/react_on_rails/compare/12.0.0...12.0.1
1028
+ [12.0.0]: https://github.com/shakacode/react_on_rails/compare/11.3.0...12.0.0
1029
+ [11.3.0]: https://github.com/shakacode/react_on_rails/compare/11.2.2...11.3.0
1030
+ [11.2.2]: https://github.com/shakacode/react_on_rails/compare/11.2.1...11.2.2
1031
+ [11.2.1]: https://github.com/shakacode/react_on_rails/compare/11.1.8...11.2.1
1032
+ [11.1.8]: https://github.com/shakacode/react_on_rails/compare/11.1.7...11.1.8
1033
+ [11.1.7]: https://github.com/shakacode/react_on_rails/compare/11.1.6...11.1.7
1034
+ [11.1.6]: https://github.com/shakacode/react_on_rails/compare/11.1.5...11.1.6
1035
+ [11.1.5]: https://github.com/shakacode/react_on_rails/compare/11.1.4...11.1.5
1036
+ [11.1.4]: https://github.com/shakacode/react_on_rails/compare/11.1.3...11.1.4
1037
+ [11.1.3]: https://github.com/shakacode/react_on_rails/compare/11.1.2...11.1.3
1038
+ [11.1.2]: https://github.com/shakacode/react_on_rails/compare/11.1.1...11.1.2
1039
+ [11.1.1]: https://github.com/shakacode/react_on_rails/compare/11.1.0...11.1.1
1040
+ [11.1.0]: https://github.com/shakacode/react_on_rails/compare/11.0.10...11.1.0
1041
+ [11.0.10]: https://github.com/shakacode/react_on_rails/compare/11.0.9...11.0.10
1042
+ [11.0.9]: https://github.com/shakacode/react_on_rails/compare/11.0.8...11.0.9
1043
+ [11.0.8]: https://github.com/shakacode/react_on_rails/compare/11.0.7...11.0.8
1044
+ [11.0.7]: https://github.com/shakacode/react_on_rails/compare/11.0.6...11.0.7
1045
+ [11.0.6]: https://github.com/shakacode/react_on_rails/compare/11.0.5...11.0.6
1046
+ [11.0.5]: https://github.com/shakacode/react_on_rails/compare/11.0.4...11.0.5
1047
+ [11.0.4]: https://github.com/shakacode/react_on_rails/compare/11.0.3...11.0.4
1048
+ [11.0.3]: https://github.com/shakacode/react_on_rails/compare/11.0.2...11.0.3
1049
+ [11.0.2]: https://github.com/shakacode/react_on_rails/compare/11.0.1...11.0.2
1050
+ [11.0.1]: https://github.com/shakacode/react_on_rails/compare/11.0.0...11.0.1
1051
+ [11.0.0]: https://github.com/shakacode/react_on_rails/compare/10.1.4...11.0.0
1052
+ [10.1.4]: https://github.com/shakacode/react_on_rails/compare/10.1.3...10.1.4
1053
+ [10.1.3]: https://github.com/shakacode/react_on_rails/compare/10.1.2...10.1.3
1054
+ [10.1.2]: https://github.com/shakacode/react_on_rails/compare/10.1.1...10.1.2
1055
+ [10.1.1]: https://github.com/shakacode/react_on_rails/compare/10.1.0...10.1.1
1056
+ [10.1.0]: https://github.com/shakacode/react_on_rails/compare/10.0.2...10.1.0
1057
+ [10.0.2]: https://github.com/shakacode/react_on_rails/compare/10.0.1...10.0.2
1058
+ [10.0.1]: https://github.com/shakacode/react_on_rails/compare/10.0.0...10.0.1
1059
+ [10.0.0]: https://github.com/shakacode/react_on_rails/compare/9.0.3...10.0.0
1060
+ [9.0.3]: https://github.com/shakacode/react_on_rails/compare/9.0.2...9.0.3
1061
+ [9.0.2]: https://github.com/shakacode/react_on_rails/compare/9.0.1...9.0.2
1062
+ [9.0.1]: https://github.com/shakacode/react_on_rails/compare/9.0.0...9.0.1
1063
+ [9.0.0]: https://github.com/shakacode/react_on_rails/compare/8.0.7...9.0.0
1064
+ [8.0.7]: https://github.com/shakacode/react_on_rails/compare/8.0.6...8.0.7
1065
+ [8.0.6]: https://github.com/shakacode/react_on_rails/compare/8.0.5...8.0.6
1066
+ [8.0.5]: https://github.com/shakacode/react_on_rails/compare/8.0.3...8.0.5
1067
+ [8.0.3]: https://github.com/shakacode/react_on_rails/compare/8.0.2...8.0.3
1068
+ [8.0.2]: https://github.com/shakacode/react_on_rails/compare/8.0.1...8.0.2
1069
+ [8.0.1]: https://github.com/shakacode/react_on_rails/compare/8.0.0...8.0.1
1070
+ [8.0.0]: https://github.com/shakacode/react_on_rails/compare/7.0.4...8.0.0
1071
+ [8.0.0-beta.3]: https://github.com/shakacode/react_on_rails/compare/8.0.0-beta.2...8.0.0-beta.3
1072
+ [8.0.0-beta.2]: https://github.com/shakacode/react_on_rails/compare/8.0.0-beta.1...8.0.0-beta.2
1073
+ [8.0.0-beta.1]: https://github.com/shakacode/react_on_rails/compare/7.0.4...8.0.0-beta.1
1074
+ [7.0.4]: https://github.com/shakacode/react_on_rails/compare/7.0.3...7.0.4
1075
+ [7.0.3]: https://github.com/shakacode/react_on_rails/compare/7.0.1...7.0.3
1076
+ [7.0.1]: https://github.com/shakacode/react_on_rails/compare/7.0.0...7.0.1
1077
+ [7.0.0]: https://github.com/shakacode/react_on_rails/compare/6.10.1...7.0.0
1078
+ [6.10.1]: https://github.com/shakacode/react_on_rails/compare/6.10.0...6.10.1
1079
+ [6.10.0]: https://github.com/shakacode/react_on_rails/compare/6.9.3...6.10.0
1080
+ [6.9.3]: https://github.com/shakacode/react_on_rails/compare/6.9.1...6.9.3
1081
+ [6.9.2]: https://github.com/shakacode/react_on_rails/compare/6.9.1...6.9.2
1082
+ [6.9.1]: https://github.com/shakacode/react_on_rails/compare/6.8.2...6.9.1
1083
+ [6.9.0]: https://github.com/shakacode/react_on_rails/compare/6.8.2...6.9.0
1084
+ [6.8.2]: https://github.com/shakacode/react_on_rails/compare/6.8.1...6.8.2
1085
+ [6.8.1]: https://github.com/shakacode/react_on_rails/compare/6.8.0...6.8.1
1086
+ [6.8.0]: https://github.com/shakacode/react_on_rails/compare/6.7.2...6.8.0
1087
+ [6.7.2]: https://github.com/shakacode/react_on_rails/compare/6.7.1...6.7.2
1088
+ [6.7.1]: https://github.com/shakacode/react_on_rails/compare/6.7.0...6.7.1
1089
+ [6.7.0]: https://github.com/shakacode/react_on_rails/compare/6.6.0...6.7.0
1090
+ [6.6.0]: https://github.com/shakacode/react_on_rails/compare/6.5.1...6.6.0
1091
+ [6.5.1]: https://github.com/shakacode/react_on_rails/compare/6.5.0...6.5.1
1092
+ [6.5.0]: https://github.com/shakacode/react_on_rails/compare/6.4.2...6.5.0
1093
+ [6.4.2]: https://github.com/shakacode/react_on_rails/compare/6.4.1...6.4.2
1094
+ [6.4.1]: https://github.com/shakacode/react_on_rails/compare/6.4.0...6.4.1
1095
+ [6.4.0]: https://github.com/shakacode/react_on_rails/compare/6.3.5...6.4.0
1096
+ [6.3.5]: https://github.com/shakacode/react_on_rails/compare/6.3.4...6.3.5
1097
+ [6.3.4]: https://github.com/shakacode/react_on_rails/compare/6.3.3...6.3.4
1098
+ [6.3.3]: https://github.com/shakacode/react_on_rails/compare/6.3.2...6.3.3
1099
+ [6.3.2]: https://github.com/shakacode/react_on_rails/compare/6.3.1...6.3.2
1100
+ [6.3.1]: https://github.com/shakacode/react_on_rails/compare/6.3.0...6.3.1
1101
+ [6.3.0]: https://github.com/shakacode/react_on_rails/compare/6.2.1...6.3.0
1102
+ [6.2.1]: https://github.com/shakacode/react_on_rails/compare/6.2.0...6.2.1
1103
+ [6.2.0]: https://github.com/shakacode/react_on_rails/compare/6.1.2...6.2.0
1104
+ [6.1.2]: https://github.com/shakacode/react_on_rails/compare/6.1.1...6.1.2
1105
+ [6.1.1]: https://github.com/shakacode/react_on_rails/compare/6.1.0...6.1.1
1106
+ [6.1.0]: https://github.com/shakacode/react_on_rails/compare/6.0.5...6.1.0
1107
+ [6.0.5]: https://github.com/shakacode/react_on_rails/compare/6.0.4...6.0.5
1108
+ [6.0.4]: https://github.com/shakacode/react_on_rails/compare/6.0.3...6.0.4
1109
+ [6.0.3]: https://github.com/shakacode/react_on_rails/compare/6.0.2...6.0.3
1110
+ [6.0.2]: https://github.com/shakacode/react_on_rails/compare/6.0.1...6.0.2
1111
+ [6.0.1]: https://github.com/shakacode/react_on_rails/compare/6.0.0...6.0.1
1112
+ [6.0.0]: https://github.com/shakacode/react_on_rails/compare/5.2.0...6.0.0
1113
+ [5.2.0]: https://github.com/shakacode/react_on_rails/compare/5.1.1...5.2.0
1114
+ [5.1.1]: https://github.com/shakacode/react_on_rails/compare/5.1.0...5.1.1
1115
+ [5.1.0]: https://github.com/shakacode/react_on_rails/compare/5.0.0...5.1.0
1116
+ [5.0.0]: https://github.com/shakacode/react_on_rails/compare/4.0.3...5.0.0
1117
+ [4.0.3]: https://github.com/shakacode/react_on_rails/compare/4.0.2...4.0.3
1118
+ [4.0.2]: https://github.com/shakacode/react_on_rails/compare/4.0.1...4.0.2
1119
+ [4.0.1]: https://github.com/shakacode/react_on_rails/compare/4.0.0...4.0.1
1120
+ [4.0.0]: https://github.com/shakacode/react_on_rails/compare/3.0.6...4.0.0
1121
+ [3.0.6]: https://github.com/shakacode/react_on_rails/compare/3.0.5...3.0.6
1122
+ [3.0.5]: https://github.com/shakacode/react_on_rails/compare/3.0.4...3.0.5
1123
+ [3.0.4]: https://github.com/shakacode/react_on_rails/compare/3.0.3...3.0.4
1124
+ [3.0.3]: https://github.com/shakacode/react_on_rails/compare/3.0.2...3.0.3
1125
+ [3.0.2]: https://github.com/shakacode/react_on_rails/compare/3.0.1...3.0.2
1126
+ [3.0.1]: https://github.com/shakacode/react_on_rails/compare/3.0.0...3.0.1
1127
+ [3.0.0]: https://github.com/shakacode/react_on_rails/compare/2.3.0...3.0.0
1128
+ [2.3.0]: https://github.com/shakacode/react_on_rails/compare/2.2.0...2.3.0
1129
+ [2.2.0]: https://github.com/shakacode/react_on_rails/compare/2.1.1...2.2.0
1130
+ [2.1.1]: https://github.com/shakacode/react_on_rails/compare/v2.1.0...2.1.1
1131
+ [2.1.0]: https://github.com/shakacode/react_on_rails/compare/v2.0.2...v2.1.0
1132
+ [2.0.2]: https://github.com/shakacode/react_on_rails/compare/v2.0.1...v2.0.2
1133
+ [2.0.1]: https://github.com/shakacode/react_on_rails/compare/v2.0.0...v2.0.1
1134
+ [2.0.0]: https://github.com/shakacode/react_on_rails/compare/v1.2.2...v2.0.0
1135
+ [1.2.2]: https://github.com/shakacode/react_on_rails/compare/v1.2.0...v1.2.2
1136
+ [1.2.0]: https://github.com/shakacode/react_on_rails/compare/v1.1.0...v1.2.0
1137
+ [1.1.1]: https://github.com/shakacode/react_on_rails/compare/v1.1.1...v1.0.0
package/README.md CHANGED
@@ -12,14 +12,12 @@
12
12
  [![License](https://img.shields.io/badge/license-mit-green.svg)](LICENSE.md) [![Build Status](https://travis-ci.org/shakacode/react_on_rails.svg?branch=master)](https://travis-ci.org/shakacode/react_on_rails) [![Gem Version](https://badge.fury.io/rb/react_on_rails.svg)](https://badge.fury.io/rb/react_on_rails) [![npm version](https://badge.fury.io/js/react-on-rails.svg)](https://badge.fury.io/js/react-on-rails) [![Code Climate](https://codeclimate.com/github/shakacode/react_on_rails/badges/gpa.svg)](https://codeclimate.com/github/shakacode/react_on_rails) [![Coverage Status](https://coveralls.io/repos/shakacode/react_on_rails/badge.svg?branch=master&service=github)](https://coveralls.io/github/shakacode/react_on_rails?branch=master) [![](https://ruby-gem-downloads-badge.herokuapp.com/react_on_rails?type=total)](https://rubygems.org/gems/react_on_rails)
13
13
 
14
14
  # News
15
- * Project is updated to support Rails 7!
16
- * **React and Webpack with Ruby on Rails**: The current version of https://github.com/rails/webpacker will soon ship. While it won't be the default for Rails 7, it is not "deprecated." The core webpack configuration has become slimmer, allowing easier extension. If you want to get started today, use the master branch of [shakacode/react_on_rails_tutorial_with_ssr_and_hmr_fast_refresh](https://github.com/shakacode/react_on_rails_tutorial_with_ssr_and_hmr_fast_refresh) with `gem "webpacker", "6.0.0.rc.6"` Any updates to get to v6 from this point forward should be simple.
17
-
18
- If you have time, please comment on Justin's final proposals for Webpacker v6: [webpacker/pulls/justin808](https://github.com/rails/webpacker/pulls/justin808).
15
+ * ShakaCode now maintains the official successor to `rails/webpacker`, [`shakapacker`](https://github.com/shakacode/shakapacker).
16
+ * Project is updated to support Rails 7 and Shakapacker v6+!
19
17
 
20
18
  -----
21
19
 
22
- *These are the docs for React on Rails 12. To see the version 11 docs, [click here](https://github.com/shakacode/react_on_rails/tree/11.3.0).*
20
+ *These are the docs for React on Rails 13. To see the older docs: [v12](https://github.com/shakacode/react_on_rails/tree/12.6.0) and [v11](https://github.com/shakacode/react_on_rails/tree/11.3.0).*
23
21
 
24
22
  #### About
25
23
  React on Rails integrates Rails with (server rendering of) Facebook's [React](https://github.com/facebook/react) front-end framework.
@@ -29,9 +27,9 @@ This project is maintained by the software consulting firm [ShakaCode](https://w
29
27
  Are you interested in optimizing your webpack setup for React on Rails including code
30
28
  splitting with [react-router](https://github.com/ReactTraining/react-router#readme) and
31
29
  [loadable-components](https://loadable-components.com/) with server-side rendering for SEO and hot-reloading for developers?
32
- We did this for Popmenu, [lowering Heroku costs 20-25% while getting a 73% decrease in average response times](https://www.shakacode.com/recent-work/popmenu/). Check out [React on Rails Pro](https://www.shakacode.com/react-on-rails-pro/).
30
+ We did this for Popmenu, [lowering Heroku costs 20-25% while getting a 73% decrease in average response times](https://www.shakacode.com/recent-work/popmenu/). Several years later, Popmenu is serving millions of SSR requests per day React on Rails.
33
31
 
34
- For more information, feel free to contact Justin Gordon, [justin@shakacode.com](mailto:justin@shakacode.com), maintainer of React on Rails.
32
+ Check out [React on Rails Pro](https://www.shakacode.com/react-on-rails-pro/). For more information, feel free to contact Justin Gordon, [justin@shakacode.com](mailto:justin@shakacode.com), maintainer of React on Rails.
35
33
 
36
34
  # Documentation
37
35
 
@@ -46,12 +44,12 @@ To provide a high performance framework for integrating Ruby on Rails with React
46
44
  Given that `rails/webpacker` gem already provides basic React integration, why would you use "React on Rails"?
47
45
 
48
46
  1. Easy passing of props directly from your Rails view to your React components rather than having your Rails view load and then make a separate request to your API.
49
- 1. Tight integration with [rails/webpacker](https://github.com/rails/webpacker).
50
- 1. Server-Side Rendering (SSR), often used for SEO crawler indexing and UX performance, is not offered by `rails/webpacker`.
47
+ 1. Tight integration with [shakapacker](https://github.com/shakacode/shakapacker) (or it's predecessor [rails/webpacker](https://github.com/rails/webpacker].
48
+ 1. Server-Side Rendering (SSR), often used for SEO crawler indexing and UX performance.
51
49
  1. [Redux](https://github.com/reactjs/redux) and [React Router](https://github.com/ReactTraining/react-router#readme) integration with server-side-rendering.
52
50
  1. [Internationalization (I18n) and (localization)](https://www.shakacode.com/react-on-rails/docs/guides/i18n)
53
51
  1. A supportive community. This [web search shows how live public sites are using React on Rails](https://publicwww.com/websites/%22react-on-rails%22++-undeveloped.com+depth%3Aall/).
54
- 1. [Reason ML Support](https://github.com/shakacode/reason-react-on-rails-example).
52
+ 1. [ReScript Support](https://github.com/shakacode/rescript-react-on-rails-example).
55
53
 
56
54
  See [Rails/Webpacker React Integration Options](https://www.shakacode.com/react-on-rails/docs/guides/rails-webpacker-react-integration-options) for comparisons to other gems.
57
55
 
@@ -73,11 +71,11 @@ Ruby on Rails >=5, rails/webpacker >= 4.2, Ruby >= 2.7
73
71
 
74
72
  * [Click to join **React + Rails Slack**](https://reactrails.slack.com/join/shared_invite/enQtNjY3NTczMjczNzYxLTlmYjdiZmY3MTVlMzU2YWE0OWM0MzNiZDI0MzdkZGFiZTFkYTFkOGVjODBmOWEyYWQ3MzA2NGE1YWJjNmVlMGE).
75
73
  - [**Subscribe**](https://app.mailerlite.com/webforms/landing/l1d9x5) for announcements of new releases of React on Rails and of our latest [blog articles](https://blog.shakacode.com) and tutorials.
76
- - **[forum.shakacode.com](https://forum.shakacode.com)**: Post your questions
74
+ - [Discussions](https://github.com/shakacode/react_on_rails/discussions): Post your questions regarding React on Rails
75
+ - **[forum.shakacode.com](https://forum.shakacode.com)**: Other discussions
77
76
  - **[@railsonmaui on Twitter](https://twitter.com/railsonmaui)**
78
77
  - *See [NEWS.md](https://github.com/shakacode/react_on_rails/tree/master/NEWS.md) for more notes over time.*
79
78
  - See [Projects](https://github.com/shakacode/react_on_rails/tree/master/PROJECTS.md) using and [KUDOS](https://github.com/shakacode/react_on_rails/tree/master/KUDOS.md) for React on Rails. Please submit yours! Please edit either page or [email us](mailto:contact@shakacode.com) and we'll add your info. We also **love stars** as it helps us attract new users and contributors.
80
- - *See [NEWS.md](https://github.com/shakacode/react_on_rails/tree/master/NEWS.md) for more notes over time.*
81
79
 
82
80
  ## Contributing
83
81
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-on-rails",
3
- "version": "12.5.2",
3
+ "version": "13.0.1",
4
4
  "description": "react-on-rails JavaScript for react_on_rails Ruby gem",
5
5
  "main": "node_package/lib/ReactOnRails.js",
6
6
  "directories": {