core: remove deprecated apis

This commit is contained in:
undefined committed 2023-01-29 11:34:02 +08:00
1 parent 05b27fc1eb
commit ec0ba8a394
9 files changed
+24 -37

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
const versionNum = +process.version.replace(/v/gim, '').split('.')[0];
if (versionNum < 14) throw new Error('NodeJS >=14 required');
if (versionNum < 18) throw new Error('NodeJS >=18 required');
console.log('Process', process.pid, 'running as', process.env.NODE_APP_INSTANCE === '0' ? 'master' : 'worker');
if (!global.Hydro) {