[codex] Upgrade css-minimizer-webpack-plugin for #1416#1417
[codex] Upgrade css-minimizer-webpack-plugin for #1416#1417
Conversation
Code ReviewThanks for addressing the security issue from #1416! The PR is well-structured with clear documentation. Here are my observations: What's good
Concerns / Suggestions1. Node 20 is reaching EOL in ~17 days Node 20 enters End-of-Life on April 30, 2026. Since the goal is to pin a stable, long-supported version, consider pinning to Node 22 (LTS until April 2027) instead. The # Suggested change
node-version: 222. This predates the PR, but since you're already touching these lines it's a good time to bump: - uses: actions/setup-node@v4 # was @v3
with:
node-version: 22v4 uses Node 20 internally (v3 uses Node 16) and is the currently maintained version. 3. Major version jump (v2 → v8) deserves an explicit compat note
4. The diff shows MinorThe Overall this is a solid, well-scoped dependency hygiene PR. The main actionable item before merging is the Node 20 EOL concern — pinning to 22 now avoids having to revisit this immediately after merge. |
Closes #1416.
What changed
css-minimizer-webpack-plugindependency from the publishedreact_ujspackagecss-minimizer-webpack-plugindependency from^2.0.0to^8.0.0Why
Issue #1416 called out that older
css-minimizer-webpack-pluginreleases pull vulnerableserialize-javascriptversions.In this repo, the gem-level package was carrying
css-minimizer-webpack-pluginas an unused dependency, while the dummy app still referenced an older version directly. This change removes the unused root dependency and upgrades the dummy app path that actually exercises the plugin.Impact
react_ujspackage no longer ships an unused dependency oncss-minimizer-webpack-plugincss-minimizer-webpack-plugin@8Validation
PACKAGE_JSON_FALLBACK_MANAGER=yarn_classic bundle exec rake react:updatePACKAGE_JSON_FALLBACK_MANAGER=yarn_classic bundle exec rake ujs:updateMT_KWARGS_HACK=1 PACKAGE_JSON_FALLBACK_MANAGER=yarn_classic SHAKAPACKER_USE_PACKAGE_JSON_GEM=true NODE_OPTIONS=--openssl-legacy-provider bundle exec rake testNote
The dummy lockfile still contains
serialize-javascript@6.0.1throughcompression-webpack-pluginandterser-webpack-plugin. That is separate from thecss-minimizer-webpack-pluginupgrade requested in #1416.