mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-06-09 18:51:16 +00:00
12 versions of TDLib bug fixes, performance improvements, and stricter type definitions in @prebuilt-tdlib/types. Two API breakages handled: 1. `getChatFolders` (plural) was removed — folder IDs now arrive via the `updateChatFolders` update event. Replaced the synchronous call with a 200ms event listener; if no folders arrive, we proceed with just main + archive lists. Chats inside folders are still reachable from chatListMain so this isn't a functional regression. 2. The new tdl `Client.invoke` signature requires a literal `_` field and rejects `Record<string, any>` shapes. Our `invokeWithTimeout` wrapper is intentionally generic — cast through `any` at the call site with a comment explaining why. Both worker and bot type-check + build cleanly with the new versions. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
29 lines
607 B
JSON
29 lines
607 B
JSON
{
|
|
"name": "dragonsstash-worker",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"start": "node dist/index.js",
|
|
"dev": "tsx watch src/index.ts"
|
|
},
|
|
"dependencies": {
|
|
"@prisma/adapter-pg": "^7.4.0",
|
|
"@prisma/client": "^7.4.0",
|
|
"pg": "^8.18.0",
|
|
"pino": "^9.6.0",
|
|
"prebuilt-tdlib": "^0.1008064.0",
|
|
"tdl": "^8.1.0",
|
|
"yauzl": "^3.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20",
|
|
"@types/pg": "^8.16.0",
|
|
"@types/yauzl": "^2.10.3",
|
|
"prisma": "^7.4.0",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "^5"
|
|
}
|
|
}
|