React Rails Versions Save

Integrate React.js with Rails views and controllers, the asset pipeline, or webpacker.

v2.6.2

2 years ago

What's Change

  • React 16.14
  • Support for ShakaPacker
  • Preparation for React 18 #1151

Bug Fixes

  • URI.open instead of open #1099
  • No longer unmount components on Turbolinks navigation #1135

New Contributors

Full Changelog: https://github.com/reactjs/react-rails/compare/v2.6.1...v2.6.2

v2.6.0

4 years ago

As always a big thank you to everyone who contributes to make the project a success! 🎉 We passed 7 million downloads of the Gem and 3 million on the NPM package. 🎉

New Features

  • Typescript component generator #990

Deprecation

Bug Fixes

  • assert_react_component will not pass tests where the case was different #979
  • action_controller/test_case was accidentally required in dev #996

Thanks to all the wonderful people that helped.

@delkopiso @huacnlee @Aesthetikx @HorizonShadow @cprodhomme @0xdevalias @gasi @hphu3

v2.5.0

5 years ago

As always a big thank you to everyone who contributes to make the project a success! 🎉 We passed 5 million downloads of the Gem this month and very close to 2 million on the NPM package. 🎉

Breaking Changes

New Features

  • React 16.8.6 prebundled #977
  • Added assert_react_component test helper #957
  • Supports Webpacker 4, Ruby 2.6 #934
  • Supports camelize on ActionController::Parameters #932

Deprecation

Bug Fixes

  • Linting fix to generated JS #941
  • (Meta) Tests for react-rails updated #892 #894 #916

v2.4.5

5 years ago

v2.4.3

6 years ago

2.4.3

Bug Fixes

  • Call ReactDOM.render() when react_component :prerender option is falsy, instead of ReactDOM.hydrate() #844, #842

v2.4.2

6 years ago

2.4.2

Bug Fixes

  • ReactDOM.hydrate() may not be defined for everyone, it will now use hydrate if it is defined or fallback to render #832

v2.4.1

6 years ago

New Features

  • Webpacker gets ES6 components by default #822
  • ReactDOM.hydrate() #828
  • Documentation updates #830

Bug Fixes

  • Webpacker local manifest sometimes had double asset_hosts if the dev server was running #834 thanks @joeyparis

v2.4.0

6 years ago

Breaking Changes

  • (Sprockets) Prebundled React upgraded to 16 #792
  • (Sprockets) Addons removed #792

New Features

  • All generators make React 16 style components

Deprecation

Bug Fixes

  • Coffeescript generator exports correctly #799, #800
  • Running detector manually no longer breaks if Turbolinks is not preset #802

v2.3.1

6 years ago

Breaking Changes

  • React Deprecations for 15.4, 15.5, 15.6 in preparation for 16 handled in prebundled version

New Features

  • Generator now makes modern style createReactClass(JS) or extends React.Component(ES6, CoffeeScript) code

Deprecation

  • Next version will drop the addons option as they are not supported with React 16
  • TheRubyRacer's newest version (0.12.3 at time of writing) only supports libV8 (3.16.14.15) which is too old for some new JS features, future versions of this gem will need more modern ExecJS runtimes such as mini_racer (currently on libV8 5.9.x)

v2.3.0

6 years ago

New Features

  • Webpacker and Webpack 3 support #777
  • Update to React 15.6.2 #789