Update AzureFunctionApp task for Node.js 24 support and dependency upgrades #21741
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.
Context
This PR upgrades the AzureFunctionApp task to support Node.js 24 runtime
Associated WI:https://dev.azure.com/mseng/AzureDevOps/_workitems/edit/2347905/
Task Name
AzureFunctionApp V1 & V2
Description
This PR includes below changes:
Node.js 24 Runtime Support: Added Node24 execution handler to task.json and task.loc.json
Dependency updates:
@types/node: ^20.3.1 → ^24.10.0
azure-pipelines-task-lib: ^4.11.0 → ^5.2.4
azure-devops-node-api: 11.2.0 → ^15.1.3
typescript: 5.1.6 → ^5.7.2
Risk Assessment (Low / Medium / High)
low
Reasoning:
The risk is mitigated by:
Change Behind Feature Flag (Yes / No)
No
This change cannot be behind a feature flag because the Node24 handler is additive and can't be covered with a feature flag
Tech Design / Approach
No
Documentation Changes Required (Yes/No)
No
No
Additional Testing Performed
Logging Added/Updated (Yes/No)
No
Telemetry Added/Updated (Yes/No)
No
Rollback Scenario and Process (Yes/No)
Yes
Rollback Plan:
Revert commits on this branch
Deploy a task fix
or
Mitigation:
Override a task version
Dependency Impact Assessed and Regression Tested (Yes/No)
Yes
Impact Assessment:
✅ @types/node v24.10.4 provides accurate type definitions for Node.js 24
✅ typescript v5.7.2 is the latest stable version with Node.js 24 support
Checklist