Skip to content

Commit

Permalink
feat!: BREAKING CHANGE → drop webpack v4 support (#289)
Browse files Browse the repository at this point in the history
* Support webpack@5 typings

BREAKING CHANGES: removed webpack@4 support

* chore: revert package version, this bump is done at release

Co-authored-by: Andrew Powell <shellscape@users.noreply.github.com>
  • Loading branch information
SunHuawei and shellscape committed Mar 8, 2022
1 parent 793a035 commit 6a475c8
Show file tree
Hide file tree
Showing 15 changed files with 326 additions and 1,904 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ A Webpack plugin for generating an asset manifest.

`webpack-manifest-plugin` is an [evergreen 🌲](./.github/FAQ.md#what-does-evergreen-mean) module.

This module requires an [Active LTS](https://github.com/nodejs/Release) Node version (v10.0.0+) and Webpack v4.44.0+.
This module requires an [Active LTS](https://github.com/nodejs/Release) Node version (v12.0.0+) and Webpack v5.0.0.

## Contributing

Expand Down
30 changes: 7 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,20 @@
"lint": "pnpm lint:docs && pnpm lint:json && pnpm lint:js",
"lint-staged": "lint-staged",
"lint:docs": "prettier --write README.md",
"lint:js": "eslint --cache --fix --cache scripts src test",
"lint:js": "eslint --cache --fix --cache src test",
"lint:json": "prettier --write codecov.yml package.json",
"posttest": "pnpm switch -- \"4\" && pnpm install",
"prepublishOnly": "pnpm lint && pnpm build",
"pretest": "pnpm build",
"security": "pnpm audit --audit-level=high --prod",
"switch": "cd scripts && ts-node --project ./tsconfig.json ./set-webpack-version.ts",
"test": "pnpm test:v4 && pnpm test:v5",
"test:v4": "ava",
"test:v5": "pnpm switch -- \"5\" && pnpm install && ava"
"test": "pnpm install && ava"
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"peerDependencies": {
"webpack": "^4.44.2 || ^5.47.0"
"webpack": "^5.47.0"
},
"dependencies": {
"tapable": "^2.0.0",
Expand All @@ -48,17 +44,15 @@
"@commitlint/config-conventional": "^13.1.0",
"@svgr/webpack": "^5.4.0",
"@types/node": "^16.4.3",
"@types/webpack": "^4.41.26",
"@types/webpack": "^5.28.0",
"@types/webpack-sources": "^2.1.1",
"@wordpress/dependency-extraction-webpack-plugin": "^3.1.0",
"ava": "^3.13.0",
"codecov": "^3.1.0",
"copy-webpack-plugin": "^6.2.1",
"css-loader": "^1.0.0",
"del": "^6.0.0",
"eslint-config-shellscape": "^4.2.0",
"extract-text-webpack-plugin": "^3.0.2",
"file-loader": "^2.0.0",
"file-loader": "^6.2.0",
"husky": "4.3.8",
"lint-staged": "11.1.1",
"memory-fs": "^0.4.1",
Expand All @@ -71,7 +65,7 @@
"ts-node": "^10.1.0",
"tslib": "^2.3.0",
"typescript": "^4.3.5",
"webpack": "^4.44.2",
"webpack": "^5.47.0",
"webpack-merge": "^5.2.0"
},
"ava": {
Expand Down Expand Up @@ -107,15 +101,5 @@
"test/"
]
},
"pre-commit": "lint-staged",
"webpack-versions": {
"4": {
"webpack": "^4.44.2",
"@types/webpack": "^4.41.26"
},
"5": {
"webpack": "latest",
"@types/webpack": "latest"
}
}
"pre-commit": "lint-staged"
}

0 comments on commit 6a475c8

Please sign in to comment.