fix: unblock ioredis/bullmq bumps by deduping stale lockfile

Merged
LU
3mo ago
+2294-2989

Summary

Merges dependabot #2028 (ioredis 5.11.1 -> 6.0.0) and #2026 (bullmq 5.81.3 -> 6.0.9), which were both held on the same TS2322 break in packages/bot/src/utils/batch/batchQueue.ts:30. The break was a stale package-lock.json, not a code incompatibility: each dependabot PR's lockfile diff was generated independently, and merging both left two conflicting ioredis copies in the tree (root 5.11.1 vs packages/shared/node_modules 6.0.0), so TypeScript rejected passing one Redis client type into bullmq's ConnectionOptions.

Fix: rm -rf node_modules package-lock.json && npm install to force a full re-resolve, dedupes to a single ioredis@6.0.0. No source changes.

Full root-cause writeup and repro steps: closes #2032.

Test plan

  • packages/bot: tsc --noEmit clean
  • packages/backend: tsc --noEmit clean
  • bot suite: 240/241 passed (1 pre-existing skip, unrelated), 3133 tests
  • backend suite: 85/85 suites, 1352 tests
  • shared suite: 73/73 suites, 1407 tests

Summary by cubic

Dedupes the lockfile and upgrades to ioredis@6 and bullmq@6 so TypeScript no longer sees mixed ioredis versions. Previously we resolved both ioredis@5 and @6 (TS2322); now we resolve a single ioredis@6.0.0 and declare it explicitly where used.

  • Bumps bullmq to ^6 in root, packages/bot, and packages/shared; bumps ioredis to ^6 in packages/shared and adds ioredis ^6 as a direct dependency in packages/bot; regenerates package-lock.json to dedupe to one ioredis@6.0.0. No TypeScript code changes.
  • Required: clean install to clear stale duplicates (remove node_modules and package-lock.json, then run npm install or npm ci).

Summary by CodeRabbit

  • Chores
    • Updated BullMQ to version 6 across the application.
    • Updated the Redis client library to version 6 in shared components.
    • Improved compatibility with the latest queue and Redis infrastructure.