Fix #1685#1686
Conversation
📝 WalkthroughWalkthroughThe change shares ChangesNested include flush
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related issues
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
packages/db/src/query/live/collection-config-builder.ts (1)
1877-1882: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueAvoid using
anytypes; useunknowninstead.As per coding guidelines, avoid using
anytypes and useunknowninstead when the type is truly unknown. Consider updating the generic type of theSetto useunknownfor improved type strictness.♻️ Proposed fix
- routingCleanup?: Set<Record<PropertyKey, any>>, + routingCleanup?: Set<Record<PropertyKey, unknown>>, ): void { // The outermost call owns the cleanup set; nested calls inherit it so the // stamp survives until every parent group has been flushed. const isOutermostCall = routingCleanup === undefined - const cleanup = routingCleanup ?? new Set<Record<PropertyKey, any>>() + const cleanup = routingCleanup ?? new Set<Record<PropertyKey, unknown>>()🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@packages/db/src/query/live/collection-config-builder.ts` around lines 1877 - 1882, Update the routingCleanup parameter and the local cleanup Set in the surrounding function to use unknown instead of any for the Record value type, preserving the existing cleanup ownership and inheritance behavior.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@packages/db/src/query/live/collection-config-builder.ts`:
- Around line 1877-1882: Update the routingCleanup parameter and the local
cleanup Set in the surrounding function to use unknown instead of any for the
Record value type, preserving the existing cleanup ownership and inheritance
behavior.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 8a781add-4e64-44ee-977e-7a2de9741f9e
📒 Files selected for processing (2)
packages/db/src/query/live/collection-config-builder.tspackages/db/tests/query/includes.test.ts
🎯 Changes
Fix #1685 issue report
✅ Checklist
pnpm test.🚀 Release Impact
Summary by CodeRabbit