Skip to content

Dropping node-fetch #393

@slagiewka

Description

@slagiewka

What's the way ahead for this lib and node-fetch?

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.

Known obstacles:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions