Skip to content

Commit fcb99b7

Browse files
justin808claude
andauthored
Upgrade Shakapacker from 9.1.0 to 9.2.0 (#1931)
## Summary This PR upgrades Shakapacker from version 9.1.0 to 9.2.0. ## Key Changes - Update Shakapacker dependency to 9.2.0 in all Gemfile.development_dependencies files - Update Shakapacker dependency to 9.2.0 in all package.json files - Update Gemfile.lock and yarn.lock files with new version - Add CHANGELOG.md entry documenting the upgrade ## New Features in Shakapacker 9.2.0 The main addition in this version is the new `bin/shakapacker-config` utility for debugging webpack/rspack configurations: - **Doctor mode** (`--doctor`): Exports all configs (dev + prod, client + server) to `shakapacker-config-exports/` directory for comprehensive troubleshooting - **Save mode** (`--save`): Export current environment configurations to files - **Stdout mode** (default): View configurations in terminal - **Output format options**: YAML with optional inline documentation, JSON, or Node.js inspect formats - Auto-detection of bundler from `shakapacker.yml` - Pretty-printing of functions (up to 50 lines) - Helpful `.gitignore` suggestions This utility is useful for comparing webpack vs rspack configurations and provides groundwork for future config comparison features. ## Testing - ✅ Bundle install completed successfully - ✅ Yarn install completed successfully - ✅ RuboCop passes with no offenses 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- Reviewable:start --> - - - This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/shakacode/react_on_rails/1931) <!-- Reviewable:end --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **New Features** * Introduced a new configuration utility supporting multiple modes and formats. * **Chores** * Upgraded shakapacker dependency to version 9.2.0. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 73dacca commit fcb99b7

File tree

14 files changed

+56
-21
lines changed

14 files changed

+56
-21
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ Changes since the last non-beta release.
4343

4444
- **Shakapacker 9.1.0 Upgrade**: Upgraded Shakapacker from 9.0.0 to 9.1.0. This minor version update includes bug fixes and improvements. Updated webpack configuration in Pro dummy apps to use forEach pattern for better compatibility with multiple SCSS rules. [PR 1921](https://github.com/shakacode/react_on_rails/pull/1921) by [justin808](https://github.com/justin808).
4545

46+
- **Shakapacker 9.2.0 Upgrade**: Upgraded Shakapacker from 9.1.0 to 9.2.0. This minor version update adds a new `bin/shakapacker-config` utility for debugging webpack/rspack configurations with doctor mode, save mode, and stdout mode options. Supports YAML, JSON, and Node.js inspect output formats. by [justin808](https://github.com/justin808).
47+
4648
#### Bug Fixes
4749

4850
- **Use as Git dependency**: All packages can now be installed as Git dependencies. This is useful for development and testing purposes. See [CONTRIBUTING.md](./CONTRIBUTING.md#git-dependencies) for documentation. [PR #1873](https://github.com/shakacode/react_on_rails/pull/1873) by [alexeyr-ci2](https://github.com/alexeyr-ci2).

Gemfile.development_dependencies

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
gem "shakapacker", "9.1.0"
3+
gem "shakapacker", "9.2.0"
44
gem "bootsnap", require: false
55
gem "rails", "~> 7.1"
66

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ GEM
342342
rubyzip (>= 1.2.2, < 3.0)
343343
websocket (~> 1.0)
344344
semantic_range (3.1.0)
345-
shakapacker (9.1.0)
345+
shakapacker (9.2.0)
346346
activesupport (>= 5.2)
347347
package_json
348348
rack-proxy (>= 0.6.1)
@@ -440,7 +440,7 @@ DEPENDENCIES
440440
scss_lint
441441
sdoc
442442
selenium-webdriver (= 4.9.0)
443-
shakapacker (= 9.1.0)
443+
shakapacker (= 9.2.0)
444444
spring (~> 4.0)
445445
sprockets (~> 4.0)
446446
sqlite3 (~> 1.6)

react_on_rails_pro/Gemfile.development_dependencies

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ruby '3.3.7'
77

88
gem "react_on_rails", path: "../"
99

10-
gem "shakapacker", "9.1.0"
10+
gem "shakapacker", "9.2.0"
1111
gem "bootsnap", require: false
1212
gem "rails", "~> 7.1"
1313
gem "puma", "~> 6"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env node
2+
3+
// Minimal shim - all logic is in the TypeScript module
4+
const { run } = require('shakapacker/configExporter')
5+
6+
run(process.argv.slice(2))
7+
.then((exitCode) => process.exit(exitCode))
8+
.catch((error) => {
9+
console.error(error.message)
10+
process.exit(1)
11+
})

react_on_rails_pro/spec/dummy/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"sass": "^1.43.4",
6464
"sass-loader": "^12.3.0",
6565
"sass-resources-loader": "^2.0.0",
66-
"shakapacker": "9.1.0",
66+
"shakapacker": "9.2.0",
6767
"style-loader": "^3.3.1",
6868
"tailwindcss": "^3.2.7",
6969
"terser-webpack-plugin": "5",

react_on_rails_pro/spec/dummy/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5970,10 +5970,10 @@ sha.js@^2.4.0, sha.js@^2.4.8:
59705970
inherits "^2.0.1"
59715971
safe-buffer "^5.0.1"
59725972

5973-
shakapacker@9.1.0:
5974-
version "9.1.0"
5975-
resolved "https://registry.npmjs.org/shakapacker/-/shakapacker-9.1.0.tgz#6d63c4d27b9358073dd8fc3c6e79252b96d36a36"
5976-
integrity sha512-PL0DuzNLFJMwr5s908ImMuvejmC20WuDa7EfAPpPFU1pM5U8cPqqC4kwSdXFLfVU0Or/UqeegNyIB1sGBdSPiw==
5973+
shakapacker@9.2.0:
5974+
version "9.2.0"
5975+
resolved "https://registry.npmjs.org/shakapacker/-/shakapacker-9.2.0.tgz#130bbeef9e72f2bd7f8ce5b1316ca3c778201e97"
5976+
integrity sha512-eEjps0qlufHAFOYY1fixZaXkIXLOE+FgQdjwKHhARryHfv4KxYIZiSQTFU4I6BOEXaK32zkTfEXOdU46YQv2pg==
59775977
dependencies:
59785978
js-yaml "^4.1.0"
59795979
path-complete-extname "^1.0.0"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env node
2+
3+
// Minimal shim - all logic is in the TypeScript module
4+
const { run } = require('shakapacker/configExporter')
5+
6+
run(process.argv.slice(2))
7+
.then((exitCode) => process.exit(exitCode))
8+
.catch((error) => {
9+
console.error(error.message)
10+
process.exit(1)
11+
})

react_on_rails_pro/spec/execjs-compatible-dummy/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"react": "^18.3.1",
3131
"react-dom": "^18.3.1",
3232
"react-on-rails": "link:.yalc/react-on-rails",
33-
"shakapacker": "9.1.0",
33+
"shakapacker": "9.2.0",
3434
"style-loader": "^4.0.0",
3535
"terser-webpack-plugin": "5",
3636
"webpack": "5",

react_on_rails_pro/spec/execjs-compatible-dummy/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3657,10 +3657,10 @@ setprototypeof@1.2.0:
36573657
resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424"
36583658
integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==
36593659

3660-
shakapacker@9.1.0:
3661-
version "9.1.0"
3662-
resolved "https://registry.npmjs.org/shakapacker/-/shakapacker-9.1.0.tgz#6d63c4d27b9358073dd8fc3c6e79252b96d36a36"
3663-
integrity sha512-PL0DuzNLFJMwr5s908ImMuvejmC20WuDa7EfAPpPFU1pM5U8cPqqC4kwSdXFLfVU0Or/UqeegNyIB1sGBdSPiw==
3660+
shakapacker@9.2.0:
3661+
version "9.2.0"
3662+
resolved "https://registry.npmjs.org/shakapacker/-/shakapacker-9.2.0.tgz#130bbeef9e72f2bd7f8ce5b1316ca3c778201e97"
3663+
integrity sha512-eEjps0qlufHAFOYY1fixZaXkIXLOE+FgQdjwKHhARryHfv4KxYIZiSQTFU4I6BOEXaK32zkTfEXOdU46YQv2pg==
36643664
dependencies:
36653665
js-yaml "^4.1.0"
36663666
path-complete-extname "^1.0.0"

0 commit comments

Comments
 (0)