Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Sep 23, 2025

Bumps react_on_rails from 15.0.0 to 16.0.0.

Changelog

Sourced from react_on_rails's changelog.

[16.0.0] - 2025-09-16

React on Rails v16 is a major release that modernizes the library with ESM support, removes legacy Webpacker compatibility, and introduces significant performance improvements. This release builds on the foundation of v14 with enhanced RSC (React Server Components) support and streamlined configuration.

See Release Notes for complete migration guide.

Major Enhancements

🚀 React Server Components (RSC) -- Requires React on Rails Pro

  • Enhanced RSC rendering flow: Eliminated double rendering and reduced HTTP requests
  • RSCRoute component: Seamless server-side rendering with automatic payload injection and hydration PR 1696 by AbanoubGhadban
  • Optimized RSC payload injection: Now injected after component HTML markup for better performance PR 1738 by AbanoubGhadban
  • Communication protocol v2.0.0: Supports uploading multiple bundles at once for improved efficiency

⚡ Performance & Loading Strategy

  • New generated_component_packs_loading_strategy: Choose from sync, async, or defer strategies PR 1712 by AbanoubGhadban
  • Async render function support: Components can now return from async render functions PR 1720 by AbanoubGhadban
  • Optimized client imports: Generated packs now import from react-on-rails/client for better tree-shaking PR 1706 by alexeyr-ci

Developer Experience

  • Enhanced error messaging: Clearer troubleshooting steps and prominent optimization warnings
  • Modern global access: Using globalThis instead of window/global detection PR 1727 by alexeyr-ci2
  • Simplified CI configuration: Clear minimum/latest dependency naming instead of oldest/newest
  • ReactRefreshWebpackPlugin v0.6.0 support: Added conditional logic for proper configuration PR 1748 by judahmeek
  • Version validation improvements: Fixed invalid warnings with pre-release versions PR 1742 by alexeyr-ci2

Breaking Changes

🔧 Webpacker Support Removed

  • Complete removal of Webpacker support. Shakapacker >= 6.0 is now required.
  • Migration:
    • Remove webpacker gem from your Gemfile
    • Install shakapacker gem version 6.0+ (8.0+ recommended)
    • Replace bin/webpacker commands with bin/shakapacker
    • Update webpacker configuration files to shakapacker equivalents
  • Removed files: rakelib/webpacker_examples.rake, lib/generators/react_on_rails/adapt_for_older_shakapacker_generator.rb

📦 Package System Modernization

  • ESM-only package: CommonJS require() no longer supported
  • Migration:
    • Replace require('react-on-rails') with import ReactOnRails from 'react-on-rails'
    • For Node.js < 20.19.0, upgrade or use dynamic imports
    • For TypeScript errors, upgrade to TypeScript 5.8+ and set module: "nodenext"

⚡ Configuration API Changes

... (truncated)

Commits
  • df4b37e Release 16.0.0
  • 8f3d178 React on Rails Generator Overhaul & Developer Experience Enhancement
  • 3ed127f Fix integration tests for immediate_hydration Pro license changes (#1783)
  • f7d5355 Enhance Pro license validation for force_load feature (#1781)
  • d5873f1 Show warning badge when force_load feature is enabled and RORP is not used (#...
  • 20e4455 Remove gap in page lifecycle check for setup listeners (#1773)
  • a5dd1c3 Add tests to validate CSS module handling in pack generator (#1775)
  • b97c854 Fix prettier formatting issues from PR #1769 (#1774)
  • 52a1855 Fix CSS module handling in pack generator (#1769)
  • f4adcd9 ran yarn start format
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [react_on_rails](https://github.com/shakacode/react_on_rails) from 15.0.0 to 16.0.0.
- [Changelog](https://github.com/shakacode/react_on_rails/blob/master/CHANGELOG.md)
- [Commits](shakacode/react_on_rails@15.0.0...16.0.0)

---
updated-dependencies:
- dependency-name: react_on_rails
  dependency-version: 16.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file ruby Pull requests that update ruby code labels Sep 23, 2025
@coderabbitai
Copy link

coderabbitai bot commented Sep 23, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Sep 25, 2025

Superseded by #4.

@dependabot dependabot bot closed this Sep 25, 2025
@dependabot dependabot bot deleted the dependabot/bundler/react_on_rails-16.0.0 branch September 25, 2025 04:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file ruby Pull requests that update ruby code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant