Skip to content

Commit cec4863

Browse files
chore(build): update to nodejs 22 (redhat-developer#2439)
* chore(docker): update to nodejs 22 rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED * update .nvmrc and dockerfile comments rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED * update nodejs-22 to latest tags rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED * update PR workflows to use node 22 rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED * update @types/nodes version rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED * update @types/node to 22.13.5 through yarn cli rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
1 parent cd0a3b5 commit cec4863

File tree

7 files changed

+38
-22
lines changed

7 files changed

+38
-22
lines changed

.github/workflows/pr.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
runs-on: ubuntu-latest
3232
strategy:
3333
matrix:
34-
node-version: [20]
34+
node-version: [20, 22]
3535
steps:
3636
- name: Checkout
3737
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
@@ -63,7 +63,7 @@ jobs:
6363
runs-on: ubuntu-latest
6464
strategy:
6565
matrix:
66-
node-version: [20]
66+
node-version: [20, 22]
6767
steps:
6868
- name: Checkout
6969
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.18.3
1+
22.14.0

.rhdh/docker/Dockerfile

+6-6
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
# 4. add Brew metadata
2222

2323
# Stage 1 - Build nodejs skeleton
24-
#@follow_tag(registry.access.redhat.com/ubi9/nodejs-20:1)
25-
# https://registry.access.redhat.com/ubi9/nodejs-20
26-
FROM registry.access.redhat.com/ubi9/nodejs-20:9.5-1741006255 AS build
24+
#@follow_tag(registry.access.redhat.com/ubi9/nodejs-22:1)
25+
# https://registry.access.redhat.com/ubi9/nodejs-222
26+
FROM registry.access.redhat.com/ubi9/nodejs-22:9.5-1740412185 AS build
2727
# hadolint ignore=DL3002
2828
USER 0
2929

@@ -264,9 +264,9 @@ RUN "$YARN" workspaces focus --all --production && \
264264
npm config set cafile /opt/app-root/src/registry-ca.pem
265265

266266
# Stage 5 - Build the runner image
267-
#@follow_tag(registry.access.redhat.com/ubi9/nodejs-20-minimal:1)
268-
# https://registry.access.redhat.com/ubi9/nodejs-20-minimal
269-
FROM registry.access.redhat.com/ubi9/nodejs-20-minimal:9.5-1739448741 AS runner
267+
#@follow_tag(registry.access.redhat.com/ubi9/nodejs-22-minimal:1)
268+
# https://registry.access.redhat.com/ubi9/nodejs-22-minimal
269+
FROM registry.access.redhat.com/ubi9/nodejs-22-minimal:9.5-1740651938 AS runner
270270
USER 0
271271

272272
# Downstream sources

docker/Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
# 4. add Brew metadata
2424

2525
# Stage 1 - Build nodejs skeleton
26-
# https://registry.access.redhat.com/ubi9/nodejs-20
27-
FROM registry.access.redhat.com/ubi9/nodejs-20:9.5-1741006255 AS skeleton
26+
# https://registry.access.redhat.com/ubi9/nodejs-22
27+
FROM registry.access.redhat.com/ubi9/nodejs-22:9.5-1740412185 AS skeleton
2828
# hadolint ignore=DL3002
2929
USER 0
3030

@@ -204,8 +204,8 @@ RUN "$YARN" workspaces focus --all --production && \
204204
npm config set cafile /opt/app-root/src/registry-ca.pem
205205

206206
# Stage 5 - Build the runner image
207-
# https://registry.access.redhat.com/ubi9/nodejs-20-minimal
208-
FROM registry.access.redhat.com/ubi9/nodejs-20-minimal:9.5-1739448741 AS runner
207+
# https://registry.access.redhat.com/ubi9/nodejs-22-minimal
208+
FROM registry.access.redhat.com/ubi9/nodejs-22-minimal:9.5-1740651938 AS runner
209209
USER 0
210210

211211
# Upstream only

e2e-tests/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"devDependencies": {
3030
"@playwright/test": "1.50.1",
31-
"@types/node": "20.17.19",
31+
"@types/node": "22.13.5",
3232
"@typescript-eslint/eslint-plugin": "6.21.0",
3333
"@typescript-eslint/parser": "6.21.0",
3434
"eslint": "8.57.1",

packages/app/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"@testing-library/react": "14.3.1",
6666
"@testing-library/react-hooks": "8.0.1",
6767
"@testing-library/user-event": "14.6.1",
68-
"@types/node": "20.17.19",
68+
"@types/node": "22.13.5",
6969
"@types/react": "18.3.18",
7070
"@types/react-dom": "18.3.5",
7171
"prettier": "3.5.2"

yarn.lock

+23-7
Original file line numberDiff line numberDiff line change
@@ -20352,12 +20352,12 @@ __metadata:
2035220352
languageName: node
2035320353
linkType: hard
2035420354

20355-
"@types/node@npm:20.17.19, @types/node@npm:^20.1.1":
20356-
version: 20.17.19
20357-
resolution: "@types/node@npm:20.17.19"
20355+
"@types/node@npm:22.13.5":
20356+
version: 22.13.5
20357+
resolution: "@types/node@npm:22.13.5"
2035820358
dependencies:
20359-
undici-types: ~6.19.2
20360-
checksum: 4eb29628e293d47494c1fe8eaacbaf9f1317cc2ada176a74753d0ea6e3ff6cb5f3e97ba3baa1435d9934950f0fec5693272f2805387f2e70c119038ee7608c20
20359+
undici-types: ~6.20.0
20360+
checksum: 8789d9bc3efd212819fd03f7bbd429901b076703e9852ccf4950c8c7cd300d5d5a05f273d0936cbaf28194485d2bd0c265a1a25390720e353a53359526c28fb3
2036120361
languageName: node
2036220362
linkType: hard
2036320363

@@ -20384,6 +20384,15 @@ __metadata:
2038420384
languageName: node
2038520385
linkType: hard
2038620386

20387+
"@types/node@npm:^20.1.1":
20388+
version: 20.17.19
20389+
resolution: "@types/node@npm:20.17.19"
20390+
dependencies:
20391+
undici-types: ~6.19.2
20392+
checksum: 4eb29628e293d47494c1fe8eaacbaf9f1317cc2ada176a74753d0ea6e3ff6cb5f3e97ba3baa1435d9934950f0fec5693272f2805387f2e70c119038ee7608c20
20393+
languageName: node
20394+
linkType: hard
20395+
2038720396
"@types/oauth@npm:*":
2038820397
version: 0.9.4
2038920398
resolution: "@types/oauth@npm:0.9.4"
@@ -21945,7 +21954,7 @@ __metadata:
2194521954
"@testing-library/react": 14.3.1
2194621955
"@testing-library/react-hooks": 8.0.1
2194721956
"@testing-library/user-event": 14.6.1
21948-
"@types/node": 20.17.19
21957+
"@types/node": 22.13.5
2194921958
"@types/react": 18.3.18
2195021959
"@types/react-dom": 18.3.5
2195121960
lodash: 4.17.21
@@ -27065,7 +27074,7 @@ __metadata:
2706527074
"@kubernetes/client-node": 0.22.3
2706627075
"@microsoft/microsoft-graph-client": 3.0.7
2706727076
"@playwright/test": 1.50.1
27068-
"@types/node": 20.17.19
27077+
"@types/node": 22.13.5
2706927078
"@typescript-eslint/eslint-plugin": 6.21.0
2707027079
"@typescript-eslint/parser": 6.21.0
2707127080
eslint: 8.57.1
@@ -44722,6 +44731,13 @@ __metadata:
4472244731
languageName: node
4472344732
linkType: hard
4472444733

44734+
"undici-types@npm:~6.20.0":
44735+
version: 6.20.0
44736+
resolution: "undici-types@npm:6.20.0"
44737+
checksum: b7bc50f012dc6afbcce56c9fd62d7e86b20a62ff21f12b7b5cbf1973b9578d90f22a9c7fe50e638e96905d33893bf2f9f16d98929c4673c2480de05c6c96ea8b
44738+
languageName: node
44739+
linkType: hard
44740+
4472544741
"undici@npm:6.21.1":
4472644742
version: 6.21.1
4472744743
resolution: "undici@npm:6.21.1"

0 commit comments

Comments
 (0)