Update methods removed from Node24 to support Node24 migration #658
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.
🔐 Node 24 Support: Fix Deprecated Crypto APIs for Proxy Authentication
Summary
Updates
azure-devops-node-apito support Node.js 24 by replacing deprecated crypto APIs in the_readTaskLibSecrets()method. This is a breaking change that requiresazure-pipelines-task-libv5.2.4+ due to encryption format incompatibility.🎯 Changes Made
Replaced Deprecated
crypto.createDecipher()withcrypto.createDecipheriv()Tasks must update BOTH packages together:
{ "dependencies": { "azure-pipelines-task-lib": "^5.2.4", "azure-devops-node-api": "^15.2.0" } }✅ Testing
Task fails with Node24 upgrade without any changes in task-lib and node-api

Task works with updated versions of task-lib and node-api:
https://dev.azure.com/sanjuyadav0415/checkout/_build/results?buildId=5103&view=logs&j=12f1170f-54f2-53f3-20dd-22fc7dff55f9&t=8e89b867-42fb-5d71-0aab-590696aff14f