Skip to content

Commit e5bdb2a

Browse files
authored
Add Node.js 24, drop 18 (#464)
Needs pulumi/get.pulumi.com#195
1 parent 53b1b46 commit e5bdb2a

File tree

11 files changed

+16
-11
lines changed

11 files changed

+16
-11
lines changed

.github/scripts/matrix/versions.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
# The additional versions are used for the suffixed images `pulumi-python-3.10`, `pulumi-python-3.11`, ...
88
versioned = {
99
"nodejs": {
10-
"default": "22",
11-
"additional": ["18", "20", "23"]
10+
"default": "24",
11+
"additional": ["20", "22", "23"]
1212
},
1313
"python": {
1414
"default": "3.12",

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## Unreleased
44

5+
- Support Node.js 24
6+
([#464](https://github.com/pulumi/pulumi-docker-containers/pull/464))
7+
8+
## 3.167.0
9+
510
- Update corepack
611
([#391](https://github.com/pulumi/pulumi-docker-containers/pull/391))
712
- Drop .NET 6.0 container

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Images without a version suffix use the following language versions by default:
4141
- .NET 8.0
4242
- Go 1.24
4343
- JDK 21
44-
- Node.js 22
44+
- Node.js 24
4545
- Python 3.12
4646

4747
### Version Policy

docker/pulumi/Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,11 @@ RUN curl -fsSL https://fnm.vercel.app/install | bash -s -- --install-dir "/usr/l
155155
ENV FNM_COREPACK_ENABLED="true"
156156
ENV FNM_VERSION_FILE_STRATEGY="recursive"
157157
ENV FNM_DIR=/usr/local/share/fnm
158-
RUN fnm install 18 && \
159-
fnm install 20 && \
158+
RUN fnm install 20 && \
160159
fnm install 22 && \
161160
fnm install 23 && \
162-
fnm alias 22 default
161+
fnm install 24 && \
162+
fnm alias 24 default
163163
ENV PATH=/usr/local/share/fnm/aliases/default/bin:$PATH
164164
RUN npm install -g corepack && \
165165
corepack install -g pnpm yarn

tests/testdata/node-18/.node-version

-1
This file was deleted.

tests/testdata/node-24/.node-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
24

tests/testdata/node-18/index.ts renamed to tests/testdata/node-24/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ const version = semver.parse(process.version, {
55
loose: true
66
});
77

8-
if (version?.major != 18) {
9-
throw new Error(`Expected node version 18.x.x, got ${process.version}`);
8+
if (version?.major != 24) {
9+
throw new Error(`Expected node version 24.x.x, got ${process.version}`);
1010
}

tests/testdata/node-default/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ const version = semver.parse(process.version, {
55
loose: true
66
});
77

8-
if (version?.major != 22) {
9-
throw new Error(`Expected node version 22.x.x, got ${process.version}`);
8+
if (version?.major != 24) {
9+
throw new Error(`Expected node version 24.x.x, got ${process.version}`);
1010
}

0 commit comments

Comments
 (0)