🚨 [security] Update webpack 4.46.0 → 5.95.0 (major) #688
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🚨 Your current dependencies have known security vulnerabilities 🚨
This dependency update fixes known security vulnerabilities. Please see the details below and assess their impact carefully. We recommend to merge and deploy this as soon as possible!
Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.
What changed?
✳️ webpack (4.46.0 → 5.95.0) · Repo
Security Advisories 🚨
🚨 Webpack's AutoPublicPathRuntimeModule has a DOM Clobbering Gadget that leads to XSS
🚨 Cross-realm object access in Webpack 5
Release Notes
Too many releases to show here. View the full release notes.
Commits
See the full diff on Github. The new version differs by 61 commits:
chore(release): 5.95.0feat: added new `optimization.entryIife` optionfix: merge duplicate chunks after split chunksfix(externals): distinguish “module” and “import” in “module-import”fix(externals): distinguish “module” and “import” in “module-import”fix: all tests casesfeat: pass output.hash* options to loader contextfeat: pass `output.hash*` options to loader contexttest: updatetestrefactor: coderefactor: codefix: use content hash as `[base]` and `[name]` for extracted DataURI'stest: fixfix: use content hash as `[base]` and `[name]` for extracted DataURI'ssnapshotudpate testsupdate prfeat: add new optimization.entryIife configchore(deps-dev): bump the dependencies group with 3 updateschore(deps-dev): bump the dependencies group with 3 updatestest: css typeschore(deps-dev): bump the dependencies group across 1 directory with 4 updateschore(deps-dev): bump the dependencies group across 1 directory with 4 updatestest: css typesMerge pull request #18758 from webpack/dependabot/npm_and_yarn/dependencies-212f0570c2chore(deps-dev): bump husky in the dependencies groupfix: generate code correctly for dynamically importing the same file twice and destructuringtest: fix windowsfix: generate code correctly for dynamically importing the same file twice and destructuringchore(deps-dev): bump @stylistic/eslint-plugin from 2.7.2 to 2.8.0 in the dependencies group across 1 directorychore(deps-dev): bump @stylistic/eslint-pluginfix: types for ts5.6chore: fix yarn lock filefix: types for ts5.6fix: types for ts5.6fix: add extra merge duplicates call after split chunkschore(deps-dev): bump the dependencies group with 2 updateschore(deps-dev): bump the dependencies group with 2 updateschore(deps-dev): bump the dependencies group across 1 directory with 2 updatesfix: handle default for import context element dependencyrefactor: decide processBlock by input blockchore(deps-dev): bump the dependencies group across 1 directory with 2 updatesfix: decide processBlock by input blocklintfix: handle default for import context element dependencyrevert: always add semicolon in concaten module and tweakfix: make EnvironmentPlugin defaultValues types less strictperf(buildChunkGraph): avoid unneeded re-visitchore(deps-dev): bump the dependencies group across 1 directory with 10 updatesperf(buildChunkGraph): avoid unneeded re-visitchore(deps-dev): bump the dependencies group across 1 directory with 10 updatesfix: add type hintsdocs: update JSDoc typesfix: make EnvironmentPlugin defaultValues types less strictfix: always add semicolon in concaten module and tweakfix: ASI in concatenated module only when necessaryfix: ASI in concatenated module only when necessaryfix: hanging when attempting to read a symlink-like file that it can't readtest: fixrefactor: logicDepfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with
@depfu rebase.All Depfu comment commands