Skip to content
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

'punycode` deprecation in node-fetch #1267

Closed
kennbuluma opened this issue May 24, 2024 · 4 comments
Closed

'punycode` deprecation in node-fetch #1267

kennbuluma opened this issue May 24, 2024 · 4 comments

Comments

@kennbuluma
Copy link

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

@LoicPoullain
Copy link
Member

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
Copy link
Author

kennbuluma commented Jun 3, 2024 via email

@LoicPoullain
Copy link
Member

Thanks for the clarification.

I think we can leave things as they are for now. Upgrading to v3 is not possible due to the need to support ES modules and switching to another library would require some work.

In the next major release of Foal, the framework will internally use the native implementation of the fetch API instead. We'll have to wait for Foal v5 and the abandonment of Node 18 support for this. Node 18 causes problems during testing with the native fetch (see note here).

@LoicPoullain
Copy link
Member

#1283

@LoicPoullain LoicPoullain moved this to Done / Closed This Release in Issue tracking Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

2 participants