From 7a21e66f1a6193a9b46c55d6ff4074977fbade0b Mon Sep 17 00:00:00 2001 From: Justin Gordon Date: Sat, 20 Sep 2025 13:21:45 -1000 Subject: [PATCH 1/2] Update React on Rails to 16.0.1.rc.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Upgrade react_on_rails gem from 14.1.0.rc.0 to 16.0.1.rc.0 - Update react-on-rails npm package from 14.0.3 to 16.0.1-rc.0 - Update bundle dependencies including Rails to 8.0.2.1 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- Gemfile | 2 +- Gemfile.lock | 211 +++++++++++++++++++++++++++------------------------ package.json | 2 +- yarn.lock | 20 ++--- 4 files changed, 117 insertions(+), 118 deletions(-) diff --git a/Gemfile b/Gemfile index fa33f8fbc..caea12ebf 100644 --- a/Gemfile +++ b/Gemfile @@ -5,7 +5,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" } ruby "3.3.4" -gem "react_on_rails", "14.1.0.rc.0" +gem "react_on_rails", "16.0.1.rc.0" gem "shakapacker", "8.0.0" # Bundle edge Rails instead: gem "rails", github: "rails/rails" diff --git a/Gemfile.lock b/Gemfile.lock index f3a5bd9f6..2dee2941e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -3,33 +3,34 @@ GIT revision: e8d0afe2773b9eb6a23c39e9e437f6fc0fc7c733 specs: net-pop (0.1.2) + net-protocol GEM remote: https://rubygems.org/ specs: - actioncable (8.0.0) - actionpack (= 8.0.0) - activesupport (= 8.0.0) + actioncable (8.0.2.1) + actionpack (= 8.0.2.1) + activesupport (= 8.0.2.1) nio4r (~> 2.0) websocket-driver (>= 0.6.1) zeitwerk (~> 2.6) - actionmailbox (8.0.0) - actionpack (= 8.0.0) - activejob (= 8.0.0) - activerecord (= 8.0.0) - activestorage (= 8.0.0) - activesupport (= 8.0.0) + actionmailbox (8.0.2.1) + actionpack (= 8.0.2.1) + activejob (= 8.0.2.1) + activerecord (= 8.0.2.1) + activestorage (= 8.0.2.1) + activesupport (= 8.0.2.1) mail (>= 2.8.0) - actionmailer (8.0.0) - actionpack (= 8.0.0) - actionview (= 8.0.0) - activejob (= 8.0.0) - activesupport (= 8.0.0) + actionmailer (8.0.2.1) + actionpack (= 8.0.2.1) + actionview (= 8.0.2.1) + activejob (= 8.0.2.1) + activesupport (= 8.0.2.1) mail (>= 2.8.0) rails-dom-testing (~> 2.2) - actionpack (8.0.0) - actionview (= 8.0.0) - activesupport (= 8.0.0) + actionpack (8.0.2.1) + actionview (= 8.0.2.1) + activesupport (= 8.0.2.1) nokogiri (>= 1.8.5) rack (>= 2.2.4) rack-session (>= 1.0.1) @@ -37,35 +38,35 @@ GEM rails-dom-testing (~> 2.2) rails-html-sanitizer (~> 1.6) useragent (~> 0.16) - actiontext (8.0.0) - actionpack (= 8.0.0) - activerecord (= 8.0.0) - activestorage (= 8.0.0) - activesupport (= 8.0.0) + actiontext (8.0.2.1) + actionpack (= 8.0.2.1) + activerecord (= 8.0.2.1) + activestorage (= 8.0.2.1) + activesupport (= 8.0.2.1) globalid (>= 0.6.0) nokogiri (>= 1.8.5) - actionview (8.0.0) - activesupport (= 8.0.0) + actionview (8.0.2.1) + activesupport (= 8.0.2.1) builder (~> 3.1) erubi (~> 1.11) rails-dom-testing (~> 2.2) rails-html-sanitizer (~> 1.6) - activejob (8.0.0) - activesupport (= 8.0.0) + activejob (8.0.2.1) + activesupport (= 8.0.2.1) globalid (>= 0.3.6) - activemodel (8.0.0) - activesupport (= 8.0.0) - activerecord (8.0.0) - activemodel (= 8.0.0) - activesupport (= 8.0.0) + activemodel (8.0.2.1) + activesupport (= 8.0.2.1) + activerecord (8.0.2.1) + activemodel (= 8.0.2.1) + activesupport (= 8.0.2.1) timeout (>= 0.4.0) - activestorage (8.0.0) - actionpack (= 8.0.0) - activejob (= 8.0.0) - activerecord (= 8.0.0) - activesupport (= 8.0.0) + activestorage (8.0.2.1) + actionpack (= 8.0.2.1) + activejob (= 8.0.2.1) + activerecord (= 8.0.2.1) + activesupport (= 8.0.2.1) marcel (~> 1.0) - activesupport (8.0.0) + activesupport (8.0.2.1) base64 benchmark (>= 0.3) bigdecimal @@ -84,9 +85,9 @@ GEM autoprefixer-rails (10.4.16.0) execjs (~> 2) awesome_print (1.9.2) - base64 (0.2.0) - benchmark (0.4.0) - bigdecimal (3.1.8) + base64 (0.3.0) + benchmark (0.4.1) + bigdecimal (3.2.3) bindex (0.8.1) binding_of_caller (1.0.1) debug_inspector (>= 1.2.0) @@ -115,8 +116,8 @@ GEM coffee-script-source execjs coffee-script-source (1.12.2) - concurrent-ruby (1.3.3) - connection_pool (2.4.1) + concurrent-ruby (1.3.5) + connection_pool (2.5.4) coveralls_reborn (0.25.0) simplecov (>= 0.18.1, < 0.22.0) term-ansicolor (~> 1.6) @@ -129,17 +130,18 @@ GEM activerecord (>= 5.a) database_cleaner-core (~> 2.0.0) database_cleaner-core (2.0.1) - date (3.4.0) + date (3.4.1) debug (1.9.2) irb (~> 1.10) reline (>= 0.3.8) debug_inspector (1.2.0) diff-lcs (1.5.1) docile (1.4.0) - drb (2.2.1) - erubi (1.13.0) + drb (2.2.3) + erb (5.0.2) + erubi (1.13.1) erubis (2.7.0) - execjs (2.9.1) + execjs (2.10.0) factory_bot (6.4.6) activesupport (>= 5.0.0) factory_bot_rails (6.4.3) @@ -154,11 +156,12 @@ GEM railties (>= 3.0.0) globalid (1.2.1) activesupport (>= 6.1) - i18n (1.14.5) + i18n (1.14.7) concurrent-ruby (~> 1.0) interception (0.5) - io-console (0.7.2) - irb (1.13.2) + io-console (0.8.1) + irb (1.15.2) + pp (>= 0.6.0) rdoc (>= 4.0.0) reline (>= 0.4.2) jbuilder (2.12.0) @@ -172,8 +175,8 @@ GEM listen (3.9.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) - logger (1.6.0) - loofah (2.22.0) + logger (1.7.0) + loofah (2.24.1) crass (~> 1.0.2) nokogiri (>= 1.12.0) mail (2.8.1) @@ -181,28 +184,28 @@ GEM net-imap net-pop net-smtp - marcel (1.0.4) + marcel (1.1.0) matrix (0.4.2) method_source (1.1.0) mini_mime (1.1.5) - mini_portile2 (2.8.7) - minitest (5.24.1) + mini_portile2 (2.8.9) + minitest (5.25.5) mize (0.4.1) protocol (~> 2.0) - net-imap (0.5.1) + net-imap (0.5.10) date net-protocol net-protocol (0.2.2) timeout - net-smtp (0.5.0) + net-smtp (0.5.1) net-protocol - nio4r (2.7.3) - nokogiri (1.16.6) + nio4r (2.7.4) + nokogiri (1.18.10) mini_portile2 (~> 2.8.2) racc (~> 1.4) - nokogiri (1.16.6-arm64-darwin) + nokogiri (1.18.10-arm64-darwin) racc (~> 1.4) - nokogiri (1.16.6-x86_64-linux) + nokogiri (1.18.10-x86_64-linux-gnu) racc (~> 1.4) package_json (0.1.0) parallel (1.26.3) @@ -210,6 +213,9 @@ GEM ast (~> 2.4.1) racc pg (1.5.6) + pp (0.6.2) + prettyprint + prettyprint (0.2.0) protocol (2.0.0) ruby_parser (~> 3.0) pry (0.14.2) @@ -229,43 +235,44 @@ GEM pry-stack_explorer (0.6.1) binding_of_caller (~> 1.0) pry (~> 0.13) - psych (5.1.2) + psych (5.2.6) + date stringio - public_suffix (6.0.0) + public_suffix (6.0.2) puma (6.4.2) nio4r (~> 2.0) - racc (1.8.0) - rack (3.1.4) + racc (1.8.1) + rack (3.2.1) rack-proxy (0.7.7) rack - rack-session (2.0.0) + rack-session (2.1.1) + base64 (>= 0.1.0) rack (>= 3.0.0) - rack-test (2.1.0) + rack-test (2.2.0) rack (>= 1.3) - rackup (2.1.0) + rackup (2.2.1) rack (>= 3) - webrick (~> 1.8) - rails (8.0.0) - actioncable (= 8.0.0) - actionmailbox (= 8.0.0) - actionmailer (= 8.0.0) - actionpack (= 8.0.0) - actiontext (= 8.0.0) - actionview (= 8.0.0) - activejob (= 8.0.0) - activemodel (= 8.0.0) - activerecord (= 8.0.0) - activestorage (= 8.0.0) - activesupport (= 8.0.0) + rails (8.0.2.1) + actioncable (= 8.0.2.1) + actionmailbox (= 8.0.2.1) + actionmailer (= 8.0.2.1) + actionpack (= 8.0.2.1) + actiontext (= 8.0.2.1) + actionview (= 8.0.2.1) + activejob (= 8.0.2.1) + activemodel (= 8.0.2.1) + activerecord (= 8.0.2.1) + activestorage (= 8.0.2.1) + activesupport (= 8.0.2.1) bundler (>= 1.15.0) - railties (= 8.0.0) - rails-dom-testing (2.2.0) + railties (= 8.0.2.1) + rails-dom-testing (2.3.0) activesupport (>= 5.0.0) minitest nokogiri (>= 1.6) - rails-html-sanitizer (1.6.0) + rails-html-sanitizer (1.6.2) loofah (~> 2.21) - nokogiri (~> 1.14) + nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0) rails_best_practices (1.23.2) activesupport code_analyzer (~> 0.5.5) @@ -274,34 +281,36 @@ GEM json require_all (~> 3.0) ruby-progressbar - railties (8.0.0) - actionpack (= 8.0.0) - activesupport (= 8.0.0) + railties (8.0.2.1) + actionpack (= 8.0.2.1) + activesupport (= 8.0.2.1) irb (~> 1.13) rackup (>= 1.0.0) rake (>= 12.2) thor (~> 1.0, >= 1.2.2) zeitwerk (~> 2.6) rainbow (3.1.1) - rake (13.2.1) + rake (13.3.0) rb-fsevent (0.11.2) rb-inotify (0.11.1) ffi (~> 1.0) - rdoc (6.7.0) + rdoc (6.14.2) + erb psych (>= 4.0.0) - react_on_rails (14.1.0.rc.0) + react_on_rails (16.0.1.rc.0) addressable connection_pool execjs (~> 2.5) rails (>= 5.2) rainbow (~> 3.0) + shakapacker (>= 6.0) redcarpet (3.6.0) redis (5.3.0) redis-client (>= 0.22.0) redis-client (0.22.2) connection_pool regexp_parser (2.9.2) - reline (0.5.9) + reline (0.6.2) io-console (~> 0.5) require_all (3.0.0) rexml (3.3.1) @@ -368,7 +377,7 @@ GEM sass (~> 3.5, >= 3.5.5) sdoc (2.6.1) rdoc (>= 5.0) - securerandom (0.3.2) + securerandom (0.4.1) selenium-webdriver (4.22.0) base64 (~> 0.2) logger (~> 1.4) @@ -401,15 +410,15 @@ GEM sprockets (>= 3.0.0) stimulus-rails (1.3.3) railties (>= 6.0.0) - stringio (3.1.1) + stringio (3.1.7) strscan (3.1.0) sync (0.5.0) term-ansicolor (1.10.2) mize tins (~> 1.0) - thor (1.3.1) + thor (1.4.0) tilt (2.4.0) - timeout (0.4.1) + timeout (0.4.3) tins (1.33.0) bigdecimal sync @@ -423,22 +432,22 @@ GEM unicode-display_width (3.1.2) unicode-emoji (~> 4.0, >= 4.0.4) unicode-emoji (4.0.4) - uri (1.0.2) - useragent (0.16.10) + uri (1.0.3) + useragent (0.16.11) web-console (4.2.1) actionview (>= 6.0.0) activemodel (>= 6.0.0) bindex (>= 0.4.0) railties (>= 6.0.0) - webrick (1.8.1) websocket (1.2.10) - websocket-driver (0.7.6) + websocket-driver (0.8.0) + base64 websocket-extensions (>= 0.1.0) websocket-extensions (0.1.5) xpath (3.2.0) nokogiri (~> 1.8) yard (0.9.36) - zeitwerk (2.6.16) + zeitwerk (2.7.3) PLATFORMS arm64-darwin-22 @@ -473,7 +482,7 @@ DEPENDENCIES rails-html-sanitizer rails_best_practices rainbow - react_on_rails (= 14.1.0.rc.0) + react_on_rails (= 16.0.1.rc.0) redcarpet redis (~> 5.0) rspec-rails (~> 6.0.0) diff --git a/package.json b/package.json index df9f9507e..cbb977f3d 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ "react": "^19.0.0", "react-dom": "^19.0.0", "react-intl": "^6.4.4", - "react-on-rails": "14.0.3", + "react-on-rails": "16.0.1-rc.0", "react-redux": "^8.1.0", "react-router": "^6.13.0", "react-router-dom": "^6.13.0", diff --git a/yarn.lock b/yarn.lock index 8b1204f92..2c246305a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1006,14 +1006,6 @@ resolved "https://registry.yarnpkg.com/@babel/regjsgen/-/regjsgen-0.8.0.tgz#f0ba69b075e1f05fb2825b7fad991e7adbb18310" integrity sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA== -"@babel/runtime-corejs3@^7.12.5": - version "7.22.10" - resolved "https://registry.yarnpkg.com/@babel/runtime-corejs3/-/runtime-corejs3-7.22.10.tgz#5ecc3d32faa70009f084cc2e087d79e5f5cdcca9" - integrity sha512-IcixfV2Jl3UrqZX4c81+7lVg5++2ufYJyAFW3Aux/ZTvY6LVYYhJ9rMgnbX0zGVq6eqfVpnoatTjZdVki/GmWA== - dependencies: - core-js-pure "^3.30.2" - regenerator-runtime "^0.14.0" - "@babel/runtime@^7.12.1": version "7.26.0" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.26.0.tgz#8600c2f595f277c60815256418b85356a65173c1" @@ -3263,7 +3255,7 @@ core-js-compat@^3.31.0: dependencies: browserslist "^4.21.9" -core-js-pure@^3.23.3, core-js-pure@^3.30.2: +core-js-pure@^3.23.3: version "3.32.0" resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.32.0.tgz#5d79f85da7a4373e9a06494ccbef995a4c639f8b" integrity sha512-qsev1H+dTNYpDUEURRuOXMvpdtAnNEvQWS/FMJ2Vb5AY8ZP4rAPQldkE27joykZPJTe0+IVgHZYh1P5Xu1/i1g== @@ -7276,12 +7268,10 @@ react-is@^18.0.0: resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.2.0.tgz#199431eeaaa2e09f86427efbb4f1473edb47609b" integrity sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w== -react-on-rails@14.0.3: - version "14.0.3" - resolved "https://registry.yarnpkg.com/react-on-rails/-/react-on-rails-14.0.3.tgz#5a870644c0fbfd0a4f4adcc62623573a40de8ad8" - integrity sha512-BGvnvSI871K63JXg72KgMy73izKYralp9rrf40VSiR+OvusnXJkwVa4gaUP21226R835gzU7VSbbf64L7H9GhQ== - dependencies: - "@babel/runtime-corejs3" "^7.12.5" +react-on-rails@16.0.1-rc.0: + version "16.0.1-rc.0" + resolved "https://registry.npmjs.org/react-on-rails/-/react-on-rails-16.0.1-rc.0.tgz#dc99c843430585b3017113a464035179488bb154" + integrity sha512-xCrrp1X/vfT+QZjRwN9TDzWfxsf8Iz11QMqXumMs1TrT+KgJ33LLgUXYvYxAdnYgv41MbRvDCXG4Q/2ieakxoA== react-proxy@^1.1.7: version "1.1.8" From 045668ed909bbccb579148e59a23431b4c3721a9 Mon Sep 17 00:00:00 2001 From: Justin Gordon Date: Sat, 20 Sep 2025 13:48:58 -1000 Subject: [PATCH 2/2] Fix React on Rails compatibility by using stable 14.2.1 version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change from 16.0.1.rc.0/16.0.0 to 14.2.1 due to Shakapacker compatibility issues - React on Rails 16 has breaking changes that cause PackerUtils.packer_type nil errors - Version 14.2.1 is stable and works correctly with Shakapacker 8.0.0 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- Gemfile | 2 +- Gemfile.lock | 7 +++---- package.json | 2 +- yarn.lock | 8 ++++---- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/Gemfile b/Gemfile index caea12ebf..13e9895bf 100644 --- a/Gemfile +++ b/Gemfile @@ -5,7 +5,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" } ruby "3.3.4" -gem "react_on_rails", "16.0.1.rc.0" +gem "react_on_rails", "14.2.1" gem "shakapacker", "8.0.0" # Bundle edge Rails instead: gem "rails", github: "rails/rails" diff --git a/Gemfile.lock b/Gemfile.lock index 2dee2941e..3637129be 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -297,13 +297,12 @@ GEM rdoc (6.14.2) erb psych (>= 4.0.0) - react_on_rails (16.0.1.rc.0) + react_on_rails (14.2.1) addressable connection_pool execjs (~> 2.5) rails (>= 5.2) rainbow (~> 3.0) - shakapacker (>= 6.0) redcarpet (3.6.0) redis (5.3.0) redis-client (>= 0.22.0) @@ -384,7 +383,7 @@ GEM rexml (~> 3.2, >= 3.2.5) rubyzip (>= 1.2.2, < 3.0) websocket (~> 1.0) - semantic_range (3.0.0) + semantic_range (3.1.0) sexp_processor (4.17.1) shakapacker (8.0.0) activesupport (>= 5.2) @@ -482,7 +481,7 @@ DEPENDENCIES rails-html-sanitizer rails_best_practices rainbow - react_on_rails (= 16.0.1.rc.0) + react_on_rails (= 14.2.1) redcarpet redis (~> 5.0) rspec-rails (~> 6.0.0) diff --git a/package.json b/package.json index cbb977f3d..4770aa306 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ "react": "^19.0.0", "react-dom": "^19.0.0", "react-intl": "^6.4.4", - "react-on-rails": "16.0.1-rc.0", + "react-on-rails": "14.2.1", "react-redux": "^8.1.0", "react-router": "^6.13.0", "react-router-dom": "^6.13.0", diff --git a/yarn.lock b/yarn.lock index 2c246305a..13b3f8eac 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7268,10 +7268,10 @@ react-is@^18.0.0: resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.2.0.tgz#199431eeaaa2e09f86427efbb4f1473edb47609b" integrity sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w== -react-on-rails@16.0.1-rc.0: - version "16.0.1-rc.0" - resolved "https://registry.npmjs.org/react-on-rails/-/react-on-rails-16.0.1-rc.0.tgz#dc99c843430585b3017113a464035179488bb154" - integrity sha512-xCrrp1X/vfT+QZjRwN9TDzWfxsf8Iz11QMqXumMs1TrT+KgJ33LLgUXYvYxAdnYgv41MbRvDCXG4Q/2ieakxoA== +react-on-rails@14.2.1: + version "14.2.1" + resolved "https://registry.npmjs.org/react-on-rails/-/react-on-rails-14.2.1.tgz#e3072f21bb76a45de789fc78046d2bf0d9496878" + integrity sha512-1a7RCDzhM2/oAZChnJMcYDV023Gl6nwa5SAS+NW13jIpkigihiRw2ecYAFSjQq2BfCnASDw2z1ElmfTXhrYagw== react-proxy@^1.1.7: version "1.1.8"