-
Notifications
You must be signed in to change notification settings - Fork 545
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
undici.fetch
breaks on Node.js <=18.13.0 in undici@6.13.0
#3123
Comments
Why not upgrading node version too? |
This isn't relevant. This is caused by 8a07bbd which uses stream.finished. The node docs did not mention that support for web streams was added in some unknown v18 release The fix is either to drop support for v18 prior to said addition, or fallback to the previous solution if we can't use stream.finished. |
It is relevant for the decision if we drop support for node versions < 18.17.0 or if we fix the support for node 18.14.0. In fastify we expect that a reasonable version of node has to be used. so nobody can demand, that we support node 14.0.0, but we support latest node 14. |
node 14 is EOL, node 18 isn't |
it is the principle. We also dont support older versions of node 18 or 20, despite them being not EOL: |
That's not true, we currently support any version of node >= v18: Lines 127 to 129 in f979ec3
|
I was in the context of fastify. |
I think it's safe to say we support only recent versions of Node.js and we didn't update package.json. Mostly because we do not test for them. |
Please downgrade undici to v6.12.0 or upgrade your node version to the latest version of v18. |
Okay, thanks. To be clear, I don't need undici to support the older Node v18 versions for my case. I just needed to be clear what versions it did support. |
test(undici): reduce testing of undici@6 on older Node.js v18 versions because of undici breakage Starting with undici@6.13.0, it breaks on Node.js 18.13.0 and earlier. Undici somewhat officially only supports the latest minor version of supported Node.js majors, so we'll bump our testing to only more recent Node.js v18 versions. Refs: nodejs/undici#3123 Co-authored-by: Trent Mick <trent.mick@elastic.co>
test(undici): reduce testing of undici@6 on older Node.js v18 versions because of undici breakage Starting with undici@6.13.0, it breaks on Node.js 18.13.0 and earlier. Undici somewhat officially only supports the latest minor version of supported Node.js majors, so we'll bump our testing to only more recent Node.js v18 versions. Refs: nodejs/undici#3123 Co-authored-by: Trent Mick <trent.mick@elastic.co>
test(undici): reduce testing of undici@6 on older Node.js v18 versions because of undici breakage Starting with undici@6.13.0, it breaks on Node.js 18.13.0 and earlier. Undici somewhat officially only supports the latest minor version of supported Node.js majors, so we'll bump our testing to only more recent Node.js v18 versions. Refs: nodejs/undici#3123 Co-authored-by: Trent Mick <trent.mick@elastic.co>
Bug Description
Since undici@6.13.0,
undici.fetch
breaks on Node.js 18.13.0 and earlier."package.json" includes:
but I'm not sure if anything less than v18.17.0 is really supported anymore -- the move to borp as part of #2267 means that the test suite cannot be run with Node.js earlier than v18.17.0.
Reproducible By
Using this "playfetch.js":
In a git clone at commit 8a07bbd (from #3095):
This passes in newer Node.js versions.
This passes in earlier undici commits.
Expected Behavior
That "playfetch.js" show work, e.g. with more recent Node v18:
Environment
Tested on macOS 14.4.1, x86_64.
The text was updated successfully, but these errors were encountered: