From 1d6ada1a84c68a00e56c536d2f004f60939bd946 Mon Sep 17 00:00:00 2001 From: Alexander Akait <4567934+alexander-akait@users.noreply.github.com> Date: Thu, 17 Nov 2022 07:28:18 +0300 Subject: [PATCH] chore(release): 5.0.0 (#3492) --- CHANGELOG.md | 28 +++++++++++++++++++++++++ packages/configtest/CHANGELOG.md | 7 +++++++ packages/configtest/package.json | 4 ++-- packages/generators/CHANGELOG.md | 11 ++++++++++ packages/generators/package.json | 6 +++--- packages/info/CHANGELOG.md | 11 ++++++++++ packages/info/package.json | 4 ++-- packages/serve/CHANGELOG.md | 8 +++++++ packages/serve/package.json | 4 ++-- packages/webpack-cli/CHANGELOG.md | 28 +++++++++++++++++++++++++ packages/webpack-cli/package.json | 8 +++---- packages/webpack-cli/src/webpack-cli.ts | 2 -- 12 files changed, 106 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 60f1a9fbbda..300baffcb53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,31 @@ +# [5.0.0](https://github.com/webpack/webpack-cli/compare/webpack-cli@4.10.0...webpack-cli@5.0.0) (2022-11-17) + +### Bug Fixes + +- improve description of the `--disable-interpret` option ([#3364](https://github.com/webpack/webpack-cli/issues/3364)) ([bdb7e20](https://github.com/webpack/webpack-cli/commit/bdb7e20a3fc5a676bf5ba9912c091a2c9b3a1cfd)) +- remove the redundant `utils` export ([#3343](https://github.com/webpack/webpack-cli/issues/3343)) ([a9ce5d0](https://github.com/webpack/webpack-cli/commit/a9ce5d077f90492558e2d5c14841b3b5b85f1186)) +- respect `NODE_PATH` env variable ([#3411](https://github.com/webpack/webpack-cli/issues/3411)) ([83d1f58](https://github.com/webpack/webpack-cli/commit/83d1f58fb52d9dcfa3499efb342dfc47d0cca73a)) +- show all CLI specific flags in the minimum help output ([#3354](https://github.com/webpack/webpack-cli/issues/3354)) ([35843e8](https://github.com/webpack/webpack-cli/commit/35843e87c61fd27be92afce11bd66ebf4f9519ae)) + +### Features + +- failOnWarnings option ([#3317](https://github.com/webpack/webpack-cli/issues/3317)) ([c48c848](https://github.com/webpack/webpack-cli/commit/c48c848c6c84eb73fbd829dc41bee301b0b7e2de)) +- update commander to v9 ([#3460](https://github.com/webpack/webpack-cli/issues/3460)) ([6621c02](https://github.com/webpack/webpack-cli/commit/6621c023ab59cc510a5f76e262f2c81676d1920b)) +- added the `--define-process-env-node-env` option +- update `interpret` to v3 and `rechoir` to v0.8 +- add an option for preventing interpret ([#3329](https://github.com/webpack/webpack-cli/issues/3329)) ([c737383](https://github.com/webpack/webpack-cli/commit/c7373832b96af499ad0813e07d114bdc927afdf4)) + +### BREAKING CHANGES + +- the minimum supported webpack version is v5.0.0 (#3342) ([b1af0dc](https://github.com/webpack/webpack-cli/commit/b1af0dc7ebcdf746bc37889e4c1f978c65acc4a5)), closes [#3342](https://github.com/webpack/webpack-cli/issues/3342) +- webpack-cli no longer supports webpack v4, the minimum supported version is webpack v5.0.0 +- webpack-cli no longer supports webpack-dev-server v3, the minimum supported version is webpack-dev-server v4.0.0 +- remove the `migrate` command (#3291) ([56b43e4](https://github.com/webpack/webpack-cli/commit/56b43e4baf76c166ade3b282b40ad9d007cc52b6)), closes [#3291](https://github.com/webpack/webpack-cli/issues/3291) +- remove the `--prefetch` option in favor the `PrefetchPlugin` plugin +- remove the `--node-env` option in favor `--define-process-env-node-env` +- remove the `--hot` option in favor of directly using the `HotModuleReplacement` plugin (only for `build` command, for `serve` it will work) +- the behavior logic of the `--entry` option has been changed - previously it replaced your entries, now the option adds a specified entry, if you want to return the previous behavior please use ` webpack --entry-reset --entry './src/my-entry.js'` + # [4.10.0](https://github.com/webpack/webpack-cli/compare/webpack-cli@4.9.2...webpack-cli@4.10.0) (2022-06-13) ### Bug Fixes diff --git a/packages/configtest/CHANGELOG.md b/packages/configtest/CHANGELOG.md index b0768c8433a..0a7f5a6c108 100644 --- a/packages/configtest/CHANGELOG.md +++ b/packages/configtest/CHANGELOG.md @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [2.0.0](https://github.com/webpack/webpack-cli/compare/@webpack-cli/configtest@1.2.0...@webpack-cli/configtest@2.0.0) (2022-11-17) + +### BREAKING CHANGES + +- the minimum supported webpack version is v5.0.0 (#3342) ([b1af0dc](https://github.com/webpack/webpack-cli/commit/b1af0dc7ebcdf746bc37889e4c1f978c65acc4a5)), closes [#3342](https://github.com/webpack/webpack-cli/issues/3342) +- webpack-cli no longer supports webpack v4, the minimum supported version is webpack v5.0.0 + # [1.2.0](https://github.com/webpack/webpack-cli/compare/@webpack-cli/configtest@1.1.1...@webpack-cli/configtest@1.2.0) (2022-06-13) ### Features diff --git a/packages/configtest/package.json b/packages/configtest/package.json index 6ddc50bcdfa..6a7df709cba 100644 --- a/packages/configtest/package.json +++ b/packages/configtest/package.json @@ -1,6 +1,6 @@ { "name": "@webpack-cli/configtest", - "version": "1.2.0", + "version": "2.0.0", "description": "Validate a webpack configuration.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -21,6 +21,6 @@ ], "peerDependencies": { "webpack": "5.x.x", - "webpack-cli": "4.x.x" + "webpack-cli": "5.x.x" } } diff --git a/packages/generators/CHANGELOG.md b/packages/generators/CHANGELOG.md index e51ca47ce6b..026344a3a1d 100644 --- a/packages/generators/CHANGELOG.md +++ b/packages/generators/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [3.0.0](https://github.com/webpack/webpack-cli/compare/@webpack-cli/generators@2.5.0...@webpack-cli/generators@3.0.0) (2022-11-17) + +### Bug Fixes + +- add style and css loader to sass/less/stylus replaces [#3172](https://github.com/webpack/webpack-cli/issues/3172) ([#3412](https://github.com/webpack/webpack-cli/issues/3412)) ([2d3eea1](https://github.com/webpack/webpack-cli/commit/2d3eea16877e63e80019a318cf05894295877bd3)) + +### BREAKING CHANGES + +- the minimum supported webpack version is v5.0.0 (#3342) ([b1af0dc](https://github.com/webpack/webpack-cli/commit/b1af0dc7ebcdf746bc37889e4c1f978c65acc4a5)), closes [#3342](https://github.com/webpack/webpack-cli/issues/3342) +- webpack-cli no longer supports webpack v4, the minimum supported version is webpack v5.0.0 + # [2.5.0](https://github.com/webpack/webpack-cli/compare/@webpack-cli/generators@2.4.2...@webpack-cli/generators@2.5.0) (2022-06-13) ### Bug Fixes diff --git a/packages/generators/package.json b/packages/generators/package.json index 5ececd51b73..da45e0cff2a 100644 --- a/packages/generators/package.json +++ b/packages/generators/package.json @@ -1,6 +1,6 @@ { "name": "@webpack-cli/generators", - "version": "2.5.0", + "version": "3.0.0", "description": "Webpack-CLI generators", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -25,13 +25,13 @@ "plugin-template" ], "dependencies": { - "webpack-cli": "^4.10.0", + "webpack-cli": "^5.0.0", "yeoman-environment": "^3.9.1", "yeoman-generator": "^5.7.0" }, "peerDependencies": { "webpack": "5.x.x", - "webpack-cli": "4.x.x" + "webpack-cli": "5.x.x" }, "peerDependenciesMeta": { "prettier": { diff --git a/packages/info/CHANGELOG.md b/packages/info/CHANGELOG.md index f7e67cb629c..4fb508bfefb 100644 --- a/packages/info/CHANGELOG.md +++ b/packages/info/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [2.0.0](https://github.com/webpack/webpack-cli/compare/@webpack-cli/info@1.5.0...@webpack-cli/info@2.0.0) (2022-11-17) + +### Features + +- **info:** show information for webpack-cli packages by default ([#3362](https://github.com/webpack/webpack-cli/issues/3362)) ([a1161a8](https://github.com/webpack/webpack-cli/commit/a1161a83d1c8be942ebd2fc93c20e463db38f632)) + +### BREAKING CHANGES + +- the minimum supported webpack version is v5.0.0 (#3342) ([b1af0dc](https://github.com/webpack/webpack-cli/commit/b1af0dc7ebcdf746bc37889e4c1f978c65acc4a5)), closes [#3342](https://github.com/webpack/webpack-cli/issues/3342) +- webpack-cli no longer supports webpack v4, the minimum supported version is webpack v5.0.0 + # [1.5.0](https://github.com/webpack/webpack-cli/compare/@webpack-cli/info@1.4.1...@webpack-cli/info@1.5.0) (2022-06-13) ### Features diff --git a/packages/info/package.json b/packages/info/package.json index 007f8b46878..ed6318257ae 100644 --- a/packages/info/package.json +++ b/packages/info/package.json @@ -1,6 +1,6 @@ { "name": "@webpack-cli/info", - "version": "1.5.0", + "version": "2.0.0", "description": "Outputs info about system and webpack config", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -22,6 +22,6 @@ "gitHead": "fb50f766851f500ca12867a2aa9de81fa6e368f9", "peerDependencies": { "webpack": "5.x.x", - "webpack-cli": "4.x.x" + "webpack-cli": "5.x.x" } } diff --git a/packages/serve/CHANGELOG.md b/packages/serve/CHANGELOG.md index 800e81cbe56..a75242b125b 100644 --- a/packages/serve/CHANGELOG.md +++ b/packages/serve/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [2.0.0](https://github.com/webpack/webpack-cli/compare/@webpack-cli/serve@1.7.0...@webpack-cli/serve@2.0.0) (2022-11-17) + +### BREAKING CHANGES + +- the minimum supported webpack version is v5.0.0 (#3342) ([b1af0dc](https://github.com/webpack/webpack-cli/commit/b1af0dc7ebcdf746bc37889e4c1f978c65acc4a5)), closes [#3342](https://github.com/webpack/webpack-cli/issues/3342) +- webpack-cli no longer supports webpack v4, the minimum supported version is webpack v5.0.0 +- webpack-cli no longer supports webpack-dev-server v3, the minimum supported version is webpack-dev-server v4.0.0 + # [1.7.0](https://github.com/webpack/webpack-cli/compare/@webpack-cli/serve@1.6.1...@webpack-cli/serve@1.7.0) (2022-06-13) ### Features diff --git a/packages/serve/package.json b/packages/serve/package.json index f93d1bb492b..aac17909e0a 100644 --- a/packages/serve/package.json +++ b/packages/serve/package.json @@ -1,6 +1,6 @@ { "name": "@webpack-cli/serve", - "version": "1.7.0", + "version": "2.0.0", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -22,7 +22,7 @@ ], "peerDependencies": { "webpack": "5.x.x", - "webpack-cli": "4.x.x" + "webpack-cli": "5.x.x" }, "peerDependenciesMeta": { "webpack-dev-server": { diff --git a/packages/webpack-cli/CHANGELOG.md b/packages/webpack-cli/CHANGELOG.md index a8b405908c2..3ca67f2a83c 100644 --- a/packages/webpack-cli/CHANGELOG.md +++ b/packages/webpack-cli/CHANGELOG.md @@ -3,6 +3,34 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [5.0.0](https://github.com/webpack/webpack-cli/compare/webpack-cli@4.10.0...webpack-cli@5.0.0) (2022-11-17) + +### Bug Fixes + +- improve description of the `--disable-interpret` option ([#3364](https://github.com/webpack/webpack-cli/issues/3364)) ([bdb7e20](https://github.com/webpack/webpack-cli/commit/bdb7e20a3fc5a676bf5ba9912c091a2c9b3a1cfd)) +- remove the redundant `utils` export ([#3343](https://github.com/webpack/webpack-cli/issues/3343)) ([a9ce5d0](https://github.com/webpack/webpack-cli/commit/a9ce5d077f90492558e2d5c14841b3b5b85f1186)) +- respect `NODE_PATH` env variable ([#3411](https://github.com/webpack/webpack-cli/issues/3411)) ([83d1f58](https://github.com/webpack/webpack-cli/commit/83d1f58fb52d9dcfa3499efb342dfc47d0cca73a)) +- show all CLI specific flags in the minimum help output ([#3354](https://github.com/webpack/webpack-cli/issues/3354)) ([35843e8](https://github.com/webpack/webpack-cli/commit/35843e87c61fd27be92afce11bd66ebf4f9519ae)) + +### Features + +- failOnWarnings option ([#3317](https://github.com/webpack/webpack-cli/issues/3317)) ([c48c848](https://github.com/webpack/webpack-cli/commit/c48c848c6c84eb73fbd829dc41bee301b0b7e2de)) +- update commander to v9 ([#3460](https://github.com/webpack/webpack-cli/issues/3460)) ([6621c02](https://github.com/webpack/webpack-cli/commit/6621c023ab59cc510a5f76e262f2c81676d1920b)) +- added the `--define-process-env-node-env` option +- update `interpret` to v3 and `rechoir` to v0.8 +- add an option for preventing interpret ([#3329](https://github.com/webpack/webpack-cli/issues/3329)) ([c737383](https://github.com/webpack/webpack-cli/commit/c7373832b96af499ad0813e07d114bdc927afdf4)) + +### BREAKING CHANGES + +- the minimum supported webpack version is v5.0.0 (#3342) ([b1af0dc](https://github.com/webpack/webpack-cli/commit/b1af0dc7ebcdf746bc37889e4c1f978c65acc4a5)), closes [#3342](https://github.com/webpack/webpack-cli/issues/3342) +- webpack-cli no longer supports webpack v4, the minimum supported version is webpack v5.0.0 +- webpack-cli no longer supports webpack-dev-server v3, the minimum supported version is webpack-dev-server v4.0.0 +- remove the `migrate` command (#3291) ([56b43e4](https://github.com/webpack/webpack-cli/commit/56b43e4baf76c166ade3b282b40ad9d007cc52b6)), closes [#3291](https://github.com/webpack/webpack-cli/issues/3291) +- remove the `--prefetch` option in favor the `PrefetchPlugin` plugin +- remove the `--node-env` option in favor `--define-process-env-node-env` +- remove the `--hot` option in favor of directly using the `HotModuleReplacement` plugin (only for `build` command, for `serve` it will work) +- the behavior logic of the `--entry` option has been changed - previously it replaced your entries, now the option adds a specified entry, if you want to return the previous behavior please use ` webpack --entry-reset --entry './src/my-entry.js'` + # [4.10.0](https://github.com/webpack/webpack-cli/compare/webpack-cli@4.9.2...webpack-cli@4.10.0) (2022-06-13) ### Bug Fixes diff --git a/packages/webpack-cli/package.json b/packages/webpack-cli/package.json index 4e53352a9b2..346ee60f7f9 100644 --- a/packages/webpack-cli/package.json +++ b/packages/webpack-cli/package.json @@ -1,6 +1,6 @@ { "name": "webpack-cli", - "version": "4.10.0", + "version": "5.0.0", "description": "CLI for webpack & friends", "license": "MIT", "repository": { @@ -35,9 +35,9 @@ ], "dependencies": { "@discoveryjs/json-ext": "^0.5.0", - "@webpack-cli/configtest": "^1.2.0", - "@webpack-cli/info": "^1.5.0", - "@webpack-cli/serve": "^1.7.0", + "@webpack-cli/configtest": "^2.0.0", + "@webpack-cli/info": "^2.0.0", + "@webpack-cli/serve": "^2.0.0", "colorette": "^2.0.14", "commander": "^9.4.1", "cross-spawn": "^7.0.3", diff --git a/packages/webpack-cli/src/webpack-cli.ts b/packages/webpack-cli/src/webpack-cli.ts index 40c364814c6..868ffbb9147 100644 --- a/packages/webpack-cli/src/webpack-cli.ts +++ b/packages/webpack-cli/src/webpack-cli.ts @@ -2107,8 +2107,6 @@ class WebpackCLI implements IWebpackCLI { } } - // TODO respect `--entry-reset` in th next major release - // Respect `process.env.NODE_ENV` if ( !item.mode &&