Title: The punycode deprecation trace is not useful · Issue #61901 · nodejs/node · GitHub
Open Graph Title: The punycode deprecation trace is not useful · Issue #61901 · nodejs/node
X Title: The punycode deprecation trace is not useful · Issue #61901 · nodejs/node
Description: Version v24.13.1 Platform Darwin
Open Graph Description: Version v24.13.1 Platform Darwin
X Description: Version v24.13.1 Platform Darwin <hostname> 24.6.0 Darwin Kernel Version 24.6.0: Wed Nov 5 21:34:00 PST 2025; root:xnu-11417.140.69.705.2~1/RELEASE_ARM64_T8132 arm64 Subsystem No response Wha...
Opengraph URL: https://github.com/nodejs/node/issues/61901
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The punycode deprecation trace is not useful","articleBody":"### Version\n\nv24.13.1\n\n### Platform\n\n```text\nDarwin \u003chostname\u003e 24.6.0 Darwin Kernel Version 24.6.0: Wed Nov 5 21:34:00 PST 2025; root:xnu-11417.140.69.705.2~1/RELEASE_ARM64_T8132 arm64\n```\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\nIn a project that uses punycode _somewhere_.\n```\nNODE_OPTIONS='--trace-deprecation' npm t\n```\n\nor more concretely (although obviously in this case it's trivial to identify the source):\n```\nnpm init -y\nnpm i psl@1.8.0\nnode --trace-deprecation -e 'require(\"psl\")'\n```\n\n### How often does it reproduce? Is there a required condition?\n\nalways\n\n### What is the expected behavior? Why is that the expected behavior?\n\nI would expect a trace telling me which package/file is requiring punycode\n\n### What do you see instead?\n\nWhat I actually get is\n```\n(node:49440) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.\n at node:punycode:7:10\n at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/realm:398:7)\n at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/realm:337:10)\n at loadBuiltinModule (node:internal/modules/helpers:125:7)\n at loadBuiltinWithHooks (node:internal/modules/cjs/loader:1195:15)\n at Module._load (node:internal/modules/cjs/loader:1285:48)\n at TracingChannel.traceSync (node:diagnostics_channel:328:14)\n at wrapModuleLoad (node:internal/modules/cjs/loader:245:24)\n at Module.require (node:internal/modules/cjs/loader:1548:12)\n at require (node:internal/modules/helpers:152:16)\n```\n\n### Additional information\n\nI note that https://github.com/nodejs/node/pull/56632 will reduce the number of times this warning appears, so perhaps that's good enough - but in general it seems reasonable to say that using `--trace-deprecation` should actually trace the usage of deprecated code.","author":{"url":"https://github.com/glenjamin","@type":"Person","name":"glenjamin"},"datePublished":"2026-02-20T12:23:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/61901/node/issues/61901"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:087bcb9a-23bf-72b8-0496-5e47bfb37ad8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8A88:2C7266:F52A2:14A639:6A4C7231 |
| html-safe-nonce | bf4a959e1017cfa11fdf04bca154193d499aaad10d9d00870d649c771cb9af97 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTg4OjJDNzI2NjpGNTJBMjoxNEE2Mzk6NkE0QzcyMzEiLCJ2aXNpdG9yX2lkIjoiNTgwMzMxMTkyMzI1MzI0NDQ2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 57d5940c6bf3a9fe4294764a3ae5f76383693762d2dd3c990b428704918cd18f |
| hovercard-subject-tag | issue:3968311004 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/61901/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fbb97cb289a7b5a0b82a45dbe538a6f2bdb2f617bf67edc5e78f30d02f88c724/nodejs/node/issues/61901 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fbb97cb289a7b5a0b82a45dbe538a6f2bdb2f617bf67edc5e78f30d02f88c724/nodejs/node/issues/61901 |
| og:image:alt | Version v24.13.1 Platform Darwin |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | glenjamin |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 14099438da5379150f15a2892474c7c7e6c0e55e |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width