Skip to content

refactor: Bump webpack-cli from 6.0.1 to 7.0.2#3315

Merged
mtrezza merged 1 commit into
parse-community:alphafrom
mtrezza:refactor/webpack-cli-7.0.2
Apr 3, 2026
Merged

refactor: Bump webpack-cli from 6.0.1 to 7.0.2#3315
mtrezza merged 1 commit into
parse-community:alphafrom
mtrezza:refactor/webpack-cli-7.0.2

Conversation

@mtrezza
Copy link
Copy Markdown
Member

@mtrezza mtrezza commented Apr 3, 2026

Closes #3313

Changes

  • 7.0.0: Minimum Node.js 20.9.0, --node-env renamed to --config-node-env, uses dynamic import for config loading, removed deprecated API
  • 7.0.1-7.0.2: Patch fixes

Breaking Changes

The --node-env flag was removed in webpack-cli 7.0.0. The build script has been updated to use --config-node-env instead.

Code Changes Required

Updated package.json build script: --node-env=production--config-node-env=production.

Summary by CodeRabbit

  • Chores
    • Upgraded webpack-cli with modernized dependencies to enhance build process stability and improve the overall development experience through updated command-line interface tooling.
    • Updated webpack peer dependency requirements to ensure optimal compatibility with the current and future toolchain ecosystem.
    • Refined build configuration for seamless alignment with latest webpack and Node engine standards.

@parse-github-assistant
Copy link
Copy Markdown

🚀 Thanks for opening this pull request! We appreciate your effort in improving the project. Please let us know once your pull request is ready for review.

Tip

  • Keep pull requests small. Large PRs will be rejected. Break complex features into smaller, incremental PRs.
  • Use Test Driven Development. Write failing tests before implementing functionality. Ensure tests pass.
  • Group code into logical blocks. Add a short comment before each block to explain its purpose.
  • We offer conceptual guidance. Coding is up to you. PRs must be merge-ready for human review.
  • Our review focuses on concept, not quality. PRs with code issues will be rejected. Use an AI agent.
  • Human review time is precious. Avoid review ping-pong. Inspect and test your AI-generated code.

Note

Please respond to review comments from AI agents just like you would to comments from a human reviewer. Let the reviewer resolve their own comments, unless they have reviewed and accepted your commit, or agreed with your explanation for why the feedback was incorrect.

Caution

Pull requests must be written using an AI agent with human supervision. Pull requests written entirely by a human will likely be rejected, because of lower code quality, higher review effort and the higher risk of introducing bugs. Please note that AI review comments on this pull request alone do not satisfy this requirement.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 3, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 59350f29-6caa-402a-af7f-9de87b21ad21

📥 Commits

Reviewing files that changed from the base of the PR and between 6ae5a36 and 2637f8c.

📒 Files selected for processing (2)
  • package-lock.json
  • package.json

📝 Walkthrough

Walkthrough

Upgraded webpack-cli from 6.0.1 to 7.0.2 with corresponding dependency version changes in package-lock.json. Updated the build script flag from --node-env=production to --config-node-env=production in response to webpack-cli 7.0.0's breaking change that removed the deprecated --node-env argument.

Changes

Cohort / File(s) Summary
Dependency Version Upgrade
package.json, package-lock.json
Updated webpack-cli from 6.0.1 to 7.0.2; adjusted dependency constraints (@discoveryjs/json-ext, commander, removed @webpack-cli/\\* and colorette); updated peerDependencies for webpack, webpack-bundle-analyzer, and webpack-dev-server. Modified build script to use --config-node-env=production instead of deprecated --node-env=production flag.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

🚥 Pre-merge checks | ✅ 5 | ❌ 2

❌ Failed checks (2 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive The PR description addresses the core change and breaking changes, but lacks explicit mapping to the template structure (Issue/Approach/Tasks sections) and doesn't include task checkboxes. Restructure description using the template format with explicit Issue, Approach, and Tasks sections including relevant checkboxes for clarity.
Engage In Review Feedback ❓ Inconclusive PR author engagement with review feedback requires access to GitHub PR's review comments and discussions. Review the PR conversation and review comments at #3315 to verify author engagement with feedback.
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The PR title clearly describes the main change: updating webpack-cli from 6.0.1 to 7.0.2, and uses the required 'refactor:' prefix as specified.
Linked Issues check ✅ Passed The PR successfully addresses the linked issue #3313: webpack-cli is updated to 7.0.2, and the breaking change (--node-env to --config-node-env) is properly handled in package.json.
Out of Scope Changes check ✅ Passed All changes are directly related to the webpack-cli upgrade objective; no out-of-scope modifications detected in package.json or package-lock.json.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Security Check ✅ Passed webpack-cli upgraded from 6.0.1 to 7.0.2 with documented breaking change flag update; no security vulnerabilities, safe configuration patterns, and verified npm registry sources.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 Checkov (3.2.510)
package.json

2026-04-03 16:49:53,974 [MainThread ] [ERROR] Template file not found: package.json
2026-04-03 16:49:53,976 [MainThread ] [ERROR] Template file not found: package.json
2026-04-03 16:49:53,980 [MainThread ] [ERROR] Template file not found: package.json
2026-04-03 16:49:54,018 [MainThread ] [ERROR] Failed to invoke function /usr/local/lib/python3.11/dist-packages/checkov/common/runners/object_runner. with package.json
Traceback (most recent call last):
File "/usr/local/lib/python3.11/dist-packages/checkov/common/parallelizer/parallel_runner.py", line 88, in func_wrapper
result = original_func(item)
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/checkov/common/runners/object_runner.py", line 74, in
results = parallel_runner.run_function(lambda f: (f, self._parse_file(f)), files_to_load)
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/checkov/ope

... [truncated 2547 characters] ...

[MainThread ] [WARNI] Secret scanning: could not process file package.json
2026-04-03 16:49:54,073 [MainThread ] [ERROR] Exception traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/dist-packages/checkov/main.py", line 647, in run
self.scan_reports = runner_registry.run(
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/checkov/common/runners/runner_registry.py", line 177, in run
for result in parallel_runner_results:
File "/usr/local/lib/python3.11/dist-packages/checkov/common/parallelizer/parallel_runner.py", line 118, in _run_function_multiprocess_fork
raise v.internal_exception.with_traceback(v.internal_exception.traceback)
FileNotFoundError: [Errno 2] No such file or directory: 'package.json'


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@mtrezza mtrezza merged commit 0a533a4 into parse-community:alpha Apr 3, 2026
11 checks passed
@mtrezza mtrezza deleted the refactor/webpack-cli-7.0.2 branch April 3, 2026 17:59
@parseplatformorg
Copy link
Copy Markdown
Contributor

🎉 This change has been released in version 9.1.0-alpha.12

@parseplatformorg parseplatformorg added the state:released-alpha Released as alpha version label Apr 7, 2026
@parseplatformorg
Copy link
Copy Markdown
Contributor

🎉 This change has been released in version 9.1.0

@parseplatformorg parseplatformorg added the state:released Released as stable version label Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state:released Released as stable version state:released-alpha Released as alpha version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants