Skip to content

Deprecated Punycode module generating deprecation warnings #3613

@oscaralanpierce

Description

@oscaralanpierce

Basic info:

  • Node.js version: 21.0.0
  • jsdom version: 22.1.0

Minimal reproduction case

After updating to Node 21.0.0 from 19.8.1, I am seeing deprecation warnings when I run my headless Vitest tests:

The `punycode` module is deprecated. Please use a userland alternative instead.

You can see examples of this warning in the test step of this GitHub Actions build.

Running yarn why punycode on my project reveals that punycode is a transitive dependency of JSDOM that I cannot directly update or remove as a dependency. Looking through the issues and PRs on this repo, it seems no one has raised this before. I'm not sure of the scope of required changes to remove this module from JSDOM, but this is something I might be able to help out with if it isn't too onerous. In either case I thought the maintainers might like to know about this since it could be a compatibility issue with future Node versions.

Additional Information

Punycode is a transitive JSDOM dependency, through the tough-cookie package. Discussion on this issue report indicates that Punycode is removed as a dependency in v. 4.1.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions