Files
sofa/docs/package.json
T
jake b289b7abed refactor: optimize cron scheduling, DB maintenance, and TMDB reliability
- Skip recommendations refresh for titles fetched within the last 7 days via `getTitlesWithFreshRecommendations`; only stale titles are re-fetched
- Replace `Promise.allSettled` in `refreshTvChildren` with a `mapWithConcurrency` helper (concurrency = 5) to stay within TMDB's rate limit
- Add 30s request timeout middleware to TMDB client to prevent indefinitely hung fetches
- Expand `optimizeDb` weekly job to prune 30-day-old cron runs, integration events, expired sessions, and expired verifications
- Add `wal_checkpoint(TRUNCATE)` to `optimizeDatabase` so the WAL is flushed before `PRAGMA optimize`
- Add `recoverStaleImportJobs` called on server startup to mark any `pending`/`running` import jobs as errored after a crash/restart
- Return `false` from `triggerJob` immediately if the job is already running
2026-03-23 13:59:31 -04:00

49 lines
1.3 KiB
JSON

{
"name": "sofa-docs",
"version": "0.0.0",
"private": true,
"scripts": {
"build": "bun --bun next build",
"dev": "bun --bun next dev",
"start": "bun --bun next start",
"lint": "oxlint",
"format": "oxfmt",
"format:check": "oxfmt --check",
"check-types": "bun --bun fumadocs-mdx && bun --bun next typegen && tsc --noEmit",
"generate:api-docs": "bun scripts/generate-api-docs.ts",
"postinstall": "bun --bun fumadocs-mdx"
},
"dependencies": {
"@takumi-rs/image-response": "^0.73.1",
"@vercel/analytics": "^2.0.1",
"fumadocs-core": "^16.7.4",
"fumadocs-mdx": "^14.2.11",
"fumadocs-openapi": "^10.4.1",
"fumadocs-ui": "^16.7.4",
"lucide-react": "^0.577.0",
"next": "16.2.1",
"react": "19.2.4",
"react-dom": "19.2.4",
"shiki": "^4.0.2",
"tailwind-merge": "^3.5.0"
},
"devDependencies": {
"@tailwindcss/postcss": "^4.2.2",
"@types/bun": "1.3.11",
"@types/mdx": "^2.0.13",
"@types/node": "^25.5.0",
"@types/react": "19.2.14",
"@types/react-dom": "19.2.3",
"oxfmt": "0.41.0",
"oxlint": "1.56.0",
"postcss": "^8.5.8",
"tailwindcss": "^4.2.2",
"typescript": "^5.9.3"
},
"overrides": {
"@types/react": "19.2.14",
"@types/react-dom": "19.2.3"
},
"packageManager": "bun@1.3.11"
}