FoalTS / foal

Full-featured Node.js framework, with no complexity. 🚀 Simple and easy to use, TypeScript-based and well-documented.
https://foalts.org/
MIT License
1.88k stars 137 forks source link

'punycode` deprecation in node-fetch #1267

Open kennbuluma opened 1 month ago

kennbuluma commented 1 month ago

If possible, could there be an upgrade to node-fetch version 3 to remedy the punycode deprecation warning?

LoicPoullain commented 1 month ago

Unfortunately, node-fetch v3 requires ESM modules which make the framework not compile. Do you have a message provided with the deprecating warning? What does it say?

kennbuluma commented 4 weeks ago

I get this message when building or running:

(node:5665) [DEP0040] DeprecationWarning: Thepunycodemodule is deprecated. Please use a userland alternative instead. (Use node --trace-deprecation ... to show where the warning was created).​`.

It is no issue during development, but just an inconvenience when running with pm2.


From: Loïc Poullain @.> Sent: 30 May 2024 09:56 To: FoalTS/foal @.> Cc: Kennedy Buluma @.>; Author @.> Subject: Re: [FoalTS/foal] 'punycode` deprecation in node-fetch (Issue #1267)

Unfortunately, node-fetch v3 requires ESM modules which make the framework not compile. Do you have a message provided with the deprecating warning? What does it say?

— Reply to this email directly, view it on GitHubhttps://github.com/FoalTS/foal/issues/1267#issuecomment-2139081299, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACS5YTEWRO7UM73FLTBH5PDZE3STTAVCNFSM6AAAAABIHCJXEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZZGA4DCMRZHE. You are receiving this because you authored the thread.Message ID: @.***>