You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Revert Prettier whitespace changes from markdown files
Remove unnecessary whitespace-only changes from markdown files that were
auto-formatted by Prettier during pre-commit hooks. These changes added
noise to the PR without providing value.
Only keeping the actual code fixes:
- spec/react_on_rails/configuration_spec.rb
- eslint.config.ts
- bin/ci-switch-config
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@ Changes since the last non-beta release.
38
38
#### Changed
39
39
40
40
-**Shakapacker 9.0.0 Upgrade**: Upgraded Shakapacker from 8.2.0 to 9.0.0 with Babel transpiler configuration for compatibility. Key changes include:
41
+
41
42
- Configured `javascript_transpiler: babel` in shakapacker.yml (Shakapacker 9.0 defaults to SWC which has PropTypes handling issues)
42
43
- Added precompile hook support via `bin/shakapacker-precompile-hook` for ReScript builds and pack generation
43
44
- Configured CSS Modules to use default exports (`namedExport: false`) for backward compatibility with existing `import styles from` syntax
@@ -99,6 +100,7 @@ To migrate to React on Rails Pro:
99
100
**Note:** If you're not using any of the Pro-only methods listed above, no changes are required.
100
101
101
102
-**Pro-Specific Configurations Moved to Pro Gem**: The following React Server Components (RSC) configurations have been moved from `ReactOnRails.configure` to `ReactOnRailsPro.configure`:
103
+
102
104
-`rsc_bundle_js_file` - Path to the RSC bundle file
103
105
-`react_server_client_manifest_file` - Path to the React server client manifest
104
106
-`react_client_manifest_file` - Path to the React client manifest
@@ -124,6 +126,7 @@ To migrate to React on Rails Pro:
124
126
See the [React on Rails Pro Configuration docs](https://github.com/shakacode/react_on_rails/blob/master/react_on_rails_pro/docs/configuration.md) for more details.
125
127
126
128
-**Streaming View Helpers Moved to Pro Gem**: The following view helpers have been removed from the open-source gem and are now only available in React on Rails Pro:
129
+
127
130
-`stream_react_component` - Progressive SSR using React 18+ streaming
@@ -148,10 +151,12 @@ To migrate to React on Rails Pro:
148
151
#### New Features
149
152
150
153
-**Server Bundle Security**: Added new configuration options for enhanced server bundle security and organization:
154
+
151
155
-`server_bundle_output_path`: Configurable directory (relative to the Rails root) for server bundle output (default: "ssr-generated"). If set to `nil`, the server bundle will be loaded from the same public directory as client bundles. [PR 1798](https://github.com/shakacode/react_on_rails/pull/1798) by [justin808](https://github.com/justin808)
152
156
-`enforce_private_server_bundles`: When enabled, ensures server bundles are only loaded from private directories outside the public folder (default: false for backward compatibility) [PR 1798](https://github.com/shakacode/react_on_rails/pull/1798) by [justin808](https://github.com/justin808)
153
157
154
158
-**Improved Bundle Path Resolution**: Bundle path resolution for server bundles now works as follows:
159
+
155
160
- If `server_bundle_output_path` is set, the server bundle is loaded from that directory.
156
161
- If `server_bundle_output_path` is not set, the server bundle falls back to the client bundle directory (typically the public output path).
157
162
- If `enforce_private_server_bundles` is enabled:
@@ -263,6 +268,7 @@ See [Release Notes](docs/release-notes/16.0.0.md) for complete migration guide.
263
268
264
269
-**`defer_generated_component_packs` deprecated** → use `generated_component_packs_loading_strategy`
- Recommended: `generated_component_packs_loading_strategy: :async` for best performance
@@ -671,6 +677,7 @@ for details.
671
677
- Removal of config.symlink_non_digested_assets_regex as it's no longer needed with rails/webpacker.
672
678
If any business needs this, we can move the code to a separate gem.
673
679
- Added configuration option `same_bundle_for_client_and_server` with default `false` because
680
+
674
681
1. Production applications would typically have a server bundle that differs from the client bundle
675
682
2. This change only affects trying to use HMR with react_on_rails with rails/webpacker.
676
683
@@ -1388,11 +1395,13 @@ No changes.
1388
1395
- Added automatic compilation of assets at precompile is now done by ReactOnRails. Thus, you don't need to provide your own `assets.rake` file that does the precompilation.
1389
1396
[#398](https://github.com/shakacode/react_on_rails/pull/398) by [robwise](https://github.com/robwise), [jbhatab](https://github.com/jbhatab), and [justin808](https://github.com/justin808).
1390
1397
-**Migration to v6**
1398
+
1391
1399
- Do not run the generator again if you've already run it.
1392
1400
1393
1401
- See [shakacode/react-webpack-rails-tutorial/pull/287](https://github.com/shakacode/react-webpack-rails-tutorial/pull/287) for an example of upgrading from v5.
1394
1402
1395
1403
- To configure the asset compilation you can either
1404
+
1396
1405
1. Specify a `config/react_on_rails` setting for `build_production_command` to be nil to turn this feature off.
1397
1406
2. Specify the script command you want to run to build your production assets, and remove your `assets.rake` file.
0 commit comments