All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 1m35s
MCP Server: - Fix validateApiKey: O(1) direct lookup by shortId instead of loading all keys - Add trashedAt:null filter to ALL note queries (trashed notes leaked in results) - Compact JSON output (~40% smaller responses) - Bounded session cache (Map with MAX_SESSIONS=500) to prevent memory leaks - PostgreSQL connection pooling (connection_limit=10) - Rewrite all 22 tool descriptions in clear English - Fix /sse fallback to proper 307 redirect memento-note Performance: - loading=lazy on all note images - Split notebooksRefreshKey from global refreshKey (note CRUD no longer re-fetches notebooks) - Remove searchKey from trash count deps (no re-fetch on every keystroke) - Server-side notebookId filter in getAllNotes() (biggest win) - Skip collaborator fetch for non-shared notes (eliminates N+1 API calls) - next/dynamic for MarkdownContent + 4 modals (code-split remark/rehype/KaTeX) - Memoize DOMPurify sanitize with useMemo Security: - XSS: DOMPurify sanitize in note-card and note-history-modal - Auth anti-enumeration: uniform errors in auth.ts - CRON_SECRET mandatory on cron endpoints - Rate limiting on login (5 attempts/min per email) - Centralized API auth helpers (requireAuth/requireAdmin) - randomize-labels changed GET→POST - Removed debug endpoints (/api/debug/config, /api/debug/test-chat) Cleanup: - Removed dead code: .backup-keep, settings-backup, fix-*.js, debug-theme, fix-labels route - Removed sensitive console.error in auth.ts - Ollama fetchWithTimeout (30s/60s AbortController) - i18n: full Arabic translation, Farsi missing keys - Masonry drag-and-drop fix (localOrderMap, cross-section block) - Sidebar notebook tooltip on truncation
128 lines
4.0 KiB
JSON
128 lines
4.0 KiB
JSON
{
|
|
"name": "memento",
|
|
"version": "0.2.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev --turbopack",
|
|
"build": "prisma generate && next build",
|
|
"start": "next start",
|
|
"db:generate": "prisma generate",
|
|
"db:migrate": "node scripts/safe-migrate.js",
|
|
"db:migrate:dev": "prisma migrate dev",
|
|
"db:migrate:deploy": "prisma migrate deploy",
|
|
"db:push": "prisma db push",
|
|
"db:studio": "prisma studio",
|
|
"db:reset": "prisma migrate reset",
|
|
"db:switch": "node scripts/switch-db.js",
|
|
"setup:env": "node scripts/setup-env.js",
|
|
"test": "playwright test",
|
|
"test:ui": "playwright test --ui",
|
|
"test:headed": "playwright test --headed",
|
|
"test:unit": "vitest run",
|
|
"test:unit:watch": "vitest watch",
|
|
"test:unit:coverage": "vitest run --coverage",
|
|
"test:migration": "vitest run tests/migration",
|
|
"test:migration:watch": "vitest watch tests/migration"
|
|
},
|
|
"dependencies": {
|
|
"@ai-sdk/openai": "^3.0.7",
|
|
"@ai-sdk/react": "^3.0.170",
|
|
"@auth/prisma-adapter": "^2.11.1",
|
|
"@dnd-kit/core": "^6.3.1",
|
|
"@dnd-kit/sortable": "^10.0.0",
|
|
"@dnd-kit/utilities": "^3.2.2",
|
|
"@excalidraw/excalidraw": "^0.18.0",
|
|
"@mozilla/readability": "^0.6.0",
|
|
"@prisma/client": "^5.22.0",
|
|
"@radix-ui/react-avatar": "^1.1.11",
|
|
"@radix-ui/react-checkbox": "^1.3.3",
|
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
"@radix-ui/react-popover": "^1.1.15",
|
|
"@radix-ui/react-radio-group": "^1.3.8",
|
|
"@radix-ui/react-select": "^2.2.6",
|
|
"@radix-ui/react-separator": "^1.1.8",
|
|
"@radix-ui/react-slot": "^1.2.4",
|
|
"@radix-ui/react-switch": "^1.2.6",
|
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
"@tiptap/extension-color": "^3.22.5",
|
|
"@tiptap/extension-highlight": "^3.22.5",
|
|
"@tiptap/extension-image": "^3.22.5",
|
|
"@tiptap/extension-placeholder": "^3.22.5",
|
|
"@tiptap/extension-subscript": "^3.22.5",
|
|
"@tiptap/extension-superscript": "^3.22.5",
|
|
"@tiptap/extension-task-item": "^3.22.5",
|
|
"@tiptap/extension-task-list": "^3.22.5",
|
|
"@tiptap/extension-text-align": "^3.22.5",
|
|
"@tiptap/extension-text-style": "^3.22.5",
|
|
"@tiptap/extension-typography": "^3.22.5",
|
|
"@tiptap/pm": "^3.22.5",
|
|
"@tiptap/react": "^3.22.5",
|
|
"@tiptap/starter-kit": "^3.22.5",
|
|
"@tiptap/suggestion": "^3.22.5",
|
|
"@types/jsdom": "^28.0.1",
|
|
"ai": "^6.0.23",
|
|
"autoprefixer": "^10.4.23",
|
|
"bcryptjs": "^3.0.3",
|
|
"buffer": "^6.0.3",
|
|
"cheerio": "^1.1.2",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"cmdk": "^1.1.1",
|
|
"date-fns": "^4.1.0",
|
|
"diff": "^9.0.0",
|
|
"dotenv": "^17.2.3",
|
|
"isomorphic-dompurify": "^3.12.0",
|
|
"jsdom": "^29.0.2",
|
|
"katex": "^0.16.27",
|
|
"lucide-react": "^0.562.0",
|
|
"next": "^16.1.6",
|
|
"next-auth": "^5.0.0-beta.30",
|
|
"nodemailer": "^8.0.4",
|
|
"novel": "^1.0.2",
|
|
"postcss": "^8.5.6",
|
|
"radix-ui": "^1.4.3",
|
|
"react": "19.2.3",
|
|
"react-dom": "19.2.3",
|
|
"react-markdown": "^10.1.0",
|
|
"rehype-katex": "^7.0.1",
|
|
"remark-gfm": "^4.0.1",
|
|
"remark-math": "^6.0.0",
|
|
"resend": "^6.12.0",
|
|
"rss-parser": "^3.13.0",
|
|
"sharp": "^0.34.0",
|
|
"sonner": "^2.0.7",
|
|
"tailwind-merge": "^3.4.0",
|
|
"tinyld": "^1.3.4",
|
|
"tippy.js": "^6.3.7",
|
|
"vazirmatn": "^33.0.3",
|
|
"zod": "^4.3.5"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.57.0",
|
|
"@tailwindcss/postcss": "^4",
|
|
"@tailwindcss/typography": "^0.5.19",
|
|
"@types/bcryptjs": "^2.4.6",
|
|
"@types/diff": "^7.0.2",
|
|
"@types/node": "^20",
|
|
"@types/nodemailer": "^7.0.4",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"@vitest/coverage-v8": "^4.0.18",
|
|
"prisma": "^5.22.0",
|
|
"tailwindcss": "^4.0.0",
|
|
"tsx": "^4.21.0",
|
|
"tw-animate-css": "^1.4.0",
|
|
"typescript": "5.9.3",
|
|
"vitest": "^4.0.18"
|
|
},
|
|
"overrides": {
|
|
"serialize-javascript": "^7.0.5",
|
|
"nodemailer": "^8.0.4",
|
|
"@radix-ui/react-tabs": "^1.1.13",
|
|
"@radix-ui/react-slot": "^1.2.4",
|
|
"lodash-es": "^4.17.21",
|
|
"nanoid": "^3.3.8"
|
|
}
|
|
}
|