diff --git a/CHANGELOG.md b/CHANGELOG.md index 0deea13650..3a2f05fe50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,8 @@ Changes since the last non-beta release. - **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). +- **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). + #### Bug Fixes - **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). diff --git a/Gemfile.development_dependencies b/Gemfile.development_dependencies index b3c3e13991..51e8027e0b 100644 --- a/Gemfile.development_dependencies +++ b/Gemfile.development_dependencies @@ -1,6 +1,6 @@ # frozen_string_literal: true -gem "shakapacker", "9.1.0" +gem "shakapacker", "9.2.0" gem "bootsnap", require: false gem "rails", "~> 7.1" diff --git a/Gemfile.lock b/Gemfile.lock index 5b03f49118..f4fef3a883 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -342,7 +342,7 @@ GEM rubyzip (>= 1.2.2, < 3.0) websocket (~> 1.0) semantic_range (3.1.0) - shakapacker (9.1.0) + shakapacker (9.2.0) activesupport (>= 5.2) package_json rack-proxy (>= 0.6.1) @@ -440,7 +440,7 @@ DEPENDENCIES scss_lint sdoc selenium-webdriver (= 4.9.0) - shakapacker (= 9.1.0) + shakapacker (= 9.2.0) spring (~> 4.0) sprockets (~> 4.0) sqlite3 (~> 1.6) diff --git a/react_on_rails_pro/Gemfile.development_dependencies b/react_on_rails_pro/Gemfile.development_dependencies index 165c1ef437..22a252788d 100644 --- a/react_on_rails_pro/Gemfile.development_dependencies +++ b/react_on_rails_pro/Gemfile.development_dependencies @@ -7,7 +7,7 @@ ruby '3.3.7' gem "react_on_rails", path: "../" -gem "shakapacker", "9.1.0" +gem "shakapacker", "9.2.0" gem "bootsnap", require: false gem "rails", "~> 7.1" gem "puma", "~> 6" diff --git a/react_on_rails_pro/spec/dummy/bin/export-bundler-config b/react_on_rails_pro/spec/dummy/bin/export-bundler-config new file mode 100755 index 0000000000..42fc1ba96b --- /dev/null +++ b/react_on_rails_pro/spec/dummy/bin/export-bundler-config @@ -0,0 +1,11 @@ +#!/usr/bin/env node + +// Minimal shim - all logic is in the TypeScript module +const { run } = require('shakapacker/configExporter') + +run(process.argv.slice(2)) + .then((exitCode) => process.exit(exitCode)) + .catch((error) => { + console.error(error.message) + process.exit(1) + }) diff --git a/react_on_rails_pro/spec/dummy/package.json b/react_on_rails_pro/spec/dummy/package.json index a91a72f04a..6497a0bc00 100644 --- a/react_on_rails_pro/spec/dummy/package.json +++ b/react_on_rails_pro/spec/dummy/package.json @@ -63,7 +63,7 @@ "sass": "^1.43.4", "sass-loader": "^12.3.0", "sass-resources-loader": "^2.0.0", - "shakapacker": "9.1.0", + "shakapacker": "9.2.0", "style-loader": "^3.3.1", "tailwindcss": "^3.2.7", "terser-webpack-plugin": "5", diff --git a/react_on_rails_pro/spec/dummy/yarn.lock b/react_on_rails_pro/spec/dummy/yarn.lock index c3692e3bbb..8c11e6e81a 100644 --- a/react_on_rails_pro/spec/dummy/yarn.lock +++ b/react_on_rails_pro/spec/dummy/yarn.lock @@ -5970,10 +5970,10 @@ sha.js@^2.4.0, sha.js@^2.4.8: inherits "^2.0.1" safe-buffer "^5.0.1" -shakapacker@9.1.0: - version "9.1.0" - resolved "https://registry.npmjs.org/shakapacker/-/shakapacker-9.1.0.tgz#6d63c4d27b9358073dd8fc3c6e79252b96d36a36" - integrity sha512-PL0DuzNLFJMwr5s908ImMuvejmC20WuDa7EfAPpPFU1pM5U8cPqqC4kwSdXFLfVU0Or/UqeegNyIB1sGBdSPiw== +shakapacker@9.2.0: + version "9.2.0" + resolved "https://registry.npmjs.org/shakapacker/-/shakapacker-9.2.0.tgz#130bbeef9e72f2bd7f8ce5b1316ca3c778201e97" + integrity sha512-eEjps0qlufHAFOYY1fixZaXkIXLOE+FgQdjwKHhARryHfv4KxYIZiSQTFU4I6BOEXaK32zkTfEXOdU46YQv2pg== dependencies: js-yaml "^4.1.0" path-complete-extname "^1.0.0" diff --git a/react_on_rails_pro/spec/execjs-compatible-dummy/bin/export-bundler-config b/react_on_rails_pro/spec/execjs-compatible-dummy/bin/export-bundler-config new file mode 100755 index 0000000000..42fc1ba96b --- /dev/null +++ b/react_on_rails_pro/spec/execjs-compatible-dummy/bin/export-bundler-config @@ -0,0 +1,11 @@ +#!/usr/bin/env node + +// Minimal shim - all logic is in the TypeScript module +const { run } = require('shakapacker/configExporter') + +run(process.argv.slice(2)) + .then((exitCode) => process.exit(exitCode)) + .catch((error) => { + console.error(error.message) + process.exit(1) + }) diff --git a/react_on_rails_pro/spec/execjs-compatible-dummy/package.json b/react_on_rails_pro/spec/execjs-compatible-dummy/package.json index f9abb3a5b4..e9a55af6fb 100644 --- a/react_on_rails_pro/spec/execjs-compatible-dummy/package.json +++ b/react_on_rails_pro/spec/execjs-compatible-dummy/package.json @@ -30,7 +30,7 @@ "react": "^18.3.1", "react-dom": "^18.3.1", "react-on-rails": "link:.yalc/react-on-rails", - "shakapacker": "9.1.0", + "shakapacker": "9.2.0", "style-loader": "^4.0.0", "terser-webpack-plugin": "5", "webpack": "5", diff --git a/react_on_rails_pro/spec/execjs-compatible-dummy/yarn.lock b/react_on_rails_pro/spec/execjs-compatible-dummy/yarn.lock index eb68c33550..6ba79d26f1 100644 --- a/react_on_rails_pro/spec/execjs-compatible-dummy/yarn.lock +++ b/react_on_rails_pro/spec/execjs-compatible-dummy/yarn.lock @@ -3657,10 +3657,10 @@ setprototypeof@1.2.0: resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424" integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw== -shakapacker@9.1.0: - version "9.1.0" - resolved "https://registry.npmjs.org/shakapacker/-/shakapacker-9.1.0.tgz#6d63c4d27b9358073dd8fc3c6e79252b96d36a36" - integrity sha512-PL0DuzNLFJMwr5s908ImMuvejmC20WuDa7EfAPpPFU1pM5U8cPqqC4kwSdXFLfVU0Or/UqeegNyIB1sGBdSPiw== +shakapacker@9.2.0: + version "9.2.0" + resolved "https://registry.npmjs.org/shakapacker/-/shakapacker-9.2.0.tgz#130bbeef9e72f2bd7f8ce5b1316ca3c778201e97" + integrity sha512-eEjps0qlufHAFOYY1fixZaXkIXLOE+FgQdjwKHhARryHfv4KxYIZiSQTFU4I6BOEXaK32zkTfEXOdU46YQv2pg== dependencies: js-yaml "^4.1.0" path-complete-extname "^1.0.0" diff --git a/spec/dummy/Gemfile.lock b/spec/dummy/Gemfile.lock index 469693d859..5c6cf77073 100644 --- a/spec/dummy/Gemfile.lock +++ b/spec/dummy/Gemfile.lock @@ -346,7 +346,7 @@ GEM rubyzip (>= 1.2.2, < 3.0) websocket (~> 1.0) semantic_range (3.1.0) - shakapacker (9.1.0) + shakapacker (9.2.0) activesupport (>= 5.2) package_json rack-proxy (>= 0.6.1) @@ -441,7 +441,7 @@ DEPENDENCIES scss_lint sdoc selenium-webdriver (= 4.9.0) - shakapacker (= 9.1.0) + shakapacker (= 9.2.0) spring (~> 4.0) sprockets (~> 4.0) sqlite3 (~> 1.6) diff --git a/spec/dummy/bin/export-bundler-config b/spec/dummy/bin/export-bundler-config new file mode 100755 index 0000000000..9be5834a58 --- /dev/null +++ b/spec/dummy/bin/export-bundler-config @@ -0,0 +1,11 @@ +#!/usr/bin/env node + +// Minimal shim - all logic is in the TypeScript module +const { run } = require('shakapacker/configExporter'); + +run(process.argv.slice(2)) + .then((exitCode) => process.exit(exitCode)) + .catch((error) => { + console.error(error.message); + process.exit(1); + }); diff --git a/spec/dummy/package.json b/spec/dummy/package.json index a646130a1b..7769dc7e5e 100644 --- a/spec/dummy/package.json +++ b/spec/dummy/package.json @@ -51,7 +51,7 @@ "sass": "^1.43.4", "sass-loader": "^12.3.0", "sass-resources-loader": "^2.1.0", - "shakapacker": "9.1.0", + "shakapacker": "9.2.0", "style-loader": "^3.3.1", "terser-webpack-plugin": "5.3.1", "url-loader": "^4.0.0", diff --git a/spec/dummy/yarn.lock b/spec/dummy/yarn.lock index 0ec540cac4..835bc0d002 100644 --- a/spec/dummy/yarn.lock +++ b/spec/dummy/yarn.lock @@ -5653,10 +5653,10 @@ sha.js@^2.4.0, sha.js@^2.4.8: inherits "^2.0.1" safe-buffer "^5.0.1" -shakapacker@9.1.0: - version "9.1.0" - resolved "https://registry.npmjs.org/shakapacker/-/shakapacker-9.1.0.tgz#6d63c4d27b9358073dd8fc3c6e79252b96d36a36" - integrity sha512-PL0DuzNLFJMwr5s908ImMuvejmC20WuDa7EfAPpPFU1pM5U8cPqqC4kwSdXFLfVU0Or/UqeegNyIB1sGBdSPiw== +shakapacker@9.2.0: + version "9.2.0" + resolved "https://registry.npmjs.org/shakapacker/-/shakapacker-9.2.0.tgz#130bbeef9e72f2bd7f8ce5b1316ca3c778201e97" + integrity sha512-eEjps0qlufHAFOYY1fixZaXkIXLOE+FgQdjwKHhARryHfv4KxYIZiSQTFU4I6BOEXaK32zkTfEXOdU46YQv2pg== dependencies: js-yaml "^4.1.0" path-complete-extname "^1.0.0"