Files
TheZwiss 89467d6f93 fix(server): upgrade better-sqlite3 to 12.x for Node 24 compatibility (#41)
better-sqlite3 11.x removes its environment cleanup hook from Statement::~Statement() after the Node environment is torn down. Node 24.19.0 asserts on the null environment and aborts the worker, so vitest reported 'Worker exited unexpectedly' and exited non-zero on a fully green test run — failing the required check on every PR.

11.x also ships no prebuild for Node 24, so CI compiled it from source on every run. 12.x has prebuilds for that ABI and the V8 13.9 shims 11.x lacks. drizzle-orm declares better-sqlite3 >=7, so the major bump is in range.

Supersedes #26.
2026-08-25 15:41:43 +02:00

51 lines
1.4 KiB
JSON

{
"name": "@backspace/server",
"version": "1.0.0",
"private": true,
"license": "AGPL-3.0-only",
"author": "Jannis Braun",
"type": "module",
"scripts": {
"dev": "cross-env PORT=3005 tsx watch src/index.ts",
"start": "node --import tsx/esm src/index.ts",
"build": "tsc",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:federation-identity": "vitest run test/federation-identity-deletion.test.ts",
"test:watch": "vitest",
"db:generate": "drizzle-kit generate"
},
"dependencies": {
"@backspace/shared": "workspace:*",
"@fastify/cors": "^9.0.1",
"@fastify/multipart": "^8.3.0",
"@fastify/rate-limit": "^9.1.0",
"@fastify/static": "^7.0.4",
"@fastify/websocket": "^10.0.1",
"@tus/file-store": "^1.5.1",
"@tus/server": "^1.10.2",
"bcryptjs": "^2.4.3",
"better-sqlite3": "^12.11.1",
"cheerio": "^1.0.0",
"dotenv": "^16.4.5",
"drizzle-orm": "^0.33.0",
"fastify": "^4.28.1",
"jsonwebtoken": "^9.0.2",
"livekit-server-sdk": "^2.6.1",
"sharp": "^0.33.0",
"tsx": "^4.16.0"
},
"devDependencies": {
"@types/bcryptjs": "^2.4.6",
"@types/better-sqlite3": "^7.6.11",
"@types/jsonwebtoken": "^9.0.6",
"@types/node": "^20.14.0",
"@types/ws": "^8.18.1",
"cross-env": "^7.0.3",
"drizzle-kit": "^0.24.0",
"typescript": "^5.4.0",
"vitest": "^4.0.18",
"ws": "^8.20.0"
}
}