react_on_rails_pro 16.4.0 → 16.5.0
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/CONTRIBUTING.md +7 -7
- data/Gemfile.development_dependencies +1 -1
- data/Gemfile.lock +7 -7
- data/LICENSE_SETUP.md +1 -1
- data/README.md +4 -10
- data/app/helpers/react_on_rails_pro_helper.rb +1 -1
- data/lib/react_on_rails_pro/compression_middleware_guard.rb +1 -1
- data/lib/react_on_rails_pro/engine.rb +1 -1
- data/lib/react_on_rails_pro/license_task_formatter.rb +2 -2
- data/lib/react_on_rails_pro/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d87f585ee40c121c267f1d7977dda61120c8cb983218ed4e82dd3101f1335e38
|
|
4
|
+
data.tar.gz: cb1eed8790f507649ee1b2ac1dfb1165562728c0d3479e62ef84beeea558ef96
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5b49b41740781fc25914ebd81bc314e78be1f1cedbe5e00abd13b8b948a7d7fa70be66ba7df888bfde45569f84484f69637c174a305dfd2129c36d970741d49d
|
|
7
|
+
data.tar.gz: 3f72dac897e08fc3553322df667b675bf2533e4d8c59b9f3cf7a848fbaf0e8b09ccddf5310fedf20fb2332bec7011bb4511610d699abc2f6221ec023b94b494c
|
data/CONTRIBUTING.md
CHANGED
|
@@ -22,9 +22,9 @@ See the example apps under `/spec`
|
|
|
22
22
|
|
|
23
23
|
For non-doc fixes:
|
|
24
24
|
|
|
25
|
-
- Provide changelog entry in the [unreleased section of the CHANGELOG.md](https://github.com/shakacode/react_on_rails/blob/
|
|
25
|
+
- Provide changelog entry in the [unreleased section of the CHANGELOG.md](https://github.com/shakacode/react_on_rails/blob/main/react_on_rails_pro/CHANGELOG.md#unreleased).
|
|
26
26
|
- Ensure CI passes and that you added a test that passes with the fix and fails without the fix.
|
|
27
|
-
- Squash all commits down to one with a nice commit message _ONLY_ once final review is given. Make sure this single commit is rebased on top of
|
|
27
|
+
- Squash all commits down to one with a nice commit message _ONLY_ once final review is given. Make sure this single commit is rebased on top of main.
|
|
28
28
|
- Please address all code review comments.
|
|
29
29
|
- Ensure that docs are updated accordingly if a feature is added.
|
|
30
30
|
|
|
@@ -46,7 +46,7 @@ From [How to Write a Git Commit Message](http://chris.beams.io/posts/git-commit/
|
|
|
46
46
|
|
|
47
47
|
## Doc Changes
|
|
48
48
|
|
|
49
|
-
When making doc changes, we want the change to work on both [the React on Rails docs site](https://reactonrails.com/docs/pro
|
|
49
|
+
When making doc changes, we want the change to work on both [the React on Rails docs site](https://reactonrails.com/docs/pro) and when browsing the GitHub repo.
|
|
50
50
|
For links from docs pages to non-doc files, use full GitHub URLs so links resolve correctly in both contexts.
|
|
51
51
|
|
|
52
52
|
### Links to other docs:
|
|
@@ -55,7 +55,7 @@ For links from docs pages to non-doc files, use full GitHub URLs so links resolv
|
|
|
55
55
|
`[Installation Guide](../docs/pro/installation.md)`
|
|
56
56
|
|
|
57
57
|
- When making references to source code files, use a full url path like:
|
|
58
|
-
`[spec/dummy/config/initializers/react_on_rails.rb](https://github.com/shakacode/react_on_rails/tree/
|
|
58
|
+
`[spec/dummy/config/initializers/react_on_rails.rb](https://github.com/shakacode/react_on_rails/tree/main/react_on_rails_pro/spec/dummy/config/initializers/react_on_rails.rb)`
|
|
59
59
|
|
|
60
60
|
## To run tests:
|
|
61
61
|
|
|
@@ -70,7 +70,7 @@ React on Rails Pro shares the optimized CI pipeline with the main gem. The CI sy
|
|
|
70
70
|
### CI Behavior
|
|
71
71
|
|
|
72
72
|
- **On PRs/Branches**: Runs reduced test matrix (latest Ruby/Node versions only) for faster feedback
|
|
73
|
-
- **On
|
|
73
|
+
- **On Main**: Runs full test matrix (all Ruby/Node/dependency combinations) for complete coverage
|
|
74
74
|
- **Docs-only changes**: CI skips entirely when only `.md` files or `docs/` directory change
|
|
75
75
|
|
|
76
76
|
### Local CI Tools
|
|
@@ -88,7 +88,7 @@ cd ..
|
|
|
88
88
|
# Auto-detect what to test (includes Pro tests if Pro files changed)
|
|
89
89
|
bin/ci-local
|
|
90
90
|
|
|
91
|
-
# Run all CI checks (same as
|
|
91
|
+
# Run all CI checks (same as main branch)
|
|
92
92
|
bin/ci-local --all
|
|
93
93
|
|
|
94
94
|
# Quick check - only fast tests
|
|
@@ -103,7 +103,7 @@ Analyzes changes to both main gem and Pro:
|
|
|
103
103
|
|
|
104
104
|
```bash
|
|
105
105
|
# From repository root
|
|
106
|
-
script/ci-changes-detector origin/
|
|
106
|
+
script/ci-changes-detector origin/main
|
|
107
107
|
```
|
|
108
108
|
|
|
109
109
|
### CI Best Practices for Pro
|
|
@@ -20,7 +20,7 @@ gem "pg"
|
|
|
20
20
|
|
|
21
21
|
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
|
|
22
22
|
gem "turbolinks"
|
|
23
|
-
gem "sqlite3", "~>
|
|
23
|
+
gem "sqlite3", "~> 2.0"
|
|
24
24
|
gem "jquery-rails"
|
|
25
25
|
gem "sprockets"
|
|
26
26
|
gem "sass-rails"
|
data/Gemfile.lock
CHANGED
|
@@ -9,7 +9,7 @@ GIT
|
|
|
9
9
|
PATH
|
|
10
10
|
remote: ..
|
|
11
11
|
specs:
|
|
12
|
-
react_on_rails (16.
|
|
12
|
+
react_on_rails (16.5.0)
|
|
13
13
|
addressable
|
|
14
14
|
connection_pool
|
|
15
15
|
execjs (~> 2.5)
|
|
@@ -20,7 +20,7 @@ PATH
|
|
|
20
20
|
PATH
|
|
21
21
|
remote: .
|
|
22
22
|
specs:
|
|
23
|
-
react_on_rails_pro (16.
|
|
23
|
+
react_on_rails_pro (16.5.0)
|
|
24
24
|
addressable
|
|
25
25
|
async (>= 2.6)
|
|
26
26
|
connection_pool
|
|
@@ -29,7 +29,7 @@ PATH
|
|
|
29
29
|
httpx (~> 1.5)
|
|
30
30
|
jwt (~> 2.7)
|
|
31
31
|
rainbow
|
|
32
|
-
react_on_rails (= 16.
|
|
32
|
+
react_on_rails (= 16.5.0)
|
|
33
33
|
|
|
34
34
|
GEM
|
|
35
35
|
remote: https://rubygems.org/
|
|
@@ -440,9 +440,9 @@ GEM
|
|
|
440
440
|
actionpack (>= 6.1)
|
|
441
441
|
activesupport (>= 6.1)
|
|
442
442
|
sprockets (>= 3.0.0)
|
|
443
|
-
sqlite3 (
|
|
444
|
-
sqlite3 (
|
|
445
|
-
sqlite3 (
|
|
443
|
+
sqlite3 (2.9.2-arm64-darwin)
|
|
444
|
+
sqlite3 (2.9.2-x86_64-darwin)
|
|
445
|
+
sqlite3 (2.9.2-x86_64-linux-gnu)
|
|
446
446
|
stringio (3.2.0)
|
|
447
447
|
sync (0.5.0)
|
|
448
448
|
term-ansicolor (1.10.2)
|
|
@@ -538,7 +538,7 @@ DEPENDENCIES
|
|
|
538
538
|
spring
|
|
539
539
|
spring-watcher-listen
|
|
540
540
|
sprockets
|
|
541
|
-
sqlite3 (~>
|
|
541
|
+
sqlite3 (~> 2.0)
|
|
542
542
|
turbolinks
|
|
543
543
|
web-console
|
|
544
544
|
webdrivers (= 5.3.0)
|
data/LICENSE_SETUP.md
CHANGED
data/README.md
CHANGED
|
@@ -267,9 +267,11 @@ end
|
|
|
267
267
|
|
|
268
268
|
| React on Rails Pro | React on Rails | Rails | Ruby | React |
|
|
269
269
|
| ------------------ | -------------- | ------ | ------ | ------- |
|
|
270
|
-
|
|
|
270
|
+
| 16.x | >= 16.0 | >= 7.0 | >= 3.2 | >= 18 |
|
|
271
271
|
| 3.x | >= 13.0 | >= 6.0 | >= 3.0 | >= 16.8 |
|
|
272
272
|
|
|
273
|
+
> **Note:** Pro version numbers were aligned with the core gem starting at 16.2.0. Pro 16.x is the direct successor to Pro 3.x/4.x.
|
|
274
|
+
|
|
273
275
|
**📖 Check compatibility**: See [CHANGELOG.md](./CHANGELOG.md) for version-specific requirements
|
|
274
276
|
|
|
275
277
|
---
|
|
@@ -286,15 +288,7 @@ Since React on Rails Pro is part of the public monorepo, you can install it dire
|
|
|
286
288
|
|
|
287
289
|
```ruby
|
|
288
290
|
# Gemfile
|
|
289
|
-
gem 'react_on_rails_pro', '~>
|
|
290
|
-
```
|
|
291
|
-
|
|
292
|
-
Or use a specific version/tag:
|
|
293
|
-
|
|
294
|
-
```ruby
|
|
295
|
-
gem 'react_on_rails_pro', git: 'https://github.com/shakacode/react_on_rails.git',
|
|
296
|
-
glob: 'react_on_rails_pro/*.gemspec',
|
|
297
|
-
tag: 'v4.0.0'
|
|
291
|
+
gem 'react_on_rails_pro', '~> 16.0'
|
|
298
292
|
```
|
|
299
293
|
|
|
300
294
|
Then run:
|
|
@@ -183,7 +183,7 @@ module ReactOnRailsProHelper
|
|
|
183
183
|
# `rsc_payload_route` helper function. The returned data from this function is used internally by
|
|
184
184
|
# components registered using the `registerServerComponent` function. Don't use it unless you need
|
|
185
185
|
# more control over the RSC payload generation. To know more about RSC payload, see the following link:
|
|
186
|
-
# @see https://
|
|
186
|
+
# @see https://reactonrails.com/docs/pro/react-server-components/how-react-server-components-work
|
|
187
187
|
# for technical details about the RSC payload format
|
|
188
188
|
def rsc_payload_react_component(component_name, options = {})
|
|
189
189
|
# rsc_payload_react_component doesn't have the prerender option
|
|
@@ -6,7 +6,7 @@ require "timeout"
|
|
|
6
6
|
module ReactOnRailsPro
|
|
7
7
|
class CompressionMiddlewareGuard
|
|
8
8
|
COMPATIBILITY_GUIDE_PATH =
|
|
9
|
-
"https://
|
|
9
|
+
"https://reactonrails.com/docs/building-features/" \
|
|
10
10
|
"streaming-server-rendering/#compression-middleware-compatibility"
|
|
11
11
|
PROBLEMATIC_MIDDLEWARES = %w[Rack::Deflater Rack::Brotli].freeze
|
|
12
12
|
PROBE_TIMEOUT_SECONDS = 1
|
|
@@ -4,7 +4,7 @@ require "rails/railtie"
|
|
|
4
4
|
|
|
5
5
|
module ReactOnRailsPro
|
|
6
6
|
class Engine < Rails::Engine
|
|
7
|
-
LICENSE_URL = "https://
|
|
7
|
+
LICENSE_URL = "https://pro.reactonrails.com/"
|
|
8
8
|
# TODO: Remove this legacy migration warning path after 16.5.0 stable release (target: 2026-05-31).
|
|
9
9
|
LEGACY_LICENSE_FILE = "config/react_on_rails_pro_license.key"
|
|
10
10
|
private_constant :LICENSE_URL
|
|
@@ -64,9 +64,9 @@ module ReactOnRailsPro
|
|
|
64
64
|
|
|
65
65
|
puts ""
|
|
66
66
|
if info[:status] == :expired
|
|
67
|
-
puts "WARNING: License has expired. Renew at https://
|
|
67
|
+
puts "WARNING: License has expired. Renew at https://pro.reactonrails.com/"
|
|
68
68
|
else
|
|
69
|
-
puts "WARNING: License expires within 30 days. Renew at https://
|
|
69
|
+
puts "WARNING: License expires within 30 days. Renew at https://pro.reactonrails.com/"
|
|
70
70
|
end
|
|
71
71
|
end
|
|
72
72
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: react_on_rails_pro
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 16.
|
|
4
|
+
version: 16.5.0
|
|
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-
|
|
11
|
+
date: 2026-03-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|
|
@@ -128,14 +128,14 @@ dependencies:
|
|
|
128
128
|
requirements:
|
|
129
129
|
- - '='
|
|
130
130
|
- !ruby/object:Gem::Version
|
|
131
|
-
version: 16.
|
|
131
|
+
version: 16.5.0
|
|
132
132
|
type: :runtime
|
|
133
133
|
prerelease: false
|
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
|
135
135
|
requirements:
|
|
136
136
|
- - '='
|
|
137
137
|
- !ruby/object:Gem::Version
|
|
138
|
-
version: 16.
|
|
138
|
+
version: 16.5.0
|
|
139
139
|
- !ruby/object:Gem::Dependency
|
|
140
140
|
name: bundler
|
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|