Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump webpack from 5.90.3 to 5.94.0 #3283

Merged
merged 3 commits into from
Sep 3, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 30, 2024

Bumps webpack from 5.90.3 to 5.94.0.

Release notes

Sourced from webpack's releases.

v5.94.0

Bug Fixes

  • Added runtime condition for harmony reexport checked
  • Handle properly data/http/https protocols in source maps
  • Make bigint optimistic when browserslist not found
  • Move @​types/eslint-scope to dev deps
  • Related in asset stats is now always an array when no related found
  • Handle ASI for export declarations
  • Mangle destruction incorrect with export named default properly
  • Fixed unexpected asi generation with sequence expression
  • Fixed a lot of types

New Features

  • Added new external type "module-import"
  • Support webpackIgnore for new URL() construction
  • [CSS] @import pathinfo support

Security

  • Fixed DOM clobbering in auto public path

v5.93.0

Bug Fixes

  • Generate correct relative path to runtime chunks
  • Makes DefinePlugin quieter under default log level
  • Fixed mangle destructuring default in namespace import
  • Fixed consumption of eager shared modules for module federation
  • Strip slash for pretty regexp
  • Calculate correct contenthash for CSS generator options

New Features

  • Added the binary generator option for asset modules to explicitly keep source maps produced by loaders
  • Added the modern-module library value for tree shakable output
  • Added the overrideStrict option to override strict or non-strict mode for javascript modules

v5.92.1

Bug Fixes

  • Doesn't crash with an error when the css experiment is enabled and contenthash is used

v5.92.0

Bug Fixes

  • Correct tidle range's comutation for module federation
  • Consider runtime for pure expression dependency update hash
  • Return value in the subtractRuntime function for runtime logic

... (truncated)

Commits
  • eabf85d chore(release): 5.94.0
  • 955e057 security: fix DOM clobbering in auto public path
  • 9822387 test: fix
  • cbb86ed test: fix
  • 5ac3d7f fix: unexpected asi generation with sequence expression
  • 2411661 security: fix DOM clobbering in auto public path
  • b8c03d4 fix: unexpected asi generation with sequence expression
  • f46a03c revert: do not use heuristic fallback for "module-import"
  • 60f1898 fix: do not use heuristic fallback for "module-import"
  • 66306aa Revert "fix: module-import get fallback from externalsPresets"
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [webpack](https://github.com/webpack/webpack) from 5.90.3 to 5.94.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](webpack/webpack@v5.90.3...v5.94.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Aug 30, 2024
@tdonohue tdonohue added port to dspace-7_x This PR needs to be ported to `dspace-7_x` branch for next bug-fix release port to dspace-8_x This PR needs to be ported to `dspace-8_x` branch for next bug-fix release labels Aug 30, 2024
@tdonohue tdonohue self-requested a review August 30, 2024 17:02
@tdonohue tdonohue added this to the 9.0 milestone Aug 30, 2024
@tdonohue
Copy link
Member

@artlowel and @alexandrevryghem : this automatic update to webpack 5.94.0 appears to be throwing errors with how i18n hashes are being generated (added in #2464). I haven't had a chance to dig into it, but it appears Webpack's EnvironmentPlugin may have changed, which is throwing errors in the build process.

If one of you has a chance to glance at this, I'd appreciate any advice (or alternative PRs). Obviously, we want to be sure we can upgrade to the latest Webpack v5.

@tdonohue tdonohue requested a review from artlowel August 30, 2024 17:19
@alexandrevryghem
Copy link
Member

@tdonohue: This appears to be caused by a type issue in webpack. There is already an open PR for it, so hopefully it will be fixed soon. I temporarily added a @ts-expect-error to ignore that error.

There was also an issue with the tests because the old webpack version (5.90.3) was still present in the yarn.lock file, so I fixed that too.

This automatically removed some old eslint dependencies, which caused some conflicts in the custom linting plugin
@alexandrevryghem alexandrevryghem force-pushed the dependabot/npm_and_yarn/webpack-5.94.0 branch from 1b5a946 to 5f922c0 Compare August 30, 2024 21:08
Copy link
Member

@tdonohue tdonohue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks @alexandrevryghem ! This all looks good and it works well. I gave it a quick manual test, and all our automated tests pass too.

Merging immediately and attempting to auto-port to 8.x. We likely will need to port manually to 7.x as that has an even older version of webpack (v5.76.1)

@tdonohue tdonohue merged commit 88e145c into main Sep 3, 2024
16 checks passed
@tdonohue tdonohue deleted the dependabot/npm_and_yarn/webpack-5.94.0 branch September 3, 2024 21:37
@dspace-bot
Copy link
Contributor

Backport failed for dspace-7_x, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin dspace-7_x
git worktree add -d .worktree/backport-3283-to-dspace-7_x origin/dspace-7_x
cd .worktree/backport-3283-to-dspace-7_x
git switch --create backport-3283-to-dspace-7_x
git cherry-pick -x 81b89f5d0c3ae65b0a56e03fba35d8be2a2ff075 7dea5f7d98afc6a6ab2ac8438eea4b00dd00175d 5f922c06e038c2909446b4ad36b47171f7d6baf3

@dspace-bot
Copy link
Contributor

Successfully created backport PR for dspace-8_x:

@tdonohue
Copy link
Member

tdonohue commented Sep 3, 2024

The port to 8.x (for 8.1) was successful.

I attempted a basic port back to 7.x in #3294, but it didn't work properly as it resulted in two versions of webpack (which caused tests to fail). So, I closed that PR.

Ideally, this would be nice to port to 7.x, unless it's simply not feasible.

@tdonohue tdonohue removed the port to dspace-8_x This PR needs to be ported to `dspace-8_x` branch for next bug-fix release label Sep 4, 2024
@alexandrevryghem
Copy link
Member

@tdonohue: I looked into this, and I don't think it will be possible because Angular v15 is no longer supported. Its Webpack version won't be updated anymore, so the highest version we can use is its current version, which is v5.76.1 (which we are already on). The lowest version that supports Webpack v5.94.0 is Angular v16.2.15.

@tdonohue
Copy link
Member

@alexandrevryghem : Thanks for clarifying & digging into this. In that case, I'll remove the port to 7.x label.

Note for other developers: this upgrade was only done for 8.x and 9.x. It could not be ported to 7.x because of the reasons described above.

@tdonohue tdonohue removed the port to dspace-7_x This PR needs to be ported to `dspace-7_x` branch for next bug-fix release label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

3 participants