chore: Bump dependencies to reduce vulnerabilities in /ui #4654
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.
What this PR does / why we need it:
Bump several dependencies to reduce the number of vulnerabilities reported by
yarn auditfrom 57 to 3.Before:
After:
The remaining vulnerabilities are:
The
cookieone comes viamswthat is only used in tests and actively developed and has a related issue, so I would expect it to be resolved in an update in the near future.The other two could potentially be resolved with yarn's resolutions, but they are only used during build time, so they should not be a concern in practice. Furthermore, we should try to get rid of
react-scriptsanyway since it's no longer maintained, and the two vulnerabilities should become obsolete with that.Which issue(s) this PR fixes:
This is related to #4451, but it's debatable whether this resolves it for now, maybe not.
Misc
After upgrading the babel packages, I started seeing the problem in babel/babel#16716, but removing
node_modulesas suggested in babel/babel#16716 (comment) fixed it. 🤷I split the upgrades into several commits, and some commit messages have additional details about non-trivial changes, especially the last two.