fix(cache): replace @azure/ms-rest-js with @azure/core-rest-pipeline #2197
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Removes the abandoned
@azure/ms-rest-jsdependency from@actions/cacheto fix the punycode deprecation warning on Node.js 24+.Problem
Using
@actions/cachetriggers the following deprecation warning on Node.js 24:Root cause:
@azure/ms-rest-js→node-fetch@v2→whatwg-url→tr46→punycodeSolution
Replace
@azure/ms-rest-jswith@azure/core-rest-pipelinewhich:node-fetch@v2TransferProgressEventtype we needChanges
@azure/ms-rest-jswith@azure/core-rest-pipelineTesting
Related Issues
punycodemodule is deprecated setup-node#1364node-fetch@v2dependency triggers "DeprecationWarning: Thepunycodemodule is deprecated" Azure/ms-rest-js#491