Closed
Description
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:
└─┬ [email protected]
└─┬ [email protected]
└─┬ [email protected]
└── [email protected]
Related downstream issues / MRs:
- fix: Update Node Fetch lquixada/cross-fetch#183
- node-fetch v2.7.0: punycode is deprecated in 'whatwg-url' and 'tr46' lquixada/cross-fetch#177
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
Labels
No labels