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

fix fetch support for node < 18.14.0 #3124

Closed
wants to merge 1 commit into from

Conversation

KhafraDev
Copy link
Member

Fixes #3123

I'm wondering if we should drop support for node < v18.17.0. The person who reported it mentioned that we can't run the test suite, so there's no way to guarantee that old v18 versions stay supported.

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 39.53488% with 26 lines in your changes are missing coverage. Please review.

Project coverage is 94.09%. Comparing base (f979ec3) to head (15bdaa6).

Files Patch % Lines
lib/web/fetch/index.js 38.09% 26 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3124      +/-   ##
==========================================
- Coverage   94.18%   94.09%   -0.10%     
==========================================
  Files          89       89              
  Lines       24379    24418      +39     
==========================================
+ Hits        22962    22975      +13     
- Misses       1417     1443      +26     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@KhafraDev KhafraDev marked this pull request as draft April 15, 2024 19:14
@KhafraDev
Copy link
Member Author

I'm making an alternative to this PR to drop node support for < v18.17.0

@KhafraDev KhafraDev marked this pull request as ready for review April 15, 2024 19:40
@KhafraDev
Copy link
Member Author

#3125 is a better solution IMO, also lets us drop the entire custom File implementation.

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless we can test it, it doesn't exists. We should just drop everything under v18.17.0

@KhafraDev KhafraDev closed this Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

undici.fetch breaks on Node.js <=18.13.0 in undici@6.13.0
4 participants