react_on_rails_pro 16.4.0.rc.9 → 16.4.0.rc.10

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: c63303b689f4adb5d1be96c2415522aeb05fd210258535c2a8fe3421414870a9
4
- data.tar.gz: d0e63c69ac3c6ca63021ed54fc6f8f1fa6c574f0a261e74d6d6b4b9970a05c8a
3
+ metadata.gz: a744fffed0201ae9e7102968c8fa89e6342c994aba21f984ee3bd52133b3cebf
4
+ data.tar.gz: 4c8216d8d94e314bcbcb816b0136aa8a3bd4f7965bd1eb297f5b68135cac2956
5
5
  SHA512:
6
- metadata.gz: 920e935410da89b4bbd5951c70e1b4f528e7525bba8f2d27094fbe1ce0676ac17f1277a100d235d6d74186a3414765e40f471de7dd0b7bb7e4faa68d04c61426
7
- data.tar.gz: a4d980d3b3bdb5ace4a9d18902dbfabb35c2c2c99a3c354e5cbc39bda05853500d466d34c748e612dea4e0f0886849ed255be92082274befbaabc971af6b327e
6
+ metadata.gz: ff69324fb502586834f56e5d7879a10657ca33f52936aeee6b2dfe0f96dcd216a541d86a0d35a657fd5c916f50dd078dca01eace4da87cd46ff01a89204a8969
7
+ data.tar.gz: 1c749fb2f93a058bd2fb1e03eb8e68389caa66fdac3897e2486018e20738d564b8cce6d0abf73a7dbc6a3b003c199a59838d0a724d5687898781c58fcdc285e3
data/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
3
3
  > **This file is no longer maintained.**
4
4
  >
5
5
  > Starting with version 16.2.0, all React on Rails Pro changes are documented in the
6
- > **unified [CHANGELOG.md](../CHANGELOG.md)** under `#### Pro` sections within each release.
6
+ > **unified [CHANGELOG.md](../CHANGELOG.md)** with inline **[Pro]** tags within each release.
7
7
  >
8
8
  > For pre-monorepo Pro history (versions 4.0.0-rc.15 and earlier), see the
9
9
  > [archived Pro CHANGELOG on the 4.0.0 tag](https://github.com/shakacode/react_on_rails_pro/blob/4.0.0/CHANGELOG.md).
data/Gemfile.lock CHANGED
@@ -9,7 +9,7 @@ GIT
9
9
  PATH
10
10
  remote: ..
11
11
  specs:
12
- react_on_rails (16.4.0.rc.9)
12
+ react_on_rails (16.4.0.rc.10)
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.4.0.rc.9)
23
+ react_on_rails_pro (16.4.0.rc.10)
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.4.0.rc.9)
32
+ react_on_rails (= 16.4.0.rc.10)
33
33
 
34
34
  GEM
35
35
  remote: https://rubygems.org/
@@ -489,6 +489,7 @@ GEM
489
489
 
490
490
  PLATFORMS
491
491
  arm64-darwin-24
492
+ arm64-darwin-25
492
493
  x86_64-darwin-24
493
494
  x86_64-linux
494
495
 
@@ -11,7 +11,16 @@ module ReactOnRailsPro
11
11
 
12
12
  def rsc_payload
13
13
  @rsc_payload_component_name = rsc_payload_component_name
14
- @rsc_payload_component_props = rsc_payload_component_props
14
+ @rsc_payload_component_props =
15
+ begin
16
+ rsc_payload_component_props
17
+ rescue JSON::ParserError => e
18
+ Rails.logger.warn(
19
+ "[React on Rails Pro] Invalid JSON passed to the RSC payload endpoint " \
20
+ "for component '#{@rsc_payload_component_name}': #{e.message}"
21
+ )
22
+ return render plain: "Invalid props JSON", status: :bad_request
23
+ end
15
24
 
16
25
  stream_view_containing_react_components(
17
26
  template: custom_rsc_payload_template,
@@ -27,7 +36,7 @@ module ReactOnRailsPro
27
36
  "[React on Rails Pro] RSC payload templates are now rendered with format :text. " \
28
37
  "If you override `custom_rsc_payload_template`, make sure the override resolves to " \
29
38
  "a text or format-neutral template (for example `rsc_payload.text.erb`) instead of " \
30
- "only `.html.erb`. See\n" \
39
+ "only `.html.erb`. See " \
31
40
  "https://github.com/shakacode/react_on_rails/blob/master/docs/pro/updating.md " \
32
41
  "for upgrade notes.\n\n" \
33
42
  "Original error: #{e.message}"
@@ -15,8 +15,8 @@ module ReactOnRailsPro
15
15
  #
16
16
  # TODO: Add a prepublish check to ensure this key matches the latest public key from the API.
17
17
  # This should be implemented after publishing the API endpoint on the ShakaCode website.
18
- KEY = OpenSSL::PKey::RSA.new(<<~PEM.strip.strip_heredoc)
19
- -----BEGIN PUBLIC KEY-----
18
+ KEY = OpenSSL::PKey::RSA.new(<<~PEM.strip)
19
+ -----BEGIN PUBLIC KEY-----
20
20
  MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzcS/fpHz5CbnTQxb4Zot
21
21
  khjzXu7xNS+Y9VKfapMaHOMzNoCMfy1++hxHJatRedr+YQfZRCjfiN168Cpe+dhe
22
22
  yfNtOoLU9/+/5jTsxH+WQJWNRswyKms5HNajlIMN1GEYdZmZbvOPaZvh6ENsT+EV
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ReactOnRailsPro
4
- VERSION = "16.4.0.rc.9"
4
+ VERSION = "16.4.0.rc.10"
5
5
  PROTOCOL_VERSION = "2.0.0"
6
6
  end
@@ -60,7 +60,7 @@ namespace :react_on_rails_pro do # rubocop:disable Metrics/BlockLength
60
60
  # This should be implemented after publishing the API endpoint on the ShakaCode website.
61
61
  # Update Ruby public key file
62
62
  ruby_file_path = File.join(File.dirname(__FILE__), "..", "lib", "react_on_rails_pro", "license_public_key.rb")
63
- ruby_content = <<~RUBY.strip_heredoc
63
+ ruby_content = <<~RUBY
64
64
  # frozen_string_literal: true
65
65
 
66
66
  module ReactOnRailsPro
@@ -75,7 +75,7 @@ namespace :react_on_rails_pro do # rubocop:disable Metrics/BlockLength
75
75
  # react_on_rails_pro:update_public_key
76
76
  # This task fetches the latest key from the API endpoint:
77
77
  # http://shakacode.com/api/public-key
78
- KEY = OpenSSL::PKey::RSA.new(<<~PEM.strip.strip_heredoc)
78
+ KEY = OpenSSL::PKey::RSA.new(<<~PEM.strip)
79
79
  #{public_key.strip}
80
80
  PEM
81
81
  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.0.rc.9
4
+ version: 16.4.0.rc.10
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-13 00:00:00.000000000 Z
11
+ date: 2026-03-16 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.4.0.rc.9
131
+ version: 16.4.0.rc.10
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.4.0.rc.9
138
+ version: 16.4.0.rc.10
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: bundler
141
141
  requirement: !ruby/object:Gem::Requirement