Skip to content

Commit fcc64be

Browse files
authored
Upgrade shakapacker to 9.5 (#380)
* Upgrade shakapacker to 9.5 * Update shakapacker * Yarn deduplicate fixed this duplication
1 parent cd2efe7 commit fcc64be

File tree

5 files changed

+658
-52
lines changed

5 files changed

+658
-52
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ gem 'sassc-rails', '~> 2.1.2'
1717

1818
# Use package.json to manage dependencies
1919
gem 'package_json', '~> 0.1.0'
20-
gem 'shakapacker', '= 8.0.2'
20+
gem 'shakapacker', '= 9.5.0'
2121

2222
gem 'bootsnap', '>= 1.18.4', require: false
2323
gem 'jwt', '>= 2.6.0'

Gemfile.lock

Lines changed: 37 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ GEM
8484
activerecord (>= 3.2, < 8.0)
8585
rake (>= 10.4, < 14.0)
8686
ast (2.4.2)
87-
base64 (0.2.0)
87+
base64 (0.3.0)
8888
bcrypt (3.1.20)
89-
benchmark (0.4.1)
89+
benchmark (0.5.0)
9090
better_html (2.1.1)
9191
actionview (>= 6.0)
9292
activesupport (>= 6.0)
@@ -112,8 +112,8 @@ GEM
112112
childprocess (5.1.0)
113113
logger (~> 1.5)
114114
coderay (1.1.3)
115-
concurrent-ruby (1.3.5)
116-
connection_pool (2.5.4)
115+
concurrent-ruby (1.3.6)
116+
connection_pool (3.0.2)
117117
crass (1.0.6)
118118
cssbundling-rails (1.4.1)
119119
railties (>= 6.0.0)
@@ -133,10 +133,11 @@ GEM
133133
dotenv-rails (3.1.8)
134134
dotenv (= 3.1.8)
135135
railties (>= 6.1)
136-
drb (2.2.1)
136+
drb (2.2.3)
137137
dropbox_api (0.1.21)
138138
faraday (< 3.0)
139139
oauth2 (~> 1.1)
140+
erb (6.0.1)
140141
erb_lint (0.8.0)
141142
activesupport
142143
better_html (>= 2.0.1)
@@ -167,10 +168,11 @@ GEM
167168
csv
168169
mini_mime (>= 1.0.0)
169170
multi_xml (>= 0.5.2)
170-
i18n (1.14.7)
171+
i18n (1.14.8)
171172
concurrent-ruby (~> 1.0)
172-
io-console (0.7.2)
173-
irb (1.14.0)
173+
io-console (0.8.2)
174+
irb (1.16.0)
175+
pp (>= 0.6.0)
174176
rdoc (>= 4.0.0)
175177
reline (>= 0.4.2)
176178
jbuilder (2.11.5)
@@ -188,8 +190,8 @@ GEM
188190
listen (3.9.0)
189191
rb-fsevent (~> 0.10, >= 0.10.3)
190192
rb-inotify (~> 0.9, >= 0.9.10)
191-
logger (1.6.0)
192-
loofah (2.24.1)
193+
logger (1.7.0)
194+
loofah (2.25.0)
193195
crass (~> 1.0.2)
194196
nokogiri (>= 1.12.0)
195197
mail (2.8.1)
@@ -202,7 +204,8 @@ GEM
202204
method_source (1.1.0)
203205
mini_mime (1.1.5)
204206
mini_portile2 (2.8.9)
205-
minitest (5.25.5)
207+
minitest (6.0.1)
208+
prism (~> 1.5)
206209
msgpack (1.7.2)
207210
multi_json (1.17.0)
208211
multi_xml (0.8.1)
@@ -220,7 +223,7 @@ GEM
220223
net-smtp (0.5.1)
221224
net-protocol
222225
nio4r (2.7.4)
223-
nokogiri (1.18.10)
226+
nokogiri (1.19.0)
224227
mini_portile2 (~> 2.8.2)
225228
racc (~> 1.4)
226229
oauth2 (1.4.11)
@@ -230,28 +233,33 @@ GEM
230233
multi_xml (~> 0.5)
231234
rack (>= 1.2, < 4)
232235
orm_adapter (0.5.0)
233-
package_json (0.1.0)
236+
package_json (0.1.1)
234237
pagy (6.5.0)
235238
parallel (1.27.0)
236239
parser (3.3.4.2)
237240
ast (~> 2.4.1)
238241
racc
239242
pg (1.5.9)
243+
pp (0.6.3)
244+
prettyprint
240245
prettier (2.1.0)
246+
prettyprint (0.2.0)
247+
prism (1.8.0)
241248
pry (0.14.2)
242249
coderay (~> 1.1)
243250
method_source (~> 1.0)
244251
pry-rails (0.3.11)
245252
pry (>= 0.13.0)
246-
psych (5.1.2)
253+
psych (5.3.1)
254+
date
247255
stringio
248256
public_suffix (6.0.1)
249257
puma (6.4.3)
250258
nio4r (~> 2.0)
251259
pundit (2.4.0)
252260
activesupport (>= 3.0.0)
253261
racc (1.8.1)
254-
rack (3.2.3)
262+
rack (3.2.4)
255263
rack-mini-profiler (4.0.1)
256264
rack (>= 1.2.0)
257265
rack-proxy (0.7.7)
@@ -261,7 +269,7 @@ GEM
261269
rack (>= 3.0.0)
262270
rack-test (2.2.0)
263271
rack (>= 1.3)
264-
rackup (2.2.1)
272+
rackup (2.3.1)
265273
rack (>= 3)
266274
rails (7.1.5.2)
267275
actioncable (= 7.1.5.2)
@@ -297,18 +305,20 @@ GEM
297305
thor (~> 1.0, >= 1.2.2)
298306
zeitwerk (~> 2.6)
299307
rainbow (3.1.1)
300-
rake (13.3.0)
308+
rake (13.3.1)
301309
rb-fsevent (0.11.2)
302310
rb-inotify (0.11.1)
303311
ffi (~> 1.0)
304-
rdoc (6.7.0)
312+
rdoc (7.1.0)
313+
erb
305314
psych (>= 4.0.0)
315+
tsort
306316
redis (5.4.1)
307317
redis-client (>= 0.22.0)
308318
redis-client (0.26.0)
309319
connection_pool
310320
regexp_parser (2.9.2)
311-
reline (0.5.9)
321+
reline (0.6.3)
312322
io-console (~> 0.5)
313323
responders (3.1.1)
314324
actionpack (>= 5.2)
@@ -361,8 +371,8 @@ GEM
361371
rexml (~> 3.2, >= 3.2.5)
362372
rubyzip (>= 1.2.2, < 3.0)
363373
websocket (~> 1.0)
364-
semantic_range (3.0.0)
365-
shakapacker (8.0.2)
374+
semantic_range (3.1.0)
375+
shakapacker (9.5.0)
366376
activesupport (>= 5.2)
367377
package_json
368378
rack-proxy (>= 0.6.1)
@@ -380,11 +390,12 @@ GEM
380390
sprockets (>= 3.0.0)
381391
stimulus-rails (1.3.4)
382392
railties (>= 6.0.0)
383-
stringio (3.1.1)
384-
thor (1.4.0)
393+
stringio (3.2.0)
394+
thor (1.5.0)
385395
tilt (2.4.0)
386396
timeout (0.4.3)
387397
truncate_html (0.9.3)
398+
tsort (0.2.0)
388399
turbo-rails (1.5.0)
389400
actionpack (>= 6.0.0)
390401
activejob (>= 6.0.0)
@@ -407,10 +418,11 @@ GEM
407418
websocket-extensions (0.1.5)
408419
xpath (3.2.0)
409420
nokogiri (~> 1.8)
410-
zeitwerk (2.7.3)
421+
zeitwerk (2.7.4)
411422

412423
PLATFORMS
413424
arm64-darwin-24
425+
arm64-darwin-25
414426
x86_64-darwin-22
415427
x86_64-linux
416428

@@ -451,7 +463,7 @@ DEPENDENCIES
451463
rubocop (~> 1.60.1)
452464
sassc-rails (~> 2.1.2)
453465
selenium-webdriver (~> 4.24)
454-
shakapacker (= 8.0.2)
466+
shakapacker (= 9.5.0)
455467
shoulda-matchers (~> 5.3.0)
456468
stimulus-rails (~> 1.3.4)
457469
truncate_html (~> 0.9.3)

config/shakapacker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ default: &default
3737
cache_manifest: false
3838

3939
# Select loader to use, available options are 'babel' (default), 'swc' or 'esbuild'
40-
webpack_loader: 'babel'
40+
javascript_transpiler: 'swc'
4141

4242
# Set to true to enable check for matching versions of shakapacker gem and NPM package - will raise an error if there is a mismatch or wildcard versioning is used
4343
ensure_consistent_versioning: true

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@
5353
"react-responsive": "^10.0.0",
5454
"sass": "^1.60.0",
5555
"sass-loader": "^16.0.5",
56-
"shakapacker": "8.0.2",
56+
"shakapacker": "9.5.0",
5757
"slim-select": "^2.9.2",
5858
"style-loader": "^3.3.3",
59+
"swc": "^1.0.11",
5960
"tailwindcss": "^3.3.1",
6061
"terser-webpack-plugin": "^5.3.9",
6162
"webpack": "^5.94.0",
@@ -90,6 +91,7 @@
9091
"stylelint": "^15.10.3",
9192
"stylelint-config-prettier-scss": "^1.0.0",
9293
"stylelint-config-standard-scss": "^11.0.0",
94+
"swc-loader": "^0.2.7",
9395
"typescript": "^5.0.4",
9496
"webpack-dev-server": "^5.2.1",
9597
"yarn-deduplicate": "^6.0.2"

0 commit comments

Comments
 (0)