Skip to content

Replace or drop "cross-fetch" since it is outdated and obsolete #23

Closed
@dirkluijk

Description

@dirkluijk

When using this library with Vitest on Node.js 22.x, I get a lot of annoying warnings:

(node:22221) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.

I traced this to the following dependencies:

Related downstream issues / MRs:

It seems to me that "cross-fetch" isn't being actively maintained, last commit was over a year ago. But maybe I'm wrong in that assumption.

An easy alternative could also to get rid of "cross-fetch" as a dependency, since Fetch is widely available (at least from Node.js 18 and higher). If there is an agreement for this solution, I'll prepare a pull request for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions