deps: Require Node.js 12.17.0 or later
This makes it possible to use dynamic `import()`.
This commit is contained in:
parent
151f954fea
commit
1e604add99
7 changed files with 8 additions and 7 deletions
|
@ -47,6 +47,7 @@
|
||||||
|
|
||||||
### Compatibility changes
|
### Compatibility changes
|
||||||
|
|
||||||
|
* Node.js v12.17.0 or later is now required.
|
||||||
* The default login session expiration (applicable if `requireAuthentication` is
|
* The default login session expiration (applicable if `requireAuthentication` is
|
||||||
`true`) changed from never to 10 days after the user leaves.
|
`true`) changed from never to 10 days after the user leaves.
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ Etherpad is extremely flexible providing you the means to modify it to solve wha
|
||||||
# Installation
|
# Installation
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
- [Node.js](https://nodejs.org/) >= **12.13.0**.
|
- [Node.js](https://nodejs.org/) >= **12.17.0**.
|
||||||
|
|
||||||
## GNU/Linux and other UNIX-like systems
|
## GNU/Linux and other UNIX-like systems
|
||||||
|
|
||||||
|
|
|
@ -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": ">=12.13.0"}
|
"engines": {"node": ">=12.17.0"}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"description": "Internal tool for generating Node.js API docs",
|
"description": "Internal tool for generating Node.js API docs",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12.13.0"
|
"node": ">=12.17.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"marked": "^2.0.0"
|
"marked": "^2.0.0"
|
||||||
|
|
|
@ -172,7 +172,7 @@ if (autoPush) {
|
||||||
});
|
});
|
||||||
|
|
||||||
await updateDeps(parsedPackageJSON, 'engines', {
|
await updateDeps(parsedPackageJSON, 'engines', {
|
||||||
node: '>=12.13.0',
|
node: '>=12.17.0',
|
||||||
});
|
});
|
||||||
|
|
||||||
if (parsedPackageJSON.eslintConfig == null) parsedPackageJSON.eslintConfig = {};
|
if (parsedPackageJSON.eslintConfig == null) parsedPackageJSON.eslintConfig = {};
|
||||||
|
|
|
@ -41,8 +41,8 @@ if (settings.dumpOnUncleanExit) {
|
||||||
* 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('12.13.0');
|
NodeVersion.enforceMinNodeVersion('12.17.0');
|
||||||
NodeVersion.checkDeprecationStatus('12.13.0', '1.8.14');
|
NodeVersion.checkDeprecationStatus('12.17.0', '1.9.0');
|
||||||
|
|
||||||
const UpdateCheck = require('./utils/UpdateCheck');
|
const UpdateCheck = require('./utils/UpdateCheck');
|
||||||
const db = require('./db/DB');
|
const db = require('./db/DB');
|
||||||
|
|
|
@ -236,7 +236,7 @@
|
||||||
"root": true
|
"root": true
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12.13.0",
|
"node": ">=12.17.0",
|
||||||
"npm": ">=5.5.1"
|
"npm": ">=5.5.1"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
Loading…
Reference in a new issue