react_on_rails 14.0.1 → 14.0.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87289fa53128766e9295ad92d57015cafddfc9668324e62977d90ace31cbac83
|
4
|
+
data.tar.gz: 7f1d8b3e048ff7e93d4b0506bc2421ae25d5b0961d24c1972c2ca78b26e87edf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1832bb6fbfe649168ff1de8a8d1a1f86f93ba52cf59c90fb2a2d23d28776240327521efc2d674b8d566f10bf1fa52da4390cc2b008b7c42c00901eea2a6a9e0
|
7
|
+
data.tar.gz: 8a7c5df6bcf809ee854e1b42b48219c46b4e0607e1f22f7a3f4a97cd30f5ef279a3a189d3055b118702d02bac4efc225693966b27a2d864932dd6065d0aadd3e
|
data/CHANGELOG.md
CHANGED
@@ -4,9 +4,12 @@ All notable changes to this project's source code will be documented in this fil
|
|
4
4
|
Migration instructions for the major updates can be found [here](https://www.shakacode.com/react-on-rails/docs/guides/upgrading-react-on-rails#upgrading-to-version-9.md). Some smaller migration information can be found here.
|
5
5
|
|
6
6
|
## Want to Save Time Updating?
|
7
|
-
If you would like help in migrating between React on Rails versions or help with implementing server rendering, please contact [justin@shakacode.com](mailto:justin@shakacode.com) for information about our [React on Rails Pro Support Options](https://www.shakacode.com/react-on-rails-pro).
|
8
7
|
|
9
|
-
|
8
|
+
If you need help upgrading `react_on_rails`, `webpacker` to `shakapacker`, or JS packages, contact justin@shakacode.com. We can upgrade your project and improve your development and customer experiences, allowing you to focus on building new features or fixing bugs instead.
|
9
|
+
|
10
|
+
For an overview of working with us, see our [Client Engagement Model](https://www.shakacode.com/blog/client-engagement-model/) article and [how we bill for time](https://www.shakacode.com/blog/shortcut-jira-trello-github-toggl-time-and-task-tracking/).
|
11
|
+
|
12
|
+
If you think ShakaCode can help your project, [click here](https://meetings.hubspot.com/justingordon/30-minute-consultation) to book a call with [Justin Gordon](mailto:justin@shakacode.com), the creator of React on Rails and Shakapacker.
|
10
13
|
|
11
14
|
## Contributors
|
12
15
|
Please follow the recommendations outlined at [keepachangelog.com](http://keepachangelog.com/). Please use the existing headings and styling as a guide, and add a link for the version diff at the bottom of the file. Also, please update the `Unreleased` link to compare to the latest release version.
|
@@ -14,8 +17,16 @@ Please follow the recommendations outlined at [keepachangelog.com](http://keepac
|
|
14
17
|
## Versions
|
15
18
|
### [Unreleased]
|
16
19
|
Changes since the last non-beta release.
|
17
|
-
|
18
|
-
|
20
|
+
|
21
|
+
### [14.0.2] - 2024-06-11
|
22
|
+
|
23
|
+
#### Fixed
|
24
|
+
- Project initialization with Shakapacker v8+ fixed [PR 1629](https://github.com/shakacode/react_on_rails/pull/1629) by [vaukalak](https://github.com/vaukalak)
|
25
|
+
|
26
|
+
### [14.0.1] - 2024-05-16
|
27
|
+
|
28
|
+
#### Fixed
|
29
|
+
- Pack Generation: Added functionality that will add an import statement, if missing, to the server bundle entry point even if the auto-bundle generated files still exist [PR 1610](https://github.com/shakacode/react_on_rails/pull/1610) by [judahmeek](https://github.com/judahmeek).
|
19
30
|
|
20
31
|
### [14.0.0] - 2024-04-03
|
21
32
|
_Major bump because dropping support for Ruby 2.7 and deprecated `webpackConfigLoader.js`._
|
@@ -1122,7 +1133,9 @@ Best done with Object destructing:
|
|
1122
1133
|
##### Fixed
|
1123
1134
|
- Fix several generator-related issues.
|
1124
1135
|
|
1125
|
-
[Unreleased]: https://github.com/shakacode/react_on_rails/compare/14.0.
|
1136
|
+
[Unreleased]: https://github.com/shakacode/react_on_rails/compare/14.0.2...master
|
1137
|
+
[14.0.2]: https://github.com/shakacode/react_on_rails/compare/14.0.1...14.0.2
|
1138
|
+
[14.0.1]: https://github.com/shakacode/react_on_rails/compare/14.0.0...14.0.1
|
1126
1139
|
[14.0.0]: https://github.com/shakacode/react_on_rails/compare/13.4.0...14.0.0
|
1127
1140
|
[13.4.0]: https://github.com/shakacode/react_on_rails/compare/13.3.5...13.4.0
|
1128
1141
|
[13.3.5]: https://github.com/shakacode/react_on_rails/compare/13.3.4...13.3.5
|
@@ -40,8 +40,7 @@ module ReactOnRails
|
|
40
40
|
def copy_js_bundle_files
|
41
41
|
base_path = "base/base/"
|
42
42
|
base_files = %w[app/javascript/packs/server-bundle.js
|
43
|
-
app/javascript/bundles/HelloWorld/components/HelloWorldServer.js
|
44
|
-
app/javascript/bundles/HelloWorld/components/HelloWorld.module.css]
|
43
|
+
app/javascript/bundles/HelloWorld/components/HelloWorldServer.js]
|
45
44
|
base_files.each { |file| copy_file("#{base_path}#{file}", file) }
|
46
45
|
end
|
47
46
|
|
@@ -54,7 +54,7 @@ module ReactOnRails
|
|
54
54
|
invoke "react_on_rails:react_no_redux"
|
55
55
|
end
|
56
56
|
|
57
|
-
invoke "react_on_rails:adapt_for_older_shakapacker" unless
|
57
|
+
invoke "react_on_rails:adapt_for_older_shakapacker" unless using_shakapacker_7_or_above?
|
58
58
|
end
|
59
59
|
|
60
60
|
# NOTE: other requirements for existing files such as .gitignore or application.
|
@@ -95,7 +95,7 @@ module ReactOnRails
|
|
95
95
|
|
96
96
|
def add_post_install_message
|
97
97
|
message = GeneratorMessages.helpful_message_after_installation
|
98
|
-
unless
|
98
|
+
unless using_shakapacker_7_or_above?
|
99
99
|
message = message.gsub("config/shakapacker", "config/webpacker")
|
100
100
|
message = message.gsub("bin/shakapacker", "bin/webpacker")
|
101
101
|
end
|
@@ -103,9 +103,9 @@ module ReactOnRails
|
|
103
103
|
GeneratorMessages.add_info(message)
|
104
104
|
end
|
105
105
|
|
106
|
-
def
|
106
|
+
def using_shakapacker_7_or_above?
|
107
107
|
shakapacker_gem = Gem::Specification.find_by_name("shakapacker")
|
108
|
-
shakapacker_gem.version.segments.first
|
108
|
+
shakapacker_gem.version.segments.first >= 7
|
109
109
|
rescue Gem::MissingSpecError
|
110
110
|
# In case using Webpacker
|
111
111
|
false
|
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: 14.0.
|
4
|
+
version: 14.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Gordon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -220,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
220
220
|
- !ruby/object:Gem::Version
|
221
221
|
version: '0'
|
222
222
|
requirements: []
|
223
|
-
rubygems_version: 3.5.
|
223
|
+
rubygems_version: 3.5.11
|
224
224
|
signing_key:
|
225
225
|
specification_version: 4
|
226
226
|
summary: Rails with react server rendering with webpack.
|