Drop support for Node.js 12

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2022-05-01 20:45:43 +02:00
parent 8449fb0e47
commit e222225866
5 changed files with 11 additions and 6 deletions

View file

@ -30,7 +30,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12, 14, 16]
node-version: [14, 16]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
@ -45,7 +45,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12, 14, 16]
node-version: [14, 16]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}

View file

@ -31,11 +31,11 @@ EOF
exit 1
fi
if version_lt "$(node --version)" 'v12.0.0'; then
if version_lt "$(node --version)" 'v14.13.1'; then
cat << EOF
FATAL: Your Node.js version is not supported.
Please upgrade to version 12 or higher and try again.
Please upgrade to version 14.13.1 or higher and try again.
We recommend running the latest LTS release, see https://nodejs.org/en/about/releases/ for details.
EOF
exit 1

View file

@ -1,7 +1,7 @@
# Manual Installation
!!! info "Requirements on your server"
- Node.js `>= 12.20.0`, `>= 14.13.1` or `>= 16`. We recommend you run HedgeDoc with the latest release of Node 16.
- Node.js `>= 14.13.1` or `>= 16`. We recommend you run HedgeDoc with the latest release of Node 16.
- Database (PostgreSQL, MySQL, MariaDB, SQLite)
The database must use charset `utf8`. This is typically the default in PostgreSQL and SQLite.
In MySQL and MariaDB UTF-8 might need to be set with `alter database <DBNAME> character set utf8 collate utf8_bin;`

View file

@ -105,7 +105,7 @@
"xss": "^1.0.3"
},
"engines": {
"node": "^12.20.0 || ^14.13.1 || 16.x"
"node": "^14.13.1 || 16.x"
},
"bugs": "https://github.com/hedgedoc/hedgedoc/issues",
"keywords": [

View file

@ -1,5 +1,10 @@
# Release Notes
## <i class="fa fa-tag"></i> 1.x.x <i class="fa fa-calendar-o"></i> UNRELEASED
This release drops support for Node.js 12, as it has reached end-of-life.
## <i class="fa fa-tag"></i> 1.9.3 <i class="fa fa-calendar-o"></i> 2022-04-10
This release fixes a security issue. We recommend upgrading as soon as possible.