react_on_rails 16.1.0 → 16.1.2

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: e606cadbca5e1019c44272e88ae2a7ec148b9becf9817dc74925fc531bb2b80f
4
- data.tar.gz: 88a6a32f2def3bdb2231a39e5900c1b0c5054e2f2d7c3126a53599b85e54a767
3
+ metadata.gz: a0e1b605989c169efc65df4d26eb0a2db042e580fffd7d9c4499debfa61d04c9
4
+ data.tar.gz: cb2b6a59bb10fa9f230462fe8c9b91c430e9e7287d7df113650f75a548af6cd8
5
5
  SHA512:
6
- metadata.gz: 4548a73877807049e0ce8ba5146468e473e6c0b17765e1866f001cd2dba6564d00e51b1a70a9ff8a421dc396f108908da68913a97f86167d6aac32e6ca792658
7
- data.tar.gz: 8f4ab4ed17438e1d64ccd1c7b54417e6158ea39d3b1498f04b7778fe65eb735a8fdbe0cce112d11388ab14d26ff6e0cbdd846a7af79740333af35aecdf34a942
6
+ metadata.gz: b8893a08a9a2836d98c548e94c0119f5a72b42a5a46fba5c02845982a1e9cff19cd33af1015812dd2d278fea2883ec26c48b1cb901ec1a8a451af2b9a05258a5
7
+ data.tar.gz: 1d07b61172b72737517395cc8da761c82571bc49cf72bb97cb154a822d5cc9b874710c51bb5eb715b2093ffdbd607258e42fd91b85b92368073a23eeeb1d39c5
data/CHANGELOG.md CHANGED
@@ -23,6 +23,18 @@ After a release, please make sure to run `bundle exec rake update_changelog`. Th
23
23
 
24
24
  Changes since the last non-beta release.
25
25
 
26
+ ### [16.1.2] - 2025-11-19
27
+
28
+ #### Fixed
29
+
30
+ - **Duplicate Rake Task Execution**: Fixed rake tasks executing twice during asset precompilation and other rake operations. Rails Engine was loading task files twice: once via explicit `load` calls in the `rake_tasks` block (Railtie layer) and once via automatic file loading from `lib/tasks/` (Engine layer). This caused `react_on_rails:assets:webpack`, `react_on_rails:generate_packs`, and `react_on_rails:locale` tasks to run twice, significantly increasing build times. Removed explicit `load` calls and now rely on Rails Engine's standard auto-loading behavior. [PR 2052](https://github.com/shakacode/react_on_rails/pull/2052) by [justin808](https://github.com/justin808).
31
+
32
+ ### [16.1.1] - 2025-09-24
33
+
34
+ #### Bug Fixes
35
+
36
+ - **React Server Components**: Fixed bug in resolving `react-server-client-manifest.json` file path. The manifest file path is now correctly resolved using `bundle_js_file_path` for improved configuration flexibility and consistency in bundle management. [PR 1818](https://github.com/shakacode/react_on_rails/pull/1818) by [AbanoubGhadban](https://github.com/AbanoubGhadban)
37
+
26
38
  ### [16.1.0] - 2025-09-23
27
39
 
28
40
  #### New Features
@@ -1676,10 +1688,8 @@ such as:
1676
1688
 
1677
1689
  - Fix several generator-related issues.
1678
1690
 
1679
- [Unreleased]: https://github.com/shakacode/react_on_rails/compare/16.0.1-rc.4...master
1680
- [16.0.1-rc.4]: https://github.com/shakacode/react_on_rails/compare/16.0.1-rc.2...16.0.1-rc.4
1681
- [16.0.1-rc.2]: https://github.com/shakacode/react_on_rails/compare/16.0.1-rc.0...16.0.1-rc.2
1682
- [16.0.1-rc.0]: https://github.com/shakacode/react_on_rails/compare/16.0.0...16.0.1-rc.0
1691
+ [Unreleased]: https://github.com/shakacode/react_on_rails/compare/16.1.0...master
1692
+ [16.1.0]: https://github.com/shakacode/react_on_rails/compare/16.0.0...16.1.0
1683
1693
  [16.0.0]: https://github.com/shakacode/react_on_rails/compare/14.2.0...16.0.0
1684
1694
  [14.2.0]: https://github.com/shakacode/react_on_rails/compare/14.1.1...14.2.0
1685
1695
  [14.1.1]: https://github.com/shakacode/react_on_rails/compare/14.1.0...14.1.1
data/CONTRIBUTING.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Tips for Contributors
2
2
 
3
+ **🏗️ Important: Monorepo Merger in Progress**
4
+
5
+ We are currently working on merging the `react_on_rails` and `react_on_rails_pro` repositories into a unified monorepo. This will provide better development experience while maintaining separate package identities and licensing. See [docs/MONOREPO_MERGER_PLAN_REF.md](./docs/MONOREPO_MERGER_PLAN_REF.md) for details.
6
+
7
+ During this transition:
8
+
9
+ - Continue contributing to the current structure
10
+ - License compliance remains critical - ensure no Pro code enters MIT-licensed areas
11
+ - Major structural changes may be coordinated with the merger plan
12
+
13
+ ---
14
+
3
15
  - [docs/contributor-info/Releasing](./docs/contributor-info/releasing.md) for instructions on releasing.
4
16
  - [docs/contributor-info/pull-requests](./docs/contributor-info/pull-requests.md)
5
17
  - See other docs in [docs/contributor-info](./docs/contributor-info)
@@ -95,7 +95,7 @@ module ReactOnRails
95
95
  run "bundle"
96
96
  end
97
97
 
98
- def update_gitignore_for_auto_registration
98
+ def update_gitignore_for_generated_bundles
99
99
  gitignore_path = File.join(destination_root, ".gitignore")
100
100
  return unless File.exist?(gitignore_path)
101
101
 
@@ -37,7 +37,7 @@ module ReactOnRails
37
37
  component_name: "HelloWorld"
38
38
  }
39
39
 
40
- # Only create the view template - no manual bundle needed for auto registration
40
+ # Only create the view template - no manual bundle needed for auto-bundling
41
41
  template("#{base_path}/app/views/hello_world/index.html.erb.tt",
42
42
  "app/views/hello_world/index.html.erb", config)
43
43
  end
@@ -68,7 +68,7 @@ module ReactOnRails
68
68
  component_name: "HelloWorldApp"
69
69
  }
70
70
 
71
- # Only create the view template - no manual bundle needed for auto registration
71
+ # Only create the view template - no manual bundle needed for auto-bundling
72
72
  template("#{base_path}/app/views/hello_world/index.html.erb.tt",
73
73
  "app/views/hello_world/index.html.erb", config)
74
74
  end
@@ -9,10 +9,7 @@ module ReactOnRails
9
9
  ReactOnRails::ServerRenderingPool.reset_pool
10
10
  end
11
11
 
12
- rake_tasks do
13
- load File.expand_path("../tasks/generate_packs.rake", __dir__)
14
- load File.expand_path("../tasks/assets.rake", __dir__)
15
- load File.expand_path("../tasks/locale.rake", __dir__)
16
- end
12
+ # Rake tasks are automatically loaded from lib/tasks/*.rake by Rails::Engine
13
+ # No need to explicitly load them here to avoid duplicate loading
17
14
  end
18
15
  end
@@ -112,7 +112,8 @@ module ReactOnRails
112
112
  private_class_method def self.server_bundle?(bundle_name)
113
113
  config = ReactOnRails.configuration
114
114
  bundle_name == config.server_bundle_js_file ||
115
- bundle_name == config.rsc_bundle_js_file
115
+ bundle_name == config.rsc_bundle_js_file ||
116
+ bundle_name == config.react_server_client_manifest_file
116
117
  end
117
118
 
118
119
  private_class_method def self.handle_missing_manifest_entry(bundle_name, is_server_bundle)
@@ -170,7 +171,7 @@ module ReactOnRails
170
171
  "react_server_client_manifest_file is nil, ensure it is set in your configuration"
171
172
  end
172
173
 
173
- @react_server_manifest_path = File.join(public_bundles_full_path, asset_name)
174
+ @react_server_manifest_path = bundle_js_file_path(asset_name)
174
175
  end
175
176
 
176
177
  def self.running_on_windows?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ReactOnRails
4
- VERSION = "16.1.0"
4
+ VERSION = "16.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: react_on_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 16.1.0
4
+ version: 16.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Gordon
@@ -271,7 +271,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
271
271
  - !ruby/object:Gem::Version
272
272
  version: '0'
273
273
  requirements: []
274
- rubygems_version: 3.6.7
274
+ rubygems_version: 3.7.2
275
275
  specification_version: 4
276
276
  summary: Rails with react server rendering with webpack.
277
277
  test_files: []