Bump minimum required Node.js version to 10.17.0

This makes it possible to use fs.promises.
This commit is contained in:
John McLear 2021-01-19 16:37:12 +00:00 committed by Richard Hansen
parent 877f0c5883
commit 0cc8405e9c
7 changed files with 12 additions and 8 deletions

View file

@ -1,4 +1,8 @@
# Changes for the next release # Changes for the next release
### Compatibility changes
* Node.js 10.17.0 or newer is now required.
### Notable new features ### Notable new features
* Database performance is significantly improved. * Database performance is significantly improved.

View file

@ -13,7 +13,7 @@ Etherpad is a real-time collaborative editor [scalable to thousands of simultane
# Installation # Installation
## Requirements ## Requirements
- `nodejs` >= **10.13.0**. - `nodejs` >= **10.17.0**.
## GNU/Linux and other UNIX-like systems ## GNU/Linux and other UNIX-like systems
@ -25,7 +25,7 @@ git clone --branch master https://github.com/ether/etherpad-lite.git && cd ether
``` ```
### Manual install ### Manual install
You'll need git and [node.js](https://nodejs.org) installed (minimum required Node version: **10.13.0**). You'll need git and [node.js](https://nodejs.org) installed (minimum required Node version: **10.17.0**).
**As any user (we recommend creating a separate user called etherpad):** **As any user (we recommend creating a separate user called etherpad):**

View file

@ -263,7 +263,7 @@ fs.readdir(pluginPath, (err, rootFiles) => {
console.warn('No engines or node engine in package.json'); console.warn('No engines or node engine in package.json');
if (autoFix) { if (autoFix) {
const engines = { const engines = {
node: '>=10.13.0', node: '^10.17.0 || >=11.14.0',
}; };
parsedPackageJSON.engines = engines; parsedPackageJSON.engines = engines;
writePackageJson(parsedPackageJSON); writePackageJson(parsedPackageJSON);

View file

@ -225,7 +225,7 @@ publish your plugin.
"author": "USERNAME (REAL NAME) <MAIL@EXAMPLE.COM>", "author": "USERNAME (REAL NAME) <MAIL@EXAMPLE.COM>",
"contributors": [], "contributors": [],
"dependencies": {"MODULE": "0.3.20"}, "dependencies": {"MODULE": "0.3.20"},
"engines": { "node": ">= 10.13.0"} "engines": { "node": "^10.17.0 || >=11.14.0"}
} }
``` ```

View file

@ -100,6 +100,6 @@
"lint": "eslint ." "lint": "eslint ."
}, },
"engines": { "engines": {
"node": ">=10.13.0" "node": "^10.17.0 || >=11.14.0"
} }
} }

View file

@ -36,8 +36,8 @@ const wtfnode = require('wtfnode');
* any modules that require newer versions of NodeJS * any modules that require newer versions of NodeJS
*/ */
const NodeVersion = require('./utils/NodeVersion'); const NodeVersion = require('./utils/NodeVersion');
NodeVersion.enforceMinNodeVersion('10.13.0'); NodeVersion.enforceMinNodeVersion('10.17.0');
NodeVersion.checkDeprecationStatus('10.13.0', '1.8.3'); NodeVersion.checkDeprecationStatus('10.17.0', '1.8.8');
const UpdateCheck = require('./utils/UpdateCheck'); const UpdateCheck = require('./utils/UpdateCheck');
const db = require('./db/DB'); const db = require('./db/DB');

View file

@ -139,7 +139,7 @@
"root": true "root": true
}, },
"engines": { "engines": {
"node": ">=10.13.0", "node": "^10.17.0 || >=11.14.0",
"npm": ">=5.5.1" "npm": ">=5.5.1"
}, },
"repository": { "repository": {