All Versions
Latest Version
Avg Release Cycle
61 days
Latest Release
664 days ago

Changelog History
Page 1

  • v13.1.0 Changes

    August 20, 2022

    ๐Ÿ‘Œ Improved

    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 by alexeyr.

    • Added file-system-based automatic bundle generation feature. PR 1455 by pulkitkkr.

    ๐Ÿ›  Fixed

    • Correctly unmount roots under React 18. PR 1466 by alexeyr.

    • Fixed the You are importing hydrateRoot from "react-dom" [...] You should instead import it from "react-dom/client" warning under React 18 (#1441). PR 1460 by 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 in your Webpack configuration.

  • v13.0.2 Changes

    March 09, 2022

    ๐Ÿ›  Fixed

    • React 16 doesn't support version property, causing problems loading React on Rails. PR 1435 by justin808.
  • v13.0.1 Changes

    February 09, 2022

    ๐Ÿ‘Œ Improved

  • v13.0.0 Changes

    February 08, 2022

    ๐Ÿ’ฅ 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.
    • ๐Ÿ”ง Default configuration better handles test env.
  • v12.6.0

    January 22, 2022
  • v12.5.2

    December 29, 2021
  • v12.5.1

    December 27, 2021
  • v12.5.0 Changes

    December 26, 2021

    โž• Added

    • Support for React 18, including the changed SSR API. PR 1409 by kylemellander.
    • Added webpack configuration files as part of the generator and updated webpacker to version 6. PR 1404 by gscarv13.
    • ๐Ÿ‘Œ Supports Rails 7.

    ๐Ÿ”„ Changed

    • 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 by justin808 and gscarv13.
    • โœ… Minimimum required Ruby is 2.7 to match lastest rails/webpacker.
  • v12.4.0 Changes

    September 22, 2021

    โž• Added

    • ScoutAPM tracing support for server rendering PR 1379 by justin808.

    • Ability to stop React on Rails from modifying or creating the assets:precompile task. PR 1371 by justin808. Thanks to elstgav for the suggestion!

    • 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 by judahmeek

  • v12.3.0 Changes

    July 26, 2021

    โž• Added

    To configure turbo the following option can be set: ReactOnRails.setOptions({ turbo: true })