You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should datasource-rest@v7 come, what would be the minimal supported node version?
Since node 21, the global fetch (undici-based) is stable. Should the global fetch be used as the default for HTTPCache, the node-fetch dependency could be dropped.
Users could still provide their own fetch impl as they do know, but the library would be less prone to more and more issues related to the outdated node-fetch v2 (e.g. #331). Caring about v3 (ESM only) will also become a non-issue.
What's the way ahead for this lib and
node-fetch
?Should
datasource-rest@v7
come, what would be the minimal supportednode
version?Since node 21, the global
fetch
(undici-based) is stable. Should the global fetch be used as the default for HTTPCache, thenode-fetch
dependency could be dropped.Users could still provide their own
fetch
impl as they do know, but the library would be less prone to more and more issues related to the outdatednode-fetch
v2 (e.g. #331). Caring about v3 (ESM only) will also become a non-issue.Known obstacles:
nock
needs to upgraded to v14 (currently in beta)nock
needs to have Native fetch response clone missesurl
nock/nock#2821 fixedThe text was updated successfully, but these errors were encountered: