Skip to content

Commit 5a74893

Browse files
Copilotdcroote
andauthored
Upgrade Node.js from 20 to 22 (#2040)
* Initial plan * Upgrade Node.js from version 20 to version 22 * Replace 'as unknown' with @ts-expect-error for type safety * Update Node.js version from 22.12.0 to 22.18.0 * Fix type incompatibility without using @ts-expect-error or as unknown * Fix failing airnode-deployer test * Bump node version in protocol-verify CI workflow --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Derek Croote <dcroote@users.noreply.github.com>
1 parent 42534e3 commit 5a74893

20 files changed

Lines changed: 145 additions & 177 deletions

File tree

.changeset/upgrade-nodejs-22.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
"@api3/airnode-admin": minor
3+
"@api3/airnode-deployer": minor
4+
"@api3/airnode-node": minor
5+
"@api3/airnode-adapter": minor
6+
"@api3/airnode-utilities": minor
7+
"@api3/airnode-validator": minor
8+
"@api3/airnode-abi": minor
9+
"@api3/airnode-protocol": minor
10+
"@api3/airnode-operation": minor
11+
"@api3/airnode-examples": minor
12+
---
13+
14+
Upgrade Node.js from version 20 to version 22

.github/workflows/build-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
env:
1111
DOCKER_BUILDKIT: 1
12-
TARGET_NODE_VERSION: '20.17.0'
12+
TARGET_NODE_VERSION: '22.18.0'
1313

1414
jobs:
1515
documentation:

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ on:
1515
push:
1616
branches:
1717
- master
18-
types: [opened, synchronize, reopened]
1918
pull_request:
2019
# The branches below must be a subset of the branches above
2120
branches:

.github/workflows/protocol-verify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
env:
1313
DOCKER_BUILDKIT: 1
14-
TARGET_NODE_VERSION: '20.17.0'
14+
TARGET_NODE_VERSION: '22.18.0'
1515

1616
jobs:
1717
pre-build:

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20.17.0-alpine3.20 AS environment
1+
FROM node:22.18.0-alpine3.21 AS environment
22

33
ENV appDir="/app" \
44
buildDir="/build" \

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "0.1.0",
55
"private": true,
66
"engines": {
7-
"node": "^20.17.0"
7+
"node": "^22.18.0"
88
},
99
"repository": {
1010
"type": "git",
@@ -110,7 +110,7 @@
110110
"@changesets/cli": "^2.27.1",
111111
"@octokit/core": "^5.2.0",
112112
"@types/libsodium-wrappers": "^0.7.14",
113-
"@types/node": "^20.17.0",
113+
"@types/node": "^22.10.0",
114114
"@typescript-eslint/eslint-plugin": "^7.8.0",
115115
"@typescript-eslint/parser": "^7.8.0",
116116
"@vercel/ncc": "^0.38.1",

packages/airnode-admin/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20.17.0-alpine3.20
1+
FROM node:22.18.0-alpine3.21
22

33
ARG npmRegistryUrl=https://registry.npmjs.org/
44
ARG npmTag=latest

packages/airnode-admin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
},
3636
"devDependencies": {
3737
"@types/lodash": "^4.17.0",
38-
"@types/node": "^20.17.0",
38+
"@types/node": "^22.10.0",
3939
"@types/yargs": "^17.0.32",
4040
"jest": "^29.7.0",
4141
"rimraf": "^6.0.1",

packages/airnode-deployer/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20.17.0-alpine3.20
1+
FROM node:22.18.0-alpine3.21
22

33
ARG npmRegistryUrl=https://registry.npmjs.org/
44
ARG npmTag=latest

packages/airnode-deployer/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@
4747
},
4848
"devDependencies": {
4949
"@aws-sdk/util-stream-node": "^3.374.0",
50-
"@google-cloud/functions-framework": "^3.4.0",
50+
"@google-cloud/functions-framework": "^4.0.0",
5151
"@types/adm-zip": "^0.5.7",
5252
"@types/aws-lambda": "^8.10.137",
5353
"@types/lodash": "^4.17.0",
54-
"@types/node": "^20.17.0",
54+
"@types/node": "^22.10.0",
5555
"@types/yargs": "^17.0.32",
5656
"aws-sdk-client-mock": "^4.0.0",
5757
"aws-sdk-client-mock-jest": "^4.0.0",

0 commit comments

Comments
 (0)