Update dependency webpack-cli to v7 #92

Open
andras wants to merge 1 commit from renovate/webpack-cli-7.x into main
Owner

This PR contains the following updates:

Package Type Update Change
webpack-cli (source) devDependencies major ^6.0.1 → ^7.0.0

Release Notes

webpack/webpack-cli (webpack-cli)

v7.3.1

Compare Source

Patch Changes
  • fix: detect missing package managers and failed installations, without a lock file the CLI chose npm even when it wasn't installed instead of yarn or pnpm, and it continued after a package failed to install (by @​alexander-akait in #​4889)

  • chore: replace the import-local and cross-spawn dependencies with Node.js built-ins (by @​alexander-akait in #​4889)

  • chore: load configuration files with import() instead of eval (by @​alexander-akait in #​4893)

v7.3.0

Compare Source

Minor Changes
  • feat: run webpack-dev-server@6 as a compiler plugin. The CLI drives watch compilation, prints build stats and closes the compiler on shutdown. Older dev servers continue to manage their own compilation. (by @​bjohansebas in #​4847)

    In multi-compiler mode, every dev server serves all compilers by default. Use the new --dev-server-per-compiler option of webpack serve to serve each compiler only by the dev server from its own configuration.

  • feat: add shell completions for zsh, bash, fish and powershell through the complete command (by @​alexander-akait in #​4840)

Patch Changes
  • fix: keep multi-compiler options such as parallelism and plugins set on a configuration array when --config-name or extends rebuild it (by @​alexander-akait in #​4871)

  • perf: share the compile cache with child processes and worker threads, such as minimizer workers, so they start warm too (by @​alexander-akait in #​4872)

  • fix: assign distinct ports to dev servers of configurations that share the same devServer object. (by @​alexander-akait in #​4886)

v7.2.3

Compare Source

Patch Changes

v7.2.2

Compare Source

Patch Changes
  • perf: enable the Node.js compile cache (module.enableCompileCache, available on Node.js >= 22.8.0) to speed up CLI startup (by @​bjohansebas in #​4818)

v7.2.1

Compare Source

Patch Changes

v7.2.0

Compare Source

Minor Changes
  • feat: allow webpack-dev-server v6 as an optional peer dependency (^5.0.0 || ^6.0.0) (by @​bjohansebas in #​4793)

  • Support tsx as a fallback loader for TypeScript and JSX configuration files (.ts, .tsx, .cts, .mts and .jsx), used when none of the loaders known to interpret (such as ts-node) are installed. (by @​alexander-akait in #​4796)

v7.1.0

Compare Source

Minor Changes
  • feat(cli): refresh the --help output using commander's configureHelp API — branded headers, section dividers, colorized terms and a clearer footer. Colors and chrome collapse to plain text when output is piped or --no-color is used, so scripts keep working. (by @​alexander-akait in #​4779)

  • feat: support .json5, .yaml/.yml and .toml configuration files by parsing them directly, with the parser package (json5, js-yaml, toml) installed on demand by the user and declared as optional peerDependencies so the parsers resolve correctly under Yarn PnP (by @​alexander-akait in #​4777)

v7.0.3

Compare Source

Patch Changes
  • Improved CLI startup performance and reduced memory usage. (by @​alexander-akait in #​4765)

  • Reduced CLI startup CPU and memory usage by caching schema-derived argument metadata, registering only the options present in the arguments, and reading config directories once during default-config discovery. (by @​alexander-akait in #​4760)

  • Replace the fastest-levenshtein dependency with a small in-tree implementation used for command/option "did you mean" suggestions. (by @​alexander-akait in #​4762)

v7.0.2

Compare Source

Patch Changes

v7.0.1

Compare Source

Patch Changes

v7.0.0

Compare Source

Major Changes
  • The minimum supported version of Node.js is 20.9.0. (by @​alexander-akait in #​4677)

  • Use dynamic import to load webpack.config.js, fallback to interpret only when configuration can't be load by dynamic import. Using dynamic imports allows you to take advantage of Node.js's built-in TypeScript support. (by @​alexander-akait in #​4677)

  • Removed the --node-env argument in favor of the --config-node-env argument. (by @​alexander-akait in #​4677)

  • The version command only output versions right now. (by @​alexander-akait in #​4677)

  • Removed deprecated API, no action required unless you use import cli from "webpack-cli";/const cli = require("webpack-cli");. (by @​alexander-akait in #​4677)

Patch Changes

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [webpack-cli](https://github.com/webpack/webpack-cli/tree/main/packages/webpack-cli) ([source](https://github.com/webpack/webpack-cli)) | devDependencies | major | [`^6.0.1` → `^7.0.0`](https://renovatebot.com/diffs/npm/webpack-cli/6.0.1/7.3.1) | --- ### Release Notes <details> <summary>webpack/webpack-cli (webpack-cli)</summary> ### [`v7.3.1`](https://github.com/webpack/webpack-cli/blob/HEAD/CHANGELOG.md#731) [Compare Source](https://github.com/webpack/webpack-cli/compare/webpack-cli@7.3.0...webpack-cli@7.3.1) ##### Patch Changes - fix: detect missing package managers and failed installations, without a lock file the CLI chose npm even when it wasn't installed instead of yarn or pnpm, and it continued after a package failed to install (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;4889](https://github.com/webpack/webpack-cli/pull/4889)) - chore: replace the `import-local` and `cross-spawn` dependencies with Node.js built-ins (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;4889](https://github.com/webpack/webpack-cli/pull/4889)) - chore: load configuration files with `import()` instead of `eval` (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;4893](https://github.com/webpack/webpack-cli/pull/4893)) ### [`v7.3.0`](https://github.com/webpack/webpack-cli/blob/HEAD/CHANGELOG.md#730) [Compare Source](https://github.com/webpack/webpack-cli/compare/webpack-cli@7.2.3...webpack-cli@7.3.0) ##### Minor Changes - feat: run `webpack-dev-server@6` as a compiler plugin. The CLI drives watch compilation, prints build stats and closes the compiler on shutdown. Older dev servers continue to manage their own compilation. (by [@&#8203;bjohansebas](https://github.com/bjohansebas) in [#&#8203;4847](https://github.com/webpack/webpack-cli/pull/4847)) In multi-compiler mode, every dev server serves all compilers by default. Use the new `--dev-server-per-compiler` option of `webpack serve` to serve each compiler only by the dev server from its own configuration. - feat: add shell completions for zsh, bash, fish and powershell through the `complete` command (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;4840](https://github.com/webpack/webpack-cli/pull/4840)) ##### Patch Changes - fix: keep multi-compiler options such as `parallelism` and `plugins` set on a configuration array when `--config-name` or `extends` rebuild it (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;4871](https://github.com/webpack/webpack-cli/pull/4871)) - perf: share the compile cache with child processes and worker threads, such as minimizer workers, so they start warm too (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;4872](https://github.com/webpack/webpack-cli/pull/4872)) - fix: assign distinct ports to dev servers of configurations that share the same `devServer` object. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;4886](https://github.com/webpack/webpack-cli/pull/4886)) ### [`v7.2.3`](https://github.com/webpack/webpack-cli/blob/HEAD/CHANGELOG.md#723) [Compare Source](https://github.com/webpack/webpack-cli/compare/webpack-cli@7.2.2...webpack-cli@7.2.3) ##### Patch Changes - fix: resolve the `webpack-dev-server` type from its default export, so the types work with both v5 and v6 (by [@&#8203;bjohansebas](https://github.com/bjohansebas) in [#&#8203;4834](https://github.com/webpack/webpack-cli/pull/4834)) - feat: allow `toml@5` as a peer dependency for TOML configuration files (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;4837](https://github.com/webpack/webpack-cli/pull/4837)) ### [`v7.2.2`](https://github.com/webpack/webpack-cli/blob/HEAD/CHANGELOG.md#722) [Compare Source](https://github.com/webpack/webpack-cli/compare/webpack-cli@7.2.1...webpack-cli@7.2.2) ##### Patch Changes - perf: enable the Node.js compile cache (`module.enableCompileCache`, available on Node.js >= 22.8.0) to speed up CLI startup (by [@&#8203;bjohansebas](https://github.com/bjohansebas) in [#&#8203;4818](https://github.com/webpack/webpack-cli/pull/4818)) ### [`v7.2.1`](https://github.com/webpack/webpack-cli/blob/HEAD/CHANGELOG.md#721) [Compare Source](https://github.com/webpack/webpack-cli/compare/webpack-cli@7.2.0...webpack-cli@7.2.1) ##### Patch Changes - fix: `CLIPlugin` dynamic import interop under Bun (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;4799](https://github.com/webpack/webpack-cli/pull/4799)) ### [`v7.2.0`](https://github.com/webpack/webpack-cli/blob/HEAD/CHANGELOG.md#720) [Compare Source](https://github.com/webpack/webpack-cli/compare/webpack-cli@7.1.0...webpack-cli@7.2.0) ##### Minor Changes - feat: allow `webpack-dev-server` v6 as an optional peer dependency (`^5.0.0 || ^6.0.0`) (by [@&#8203;bjohansebas](https://github.com/bjohansebas) in [#&#8203;4793](https://github.com/webpack/webpack-cli/pull/4793)) - Support `tsx` as a fallback loader for TypeScript and JSX configuration files (`.ts`, `.tsx`, `.cts`, `.mts` and `.jsx`), used when none of the loaders known to `interpret` (such as `ts-node`) are installed. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;4796](https://github.com/webpack/webpack-cli/pull/4796)) ### [`v7.1.0`](https://github.com/webpack/webpack-cli/blob/HEAD/CHANGELOG.md#710) [Compare Source](https://github.com/webpack/webpack-cli/compare/webpack-cli@7.0.3...webpack-cli@7.1.0) ##### Minor Changes - feat(cli): refresh the `--help` output using commander's `configureHelp` API — branded headers, section dividers, colorized terms and a clearer footer. Colors and chrome collapse to plain text when output is piped or `--no-color` is used, so scripts keep working. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;4779](https://github.com/webpack/webpack-cli/pull/4779)) - feat: support `.json5`, `.yaml`/`.yml` and `.toml` configuration files by parsing them directly, with the parser package (`json5`, `js-yaml`, `toml`) installed on demand by the user and declared as optional `peerDependencies` so the parsers resolve correctly under Yarn PnP (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;4777](https://github.com/webpack/webpack-cli/pull/4777)) ### [`v7.0.3`](https://github.com/webpack/webpack-cli/blob/HEAD/CHANGELOG.md#703) [Compare Source](https://github.com/webpack/webpack-cli/compare/webpack-cli@7.0.2...webpack-cli@7.0.3) ##### Patch Changes - Improved CLI startup performance and reduced memory usage. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;4765](https://github.com/webpack/webpack-cli/pull/4765)) - Reduced CLI startup CPU and memory usage by caching schema-derived argument metadata, registering only the options present in the arguments, and reading config directories once during default-config discovery. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;4760](https://github.com/webpack/webpack-cli/pull/4760)) - Replace the `fastest-levenshtein` dependency with a small in-tree implementation used for command/option "did you mean" suggestions. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;4762](https://github.com/webpack/webpack-cli/pull/4762)) ### [`v7.0.2`](https://github.com/webpack/webpack-cli/blob/HEAD/CHANGELOG.md#702) [Compare Source](https://github.com/webpack/webpack-cli/compare/webpack-cli@7.0.1...webpack-cli@7.0.2) ##### Patch Changes - Resolve configuration path for cache build dependencies. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;4707](https://github.com/webpack/webpack-cli/pull/4707)) ### [`v7.0.1`](https://github.com/webpack/webpack-cli/blob/HEAD/CHANGELOG.md#701) [Compare Source](https://github.com/webpack/webpack-cli/compare/webpack-cli@7.0.0...webpack-cli@7.0.1) ##### Patch Changes - The `file` protocol for configuration options (`--config`/`--extends`) is supported. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;4702](https://github.com/webpack/webpack-cli/pull/4702)) ### [`v7.0.0`](https://github.com/webpack/webpack-cli/blob/HEAD/CHANGELOG.md#700) [Compare Source](https://github.com/webpack/webpack-cli/compare/webpack-cli@6.0.1...webpack-cli@7.0.0) ##### Major Changes - The minimum supported version of Node.js is `20.9.0`. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;4677](https://github.com/webpack/webpack-cli/pull/4677)) - Use dynamic import to load `webpack.config.js`, fallback to interpret only when configuration can't be load by dynamic import. Using dynamic imports allows you to take advantage of Node.js's built-in TypeScript support. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;4677](https://github.com/webpack/webpack-cli/pull/4677)) - Removed the `--node-env` argument in favor of the `--config-node-env` argument. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;4677](https://github.com/webpack/webpack-cli/pull/4677)) - The `version` command only output versions right now. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;4677](https://github.com/webpack/webpack-cli/pull/4677)) - Removed deprecated API, no action required unless you use `import cli from "webpack-cli";`/`const cli = require("webpack-cli");`. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;4677](https://github.com/webpack/webpack-cli/pull/4677)) ##### Patch Changes - Allow configuration freezing. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;4677](https://github.com/webpack/webpack-cli/pull/4677)) - Use graceful shutdown when file system cache is enabled. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;4677](https://github.com/webpack/webpack-cli/pull/4677)) - Performance improved. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;4677](https://github.com/webpack/webpack-cli/pull/4677)) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xOTcuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjE5Ny4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Update dependency webpack-cli to v7
All checks were successful
Check and publish / build (pull_request) Successful in 9m24s
Check and publish / publish-crate (pull_request) Has been skipped
Check and publish / publish-pypi (pull_request) Has been skipped
f75488859b
All checks were successful
Check and publish / build (pull_request) Successful in 9m24s
Check and publish / publish-crate (pull_request) Has been skipped
Check and publish / publish-pypi (pull_request) Has been skipped
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin "renovate/webpack-cli-7.x:renovate/webpack-cli-7.x"
git switch "renovate/webpack-cli-7.x"

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch "main"
git merge --no-ff "renovate/webpack-cli-7.x"
git switch "renovate/webpack-cli-7.x"
git rebase "main"
git switch "main"
git merge --ff-only "renovate/webpack-cli-7.x"
git switch "renovate/webpack-cli-7.x"
git rebase "main"
git switch "main"
git merge --no-ff "renovate/webpack-cli-7.x"
git switch "main"
git merge --squash "renovate/webpack-cli-7.x"
git switch "main"
git merge --ff-only "renovate/webpack-cli-7.x"
git switch "main"
git merge "renovate/webpack-cli-7.x"
git push origin "main"
Sign in to join this conversation.
No description provided.