Skip to content

Commit e6a6221

Browse files
Merge pull request #2009 from microsoftgraph/ramsessanchez-nodejs-version-support
Require Node.js 22 and update CI to 22, 24, and 26
2 parents be51dad + 4075d5e commit e6a6221

17 files changed

Lines changed: 1259 additions & 1009 deletions

‎.azure-pipelines/ci-build-production.yml‎

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,18 @@ stages:
2020
vmImage: windows-latest
2121
strategy:
2222
matrix:
23-
Node 14:
24-
NODE_VERSION: '14.x'
25-
Node 16:
26-
NODE_VERSION: '16.x'
27-
Node 18:
28-
NODE_VERSION: '18.x'
29-
Node 20:
30-
NODE_VERSION: '20.x'
23+
Node 22:
24+
NODE_VERSION: '22.x'
25+
Node 24:
26+
NODE_VERSION: '24.x'
27+
Node 26:
28+
NODE_VERSION: '26.x'
3129
maxParallel: 2
3230
steps:
3331
- template: ./common-templates/security-pre-checks.yml
34-
- task: NodeTool@0
32+
- task: UseNode@1
3533
inputs:
36-
versionSpec: $(NODE_VERSION)
34+
version: $(NODE_VERSION)
3735
displayName: 'Install Node.js'
3836

3937
- script: npm ci
@@ -61,9 +59,9 @@ stages:
6159
pool:
6260
vmImage: ubuntu-latest
6361
steps:
64-
- task: NodeTool@0
62+
- task: UseNode@1
6563
inputs:
66-
versionSpec: '16.x'
64+
version: '22.x'
6765
displayName: 'Install Node.js'
6866

6967
- script: |

‎.github/workflows/ci_validation.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [16.x, 18.x, 20.x]
15+
node-version: [22.x, 24.x, 26.x]
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v6
1818
- name: Use Node.js ${{ matrix.node-version }}
19-
uses: actions/setup-node@v4
19+
uses: actions/setup-node@v6
2020
with:
2121
node-version: ${{ matrix.node-version }}
2222
- name: Install dependencies
2323
run: npm ci
2424

25-
- name: Build for node 16, 18 & 20
25+
- name: Build for Node.js ${{ matrix.node-version }}
2626
run: npm run build
2727

2828
- name: Run unit tests

‎.github/workflows/codeql-analysis.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ jobs:
3838

3939
steps:
4040
- name: Checkout repository
41-
uses: actions/checkout@v4
41+
uses: actions/checkout@v6
4242

4343
# Initializes the CodeQL tools for scanning.
4444
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v3
45+
uses: github/codeql-action/init@v4
4646
with:
4747
languages: ${{ matrix.language }}
4848
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -53,7 +53,7 @@ jobs:
5353
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5454
# If this step fails, then you should remove it and run the build manually (see below)
5555
- name: Autobuild
56-
uses: github/codeql-action/autobuild@v3
56+
uses: github/codeql-action/autobuild@v4
5757

5858
# ℹ️ Command-line programs to run using the OS shell.
5959
# 📚 https://git.io/JvXDl
@@ -67,4 +67,4 @@ jobs:
6767
# make release
6868

6969
- name: Perform CodeQL Analysis
70-
uses: github/codeql-action/analyze@v3
70+
uses: github/codeql-action/analyze@v4

‎.github/workflows/project-auto-add.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
steps:
1919
- name: Generate token
2020
id: generate_token
21-
uses: actions/create-github-app-token@v2
21+
uses: actions/create-github-app-token@v3
2222
with:
2323
app-id: ${{ secrets.GRAPHBOT_APP_ID }}
2424
private-key: ${{ secrets.GRAPHBOT_APP_PEM }}

‎.travis.yml‎

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
language: node_js
22
node_js:
3-
- "node"
4-
- "lts/*"
5-
- "10.15.1"
6-
- "10.0.0"
7-
- "9.11.2"
8-
- "9.0.0"
9-
- "8.15.0"
10-
- "8.0.0"
11-
- "7.10.1"
12-
- "7.0.0"
13-
- "6.16.0"
14-
- "6.0.0"
3+
- "22"
4+
- "24"
5+
- "26"

‎CHANGELOG.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Bug Fixes
6565

6666
## 0.3.1
6767

68-
- Support for Node.js versions 4 and 5
68+
- Expanded Node.js runtime support.
6969

7070
## 0.3.0
7171

‎CONTRIBUTING.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ To make the contribution process as seamless as possible, follow these steps.
106106

107107
You navigate to the repository on your computer by using File Explorer. The repository files are in `C:\Users\<yourusername>\<repo name>`.
108108

109+
Use Node.js 22 or higher for development. CI builds and tests run on Node.js 22, 24, and 26, and production release artifacts are built using Node.js 22.
110+
109111
To install dependencies that are necessary for development run,
110112

111113
```cmd

‎README.md‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ The Microsoft Graph JavaScript client library is a lightweight wrapper around th
5959

6060
## Node version requirement
6161

62-
Node.js 12 LTS or higher. The active Long Term Service (LTS) version of Node.js is used for on-going testing of existing and upcoming product features.
63-
64-
For Node.js 18 users, it is recommended to disable the experimental `fetch` feature by supplying the `--no-experimental-fetch` command-line flag while using the Microsoft Graph JavaScript client library.
62+
Node.js 22 or higher is required. Builds and tests run on Node.js 22, 24, and 26. Production release artifacts are built using Node.js 22.
6563

6664
## Installation
6765

‎changelogs/v3-upgrade-guide.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
### Supported Node version and TypeScript update
1010

11-
- Microsoft Graph JS SDK requires Node.js 12 LTS or higher. The active Long Term Service (LTS) version of Node.js is used for on-going testing of existing and upcoming product features.
11+
- For current runtime requirements, see [Node version requirement](../README.md#node-version-requirement).
1212
- Updated to TypeScript 4.x.
1313

1414
### Removing `ImplicitMSALAuthenticationProvider` and `MSALAuthenticationProviderOptions` class.

‎design/kiota-e2e.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Before we jump into the end-to-end walk-through, it's important to set some cons
1515

1616
| Type | Environment | Description |
1717
| --------- | ----------- | ------------------------------------------------------------------------------------------------- |
18-
| Platforms | Node | Current and Previous LTS (14 / 16) |
18+
| Platforms | Node | Node.js 22 or higher; builds and tests run on 22, 24, and 26 |
1919
| Platforms | Web | Edge, Chrome, Firefox and Safari (Latest released version + immediate previous version) |
2020
| Modules | Node | ESM + CJS |
2121
| Modules | Web | ESM |

0 commit comments

Comments
 (0)