Skip to content

Upgrade Node version to 24 for AzureSpringCloudV0#21971

Open
dingmeng-xue wants to merge 9 commits intomasterfrom
users/dixue/node24
Open

Upgrade Node version to 24 for AzureSpringCloudV0#21971
dingmeng-xue wants to merge 9 commits intomasterfrom
users/dixue/node24

Conversation

@dingmeng-xue
Copy link
Copy Markdown
Contributor

@dingmeng-xue dingmeng-xue commented Apr 8, 2026

This pull request updates the Azure Spring Cloud V0 task to improve compatibility with newer Node.js versions and modernizes the development dependencies. It also refactors all test files to use asynchronous test execution patterns, ensuring better handling of asynchronous operations and errors.

Node.js compatibility and configuration updates:

  • Added support for Node.js 24 by updating the Node handler section in both task.json and task.loc.json, and incremented the patch version to 0.273.1. [1] [2] [3] [4]
  • Updated dependencies in package.json to use newer versions of @types/node, azure-pipelines-task-lib, and typescript, and removed unused XML-related dependencies.

Test refactoring for async/await:

  • Refactored all test files in Tasks/AzureSpringCloudV0/Tests/ to use runAsync().then().catch() instead of synchronous try/catch blocks, improving asynchronous test handling and error reporting. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]This pull request updates the AzureSpringCloudV0 task to support Node.js 24, updates several dependencies, and makes minor maintenance changes. The most important updates are grouped below.

Node.js 24 Support:

  • Added Node24 as a supported runtime in both task.json and task.loc.json, enabling the task to run on Node.js 24. [1] [2]

Dependency Updates:

  • Updated @types/node to ^24.10.0, azure-pipelines-task-lib to ^5.2.4, and typescript to ^5.7.2 in package.json to ensure compatibility with newer Node.js versions.
  • Removed unused dependencies @xmldom/xmldom and xml2js from package.json to clean up the dependency tree.

Task and Build Metadata:

  • Bumped the patch version from 0.273.0 to 0.273.1 in both task.json and task.loc.json. [1] [2]
  • Simplified tsconfig.json by removing unnecessary options in compilerOptions and adjusting the exclude field.

Context
Describe the context or motivation for this PR. Include links to any related Azure DevOps Work Items or GitHub issues.
📌 How to link to ADO Work Items


Task Name

AzureSpringCloudV0


Description

Upgrade Node version to 24


Risk Assessment (Low / Medium / High)

Low


Change Behind Feature Flag (Yes / No)

No


Tech Design / Approach

Bump version only


Documentation Changes Required (Yes/No)

No


Unit Tests Added or Updated (Yes / No)

No

Additional Testing Performed

No

Logging Added/Updated (Yes/No)

No


Telemetry Added/Updated (Yes/No)

No


Rollback Scenario and Process (Yes/No)

No

Dependency Impact Assessed and Regression Tested (Yes/No)

No


Checklist

  • Related issue linked (if applicable)
  • Task version was bumped — see versioning guide
  • Verified the task behaves as expected

@dingmeng-xue dingmeng-xue requested a review from a team as a code owner April 8, 2026 07:15
@dingmeng-xue
Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@dingmeng-xue
Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines:
Successfully started running 3 pipeline(s).

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines:
Successfully started running 3 pipeline(s).

Copy link
Copy Markdown
Member

@haochenghuang haochenghuang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines:
Successfully started running 3 pipeline(s).

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines:
Successfully started running 3 pipeline(s).

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines:
Successfully started running 3 pipeline(s).

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.

2 participants