Closed tnir closed 4 months ago
Hello @tnir,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.
@tnir you mentioned we can avoid whatwg-ur but what is the reasoning behind avoiding it?
@M-ZubairAhmed Thanks. I just added some explanation to the description. Thoughts?
/update-branch
@tnir Thank you for the explanation this makes sense to me
@M-ZubairAhmed Thanks. With your update the branch, it looks like being ready for merging to me.
@M-ZubairAhmed Thanks. With your update the branch, it looks like being ready for merging to me.
Yes sure, lets ask @cwarnermm for a lookup
Newest code from cwarnermm has been published to preview environment for Git SHA 73a47a2ce0ee0289622ab46be5e0791b8db6bdf5
Summary
This change replaces
sync-fetch
withawait
andnode-fetch@3.3.2
assync-fetch
does not supportnode-fetch
v3 and allow us to avoidwhatwg-url@5.0.0
.node-fetch@3.3.2
does NOT depend on any version ofwhatwg-url
.Ticket Link
n/a
Why
node-fetch 2.x, followed by sync-fetch, does not support Node.js 21 and higher fully as it relies on punycode depending from whatwg-url 5.0.0.
As is, with Node.js 21+, we can see warning as follows due to dependency to
whatwg-url@5.0.0
:Refs.