`Azure/ms-rest-js` -> `node-fetch@v2` dependency triggers "DeprecationWarning: The `punycode` module is deprecated"
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5.9k
- Forks
- 1.8k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
- Using
@actions/cache@4.0.3triggers https://github.com/Azure/ms-rest-js/issues/491 as reported in https://github.com/actions/setup-node/issues/1364
To Reproduce
Steps to reproduce the behavior:
- Go to https://github.com/check-spelling-sandbox/excalidraw-libraries/actions/runs/18911114509/job/53981832602?pr=2
- Expand
Post Setup Node.js 24.x - See error:
(node:2110) [DEP0040] DeprecationWarning: The
punycodemodule is deprecated. Please use a userland alternative instead.
Expected behavior
no instance of:
(node:2110) [DEP0040] DeprecationWarning: The
punycodemodule is deprecated. Please use a userland alternative instead.
Screenshots
Post job cleanup.
(node:2110) [DEP0040] DeprecationWarning: Thepunycodemodule is deprecated. Please use a userland alternative instead.
(Usenode --trace-deprecation ...to show where the warning was created)
Desktop (please complete the following information):
- OS: Ubuntu 24.04.3 LTS
Additional context
- https://github.com/actions/setup-node/issues/1364
- The Azure/ms-rest-js repository has been abandoned and probably should not be used.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the linked GitHub Actions run and inspecting @actions/cache@4.0.3's dependency chain through Azure/ms-rest-js and node-fetch@v2. Confirm which package emits DEP0040 under Node.js 24. Done means the cleanup run no longer emits the punycode deprecation warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- devops, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100