eslint: node version bump

This commit is contained in:
John McLear 2021-01-19 21:05:30 +00:00
parent 3e78be371d
commit 80e0e2d932
6 changed files with 7 additions and 22035 deletions

View file

@ -13,7 +13,7 @@ Etherpad is a real-time collaborative editor [scalable to thousands of simultane
# Installation
## Requirements
- `nodejs` >= **10.13.0**.
- `nodejs` >= **10.17.0**.
## 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
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):**

View file

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

View file

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

View file

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

22028
src/package-lock.json generated

File diff suppressed because it is too large Load diff