-
-
Notifications
You must be signed in to change notification settings - Fork 170
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
fix: upgrade esbuild
to ~0.25.0
to address vuln report
#698
fix: upgrade esbuild
to ~0.25.0
to address vuln report
#698
Conversation
@privatenumber , please review |
While I do want |
How about specifying a broader range like |
@LukeNotable Sadly, that's kind of out of tsx's hands. Semver breaks down for versions < 1.0.0, and even though it is a little more than 5 years old, esbuild has not yet decided to go from from versions 0.y.z to an official released 1.0.0 version yet. Since there are no guarantees pre-1.0.0, tsx cannot trust that there won't be breaking changes even in the next patch version, i.e. 0.25.1. I find that pretty frustrating, so I just left a comment over there asking that esbuild reconsider their versioning strategy. |
Even though it's true tsx itself isn't affected by this vulnerability, no one can imagine the culprit that emitted security alerts in projects is tsx. |
@privatenumber Changes in 0.24: https://github.com/evanw/esbuild/releases/tag/v0.24.0 None of them or those in 0.25 affect on tsx, right? |
Small correction. Before 1.0.0, Major = Minor. So patch versions should NOT introduce breaking changes, but minor versions can. |
@shinebayar-g No, that's not how SemVer is defined. If you clicked the link I shared before, it says:
It doesn't say breaking changes are restricted to only minor version increases, it says anything may change at any time. It may be true that some projects treat the Minor and Patch versions in this down-shifted way which you describe, and I agree it is super helpful when they do, but SemVer does not guarantee that. |
Fair. |
This comment has been minimized.
This comment has been minimized.
My point is that tsx is already assuming that patch releases are backwards compatible, so if |
It depends on the packages. However esbuild doesn't seem to contaminate patch updates with breaking changes. If someone insists that esbuild brings breaking changes even to patch updates, they must paste a link to the change log of one of versions other than 0.x.0 that included breaking changes here. |
Are there plans on merging this soon? Would be nice to get rid of this from our vulnerability reports. |
esbuild
to ~0.25.0
esbuild
to ~0.25.0
to address vuln report
This issue is now resolved in v4.19.3. If you're able to, your sponsorship would be very much appreciated. |
Fixes GHSA-67mh-4wv8-2f99
https://github.com/evanw/esbuild/releases/tag/v0.25.0
I ran the tests manually and they succeeded.