feat: add async SQLite on Node 24 and improve messaging diagnostics (#520)

Move database work off the main thread on Node.js 24 and improve message handling and runtime diagnostics.

Preserve migration, restart, and concurrency coverage with the async SQLite driver.
This commit is contained in:
MliKiowa authored and GitHub committed 2026-10-13 10:12:47 +08:00
1 parent 20f48d11ec
commit c7428363cb
170 files changed
+7748 -3913

No files matched your search

+3 -5
View File
@@ -1,6 +1,6 @@
'use strict';
const SUPPORTED_NODE_RANGE = '^22.13.0 || >=23.4.0';
const SUPPORTED_NODE_RANGE = '>=24';
function parseNodeVersion(version) {
const match = /^(\d+)\.(\d+)\.(\d+)(?:[-+].*)?$/.exec(version);
@@ -11,10 +11,8 @@ function isSupportedNodeVersion(version) {
const actual = parseNodeVersion(version);
if (!actual) return false;
const [major, minor] = actual;
if (major === 22) return minor >= 13;
if (major === 23) return minor >= 4;
return major > 23;
const [major] = actual;
return major >= 24;
}
if (require.main === module && !isSupportedNodeVersion(process.versions.node)) {
+1 -1
View File
@@ -8,7 +8,7 @@ if [[ -x "./node" ]]; then
else
NODE_BIN="$(command -v node || true)"
if [[ -z "$NODE_BIN" ]]; then
echo "error: 'node' not found on PATH and no bundled ./node; install Node.js 22.13+ (Node 23 requires 23.4+)." >&2
echo "error: 'node' not found on PATH and no bundled ./node; install Node.js 24+." >&2
exit 127
fi
fi
Binary file not shown.
+4 -1
View File
@@ -5,5 +5,8 @@
"private": true,
"type": "module",
"main": "index.mjs",
"description": "SnowLuma runtime distribution manifest: ships into dist/ (launcher.bat, package.json, native/*.dll, native/*.node). All native bindings ship as standalone `.node` files in `dist/native/` — loaded via `process.dlopen()` / `createRequire().require()` from inside the bundle. There are intentionally NO runtime npm dependencies; production artifacts are self-contained."
"description": "SnowLuma runtime distribution manifest: ships into dist/ (launcher.bat, package.json, native/*.dll, native/*.node). All native bindings ship as standalone `.node` files in `dist/native/` — loaded via `process.dlopen()` / `createRequire().require()` from inside the bundle. There are intentionally NO runtime npm dependencies; production artifacts are self-contained.",
"engines": {
"node": ">=24"
}
}