Skip to content

feat(data): add bounded query collections - #328

Merged
smiggleworth merged 2 commits into
mainfrom
feat/query-collections-327
Aug 20, 2026
Merged

feat(data): add bounded query collections#328
smiggleworth merged 2 commits into
mainfrom
feat/query-collections-327

Conversation

@smiggleworth

@smiggleworth smiggleworth commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Closes #327

Summary

  • add a lifecycle-owned dynamic keyed query collection primitive backed by the existing DataRuntime cache
  • bound initial collection loads and per-key retries while preserving deduplication, invalidation, stale state, and shared readers
  • define reorder, duplicate-key, growth/shrink, SSR, retry, and last-owner cancellation behavior
  • add unit, type, lifecycle/abort, browser, public-surface, docs, and schema-browser recipe coverage

TDD

  • Red: commit 53d2809 fails the focused regression with TypeError: createQueryCollection is not a function
  • Green: commit 58b66b6 passes the focused regression and the full repository gate

Review

  • reviewed the complete diff and emitted declaration surface
  • fixed synchronous queued-key cancellation during dynamic shrink before submission
  • no unresolved review findings

Validation

  • npm run fmt -- --check
  • npm run lint
  • npm run build
  • npm test (238 unit, 37 checks, 1471 jsdom, 52 Chromium)
  • npm run test:types

@smiggleworth
smiggleworth marked this pull request as ready for review August 20, 2026 12:41
Copilot AI lite review requested due to automatic review settings August 20, 2026 12:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@smiggleworth
smiggleworth merged commit 0ce760a into main Aug 20, 2026
3 checks passed
@smiggleworth
smiggleworth deleted the feat/query-collections-327 branch August 20, 2026 12:48
@smiggleworth smiggleworth mentioned this pull request Aug 20, 2026
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: Support dynamic keyed query collections with bounded prefetch

2 participants