sqlite3: switch to microsoft/vscode fork

Mapbox apparently lost interest in maintaining the package.
It still forces us to an outdated node-gyp version which also
makes python2 necessary which is slowly getting removed from
various OSes (Fedora, Arch...)

Microsoft started their maintained fork for vscode, so let's use that
This commit is contained in:
Reto Brunner 2021-12-18 09:51:07 +01:00
parent e0bbf19d9d
commit 24d99fc294
3 changed files with 41 additions and 610 deletions

View File

@ -69,7 +69,7 @@
"yarn": "1.22.17"
},
"optionalDependencies": {
"sqlite3": "5.0.2"
"@vscode/sqlite3": "^5.0.7"
},
"devDependencies": {
"@babel/core": "7.16.0",

View File

@ -9,13 +9,11 @@ const Msg = require("../../models/msg");
let sqlite3;
try {
sqlite3 = require("sqlite3");
sqlite3 = require("@vscode/sqlite3");
} catch (e) {
Helper.config.messageStorage = Helper.config.messageStorage.filter((item) => item !== "sqlite");
log.error(
"Unable to load node-sqlite3 module. See https://github.com/mapbox/node-sqlite3/wiki/Binaries"
);
log.error("Unable to load node-sqlite3 module", e);
}
const currentSchemaVersion = 1520239200;

643
yarn.lock

File diff suppressed because it is too large Load Diff