Skip to content

fix: resolve punycode deprecation warning via pnpm override#7617

Closed
whoknowsmann wants to merge 1 commit intoopenclaw:mainfrom
whoknowsmann:fix/punycode-deprecation-warning
Closed

fix: resolve punycode deprecation warning via pnpm override#7617
whoknowsmann wants to merge 1 commit intoopenclaw:mainfrom
whoknowsmann:fix/punycode-deprecation-warning

Conversation

@whoknowsmann
Copy link

@whoknowsmann whoknowsmann commented Feb 3, 2026

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.

Add whatwg-url@^14.0.0 override to eliminate Node.js DEP0040 deprecation
warning caused by outdated transitive dependencies (tr46, whatwg-url)
that still use the deprecated built-in punycode module.

Fixes #7551
@ksylvan
Copy link

ksylvan commented Feb 4, 2026

Yes, please add this. Merged this into my local hackable install and it works.

@steipete
Copy link
Contributor

Closing as AI-assisted stale-fix triage.

Linked issue #7551 ("Punycode deprecation warning from transitive dependencies (tr46, whatwg-url)") is currently closed and was closed on 2026-02-22T19:14:20Z with state reason completed.
Given that issue is closed, this fix PR is no longer needed in the active queue and is being closed as stale.

If this specific implementation is still needed on current main, please reopen #7617 (or open a new focused fix PR) and reference #7551 for fast re-triage.

@steipete steipete closed this Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Punycode deprecation warning from transitive dependencies (tr46, whatwg-url)

3 participants