Skip to content

punycode deprecated warning under Node 22 #148

Open
@shazron

Description

@shazron

When running caprover-deploy for example, under Node 22, you get this deprecation notice:

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

Dependency tree (npm ls punycode)

Investigation

Explanation in this section here: https://www.npmjs.com/package/punycode#installation

Fix

The prod dependency tough-cookie should be updated to v5.0.0 (however it is a sub-dep, of the dep request-promise which will never receive an update)

request-promise should be upgraded to another library like node-fetch, since it has been deprecated 4 years ago.

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