React on Rails 16.3.0 Release Notes
Upgrading from 16.2.x to 16.3.0
Update your gem and npm package versions:
# Gemfile
gem "react_on_rails", "16.3.0"
// package.json
{
"dependencies": {
"react-on-rails": "16.3.0"
}
}
Pro users: Use react-on-rails-pro instead of react-on-rails in package.json, and react_on_rails_pro instead of react_on_rails in your Gemfile. See the Pro upgrade guide for details.
Then run bundle install and your package manager's install command.
Key Changes
Simplified Shakapacker Version Handling
Removed obsolete minimum version checks (6.5.1) and example generation pinning (8.2.0). The gemspec dependency shakapacker >= 6.0 is now the only minimum version requirement, with autobundling requiring >= 7.0.0. PR 2247.
Bug Fixes
- Rspack configuration not applying to all environments: Fixed
bin/switch-bundlercrashing withPsych::AliasesNotEnabledon YAML files with anchors/aliases, and fixed the--rspackgenerator flag only updating thedefaultsection. PR 2275. - Precompile hook not configured when Shakapacker is pre-installed: Fixed the install generator not configuring the
precompile_hookwhen Shakapacker was already installed. PR 2280. bin/devfailing with--routeflag: Fixedbin/devcommand failing with "Unknown argument" when the generator was run with a--routeoption. PR 2273.
Pro Changes
- License-Optional Attribution Model: React on Rails Pro now works without a license for evaluation, development, testing, and CI/CD. A paid license is only required for production deployments. PR 2324.
- Multiple License Plan Types: License validation now supports plan types beyond "paid":
startup,nonprofit,education,oss, andpartner. PR 2334. - Node Renderer Master/Worker Exports: Added public
masterandworkerexports toreact-on-rails-pro-node-renderer. PR 2326.
See the CHANGELOG for the full list of changes.