-
Notifications
You must be signed in to change notification settings - Fork 4
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
replace got with builtin fetch #14
Comments
Hi @jimmywarting! May I ask you what's your main motivation for replacing got with native fetch? Asking because my intention was to keep using got until Node version 22 is more widely adopted, otherwise dirigera would throw experimental warnings on the console. (Native fetch became stable in Node 22.) I've not heard about any issues with got inside dirigera, so I'd be curious to hear more about it if you bumped into any! |
reason was to use standard apis and making it more widely adopted on other platform other than nodejs got also brings in a ton of other sub dependencies: https://npmgraph.js.org/?q=dirigera I'm a bit of a PackagePhobia nerd... fewer dependencies the better imo, every dependency is a further risk of chain attacks. but the main reason was that i tried to host some small proof of concept on a free hosting services, i first tried some deno deploy, then something bun recommended but both did not work so well, then i found vercel hosting and it did work wonders. but one of bun or deno deployment complained that |
Makes total sense, thanks for the explanation! I agree with you that minimizing the number of dependencies is a great thing, and not just because of the size of the library, but also in order to reduce security risks and to increase compatibility with different runtimes. I'll do some testing to see how the lib would behave with different Node versions if I switched to fetch, and will probably make this happen in the near future. |
No description provided.
The text was updated successfully, but these errors were encountered: