Skip to content

Migrate from deprecated punycode nodejs builtin to explicit userland library #43

@kubijo

Description

@kubijo

This library generates deprecation warnings because the compiled module requires a deprecated punycode module.
It is quite possible that you get from somewhere else, but the end product is your module, so some change is needed on your side.

(node:261024) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
    at node:punycode:3:9
    at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/realm:392:7)
    at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/realm:328:10)
    at loadBuiltinModule (node:internal/modules/helpers:101:7)
    at Function.Module._load (node:internal/modules/cjs/loader:1001:17)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at require (node:internal/modules/helpers:176:18)
    at Object.call (/node_modules/@turist/fetch/webpack:/@turist/fetch/external node-commonjs "punycode":1:1)
    at __webpack_require__ (/node_modules/@turist/fetch/webpack:/@turist/fetch/webpack/bootstrap:21:1)
    at Object.33 (/node_modules/@turist/fetch/webpack:/@turist/fetch/node_modules/node-fetch/node_modules/whatwg-url/lib/url-state-machine.js:2:1)

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