CHANGELOG.md in react_on_rails-13.0.2 vs CHANGELOG.md in react_on_rails-13.1.0

- old
+ new

@@ -14,24 +14,52 @@ ## Versions ### [Unreleased] Changes since last non-beta release. *Please add entries here for your pull requests that are not yet released.* + +### [13.1.0] - 2022-08-20 + +#### Improved +- Removed addition of `mini_racer` gem by default. [PR 1453](https://github.com/shakacode/react_on_rails/pull/1453) by [vtamara](https://github.com/vtamara) and [tomdracz](https://github.com/tomdracz). + + Using `mini_racer` makes most sense when deploying or building in environments that do not have Javascript runtime present. Since `react_on_rails` requires Node.js, there's no reason to override `ExecJS` runtime with `mini_racer`. + + To migrate this change, remove `mini_racer` gem from your `Gemfile` and test your app for correct behaviour. You can continue using `mini_racer` and it will be still picked as the default `ExecJS` runtime, if present in your app `Gemfile`. + +- Upgraded the example test app in `spec/dummy` to React 18. [PR 1463](https://github.com/shakacode/react_on_rails/pull/1463) by [alexeyr](https://github.com/alexeyr). + +- Added file-system-based automatic bundle generation feature. [PR 1455](https://github.com/shakacode/react_on_rails/pull/1455) by [pulkitkkr](https://github.com/pulkitkkr). + +#### Fixed +- Correctly unmount roots under React 18. [PR 1466](https://github.com/shakacode/react_on_rails/pull/1466) by [alexeyr](https://github.com/alexeyr). + +- Fixed the `You are importing hydrateRoot from "react-dom" [...] You should instead import it from "react-dom/client"` warning under React 18 ([#1441](https://github.com/shakacode/react_on_rails/issues/1441)). [PR 1460](https://github.com/shakacode/react_on_rails/pull/1460) by [alexeyr](https://github.com/alexeyr). + + In exchange, you may see a warning like this when building a Webpack bundle under React 16: + ``` + WARNING in ./node_modules/react-on-rails/node_package/lib/reactHydrateOrRender.js19:25-52 + Module not found: Error: Can't resolve 'react-dom/client' in '/home/runner/work/react_on_rails/react_on_rails/spec/dummy/node_modules/react-on-rails/node_package/lib' + @ ./node_modules/react-on-rails/node_package/lib/ReactOnRails.js 34:45-78 + @ ./client/app/packs/client-bundle.js 5:0-42 32:0-23 35:0-21 59:0-26 + ``` + It can be safely [suppressed](https://webpack.js.org/configuration/other-options/#ignorewarnings) in your Webpack configuration. + ### [13.0.2] - 2022-03-09 #### Fixed - React 16 doesn't support version property, causing problems loading React on Rails. [PR 1435](https://github.com/shakacode/react_on_rails/pull/1435) by [justin808](https://github.com/justin808). - + ### [13.0.1] - 2022-02-09 #### Improved - Updated the default generator. [PR 1431](https://github.com/shakacode/react_on_rails/pull/1431) by [justin808](https://github.com/justin808). ### [13.0.0] - 2022-02-08 #### Breaking - Removed webpacker as a dependency. Add gem Shakapacker to your project, and update your package.json to also use shakapacker. #### Fixed -- Propper throwing of exceptions. +- Proper throwing of exceptions. - Default configuration better handles test env. ### [12.6.0] - 2022-01-22 ### Added @@ -61,11 +89,11 @@ #### Added - ScoutAPM tracing support for server rendering [PR 1379](https://github.com/shakacode/react_on_rails/pull/1379) by [justin808](https://github.com/justin808). - 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)! -- 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) +- 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) ### [12.3.0] - 2021-07-26 #### Added - 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). @@ -1012,10 +1040,12 @@ - Turbolinks support. ##### Fixed - Fix several generator related issues. -[Unreleased]: https://github.com/shakacode/react_on_rails/compare/13.0.1...master +[Unreleased]: https://github.com/shakacode/react_on_rails/compare/13.0.2...master +[13.1.0]: https://github.com/shakacode/react_on_rails/compare/13.0.2...13.1.0 +[13.0.2]: https://github.com/shakacode/react_on_rails/compare/13.0.1...13.0.2 [13.0.1]: https://github.com/shakacode/react_on_rails/compare/13.0.0...13.0.1 [13.0.0]: https://github.com/shakacode/react_on_rails/compare/12.6.0...13.0.0 [12.6.0]: https://github.com/shakacode/react_on_rails/compare/12.5.2...12.6.0 [12.5.2]: https://github.com/shakacode/react_on_rails/compare/12.5.1...12.5.2 [12.5.1]: https://github.com/shakacode/react_on_rails/compare/12.5.0...12.5.1