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 +4 -4
- data/CHANGELOG.md +14 -4
- data/CONTRIBUTING.md +12 -0
- data/lib/generators/react_on_rails/base_generator.rb +1 -1
- data/lib/generators/react_on_rails/react_no_redux_generator.rb +1 -1
- data/lib/generators/react_on_rails/react_with_redux_generator.rb +1 -1
- data/lib/react_on_rails/engine.rb +2 -5
- data/lib/react_on_rails/utils.rb +3 -2
- data/lib/react_on_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a0e1b605989c169efc65df4d26eb0a2db042e580fffd7d9c4499debfa61d04c9
|
|
4
|
+
data.tar.gz: cb2b6a59bb10fa9f230462fe8c9b91c430e9e7287d7df113650f75a548af6cd8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
1680
|
-
[16.
|
|
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)
|
|
@@ -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
|
|
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
|
|
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
|
-
|
|
13
|
-
|
|
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
|
data/lib/react_on_rails/utils.rb
CHANGED
|
@@ -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 =
|
|
174
|
+
@react_server_manifest_path = bundle_js_file_path(asset_name)
|
|
174
175
|
end
|
|
175
176
|
|
|
176
177
|
def self.running_on_windows?
|
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.
|
|
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.
|
|
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: []
|