meta: bump required Node.js version to v18.19.0

ref: https://github.com/sindresorhus/execa/releases/tag/v9.0.0
This commit is contained in:
naskya 2024-05-23 20:49:46 +09:00
parent cee4de66ed
commit 7e40424b89
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C
5 changed files with 10 additions and 4 deletions

View file

@ -2,7 +2,7 @@ version: "3"
services: services:
web: web:
image: docker.io/node:18.17.0-bookworm image: docker.io/node:18.19.0-bookworm
container_name: firefish_web container_name: firefish_web
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:

View file

@ -15,7 +15,7 @@ sudo apt install build-essential python3 curl wget git lsb-release
### Node.js ### Node.js
Firefish requires Node.js v18.17.0 or later. While you can choose any versions between v18.17.0 and the latest version (v21.6.2 as of writing), we recommend that you install v18.x so as not to use new features inadvertently and introduce incompatibility issues. Firefish requires Node.js v18.19.0 or later. While you can choose any versions between v18.19.0 and the latest version (v22.2.0 as of writing), we recommend that you install v18.x so as not to use new features inadvertently and introduce incompatibility issues.
Instructions can be found at [this repository](https://github.com/nodesource/distributions). Instructions can be found at [this repository](https://github.com/nodesource/distributions).

View file

@ -4,7 +4,7 @@ Firefish depends on the following software.
## Runtime dependencies ## Runtime dependencies
- At least [NodeJS](https://nodejs.org/en/) v18.17.0 (v20/v21 recommended) - At least [NodeJS](https://nodejs.org/en/) v18.19.0 (v20/v21 recommended)
- At least [PostgreSQL](https://www.postgresql.org/) v12 (v16 recommended) with [PGroonga](https://pgroonga.github.io/) extension - At least [PostgreSQL](https://www.postgresql.org/) v12 (v16 recommended) with [PGroonga](https://pgroonga.github.io/) extension
- At least [Redis](https://redis.io/) v7 - At least [Redis](https://redis.io/) v7
- Web Proxy (one of the following) - Web Proxy (one of the following)

View file

@ -2,6 +2,12 @@
You can skip intermediate versions when upgrading from an old version, but please read the notices and follow the instructions for each intermediate version before [upgrading](./upgrade.md). You can skip intermediate versions when upgrading from an old version, but please read the notices and follow the instructions for each intermediate version before [upgrading](./upgrade.md).
## Unreleased
### For systemd/pm2 users
Required Node.js version has been bumped from v18.17.0 to v18.19.0. Also, as written in the [v20240430 note](https://firefish.dev/firefish/firefish/-/blob/d3394b97f021dea323ec3ae36e39930680242482/docs/notice-for-admins.md#v20240430), it is highly recommended that you use an even newer version since v18.19.0 has known vulnerabilities.
## v20240523 ## v20240523
### For all users ### For all users

View file

@ -79,7 +79,7 @@ function showNodejsVersion(): void {
nodejsLogger.info(`Version ${process.version} detected.`); nodejsLogger.info(`Version ${process.version} detected.`);
const minVersion = "v18.17.0"; const minVersion = "v18.19.0";
if (semver.lt(process.version, minVersion)) { if (semver.lt(process.version, minVersion)) {
nodejsLogger.error(`At least Node.js ${minVersion} required!`); nodejsLogger.error(`At least Node.js ${minVersion} required!`);
process.exit(1); process.exit(1);