Skip to content

Commit 1d6ada1

Browse files
chore(release): 5.0.0 (#3492)
1 parent 24334d9 commit 1d6ada1

12 files changed

+106
-15
lines changed

CHANGELOG.md

+28
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1+
# [5.0.0](https://github.com/webpack/webpack-cli/compare/[email protected]@5.0.0) (2022-11-17)
2+
3+
### Bug Fixes
4+
5+
- 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))
6+
- remove the redundant `utils` export ([#3343](https://github.com/webpack/webpack-cli/issues/3343)) ([a9ce5d0](https://github.com/webpack/webpack-cli/commit/a9ce5d077f90492558e2d5c14841b3b5b85f1186))
7+
- respect `NODE_PATH` env variable ([#3411](https://github.com/webpack/webpack-cli/issues/3411)) ([83d1f58](https://github.com/webpack/webpack-cli/commit/83d1f58fb52d9dcfa3499efb342dfc47d0cca73a))
8+
- 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))
9+
10+
### Features
11+
12+
- failOnWarnings option ([#3317](https://github.com/webpack/webpack-cli/issues/3317)) ([c48c848](https://github.com/webpack/webpack-cli/commit/c48c848c6c84eb73fbd829dc41bee301b0b7e2de))
13+
- update commander to v9 ([#3460](https://github.com/webpack/webpack-cli/issues/3460)) ([6621c02](https://github.com/webpack/webpack-cli/commit/6621c023ab59cc510a5f76e262f2c81676d1920b))
14+
- added the `--define-process-env-node-env` option
15+
- update `interpret` to v3 and `rechoir` to v0.8
16+
- add an option for preventing interpret ([#3329](https://github.com/webpack/webpack-cli/issues/3329)) ([c737383](https://github.com/webpack/webpack-cli/commit/c7373832b96af499ad0813e07d114bdc927afdf4))
17+
18+
### BREAKING CHANGES
19+
20+
- 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)
21+
- webpack-cli no longer supports webpack v4, the minimum supported version is webpack v5.0.0
22+
- webpack-cli no longer supports webpack-dev-server v3, the minimum supported version is webpack-dev-server v4.0.0
23+
- remove the `migrate` command (#3291) ([56b43e4](https://github.com/webpack/webpack-cli/commit/56b43e4baf76c166ade3b282b40ad9d007cc52b6)), closes [#3291](https://github.com/webpack/webpack-cli/issues/3291)
24+
- remove the `--prefetch` option in favor the `PrefetchPlugin` plugin
25+
- remove the `--node-env` option in favor `--define-process-env-node-env`
26+
- remove the `--hot` option in favor of directly using the `HotModuleReplacement` plugin (only for `build` command, for `serve` it will work)
27+
- 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'`
28+
129
# [4.10.0](https://github.com/webpack/webpack-cli/compare/[email protected]@4.10.0) (2022-06-13)
230

331
### Bug Fixes

packages/configtest/CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [2.0.0](https://github.com/webpack/webpack-cli/compare/@webpack-cli/[email protected]...@webpack-cli/[email protected]) (2022-11-17)
7+
8+
### BREAKING CHANGES
9+
10+
- 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)
11+
- webpack-cli no longer supports webpack v4, the minimum supported version is webpack v5.0.0
12+
613
# [1.2.0](https://github.com/webpack/webpack-cli/compare/@webpack-cli/[email protected]...@webpack-cli/[email protected]) (2022-06-13)
714

815
### Features

packages/configtest/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@webpack-cli/configtest",
3-
"version": "1.2.0",
3+
"version": "2.0.0",
44
"description": "Validate a webpack configuration.",
55
"main": "lib/index.js",
66
"types": "lib/index.d.ts",
@@ -21,6 +21,6 @@
2121
],
2222
"peerDependencies": {
2323
"webpack": "5.x.x",
24-
"webpack-cli": "4.x.x"
24+
"webpack-cli": "5.x.x"
2525
}
2626
}

packages/generators/CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [3.0.0](https://github.com/webpack/webpack-cli/compare/@webpack-cli/[email protected]...@webpack-cli/[email protected]) (2022-11-17)
7+
8+
### Bug Fixes
9+
10+
- 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))
11+
12+
### BREAKING CHANGES
13+
14+
- 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)
15+
- webpack-cli no longer supports webpack v4, the minimum supported version is webpack v5.0.0
16+
617
# [2.5.0](https://github.com/webpack/webpack-cli/compare/@webpack-cli/[email protected]...@webpack-cli/[email protected]) (2022-06-13)
718

819
### Bug Fixes

packages/generators/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@webpack-cli/generators",
3-
"version": "2.5.0",
3+
"version": "3.0.0",
44
"description": "Webpack-CLI generators",
55
"main": "lib/index.js",
66
"types": "lib/index.d.ts",
@@ -25,13 +25,13 @@
2525
"plugin-template"
2626
],
2727
"dependencies": {
28-
"webpack-cli": "^4.10.0",
28+
"webpack-cli": "^5.0.0",
2929
"yeoman-environment": "^3.9.1",
3030
"yeoman-generator": "^5.7.0"
3131
},
3232
"peerDependencies": {
3333
"webpack": "5.x.x",
34-
"webpack-cli": "4.x.x"
34+
"webpack-cli": "5.x.x"
3535
},
3636
"peerDependenciesMeta": {
3737
"prettier": {

packages/info/CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [2.0.0](https://github.com/webpack/webpack-cli/compare/@webpack-cli/[email protected]...@webpack-cli/[email protected]) (2022-11-17)
7+
8+
### Features
9+
10+
- **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))
11+
12+
### BREAKING CHANGES
13+
14+
- 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)
15+
- webpack-cli no longer supports webpack v4, the minimum supported version is webpack v5.0.0
16+
617
# [1.5.0](https://github.com/webpack/webpack-cli/compare/@webpack-cli/[email protected]...@webpack-cli/[email protected]) (2022-06-13)
718

819
### Features

packages/info/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@webpack-cli/info",
3-
"version": "1.5.0",
3+
"version": "2.0.0",
44
"description": "Outputs info about system and webpack config",
55
"main": "lib/index.js",
66
"types": "lib/index.d.ts",
@@ -22,6 +22,6 @@
2222
"gitHead": "fb50f766851f500ca12867a2aa9de81fa6e368f9",
2323
"peerDependencies": {
2424
"webpack": "5.x.x",
25-
"webpack-cli": "4.x.x"
25+
"webpack-cli": "5.x.x"
2626
}
2727
}

packages/serve/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [2.0.0](https://github.com/webpack/webpack-cli/compare/@webpack-cli/[email protected]...@webpack-cli/[email protected]) (2022-11-17)
7+
8+
### BREAKING CHANGES
9+
10+
- 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)
11+
- webpack-cli no longer supports webpack v4, the minimum supported version is webpack v5.0.0
12+
- webpack-cli no longer supports webpack-dev-server v3, the minimum supported version is webpack-dev-server v4.0.0
13+
614
# [1.7.0](https://github.com/webpack/webpack-cli/compare/@webpack-cli/[email protected]...@webpack-cli/[email protected]) (2022-06-13)
715

816
### Features

packages/serve/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@webpack-cli/serve",
3-
"version": "1.7.0",
3+
"version": "2.0.0",
44
"description": "",
55
"main": "lib/index.js",
66
"types": "lib/index.d.ts",
@@ -22,7 +22,7 @@
2222
],
2323
"peerDependencies": {
2424
"webpack": "5.x.x",
25-
"webpack-cli": "4.x.x"
25+
"webpack-cli": "5.x.x"
2626
},
2727
"peerDependenciesMeta": {
2828
"webpack-dev-server": {

packages/webpack-cli/CHANGELOG.md

+28
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,34 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [5.0.0](https://github.com/webpack/webpack-cli/compare/[email protected]@5.0.0) (2022-11-17)
7+
8+
### Bug Fixes
9+
10+
- 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))
11+
- remove the redundant `utils` export ([#3343](https://github.com/webpack/webpack-cli/issues/3343)) ([a9ce5d0](https://github.com/webpack/webpack-cli/commit/a9ce5d077f90492558e2d5c14841b3b5b85f1186))
12+
- respect `NODE_PATH` env variable ([#3411](https://github.com/webpack/webpack-cli/issues/3411)) ([83d1f58](https://github.com/webpack/webpack-cli/commit/83d1f58fb52d9dcfa3499efb342dfc47d0cca73a))
13+
- 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))
14+
15+
### Features
16+
17+
- failOnWarnings option ([#3317](https://github.com/webpack/webpack-cli/issues/3317)) ([c48c848](https://github.com/webpack/webpack-cli/commit/c48c848c6c84eb73fbd829dc41bee301b0b7e2de))
18+
- update commander to v9 ([#3460](https://github.com/webpack/webpack-cli/issues/3460)) ([6621c02](https://github.com/webpack/webpack-cli/commit/6621c023ab59cc510a5f76e262f2c81676d1920b))
19+
- added the `--define-process-env-node-env` option
20+
- update `interpret` to v3 and `rechoir` to v0.8
21+
- add an option for preventing interpret ([#3329](https://github.com/webpack/webpack-cli/issues/3329)) ([c737383](https://github.com/webpack/webpack-cli/commit/c7373832b96af499ad0813e07d114bdc927afdf4))
22+
23+
### BREAKING CHANGES
24+
25+
- 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)
26+
- webpack-cli no longer supports webpack v4, the minimum supported version is webpack v5.0.0
27+
- webpack-cli no longer supports webpack-dev-server v3, the minimum supported version is webpack-dev-server v4.0.0
28+
- remove the `migrate` command (#3291) ([56b43e4](https://github.com/webpack/webpack-cli/commit/56b43e4baf76c166ade3b282b40ad9d007cc52b6)), closes [#3291](https://github.com/webpack/webpack-cli/issues/3291)
29+
- remove the `--prefetch` option in favor the `PrefetchPlugin` plugin
30+
- remove the `--node-env` option in favor `--define-process-env-node-env`
31+
- remove the `--hot` option in favor of directly using the `HotModuleReplacement` plugin (only for `build` command, for `serve` it will work)
32+
- 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'`
33+
634
# [4.10.0](https://github.com/webpack/webpack-cli/compare/[email protected]@4.10.0) (2022-06-13)
735

836
### Bug Fixes

packages/webpack-cli/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webpack-cli",
3-
"version": "4.10.0",
3+
"version": "5.0.0",
44
"description": "CLI for webpack & friends",
55
"license": "MIT",
66
"repository": {
@@ -35,9 +35,9 @@
3535
],
3636
"dependencies": {
3737
"@discoveryjs/json-ext": "^0.5.0",
38-
"@webpack-cli/configtest": "^1.2.0",
39-
"@webpack-cli/info": "^1.5.0",
40-
"@webpack-cli/serve": "^1.7.0",
38+
"@webpack-cli/configtest": "^2.0.0",
39+
"@webpack-cli/info": "^2.0.0",
40+
"@webpack-cli/serve": "^2.0.0",
4141
"colorette": "^2.0.14",
4242
"commander": "^9.4.1",
4343
"cross-spawn": "^7.0.3",

packages/webpack-cli/src/webpack-cli.ts

-2
Original file line numberDiff line numberDiff line change
@@ -2107,8 +2107,6 @@ class WebpackCLI implements IWebpackCLI {
21072107
}
21082108
}
21092109

2110-
// TODO respect `--entry-reset` in th next major release
2111-
21122110
// Respect `process.env.NODE_ENV`
21132111
if (
21142112
!item.mode &&

0 commit comments

Comments
 (0)