-
Notifications
You must be signed in to change notification settings - Fork 76
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
Npm audit fix #360
Npm audit fix #360
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
npm audit fix
caught a few more packages that needed updating 👍
GIven all the changes, I'm wondering that wemay need to regenerate all dists as well. What do you think? |
I had that as a todo item ... not sure if @issackjohn wants to run the builds for these anyways and I can do the same with the few that weren't touched afterwards? |
I think it would be good to do that here to make sure that they still build after the changes. |
Rebuild all the dists which had |
Looks like |
I notice that jQuery (both simple and complex versions) shows quite a big increase on all browsers, do we know why? |
It could come from the handlebars update. We were previously using a very old version from 2017. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for this update!
I checked a few workloads that all seem to work. I noticed #363 in jQuery, but it looks like this is preexisting, so let's not think about it here.
I believe we can live with the regression on jquery, what do you think @bgrins?
I see that the workloads in editors/ and charts/ would need their npm audit fix
run too. Do you think you could handle that as well, in a separate PR?
react-stockcharts is deeply unmaintained but I don't think we can update that one without breaking it in its current state, so I'd skip it.
This affects performance numbers a lot, so we should know more why that is happening. I don't think we should land this before there has been some more investigation on that. |
I would like to scope this. The intentions of my change were to update the |
That seems fine to me - let's get this one closed with the development environment specific updates |
I agree. We intentionally decided on framework versions for 3.0, and changing them should be deliberately considered - not based on the output of the audit command. We can consider whether updating this (along with other frameworks) is a good idea in a future version, there's plenty else to do now. |
Thanks for the update Issack. Looking at the new diff, the following dist/ directories appear to have nontrivial changes:
Do we know if these are latent differences on main between what's in |
The result of |
Besides jQuery with handlebars, I think that the other changes are fairly trivial. The large amount of upgraded packages comes mostly from babel. |
My suggestion is that we do two separate steps: first we just go through the existing directories and do Then separately, we would do some kind of package.json updates (either the approach here or the approach in #351 - I don't have a strong opinion about this and haven't closely been following the discussion, but presumably the current approach in this PR is good), and do |
It's hard for me to tell what the substance of the changes are (it's hard to tell from the PR diff, and why I think it would be helpful to "clear out" any latent differences with main dist/ directories and the result of the build). But I'll defer to you on the review here: if you and others are satisfied with the current diff it's fine with me |
GitHub has a nice viewer for the package-lock.json, you can click the button with the "document" icon. |
Thanks for changing the jquery workload so that just "follow-redirects" is updated there. I looked at all other updates, they're all dev dependencies: mostly babel, webpack, and related packages such as postcss. The angular package got some updates for angular-related packages too, but only build-related, not runtime. Can you please provide new numbers in the various browsers so that we can see if the regression is still present? |
@julienw these are the new numbers after the commit that only changed jQuery |
OK, this looks good to me! Thanks for all the updates |
Thanks! |
@rniwa PTAL |
Thank you all for your reviews and help! |
This PR updates the package-lock.json files for the affected packages by running
npm audit fix
to address CVE-2023-26159.follow-redirects
to 1.15.5 instead of 1.15.4 as mentioned in a comment the issue.package-lock.json
was touched.Hosted at: https://issackjohn.github.io/Speedometer3
closes #355