Skip to content

Commit 8db5a2a

Browse files
Update Node feature to v2.0.0
- removes Node.js 18 - adds Node.js 24 and 25 - sets default Node.js to 24
1 parent 74f9ba7 commit 8db5a2a

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

src/node/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Install [Node.js](https://nodejs.org) from [Nodesource's DEB repository](https:/
1414

1515
| Option ID | Description | Type | Default Value |
1616
|:----------|:--------------------------------|:-------|:--------------|
17-
| `version` | The Node.js version to install. | string | `22` |
17+
| `version` | The Node.js version to install. | string | `24` |
1818

1919
## OS Support
2020

src/node/devcontainer-feature.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
{
22
"name": "Node.js",
33
"id": "node",
4-
"version": "1.1.0",
4+
"version": "2.0.0",
55
"description": "Install Node.js from Nodesource's DEB repository.",
66
"options": {
77
"version": {
88
"type": "string",
99
"enum": [
10-
"18",
1110
"20",
1211
"21",
1312
"22",
14-
"23"
13+
"23",
14+
"24",
15+
"25"
1516
],
16-
"default": "22",
17+
"default": "24",
1718
"description": "Select or enter a Node.js version."
1819
}
1920
},

src/node/install.sh

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

33
set -e
44

5-
NODE_VERSION="${VERSION:-"22"}"
5+
NODE_VERSION="${VERSION:-"24"}"
66

77
curl_installed=""
88

test/node/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set -e
77
source dev-container-features-test-lib
88

99
# Feature-specific tests
10-
check "version" node --version
10+
check "version" bash -c "node --version | grep -E 'v24\..+'"
1111
check "which node" bash -c "which node | grep /usr/bin/node"
1212

1313
# Report result

0 commit comments

Comments
 (0)