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

+1 -12
View File
@@ -14,6 +14,7 @@ import {
import { monomorphizeTypeNode } from './monomorphizer.js';
import {
createImportedTypeNameResolver,
getCallableName,
typeNodeToMangledName,
registerSyntheticTypeSourceFile,
resolveSourceFileForTypeNode,
@@ -28,18 +29,6 @@ import { buildDependencyRegistry } from './dependency-graph.js';
export { typeNodeToMangledName } from './utils.js';
function getCallableName(expr: ts.Expression): string | null {
if (ts.isIdentifier(expr)) {
return expr.text;
}
if (ts.isPropertyAccessExpression(expr)) {
return expr.name.text;
}
return null;
}
function instantiateWrapperTypePattern(
binding: WrapperBinding,
callerTypeArgs: ts.NodeArray<ts.TypeNode>,
+1 -12
View File
@@ -5,6 +5,7 @@ import { collectInterface, collectGenericInterface } from './collector.js';
import { PRIMITIVE_TYPE_MAP, type ProtobufMessage, type GenericProtobufTemplate } from './types.js';
import {
createImportedTypeNameResolver,
getCallableName,
isKeywordTypeNode,
type ImportedTypeNameResolver,
} from './utils.js';
@@ -44,18 +45,6 @@ interface ImportClause {
specifier: string;
}
function getCallableName(expr: ts.Expression): string | null {
if (ts.isIdentifier(expr)) {
return expr.text;
}
if (ts.isPropertyAccessExpression(expr)) {
return expr.name.text;
}
return null;
}
/** Extract all named imports from the source file (both type and value imports). */
function extractImports(sf: ts.SourceFile): ImportClause[] {
const result: ImportClause[] = [];
+12
View File
@@ -2,6 +2,18 @@ import ts from 'typescript';
export type ImportedTypeNameResolver = (name: string) => string;
export function getCallableName(expr: ts.Expression): string | null {
if (ts.isIdentifier(expr)) {
return expr.text;
}
if (ts.isPropertyAccessExpression(expr)) {
return expr.name.text;
}
return null;
}
function identityImportedTypeName(name: string): string {
return name;
}