react_on_rails 16.5.0 → 16.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 14bbaccde12f9bb4f998ade94c02d95d27e1df386a9dfaf887fefb0f073070e0
4
- data.tar.gz: 952bf7eb1d5694d86b74dd654ab2cb10fd7490207d6be3c66ac6ea4866802eee
3
+ metadata.gz: e4952f875c502a91d85699aee567b2f7f682ef818faf8bc3eb584a20b8cbd617
4
+ data.tar.gz: 40d9fb9a20e26322a2a67a3da1815f36ad75bfd018e8db84f37fb34d318f9d00
5
5
  SHA512:
6
- metadata.gz: 3bdbf4f3343cf568ea879a13d0902d650379016004832c44affd1498ac8c0be881de9e7d4bb42ecd883f095f5697518dfcc773d7d79b61c4250026457100d9cd
7
- data.tar.gz: 920530b24dbe7d23af418d53ad564e9f75bbf0f21fcc03851b89de03994d6a1e910fdaeb962da9eb4f66eed0cc37f28a9048fd2dcf3d208c9422843a7208fe4c
6
+ metadata.gz: 0fc060fcfab135a7f237f44b640a56ac220c18e69ceeeaae107159085855ead5edfc116f207a539decf605006ad4162f59a0f9191602a666de92e7ab1c9dd11a
7
+ data.tar.gz: d64e7656d3a0ddc657495b36c71cda152e7159aacfc9edbd1a5e10a22c149292498849d44443031b1c4fff49d55cc2fbaa81d853c43115136a6c6250323f2a42
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- react_on_rails (16.5.0)
4
+ react_on_rails (16.5.1)
5
5
  addressable
6
6
  connection_pool
7
7
  execjs (~> 2.5)
data/lib/generators/USAGE CHANGED
@@ -20,4 +20,4 @@ Then you may run
20
20
 
21
21
  More Details:
22
22
 
23
- `https://github.com/shakacode/react_on_rails/blob/master/docs/additional-details/generator-details.md`
23
+ `https://reactonrails.com/docs/api-reference/generator-details/`
@@ -67,7 +67,6 @@ module ReactOnRails
67
67
  "This generator requires the react_on_rails_pro gem."
68
68
  end
69
69
 
70
- # TODO(#2575): Replace temporary email CTA after react-unrails.com flow is live.
71
70
  GeneratorMessages.add_error(<<~MSG.strip)
72
71
  🚫 Failed to auto-install #{PRO_GEM_NAME} gem.
73
72
 
@@ -80,7 +79,7 @@ module ReactOnRails
80
79
 
81
80
  No license needed for evaluation or non-production use.
82
81
  Free or low-cost production licenses available for startups and small companies.
83
- Get started: https://pro.reactonrails.com/
82
+ See the upgrade guide: https://reactonrails.com/docs/pro/upgrading-to-pro/
84
83
  MSG
85
84
  true
86
85
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # React on Rails configuration
4
- # See https://github.com/shakacode/react_on_rails/blob/master/docs/oss/configuration/README.md
4
+ # See https://reactonrails.com/docs/configuration/
5
5
  # for complete documentation of all configuration options.
6
6
 
7
7
  ReactOnRails.configure do |config|
@@ -44,7 +44,7 @@ ReactOnRails.configure do |config|
44
44
  # ALTERNATIVE APPROACH: Set `compile: true` in config/shakapacker.yml test section
45
45
  # - Simpler setup, but less explicit control
46
46
  # - Can be slower due to on-demand recompilation
47
- # - See: https://github.com/shakacode/react_on_rails/blob/master/docs/oss/building-features/testing-configuration.md
47
+ # - See: https://reactonrails.com/docs/building-features/testing-configuration/
48
48
  #
49
49
  # RSpec apps should also add to spec/rails_helper.rb (inside RSpec.configure):
50
50
  # ReactOnRails::TestHelper.configure_rspec_to_compile_assets(config)
@@ -66,5 +66,5 @@ ReactOnRails.configure do |config|
66
66
  # - Custom rendering extensions
67
67
  # - And more...
68
68
  #
69
- # See: https://github.com/shakacode/react_on_rails/blob/master/docs/oss/configuration/README.md
69
+ # See: https://reactonrails.com/docs/configuration/
70
70
  end
@@ -463,7 +463,7 @@ module ReactOnRails
463
463
  msg = <<~MSG
464
464
  **ERROR** ReactOnRails: auto_load_bundle is set to true, yet components_subdirectory is not configured.\
465
465
  Please set components_subdirectory to the desired directory. For more information, please see \
466
- https://reactonrails.com/docs/guides/file-system-based-automated-bundle-generation.md
466
+ https://reactonrails.com/docs/core-concepts/auto-bundling-file-system-based-automated-bundle-generation/
467
467
  MSG
468
468
 
469
469
  raise ReactOnRails::Error, msg
@@ -760,7 +760,7 @@ module ReactOnRails
760
760
  content = File.read(config_path)
761
761
 
762
762
  checker.add_info("šŸ“‹ React on Rails Configuration:")
763
- checker.add_info("šŸ“ Documentation: https://reactonrails.com/docs/guides/configuration/")
763
+ checker.add_info("šŸ“ Documentation: https://reactonrails.com/docs/configuration/")
764
764
 
765
765
  # Analyze configuration settings
766
766
  analyze_server_rendering_config(content)
@@ -957,7 +957,7 @@ module ReactOnRails
957
957
  if /config\.rendering_extension\s*=\s*([^\s\n,]+)/.match?(content)
958
958
  checker.add_info("\nšŸ”Œ Custom Extensions:")
959
959
  checker.add_info(" rendering_extension: Custom rendering logic detected")
960
- checker.add_info(" ā„¹ļø See: https://reactonrails.com/docs/guides/rendering-extensions")
960
+ checker.add_info(" ā„¹ļø See: https://reactonrails.com/docs/configuration/#rendering_extension")
961
961
  end
962
962
 
963
963
  # Check for rendering props extension
@@ -995,7 +995,7 @@ module ReactOnRails
995
995
  deprecated_settings.each do |setting|
996
996
  checker.add_warning(" #{setting}")
997
997
  end
998
- checker.add_info("šŸ“– Migration guide: https://reactonrails.com/docs/guides/upgrading-react-on-rails")
998
+ checker.add_info("šŸ“– Migration guide: https://reactonrails.com/docs/upgrading/upgrading-react-on-rails")
999
999
  end
1000
1000
 
1001
1001
  def check_breaking_changes_warnings
@@ -1063,7 +1063,7 @@ module ReactOnRails
1063
1063
 
1064
1064
  checker.add_info("\n🚨 React on Rails v16+ Breaking Changes Detected:")
1065
1065
  issues_found.each { |issue| checker.add_warning(" #{issue}") }
1066
- checker.add_info("šŸ“– Full migration guide: https://reactonrails.com/docs/guides/upgrading-react-on-rails#upgrading-to-version-16")
1066
+ checker.add_info("šŸ“– Full migration guide: https://reactonrails.com/docs/upgrading/upgrading-react-on-rails#upgrading-to-version-16")
1067
1067
  end
1068
1068
  # rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
1069
1069
 
@@ -1244,7 +1244,7 @@ module ReactOnRails
1244
1244
  if (prerender_set || uses_prerender) && !server_bundle_set
1245
1245
  checker.add_warning(" āš ļø Server rendering is enabled but server_bundle_js_file is not configured")
1246
1246
  checker.add_info(" šŸ’” Set config.server_bundle_js_file = 'server-bundle.js' to enable SSR")
1247
- checker.add_info(" šŸ’” See: https://reactonrails.com/docs/guides/server-rendering")
1247
+ checker.add_info(" šŸ’” See: https://reactonrails.com/docs/core-concepts/react-server-rendering/")
1248
1248
  elsif server_bundle_set && !prerender_set && !uses_prerender
1249
1249
  checker.add_info(" ā„¹ļø server_bundle_js_file is configured but prerender doesn't appear to be used")
1250
1250
  checker.add_info(" šŸ’” Either use prerender: true in react_component calls or remove server_bundle_js_file")
@@ -2029,7 +2029,7 @@ module ReactOnRails
2029
2029
  checker.add_info(" šŸ’” :async can cause race conditions. Options:")
2030
2030
  checker.add_info(" 1. Upgrade to React on Rails Pro (recommended for :async support)")
2031
2031
  checker.add_info(" 2. Change to :defer or :sync loading strategy")
2032
- checker.add_info(" šŸ“– https://reactonrails.com/docs/guides/configuration/")
2032
+ checker.add_info(" šŸ“– https://reactonrails.com/docs/configuration/")
2033
2033
  end
2034
2034
 
2035
2035
  def scan_view_files_for_async_pack_tag
@@ -74,7 +74,7 @@ module ReactOnRails
74
74
  when Hash
75
75
  msg = <<~MSG
76
76
  Use react_component_hash (not react_component) to return a Hash to your ruby view code. See
77
- https://github.com/shakacode/react_on_rails/blob/master/spec/dummy/client/app/startup/ReactHelmetServerApp.jsx
77
+ https://github.com/shakacode/react_on_rails/blob/main/react_on_rails/spec/dummy/client/app/startup/ReactHelmetApp.server.jsx
78
78
  for an example of the necessary javascript configuration.
79
79
  MSG
80
80
  raise ReactOnRails::Error, msg
@@ -88,7 +88,7 @@ module ReactOnRails
88
88
 
89
89
  If you're trying to use a Render-Function to return a Hash to your ruby view code, then use
90
90
  react_component_hash instead of react_component and see
91
- https://github.com/shakacode/react_on_rails/blob/master/spec/dummy/client/app/startup/ReactHelmetServerApp.jsx
91
+ https://github.com/shakacode/react_on_rails/blob/main/react_on_rails/spec/dummy/client/app/startup/ReactHelmetApp.server.jsx
92
92
  for an example of the JavaScript code.
93
93
  MSG
94
94
  raise ReactOnRails::Error, msg
@@ -135,7 +135,7 @@ module ReactOnRails
135
135
  else
136
136
  msg = <<~MSG
137
137
  Render-Function used by react_component_hash for #{component_name} is expected to return
138
- an Object. See https://github.com/shakacode/react_on_rails/blob/master/spec/dummy/client/app/startup/ReactHelmetServerApp.jsx
138
+ an Object. See https://github.com/shakacode/react_on_rails/blob/main/react_on_rails/spec/dummy/client/app/startup/ReactHelmetApp.server.jsx
139
139
  for an example of the JavaScript code.
140
140
  Note, your Render-Function must either take 2 params or have the property
141
141
  `.renderFunction = true` added to it to distinguish it from a React Function Component.
@@ -138,7 +138,7 @@ module ReactOnRails
138
138
  msg = <<~MSG
139
139
  **ERROR** ReactOnRails: `nested_entries` is configured to be disabled in shakapacker. Please update \
140
140
  config/shakapacker.yml to enable nested entries. for more information read
141
- https://reactonrails.com/docs/guides/file-system-based-automated-bundle-generation.md#enable-nested_entries-for-shakapacker
141
+ https://reactonrails.com/docs/core-concepts/auto-bundling-file-system-based-automated-bundle-generation/#enable-nested_entries-for-shakapacker
142
142
  MSG
143
143
 
144
144
  raise ReactOnRails::Error, msg
@@ -584,7 +584,7 @@ module ReactOnRails
584
584
  msg = <<~MSG
585
585
  **ERROR** ReactOnRails: client specific definition for Component '#{component_name}' overrides the \
586
586
  common definition. Please delete the common definition and have separate server and client files. For more \
587
- information, please see https://reactonrails.com/docs/guides/file-system-based-automated-bundle-generation.md
587
+ information, please see https://reactonrails.com/docs/core-concepts/auto-bundling-file-system-based-automated-bundle-generation/
588
588
  MSG
589
589
 
590
590
  raise ReactOnRails::Error, msg
@@ -594,7 +594,7 @@ module ReactOnRails
594
594
  msg = <<~MSG
595
595
  **ERROR** ReactOnRails: server specific definition for Component '#{component_name}' overrides the \
596
596
  common definition. Please delete the common definition and have separate server and client files. For more \
597
- information, please see https://reactonrails.com/docs/guides/file-system-based-automated-bundle-generation.md
597
+ information, please see https://reactonrails.com/docs/core-concepts/auto-bundling-file-system-based-automated-bundle-generation/
598
598
  MSG
599
599
 
600
600
  raise ReactOnRails::Error, msg
@@ -603,7 +603,7 @@ module ReactOnRails
603
603
  def raise_missing_client_component(component_name)
604
604
  msg = <<~MSG
605
605
  **ERROR** ReactOnRails: Component '#{component_name}' is missing a client specific file. For more \
606
- information, please see https://reactonrails.com/docs/guides/file-system-based-automated-bundle-generation.md
606
+ information, please see https://reactonrails.com/docs/core-concepts/auto-bundling-file-system-based-automated-bundle-generation/
607
607
  MSG
608
608
 
609
609
  raise ReactOnRails::Error, msg
@@ -25,7 +25,7 @@ module ReactOnRails
25
25
  The `prerender` option to allow Server Side Rendering is marked as true but the ReactOnRails configuration
26
26
  for `server_bundle_js_file` is nil or not present in `config/initializers/react_on_rails.rb`.
27
27
  Set `config.server_bundle_js_file` to your javascript bundle to allow server side rendering.
28
- Read more at https://reactonrails.com/docs/guides/react-server-rendering/
28
+ Read more at https://reactonrails.com/docs/core-concepts/react-server-rendering/
29
29
  MSG
30
30
  raise ReactOnRails::Error, msg
31
31
  end
@@ -5,8 +5,7 @@
5
5
  module ReactOnRails
6
6
  module TestHelper
7
7
  class WebpackAssetsCompiler
8
- TESTING_DOCS_URL = "https://github.com/shakacode/react_on_rails/blob/master/" \
9
- "docs/oss/building-features/dev-server-and-testing.md"
8
+ TESTING_DOCS_URL = "https://reactonrails.com/docs/building-features/dev-server-and-testing/"
10
9
 
11
10
  def compile_assets
12
11
  if ReactOnRails.configuration.build_test_command.blank?
@@ -17,7 +17,7 @@ module ReactOnRails
17
17
  def self.immediate_hydration_pro_install_warning(name, type = "Component")
18
18
  "[REACT ON RAILS] Warning: immediate_hydration: true requires the React on Rails Pro gem to be installed.\n" \
19
19
  "#{type} '#{name}' will fall back to standard hydration behavior.\n" \
20
- "Visit https://pro.reactonrails.com/ for installation details."
20
+ "Visit https://reactonrails.com/docs/pro/ for installation details."
21
21
  end
22
22
 
23
23
  # Normalizes the immediate_hydration option value, enforcing Pro gem-availability requirements.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ReactOnRails
4
- VERSION = "16.5.0"
4
+ VERSION = "16.5.1"
5
5
  end
@@ -92,8 +92,8 @@ namespace :react_on_rails do
92
92
  puts Rainbow(" • Delete the common component file (e.g., Component.jsx)").white
93
93
  puts Rainbow(" • Keep only the client/server specific files " \
94
94
  "(Component.client.jsx, Component.server.jsx)").white
95
- puts Rainbow(" • See: https://reactonrails.com/docs/guides/" \
96
- "auto-bundling-file-system-based-automated-bundle-generation.md").cyan
95
+ puts Rainbow(" • See: https://reactonrails.com/docs/core-concepts/" \
96
+ "auto-bundling-file-system-based-automated-bundle-generation/").cyan
97
97
 
98
98
  when /Cannot find component/
99
99
  puts Rainbow(" • Check that your component file exists in the expected location").white
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: react_on_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 16.5.0
4
+ version: 16.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Gordon
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-03-25 00:00:00.000000000 Z
11
+ date: 2026-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable