Skip to content

Commit eaa6570

Browse files
authored
feat: replace Node.js 18 with Node.js 20 (#1920)
* feat: replace Node.js 18 with Node.js 20 * fix: close connection to fix keep-alive behavior in node.js 20 * Bump hardhat * Bump node * fix: update docs links docs.api3.org -> airnode-docs.api3.org
1 parent c43d981 commit eaa6570

46 files changed

Lines changed: 222 additions & 219 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/tough-sloths-hammer.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@api3/airnode-utilities': minor
3+
'@api3/airnode-deployer': minor
4+
'@api3/airnode-examples': minor
5+
'@api3/airnode-admin': minor
6+
'@api3/airnode-node': minor
7+
---
8+
9+
Replace Node.js 18 with Node.js 20

.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: '18.19.1'
12+
TARGET_NODE_VERSION: '20.17.0'
1313

1414
jobs:
1515
documentation:

.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: '18.19.1'
14+
TARGET_NODE_VERSION: '20.17.0'
1515

1616
jobs:
1717
pre-build:

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ Airnode is a fully-serverless oracle node that is designed specifically for API
99

1010
## Documentation
1111

12-
You can find an overview of Airnode in the [documentation](https://docs.api3.org/explore/airnode/what-is-airnode.html).
12+
You can find an overview of Airnode in the
13+
[documentation](https://airnode-docs.api3.org/reference/airnode/latest/understand/).
1314

1415
## For developers
1516

@@ -19,11 +20,11 @@ This is a monorepo managed by [Lerna](https://github.com/lerna/lerna).
1920

2021
[**airnode-abi**:](https://github.com/api3dao/airnode/tree/master/packages/airnode-abi) Encoding and decoding utilities
2122
for Airnode according to the
22-
[Airnode ABI specifications](https://docs.api3.org/reference/airnode/latest/specifications/airnode-abi.html)
23+
[Airnode ABI specifications](https://airnode-docs.api3.org/reference/airnode/latest/specifications/airnode-abi.html)
2324

2425
[**airnode-adapter**:](https://github.com/api3dao/airnode/tree/master/packages/airnode-adapter) Used for building
25-
requests from an [Oracle Integration Specification (OIS)](https://docs.api3.org/reference/ois/latest/), executing them,
26-
parsing the responses, but also converting and encoding them for on chain purposes
26+
requests from an [Oracle Integration Specification (OIS)](https://airnode-docs.api3.org/reference/ois/latest/),
27+
executing them, parsing the responses, but also converting and encoding them for on chain purposes
2728

2829
[**airnode-admin**:](https://github.com/api3dao/airnode/tree/master/packages/airnode-admin) A package/CLI tool to
2930
interact with the Airnode contracts across chains

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18.19.1-alpine3.19 AS environment
1+
FROM node:20.17.0-alpine3.20 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": "^18.19.1"
7+
"node": "^20.17.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": "^18.19.31",
113+
"@types/node": "^20.17.0",
114114
"@typescript-eslint/eslint-plugin": "^7.8.0",
115115
"@typescript-eslint/parser": "^7.8.0",
116116
"@vercel/ncc": "^0.38.1",

packages/airnode-abi/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# `@api3/airnode-abi`
22

33
> Encoding and decoding utilities for Airnode according to the
4-
> [Airnode ABI specifications](https://docs.api3.org/reference/airnode/latest/specifications/airnode-abi.html)
4+
> [Airnode ABI specifications](https://airnode-docs.api3.org/reference/airnode/latest/specifications/airnode-abi.html)
55
66
## Documentation
77

@@ -11,5 +11,5 @@ then grouped and encoded as the rest of the body.
1111

1212
For more information see the API3 Documentation.
1313

14-
- [Airnode ABI Reference](https://docs.api3.org/reference/airnode/latest/packages/airnode-abi.html)
15-
- [Airnode ABI Specifications](https://docs.api3.org/reference/airnode/latest/specifications/airnode-abi.html)
14+
- [Airnode ABI Reference](https://airnode-docs.api3.org/reference/airnode/latest/packages/airnode-abi.html)
15+
- [Airnode ABI Specifications](https://airnode-docs.api3.org/reference/airnode/latest/specifications/airnode-abi.html)

packages/airnode-adapter/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# `@api3/airnode-adapter`
22

33
> Used for building requests from an
4-
> [Oracle Integration Specification (OIS)](https://docs.api3.org/reference/ois/latest/), executing them, parsing the
5-
> responses, but also converting and encoding them for on chain purposes
4+
> [Oracle Integration Specification (OIS)](https://airnode-docs.api3.org/reference/ois/latest/), executing them, parsing
5+
> the responses, but also converting and encoding them for on chain purposes
66
77
## Documentation
88

99
The adapter documentation describing relevant user facing parts can be found in
10-
[adapter docs](https://docs.api3.org/reference/airnode/latest/packages/adapter.html).
10+
[adapter docs](https://airnode-docs.api3.org/reference/airnode/latest/packages/adapter.html).

packages/airnode-adapter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@types/mocha": "^10.0.6",
3535
"chai": "^4.4.1",
3636
"ethereum-waffle": "^4.0.10",
37-
"hardhat": "^2.14.1",
37+
"hardhat": "^2.22.18",
3838
"jest": "^29.7.0",
3939
"rimraf": "^5.0.5",
4040
"ts-jest": "^29.1.2",

packages/airnode-admin/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
## Documentation
66

77
You can find documentation on how to use the admin CLI package in the
8-
[admin CLI docs](https://docs.api3.org/reference/airnode/latest/packages/admin-cli.html).
8+
[admin CLI docs](https://airnode-docs.api3.org/reference/airnode/latest/packages/admin-cli.html).
99

1010
## For developers
1111

0 commit comments

Comments
 (0)