react_on_rails 12.5.0 → 12.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -3
- data/Gemfile.development_dependencies +5 -5
- data/README.md +4 -7
- data/lib/react_on_rails/server_rendering_pool/ruby_embedded_java_script.rb +3 -1
- data/lib/react_on_rails/version.rb +1 -1
- data/package.json +1 -1
- data/rakelib/release.rake +2 -0
- data/react_on_rails.gemspec +2 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88901566a8542a69dca5cdad520c369e4fb7308c8e762879833857f98227df4f
|
4
|
+
data.tar.gz: 4248d3aa6267a69e480f371d543f00440aecc29eb1c26ddc9abd1d6ed06a4a26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc7a0186cb28fe7e0aa157685228e648ebb64afc991690a4a6dd541e0584b03573deb977553d70ddbe48332ca47108c6af2590f338a1b27491de941b95df4855
|
7
|
+
data.tar.gz: 6a76d0c809e2a098c1425094f98c19f8cac91f426b7e826bf2f438b1fb15e541f048c4a5bdfb55f2e9c8ae1cc4521433e3d60ad81c1be0c08aaa958d5ea1b0b6
|
data/CHANGELOG.md
CHANGED
@@ -17,10 +17,16 @@ Changes since last non-beta release.
|
|
17
17
|
|
18
18
|
*Please add entries here for your pull requests that are not yet released.*
|
19
19
|
|
20
|
+
### [12.5.1] - 2021-12-27
|
21
|
+
|
22
|
+
### Fixed
|
23
|
+
- A fatal server rendering error if running an ReactOnRails >=12.4.0 with ReactOnRails Pro <2.4.0. [PR 1412](https://github.com/shakacode/react_on_rails/pull/1412) by [judahmeek](https://github.com/judahmeek)
|
24
|
+
|
20
25
|
### [12.5.0] - 2021-12-26
|
21
26
|
|
22
27
|
#### Added
|
23
|
-
-
|
28
|
+
- Support for React 18, including the changed SSR API. [PR 1409](https://github.com/shakacode/react_on_rails/pull/1409) by [kylemellander](https://github.com/kylemellander).
|
29
|
+
- Added webpack configuration files as part of the generator and updated webpacker to version 6. [PR 1404](https://github.com/shakacode/react_on_rails/pull/1404) by [gscarv13](https://github.com/gscarv13).
|
24
30
|
- Supports Rails 7.
|
25
31
|
|
26
32
|
#### Changed
|
@@ -92,7 +98,7 @@ invoked to return the React component. In that case, you won't need to pass any
|
|
92
98
|
[PR 1268](https://github.com/shakacode/react_on_rails/pull/1268) by [justin808](https://github.com/justin808)
|
93
99
|
|
94
100
|
See [docs/guides/upgrading-react-on-rails](https://www.shakacode.com/react-on-rails/docs/guides/upgrading-react-on-rails#upgrading-to-v12)
|
95
|
-
for details.
|
101
|
+
for details.
|
96
102
|
|
97
103
|
#### Other Updates
|
98
104
|
* `react_on_rails` fully supports `rails/webpacker`. The example test app in `spec/dummy` was recently converted over to use rails/webpacker v4+. It's a good example of how to leverage rails/webpacker's webpack configuration for server-side rendering.
|
@@ -984,7 +990,9 @@ Best done with Object destructing:
|
|
984
990
|
##### Fixed
|
985
991
|
- Fix several generator related issues.
|
986
992
|
|
987
|
-
[Unreleased]: https://github.com/shakacode/react_on_rails/compare/12.
|
993
|
+
[Unreleased]: https://github.com/shakacode/react_on_rails/compare/12.5.1...master
|
994
|
+
[12.5.1]: https://github.com/shakacode/react_on_rails/compare/12.5.0...12.5.1
|
995
|
+
[12.5.0]: https://github.com/shakacode/react_on_rails/compare/12.4.0...12.5.0
|
988
996
|
[12.4.0]: https://github.com/shakacode/react_on_rails/compare/12.3.0...12.4.0
|
989
997
|
[12.3.0]: https://github.com/shakacode/react_on_rails/compare/12.2.0...12.3.0
|
990
998
|
[12.2.0]: https://github.com/shakacode/react_on_rails/compare/12.1.0...12.2.0
|
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
gem "webpacker", "6.0.0.rc.6"
|
4
4
|
gem "bootsnap", require: false
|
5
|
-
gem "rails"
|
5
|
+
gem "rails", "~> 7.0"
|
6
6
|
gem "sqlite3"
|
7
|
-
gem "sass-rails"
|
7
|
+
gem "sass-rails", "~> 6.0"
|
8
8
|
gem "uglifier"
|
9
9
|
gem "jquery-rails"
|
10
10
|
gem "puma"
|
@@ -17,11 +17,11 @@ gem "jbuilder"
|
|
17
17
|
# bundle exec rake doc:rails generates the API under doc/api.
|
18
18
|
gem "sdoc", group: :doc
|
19
19
|
|
20
|
-
gem "sprockets"
|
20
|
+
gem "sprockets", "~> 4.0"
|
21
21
|
|
22
22
|
gem "amazing_print"
|
23
23
|
|
24
|
-
gem "mini_racer"
|
24
|
+
gem "mini_racer", "~> 0.5"
|
25
25
|
|
26
26
|
group :development, :test do
|
27
27
|
gem "listen"
|
@@ -34,7 +34,7 @@ group :development, :test do
|
|
34
34
|
gem "rubocop-performance", require: false
|
35
35
|
gem "rubocop-rspec", require: false
|
36
36
|
gem "scss_lint", require: false
|
37
|
-
gem "spring"
|
37
|
+
gem "spring", "~> 4.0"
|
38
38
|
end
|
39
39
|
|
40
40
|
group :test do
|
data/README.md
CHANGED
@@ -35,7 +35,7 @@ For more information, feel free to contact Justin Gordon, [justin@shakacode.com]
|
|
35
35
|
|
36
36
|
# Documentation
|
37
37
|
|
38
|
-
See the documentation at [shakacode.com/react-on-rails/docs](https://www.shakacode.com/react-on-rails/docs/)
|
38
|
+
See the documentation at **[shakacode.com/react-on-rails/docs](https://www.shakacode.com/react-on-rails/docs/)**.
|
39
39
|
|
40
40
|
## Project Objective
|
41
41
|
|
@@ -55,11 +55,9 @@ Given that `rails/webpacker` gem already provides basic React integration, why w
|
|
55
55
|
|
56
56
|
See [Rails/Webpacker React Integration Options](https://www.shakacode.com/react-on-rails/docs/guides/rails-webpacker-react-integration-options) for comparisons to other gems.
|
57
57
|
|
58
|
-
See the [react-webpack-rails-tutorial](https://github.com/shakacode/react-webpack-rails-tutorial) for an example of a live implementation and code.
|
59
|
-
|
60
58
|
## Online demo
|
61
|
-
|
62
|
-
A deployed version of the project `spec/dummy` which demonstrates several uses of `react_on_rails` is available on heroku [through this link](https://ror-spec-dummy.herokuapp.com/)
|
59
|
+
* See the [react-webpack-rails-tutorial](https://github.com/shakacode/react-webpack-rails-tutorial) for an example of a live implementation and code.
|
60
|
+
* A deployed version of the project `spec/dummy` which demonstrates several uses of `react_on_rails` is available on heroku [through this link](https://ror-spec-dummy.herokuapp.com/)
|
63
61
|
|
64
62
|
## ShakaCode Forum Premium Content
|
65
63
|
_Requires creating a free account._
|
@@ -67,10 +65,9 @@ _Requires creating a free account._
|
|
67
65
|
* [How to use different versions of a file for client and server rendering](https://forum.shakacode.com/t/how-to-use-different-versions-of-a-file-for-client-and-server-rendering/1352)
|
68
66
|
* [How to conditionally render server side based on the device type](https://forum.shakacode.com/t/how-to-conditionally-render-server-side-based-on-the-device-type/1473)
|
69
67
|
|
70
|
-
|
71
68
|
## Prerequisites
|
72
69
|
|
73
|
-
Ruby on Rails >=5
|
70
|
+
Ruby on Rails >=5, rails/webpacker >= 4.2, Ruby >= 2.7
|
74
71
|
|
75
72
|
# Support
|
76
73
|
|
@@ -150,7 +150,9 @@ module ReactOnRails
|
|
150
150
|
end
|
151
151
|
|
152
152
|
def execjs_timer_polyfills
|
153
|
-
if ReactOnRails::Utils.react_on_rails_pro? &&
|
153
|
+
if ReactOnRails::Utils.react_on_rails_pro? &&
|
154
|
+
ReactOnRailsPro.configuration.respond_to?(:include_execjs_polyfills) &&
|
155
|
+
ReactOnRailsPro.configuration.include_execjs_polyfills == false
|
154
156
|
return ""
|
155
157
|
end
|
156
158
|
|
data/package.json
CHANGED
data/rakelib/release.rake
CHANGED
@@ -27,6 +27,8 @@ which are installed via `bundle install` and `yarn global add release-it`
|
|
27
27
|
automatically perform a patch version bump.
|
28
28
|
2nd argument: Perform a dry run by passing 'true' as a second argument.
|
29
29
|
|
30
|
+
Note, accept defaults for npmjs options. Script will pause to get 2FA tokens.
|
31
|
+
|
30
32
|
Example: `rake release[2.1.0,false]`")
|
31
33
|
task :release, %i[gem_version dry_run tools_install] do |_t, args|
|
32
34
|
include ReactOnRails::TaskHelpers
|
data/react_on_rails.gemspec
CHANGED
@@ -28,9 +28,9 @@ Gem::Specification.new do |s|
|
|
28
28
|
s.add_dependency "addressable"
|
29
29
|
s.add_dependency "connection_pool"
|
30
30
|
s.add_dependency "execjs", "~> 2.5"
|
31
|
-
s.add_dependency "rails", ">=
|
31
|
+
s.add_dependency "rails", ">= 5.2"
|
32
32
|
s.add_dependency "rainbow", "~> 3.0"
|
33
|
-
s.add_dependency "webpacker", ">= 4.
|
33
|
+
s.add_dependency "webpacker", ">= 4.2"
|
34
34
|
|
35
35
|
s.add_development_dependency "bundler", "~> 2"
|
36
36
|
s.add_development_dependency "gem-release"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: react_on_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 12.5.
|
4
|
+
version: 12.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Gordon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '5.2'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '5.2'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rainbow
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '4.
|
89
|
+
version: '4.2'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '4.
|
96
|
+
version: '4.2'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: bundler
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -348,7 +348,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
348
348
|
- !ruby/object:Gem::Version
|
349
349
|
version: '0'
|
350
350
|
requirements: []
|
351
|
-
rubygems_version: 3.
|
351
|
+
rubygems_version: 3.3.3
|
352
352
|
signing_key:
|
353
353
|
specification_version: 4
|
354
354
|
summary: Rails with react server rendering with webpack.
|