Skip to content

Deprecation warnings with Node 22 #7

@md384

Description

@md384

I see a couple of DeprecationWarning when using this library under Node 22.

The first is The 'punycode' module is deprecated. Please use a userland alternative instead. - the node docs suggest using https://github.com/mathiasbynens/punycode.js instead.

The second is DeprecationWarning: crypto.Hash constructor is deprecated.. I suspect this is from

const hash = new Hash("md5")
which could likely be replaced with const hash = createHash("md5") (docs).

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