Skip to content

Docs: Clarify undici module vs fetch in Node #4066

Open
@rkdefra

Description

Why install undici if it's included in Node

It would be REALLY useful to explain the differences between undici as a module vs the parts included in Node. Generally I understand that the fetch API is included in Node from v20 or so - and that the undici version included in Node can be determined from the value process.versions.undici - but beyond this not much.
It would also be very useful to have something that explains when you should install undici as a module, rather than just using the Node internal, e.g.

  • you want to use a specific version of undici
  • you require APIs that aren't available in Node, i.e. ProxyAgent?, and presumably others?

Please include something along these lines in your docs (preferably somewhere near the top, or at least link it there).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    DocsChanges related to the documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions