Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
- name: Checkout files
uses: actions/checkout@v6

- name: Install Node v18
- name: Install Node v22
uses: actions/setup-node@v6
with:
node-version: "18.14"
node-version: "22"

- name: Get yarn cache directory path
id: yarn-cache-dir-path
Expand All @@ -52,10 +52,10 @@ jobs:
- name: Checkout files
uses: actions/checkout@v6

- name: Install Node v18
- name: Install Node v22
uses: actions/setup-node@v6
with:
node-version: "18.14"
node-version: "22"

- name: Get yarn cache directory path
id: yarn-cache-dir-path
Expand Down Expand Up @@ -83,10 +83,10 @@ jobs:
- name: Checkout files
uses: actions/checkout@v6

- name: Install Node v18
- name: Install Node v22
uses: actions/setup-node@v6
with:
node-version: "18.14"
node-version: "22"

- name: Get yarn cache directory path
id: yarn-cache-dir-path
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:

strategy:
matrix:
node-version: [18.x]
node-version: [22.x]

steps:
- uses: actions/checkout@v6
Expand Down Expand Up @@ -151,7 +151,7 @@ jobs:
name: e2e
runs-on: ubuntu-latest
container:
image: node:18
image: node:22
strategy:
matrix:
include:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
- name: Checkout files
uses: actions/checkout@v6

- name: Install Node v18
- name: Install Node v22
uses: actions/setup-node@v6
with:
node-version: "18.14"
node-version: "22"

- name: Get yarn cache directory path
id: yarn-cache-dir-path
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docsv2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
- name: Checkout files
uses: actions/checkout@v6

- name: Install Node v18
- name: Install Node v22
uses: actions/setup-node@v6
with:
node-version: "18.14"
node-version: "22"

- name: Get yarn cache directory path
id: yarn-cache-dir-path
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18.15
v22
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker.io/library/node:18.12.1-alpine AS builder
FROM docker.io/library/node:22-alpine AS builder

WORKDIR /opt/builder

Expand All @@ -9,7 +9,7 @@ RUN yarn install --immutable && \

# ---------------------------------

FROM docker.io/library/node:18.12.1-alpine
FROM docker.io/library/node:22-alpine

# metadata
ARG VERSION=""
Expand Down
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Compatibility:
| v18.x.x | Stable |
| v19.x.x | stable |

### >= v16.0.0
### v16.0.0 — v20.14.0
This service requires Node versions 18.14 or higher.

Compatibility:
Expand All @@ -71,6 +71,15 @@ Compatibility:
| v20.x.x | Stable |
| v21.x.x | Pending |

### >= v20.15.0
This service requires Node versions 22 or higher. Earlier Node releases are no longer supported because dependencies (e.g. `lru-cache@11`) rely on `node:diagnostics_channel.tracingChannel`, which is only available in Node 20.2+ and is fully supported on Node 22 LTS.

Compatibility:
| Node Version | Stability |
|---------------|:-----------:|
| v22.x.x | Stable |
| v24.x.x | Stable |

NOTE: Node LTS (`long term support`) versions start with an even number, and odd number versions are subject to a 6 month testing period with active support before they are unsupported. It is recommended to use sidecar with a stable actively maintained version of node.js.

## Table of contents
Expand Down
2 changes: 1 addition & 1 deletion docs-v2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"webpack-dev-server": "^5.2.1"
},
"engines": {
"node": ">=14"
"node": ">=22"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"url": "git+https://github.com/paritytech/substrate-api-sidecar.git"
},
"engines": {
"node": ">=18.14"
"node": ">=22"
},
"bugs": {
"url": "https://github.com/paritytech/substrate-api-sidecar/issues"
Expand Down
Loading