-
Notifications
You must be signed in to change notification settings - Fork 2k
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
@uppy/companion: upgrade got
to 12
#4353
Conversation
fixes #4317 also upgrade jest to fix jestjs/jest#13008
I don't think we should do this.
|
not sure I agree. typescript warns if you forget to await it.
that I can agree, but it's still not too bad
yes, I believe we are vulnerable on 11, see #4317
true, but ESM is the future anyways, right? |
npm audit is broken by design. Do we have proof we are actually vulnerable in our usage?
Yes, but at the moment that's mostly true for the browser, not for server-side Node.js For me the only reason to do this is if we're actually vulnerable. Otherwise the overhead is simply not worth it. |
no I don't 🙈
I disagree. I think esm is the future for node.js too. has a lot of benefits over commonjs |
it could have been this vulnerability which seems it has been withdrawn: sindresorhus/got#2220 anyways we should probably eventually upgrade our npm dependencies so we don't have to stay on older versions and will be missing out on features and security fixes in the future. and because companion cannot be converted to ESM, this seems to be the way to go. alternatively we have to move away from got, but that's gonna be a larger rewrite. I can imagine other modules we use or want to use in the future are also ESM, so if we are going to take a generic stance against ESM dependencies in companion, that might not be good for the future of companion, as we will be left on old versions of dependencies and many modules will not be possible to use, limiting innovation. |
@aduh95 thoughts? it's a tie in Mikael vs Merlijn 🥊 |
Actually when i think of it… we could port companion to ESM. People can still use esm companion as an express middleware from CJS, they just have to |
This is a good argument. But 11.x still receives security fixes so we should be safe. Once something actually vulnerable happens on a version we're on, and it actually effects us, we can reconsider. But for now, I think this upgrade is too soon and only causes complications. |
This is not necessarily true - you can also use (No strong opinions about the topic otherwise, just thought this might be useful information for the discussion) |
I believe this can be closed because of #5035 |
fixes #4317
Seems like jest doesn't like
await import
on node.js 14 so I've also removed node14. which should be fine because it's EOL in april, and we're releasing major anyways #4317also upgrade jest to fix jestjs/jest#13008
todo:
todo refactor once upgraded to got 12
- remove old unmaintainedform-data
module which we depend on (needs got 12)Update: getting some strange unrelated TS build errors now. not sure why:
Other benefits of got 12:
seems to have much more descriptive error messages:
got 11:
got 12