react_on_rails_pro 16.2.0.beta.11 → 16.2.0.test.3
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/.gitignore +1 -1
- data/.prettierignore +0 -1
- data/CHANGELOG.md +14 -4
- data/Gemfile.lock +5 -4
- data/app/helpers/react_on_rails_pro_helper.rb +190 -33
- data/eslint.config.mjs +26 -7
- data/lib/react_on_rails_pro/async_value.rb +35 -0
- data/lib/react_on_rails_pro/concerns/async_rendering.rb +68 -0
- data/lib/react_on_rails_pro/concerns/stream.rb +62 -49
- data/lib/react_on_rails_pro/configuration.rb +20 -10
- data/lib/react_on_rails_pro/immediate_async_value.rb +27 -0
- data/lib/react_on_rails_pro/version.rb +1 -1
- data/lib/react_on_rails_pro.rb +3 -0
- data/package-scripts.yml +20 -37
- data/package.json +9 -154
- data/rakelib/run_rspec.rake +1 -1
- data/react_on_rails_pro.gemspec +9 -7
- data/sig/react_on_rails_pro/async_value.rbs +15 -0
- data/sig/react_on_rails_pro/concerns/async_rendering.rbs +15 -0
- data/sig/react_on_rails_pro/immediate_async_value.rbs +15 -0
- metadata +24 -6
- data/script/preinstall.js +0 -31
- data/yarn.lock +0 -7599
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.2.0.
|
|
4
|
+
version: 16.2.0.test.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Justin Gordon
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-12-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|
|
@@ -66,6 +66,20 @@ dependencies:
|
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '1.5'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: http-2
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - ">="
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: 1.1.1
|
|
76
|
+
type: :runtime
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - ">="
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: 1.1.1
|
|
69
83
|
- !ruby/object:Gem::Dependency
|
|
70
84
|
name: jwt
|
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -114,14 +128,14 @@ dependencies:
|
|
|
114
128
|
requirements:
|
|
115
129
|
- - '='
|
|
116
130
|
- !ruby/object:Gem::Version
|
|
117
|
-
version: 16.2.0.
|
|
131
|
+
version: 16.2.0.test.3
|
|
118
132
|
type: :runtime
|
|
119
133
|
prerelease: false
|
|
120
134
|
version_requirements: !ruby/object:Gem::Requirement
|
|
121
135
|
requirements:
|
|
122
136
|
- - '='
|
|
123
137
|
- !ruby/object:Gem::Version
|
|
124
|
-
version: 16.2.0.
|
|
138
|
+
version: 16.2.0.test.3
|
|
125
139
|
- !ruby/object:Gem::Dependency
|
|
126
140
|
name: bundler
|
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -250,13 +264,16 @@ files:
|
|
|
250
264
|
- eslint.config.mjs
|
|
251
265
|
- lib/react_on_rails_pro.rb
|
|
252
266
|
- lib/react_on_rails_pro/assets_precompile.rb
|
|
267
|
+
- lib/react_on_rails_pro/async_value.rb
|
|
253
268
|
- lib/react_on_rails_pro/cache.rb
|
|
269
|
+
- lib/react_on_rails_pro/concerns/async_rendering.rb
|
|
254
270
|
- lib/react_on_rails_pro/concerns/rsc_payload_renderer.rb
|
|
255
271
|
- lib/react_on_rails_pro/concerns/stream.rb
|
|
256
272
|
- lib/react_on_rails_pro/configuration.rb
|
|
257
273
|
- lib/react_on_rails_pro/constants.rb
|
|
258
274
|
- lib/react_on_rails_pro/engine.rb
|
|
259
275
|
- lib/react_on_rails_pro/error.rb
|
|
276
|
+
- lib/react_on_rails_pro/immediate_async_value.rb
|
|
260
277
|
- lib/react_on_rails_pro/license_public_key.rb
|
|
261
278
|
- lib/react_on_rails_pro/license_validator.rb
|
|
262
279
|
- lib/react_on_rails_pro/prepare_node_renderer_bundles.rb
|
|
@@ -283,15 +300,16 @@ files:
|
|
|
283
300
|
- react_on_rails_pro.gemspec
|
|
284
301
|
- readme-gen-docs.md
|
|
285
302
|
- script/bootstrap
|
|
286
|
-
- script/preinstall.js
|
|
287
303
|
- script/setup
|
|
288
304
|
- script/test
|
|
289
305
|
- sig/react_on_rails_pro.rbs
|
|
306
|
+
- sig/react_on_rails_pro/async_value.rbs
|
|
290
307
|
- sig/react_on_rails_pro/cache.rbs
|
|
308
|
+
- sig/react_on_rails_pro/concerns/async_rendering.rbs
|
|
291
309
|
- sig/react_on_rails_pro/configuration.rbs
|
|
292
310
|
- sig/react_on_rails_pro/error.rbs
|
|
311
|
+
- sig/react_on_rails_pro/immediate_async_value.rbs
|
|
293
312
|
- sig/react_on_rails_pro/utils.rbs
|
|
294
|
-
- yarn.lock
|
|
295
313
|
homepage: https://github.com/shakacode/react_on_rails_pro
|
|
296
314
|
licenses:
|
|
297
315
|
- UNLICENSED
|
data/script/preinstall.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
const path = require('path');
|
|
4
|
-
const cp = require('child_process');
|
|
5
|
-
|
|
6
|
-
const inNodeModules = __dirname.split(path.sep).includes('node_modules');
|
|
7
|
-
|
|
8
|
-
if (inNodeModules) {
|
|
9
|
-
console.log('preinstall: running inside node_modules — skipping link steps.');
|
|
10
|
-
process.exit(0);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
function runCommand(cmd, args) {
|
|
14
|
-
const res = cp.spawnSync(cmd, args, { stdio: 'inherit' });
|
|
15
|
-
if (res.error) throw res.error;
|
|
16
|
-
if (res.status !== 0) throw new Error(`${cmd} ${args.join(' ')} exited with status ${res.status}`);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
try {
|
|
20
|
-
// Run the original optional link steps sequentially in a cross-platform way.
|
|
21
|
-
// First run the package script `link-source` via yarn, which will run any shell ops inside the script
|
|
22
|
-
// (yarn itself will handle invoking a shell for the script body), then call yalc.
|
|
23
|
-
runCommand('yarn', ['run', 'link-source']);
|
|
24
|
-
runCommand('yalc', ['add', '--link', 'react-on-rails']);
|
|
25
|
-
} catch (err) {
|
|
26
|
-
// Don't fail the overall install if these optional commands aren't available or fail,
|
|
27
|
-
// just log the error.
|
|
28
|
-
console.error('preinstall: optional link steps failed or are unavailable — continuing.', err);
|
|
29
|
-
// Keep the exit code 0 so the install doesn't fail.
|
|
30
|
-
process.exit(0);
|
|
31
|
-
}
|