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:
1 parent
20f48d11ec
commit
c7428363cb
170 files changed
+7748
-3913
No files matched your search
@@ -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)) {
|
||||
|
||||
Reference in new issue
Block a user