← Back to PRs

#7617: fix: resolve punycode deprecation warning via pnpm override

by whoknowsmann open 2026-02-03 01:30 View on GitHub →
## Summary Adds `whatwg-url@^14.0.0` to pnpm overrides to eliminate the Node.js DEP0040 deprecation warning that appears on every CLI invocation. ## Problem Every OpenClaw command shows: ``` (node:36930) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. ``` This is caused by outdated transitive dependencies (`tr46`, `whatwg-url`) that still use the deprecated Node.js built-in `punycode` module. ## Solution Override `whatwg-url` to `^14.0.0` which uses the userland `punycode.js` package instead of the deprecated Node.js built-in. This is safe because: - OpenClaw already requires Node.js ≥22.12.0, and whatwg-url@14.0.0 requires Node.js ≥18 - The high-level URL parsing API remains unchanged - This is the standard ecosystem fix for punycode deprecation ## Testing Verified locally: ran `pnpm install` and confirmed deprecation warning no longer appears on CLI commands. Fixes #7551 --- 🤖 *Built together with Claude. Fully tested, code reviewed and understood.*

Most Similar PRs