fix(query-db): preserve ordered coverage during held refetches #2332
main fromrefs/pull/2332/head·merged by KyleAMathews 🎯 Changes#
An ordered Query refetch can leave source rows missing while an optimistic transaction holds accepted sync rows. This repair restores complete source prefixes after the transaction settles.
The failure appeared in the collections check for #2331. A page kept its keys while its end moved earlier. Query DB returned before checking that end. A held optimistic delete hid the visible order update that normally starts core repair. A row between the old and new ends remained unloaded after release.
Query DB now reports an earlier page end even when the keys match. The separate later-page condition still requires changed keys. The acquisition guard and report coalescing remain. A named hasLaterPage helper keeps that second condition explicit.
The review follow-up strengthens the oracle's report-work check. Unrelated value edits cannot justify a report. Wider generated pages and structural neighboring histories challenge repairs that only handle the original width or hold.
Package gzip grows by 16 B against exact main 30e85464e. Typical-app gzip grows by 10 B, while its Brotli size falls by 83 B. The earlier inline helper saved bytes, but the named helper makes the condition easier to audit.
🔬 Oracle Coverage#
The coverage-map owner is Query DB ordered refetch, in refetch-ordered-prefix-oracle.test.ts. The independent backend model and public row comparisons remain unchanged.
- Law: After refetch or invalidation settles, the public window and source prefix must refine the backend model. A persisting optimistic transaction moves that checkpoint to release. Authority comes from
LoadSubsetFnand the ordered recovery architecture. - Reach: Both new campaigns reach 24 deleted held boundaries with equal keys, an earlier end, an omitted gap, a delivered report, and core repair. Each state requires 24 histories. The grammar varies widths 1–3, offsets 0–1, row IDs, key forms, order arity, gaps, and refresh paths. Another 48 structural histories cross widths and offsets with four hold regimes and earlier/later ends. All six structural delete-gap states reach once. Existing 80 seeded, 80 random, and 40 held histories remain.
- RED: Before production edits, the retained CI history and both original new campaigns failed the public source-prefix comparison. The unchanged current-main adapter failed the same three comparisons. The follow-up first ran the extended oracle against unchanged repaired production.
- GREEN: The owner passed all 41 tests, including two existing expected-failure limits. After the final control correction, all three affected page-end tests passed again. Focused types, ESLint, formatting, whitespace, and changed-file oracle lint passed. ESLint retains two existing warnings. Original replay routing passed 70 tests. Both current guarded replays pass directly without full campaigns.
- Mutants: The old campaigns accepted arbitrary-value reports. The extended oracle rejects that mutant on a label-only refetch. It also rejects the original equal-key guard and a width-1-only repair through ordinary public coverage assertions. A held-row-only reporting mutant survives the tested neighbors while preserving their public coverage. Its survival alone does not prove a defect.
- Limits: The histories use uncapped finite cursor pages, numeric order, a real QueryClient, and the real core receiver under jsdom. Existing provider and in-hold limits remain. No external server, framework commit, or browser-process claim follows.
The nine-item review evaluation records all nine dispositions, experiments, source hashes, portable commands, size results, and limits. Seven findings led to fixes. Two concern designs the existing contract permits. The original self-review retains the initial RED and intermediate reach failure, with its classifier overclaim corrected. Neither record is an independent external review of this follow-up.
Runtime and typecheck commands now use repository-owned configurations. A forced outer timeout prints its chosen random seed. The temporary mutants and deadline were restored. Existing run budgets and reach minima remain. Local Vitest is 3.2.4, while CI uses 4.1.12. New-head CI remains separate evidence.
✅ Checklist#
- I have tested this code locally with
pnpm test.
Full local pnpm test was not run. The focused checks above passed.
🚀 Release Impact#
- This change affects published code, and I have generated a changeset.
- This change is docs/CI/dev-only (no release).
Patch release for @tanstack/query-db-collection.
Summary by CodeRabbit#
- Bug Fixes
- Fixed an issue where ordered query results could become incomplete when a refetch moved a page boundary earlier during an optimistic update, even if the page still contained the same items.
- Ordered results now account for earlier page endings, helping preserve complete results across refetches. Changes to item values alone do not trigger this page-shift handling.
- 1
Incremental update benchmark#
Comparing
36cd8e4dd(this PR) against30e85464e(base). Write times are per-write medians over 100 iterations (20 warmup writes). Cold hydrate is one timed first load of each query.Overall median write time vs base: 1.03× · cold hydrate time: 1.01× (geometric mean of per-case ratios; lower is faster).
Writes: 1 regression(s), 1 improvement(s) (threshold: ±20% and >0.05ms).
Cold hydrate: 0 regression(s), 1 improvement(s) (threshold: ±50% and >5ms).
Per-case flags are noisy on shared runners. Read the geometric means first.Writes#
Query Δ median write time (geomean) Best case Worst case Flags list: newest 50 open +1.5% -10.4% +32.0% — list + author +3.1% -24.4% +28.3% 1 🔴 list + comment count +7.1% -2.7% +17.1% — list + 3 recent comments -2.7% -46.9% +8.8% 1 🟢 issue detail + comments +5.1% -1.8% +20.7% — Cold hydrate#
Query Δ cold hydrate time (geomean) Best case Worst case Flags list: newest 50 open +6.8% -31.3% +84.4% — list + author +6.2% -45.0% +75.4% — list + comment count -13.4% -58.7% +14.1% 1 🟢 list + 3 recent comments +6.1% -20.4% +80.3% — issue detail + comments -2.7% -29.9% +14.0% — Each row aggregates the 14.4 scale/index/write-mode configurations of that query; per-configuration tables below.
100 rows/collection | source indexes: none | synced writes — geomean 1.04×, cold 1.04×, 1 change(s)
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold list: newest 50 open 0.243ms 0.231ms -4.9% 0.414ms 0.397ms -4.0% 16.794ms 17.390ms +3.5% list: newest 50 open 0.596ms 0.534ms -10.4% 1.046ms 0.828ms -20.9% 5.649ms 5.267ms -6.8% list + author 0.244ms 0.313ms +28.3% 0.444ms 0.409ms -7.9% 🔴 13.551ms 14.322ms +5.7% list + comment count 0.390ms 0.457ms +17.1% 0.600ms 0.606ms +1.1% 13.345ms 14.849ms +11.3% list + 3 recent comments 0.264ms 0.268ms +1.3% 0.452ms 0.439ms -2.9% 11.676ms 13.193ms +13.0% issue detail + comments 0.176ms 0.176ms -0.4% 0.323ms 0.313ms -3.0% 1.935ms 1.925ms -0.5% 100 rows/collection | source indexes: none | optimistic writes — geomean 0.98×, cold 1.13×
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold list: newest 50 open 0.171ms 0.174ms +1.6% 0.273ms 0.281ms +2.9% 2.703ms 3.906ms +44.5% list: newest 50 open 0.120ms 0.118ms -1.5% 0.195ms 0.165ms -15.4% 2.007ms 2.757ms +37.4% list + author 0.191ms 0.205ms +6.9% 0.318ms 0.322ms +1.3% 7.090ms 7.394ms +4.3% list + comment count 0.248ms 0.253ms +2.0% 0.421ms 0.417ms -0.8% 6.553ms 5.797ms -11.5% list + 3 recent comments 0.200ms 0.162ms -18.8% 0.287ms 0.301ms +4.8% 9.842ms 11.109ms +12.9% issue detail + comments 0.195ms 0.191ms -1.8% 0.315ms 0.325ms +3.3% 1.226ms 1.254ms +2.3% 100 rows/collection | source indexes: manual | synced writes — geomean 1.01×, cold 1.05×
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold list: newest 50 open 0.192ms 0.187ms -2.7% 0.347ms 0.290ms -16.3% 4.689ms 3.569ms -23.9% list: newest 50 open 0.392ms 0.415ms +5.8% 0.698ms 0.654ms -6.3% 1.722ms 2.352ms +36.6% list + author 0.158ms 0.164ms +4.3% 0.285ms 0.284ms -0.1% 4.954ms 7.296ms +47.3% list + comment count 0.283ms 0.276ms -2.7% 0.496ms 0.485ms -2.2% 4.269ms 4.579ms +7.3% list + 3 recent comments 0.190ms 0.186ms -2.0% 0.335ms 0.337ms +0.8% 6.146ms 6.064ms -1.3% issue detail + comments 0.141ms 0.148ms +4.8% 0.264ms 0.266ms +0.7% 0.702ms 0.578ms -17.6% 100 rows/collection | source indexes: manual | optimistic writes — geomean 1.07×, cold 0.93×
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold list: newest 50 open 0.134ms 0.132ms -1.4% 0.227ms 0.198ms -12.8% 1.790ms 2.383ms +33.1% list: newest 50 open 0.109ms 0.122ms +11.5% 0.167ms 0.263ms +57.2% 2.168ms 1.490ms -31.3% list + author 0.168ms 0.178ms +6.1% 0.279ms 0.307ms +10.0% 6.430ms 5.718ms -11.1% list + comment count 0.236ms 0.264ms +12.0% 0.369ms 0.399ms +8.3% 6.215ms 4.676ms -24.8% list + 3 recent comments 0.142ms 0.153ms +8.3% 0.250ms 0.268ms +7.2% 6.155ms 6.342ms +3.0% issue detail + comments 0.126ms 0.134ms +6.5% 0.180ms 0.166ms -7.8% 0.673ms 0.706ms +4.8% 1,000 rows/collection | source indexes: none | synced writes — geomean 1.05×, cold 0.99×
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold list: newest 50 open 0.103ms 0.107ms +3.9% 0.216ms 0.137ms -36.3% 9.121ms 9.085ms -0.4% list: newest 50 open 1.098ms 1.112ms +1.3% 1.832ms 1.400ms -23.6% 8.612ms 7.471ms -13.2% list + author 0.136ms 0.140ms +3.0% 0.251ms 0.184ms -26.6% 31.744ms 39.813ms +25.4% list + comment count 0.313ms 0.363ms +15.8% 0.568ms 0.596ms +4.9% 11.856ms 9.973ms -15.9% list + 3 recent comments 0.249ms 0.271ms +8.8% 0.347ms 0.321ms -7.4% 17.921ms 18.075ms +0.9% issue detail + comments 0.189ms 0.187ms -1.1% 0.395ms 0.315ms -20.4% 1.234ms 1.274ms +3.2% 1,000 rows/collection | source indexes: none | optimistic writes — geomean 1.02×, cold 0.88×
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold list: newest 50 open 0.126ms 0.167ms +32.0% 0.259ms 0.307ms +18.4% 6.932ms 8.164ms +17.8% list: newest 50 open 0.090ms 0.087ms -2.6% 0.186ms 0.180ms -3.3% 7.165ms 6.419ms -10.4% list + author 0.198ms 0.150ms -24.4% 0.240ms 0.189ms -21.2% 42.076ms 36.132ms -14.1% list + comment count 0.201ms 0.208ms +3.5% 0.248ms 0.269ms +8.7% 15.127ms 10.248ms -32.3% list + 3 recent comments 0.124ms 0.134ms +7.7% 0.215ms 0.218ms +1.0% 11.927ms 13.219ms +10.8% issue detail + comments 0.115ms 0.120ms +4.6% 0.153ms 0.149ms -2.4% 1.535ms 1.077ms -29.9% 1,000 rows/collection | source indexes: manual | synced writes — geomean 1.02×, cold 1.14×
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold list: newest 50 open 0.100ms 0.100ms -0.3% 0.129ms 0.129ms +0.1% 1.392ms 1.477ms +6.1% list: newest 50 open 0.364ms 0.347ms -4.5% 0.639ms 0.602ms -5.8% 1.249ms 2.303ms +84.4% list + author 0.135ms 0.134ms -0.6% 0.167ms 0.164ms -1.6% 4.254ms 4.075ms -4.2% list + comment count 0.236ms 0.245ms +3.9% 0.306ms 0.319ms +4.1% 3.958ms 4.095ms +3.4% list + 3 recent comments 0.156ms 0.166ms +6.4% 0.264ms 0.205ms -22.3% 6.338ms 6.643ms +4.8% issue detail + comments 0.110ms 0.119ms +8.0% 0.141ms 0.149ms +6.0% 0.418ms 0.444ms +6.2% 1,000 rows/collection | source indexes: manual | optimistic writes — geomean 1.04×, cold 0.98×
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold list: newest 50 open 0.116ms 0.119ms +2.6% 0.165ms 0.210ms +27.0% 1.256ms 1.194ms -4.9% list: newest 50 open 0.097ms 0.095ms -2.0% 0.131ms 0.132ms +1.1% 1.224ms 1.248ms +2.0% list + author 0.147ms 0.148ms +0.6% 0.184ms 0.179ms -2.9% 7.129ms 3.922ms -45.0% list + comment count 0.209ms 0.236ms +12.8% 0.258ms 0.379ms +46.9% 3.925ms 4.049ms +3.2% list + 3 recent comments 0.132ms 0.137ms +3.7% 0.175ms 0.173ms -1.0% 5.715ms 10.302ms +80.3% issue detail + comments 0.118ms 0.129ms +9.5% 0.168ms 0.219ms +30.6% 0.486ms 0.425ms -12.5% 10,000 rows/collection | source indexes: none | synced writes — geomean 1.04×, cold 0.97×
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold list: newest 50 open 0.097ms 0.092ms -4.2% 0.132ms 0.124ms -6.4% 72.417ms 73.364ms +1.3% list: newest 50 open 9.692ms 10.090ms +4.1% 10.353ms 10.691ms +3.3% 58.008ms 75.768ms +30.6% list + author 0.210ms 0.221ms +5.6% 0.271ms 0.290ms +7.0% 330.742ms 344.343ms +4.1% list + comment count 0.223ms 0.233ms +4.5% 0.323ms 0.281ms -13.1% 104.690ms 77.272ms -26.2% list + 3 recent comments 0.152ms 0.162ms +7.1% 0.293ms 0.299ms +2.0% 90.802ms 73.392ms -19.2% issue detail + comments 0.107ms 0.114ms +6.9% 0.142ms 0.147ms +3.4% 5.289ms 5.324ms +0.7% 10,000 rows/collection | source indexes: none | optimistic writes — geomean 1.06×, cold 1.13×
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold list: newest 50 open 0.117ms 0.122ms +4.8% 0.206ms 0.183ms -11.0% 68.786ms 96.647ms +40.5% list: newest 50 open 0.085ms 0.090ms +5.3% 0.126ms 0.149ms +18.0% 65.304ms 72.079ms +10.4% list + author 0.149ms 0.153ms +2.3% 0.185ms 0.242ms +30.6% 319.690ms 334.278ms +4.6% list + comment count 0.238ms 0.258ms +8.3% 0.288ms 0.435ms +50.8% 74.920ms 85.483ms +14.1% list + 3 recent comments 0.125ms 0.135ms +7.7% 0.159ms 0.225ms +41.7% 76.366ms 85.361ms +11.8% issue detail + comments 0.120ms 0.127ms +5.8% 0.157ms 0.192ms +22.1% 5.182ms 5.273ms +1.8% 10,000 rows/collection | source indexes: manual | synced writes — geomean 0.90×, cold 1.01×, 1 change(s)
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold list: newest 50 open 0.107ms 0.099ms -7.1% 0.144ms 0.125ms -12.8% 3.321ms 2.360ms -28.9% list: newest 50 open 1.004ms 0.996ms -0.8% 1.181ms 1.489ms +26.2% 2.283ms 2.241ms -1.8% list + author 0.134ms 0.142ms +5.5% 0.218ms 0.269ms +22.9% 5.066ms 8.884ms +75.4% list + comment count 0.244ms 0.251ms +2.7% 0.293ms 0.435ms +48.2% 5.734ms 6.090ms +6.2% list + 3 recent comments 0.331ms 0.176ms -46.9% 0.408ms 0.289ms -29.3% 🟢 7.913ms 6.296ms -20.4% issue detail + comments 0.124ms 0.124ms -0.8% 0.238ms 0.156ms -34.5% 0.679ms 0.709ms +4.3% Runner: node v24.8.0, linux 7.0.0-1017-azure, AMD EPYC 7763 64-Core Processor. Timings on shared CI runners are noisy; treat small deltas as indicative only.10,000 rows/collection | source indexes: manual | optimistic writes — geomean 1.08×, cold 0.94×, 1 change(s)
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold list: newest 50 open 0.120ms 0.127ms +6.3% 0.165ms 0.167ms +1.4% 2.382ms 2.418ms +1.5% list: newest 50 open 0.098ms 0.103ms +4.9% 0.125ms 0.132ms +6.0% 1.997ms 2.104ms +5.4% list + author 0.148ms 0.159ms +7.2% 0.190ms 0.282ms +48.8% 5.583ms 7.334ms +31.4% list + comment count 0.248ms 0.266ms +7.2% 0.425ms 0.322ms -24.3% 15.002ms 6.191ms -58.7% 🟢 list + 3 recent comments 0.141ms 0.147ms +4.8% 0.172ms 0.179ms +4.4% 5.902ms 6.094ms +3.3% issue detail + comments 0.130ms 0.157ms +20.7% 0.199ms 0.302ms +51.9% 0.634ms 0.723ms +14.0% No actionable comments were generated in the recent review.
Recent review info-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
862d3956-a296-4a71-805e-fc9b270ccb08
Commits-
Reviewing files that changed from the base of the PR and between 03a7b3ba15c4826c3e0a901c3634e82231f71729 and 331128bb0f6ac677173d7ae0c8e3c9be6bbb3b81.
Files selected for processing: 7-
docs/contributing/oracle-coverage.mddocs/contributing/oracle-reviews/2026-11-02-query-refetch-held-page-end.mddocs/contributing/oracle-reviews/2026-11-02-query-refetch-nine-item-review.mdpackages/query-db-collection/src/query.tspackages/query-db-collection/tests/refetch-ordered-prefix-oracle.test.tspackages/query-db-collection/tsconfig.refetch.jsonpackages/query-db-collection/vitest.refetch.config.mjs
Files skipped from review as they are similar to previous changes: 1-
- docs/contributing/oracle-reviews/2026-11-02-query-refetch-held-page-end.md
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.
-
Walkthrough
-
The ordered-refetch adapter now reports an earlier page end even when page keys remain unchanged. The PR adds generated oracle histories and replay registration for this case, and documents the coverage, test results, and repair limits.
Changes: Ordered refetch gap detection
Layer / File(s) Summary Detect earlier page ends
packages/query-db-collection/src/query.ts,.changeset/fix-held-query-page-end.mdThe adapter reports a gap when a page end moves earlier, including when page keys stay unchanged. If keys change, reporting still requires a later page. Loader acquisitions remain excluded from shift reporting. Exercise and document held-page-end histories
packages/query-db-collection/tests/refetch-ordered-prefix-oracle.test.ts,packages/db/tests/oracle-config.ts,packages/db/tests/oracle-replay-manifest.ts,packages/query-db-collection/tsconfig.refetch.json,packages/query-db-collection/vitest.refetch.config.mjs,docs/contributing/oracle-coverage.md,docs/contributing/oracle-reviews/*The oracle adds fixed and generated histories, reach checks, and tracking for same-key earlier ends and delete-held gaps. The property is registered for replay. The documentation records coverage, test evidence, and stated limits. Estimated code review effort: 3 (Moderate) | ~25 minutes
Possibly related issues
- TanStack/db#2214 reports a missing source row after a held delete is released. This PR changes related ordered-refetch reporting and adds held-page-end coverage, but does not state that it resolves that specific counterexample.
Merge Risk:
Minimal · up to33112-
The ordered-refetch correction has no identified merge-blocking issue.
Pre-merge checks:
4 · 1-
Failed checks: 1 warningCheck name Status Explanation Resolution Docstring Coverage Docstring coverage is 20.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold. Passed checks: 4 passed-
Check name Status Explanation Title check The title clearly and concisely identifies the main change: preserving ordered coverage during held Query DB refetches. Description check The description includes all required sections, explains the fix and motivation, documents oracle coverage and limitations, records test results, and identifies the generated changeset. It also transp… Linked Issues check Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Check skipped because no linked issues were found for this pull request. Full details: Description check
-
Explanation
The description includes all required sections, explains the fix and motivation, documents oracle coverage and limitations, records test results, and identifies the generated changeset. It also transparently states that the full pnpm test command was not run.
-
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 20.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 5 functions across 5 files. (4 skipped: 4 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches
-
Generate docstrings
-
- Commit to this branch
- Create a new PR
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
-
More templates
- todos
- offline-first-electron
- @tanstack/db-example-react-action-enforcement
- @tanstack/db-example-react-next-ssr-e2e
- tanstack-start-example-basic
- @tanstack/db-example-paced-mutations-demo
- tanstack-start-db-projects-example
- @tanstack/db-example-react-start-ssr-e2e
- @tanstack/db-example-react-todo
- offline-transactions-react-native
- shopping-list-react-native
- @tanstack/db-example-solid-todo
@tanstack/angular-db
npm i https://pkg.pr.new/@tanstack/angular-db@2332@tanstack/browser-db-sqlite-persistence
npm i https://pkg.pr.new/@tanstack/browser-db-sqlite-persistence@2332@tanstack/capacitor-db-sqlite-persistence
npm i https://pkg.pr.new/@tanstack/capacitor-db-sqlite-persistence@2332@tanstack/cloudflare-durable-objects-db-sqlite-persistence
npm i https://pkg.pr.new/@tanstack/cloudflare-durable-objects-db-sqlite-persistence@2332@tanstack/convex-db-collection
npm i https://pkg.pr.new/@tanstack/convex-db-collection@2332@tanstack/db
npm i https://pkg.pr.new/@tanstack/db@2332@tanstack/db-ivm
npm i https://pkg.pr.new/@tanstack/db-ivm@2332@tanstack/db-sqlite-persistence-core
npm i https://pkg.pr.new/@tanstack/db-sqlite-persistence-core@2332@tanstack/electric-db-collection
npm i https://pkg.pr.new/@tanstack/electric-db-collection@2332@tanstack/electron-db-sqlite-persistence
npm i https://pkg.pr.new/@tanstack/electron-db-sqlite-persistence@2332@tanstack/expo-db-sqlite-persistence
npm i https://pkg.pr.new/@tanstack/expo-db-sqlite-persistence@2332@tanstack/node-db-sqlite-persistence
npm i https://pkg.pr.new/@tanstack/node-db-sqlite-persistence@2332@tanstack/offline-transactions
npm i https://pkg.pr.new/@tanstack/offline-transactions@2332@tanstack/powersync-db-collection
npm i https://pkg.pr.new/@tanstack/powersync-db-collection@2332@tanstack/preact-db
npm i https://pkg.pr.new/@tanstack/preact-db@2332@tanstack/query-db-collection
npm i https://pkg.pr.new/@tanstack/query-db-collection@2332@tanstack/react-db
npm i https://pkg.pr.new/@tanstack/react-db@2332@tanstack/react-native-db-sqlite-persistence
npm i https://pkg.pr.new/@tanstack/react-native-db-sqlite-persistence@2332@tanstack/react-router-with-db
npm i https://pkg.pr.new/@tanstack/react-router-with-db@2332@tanstack/rxdb-db-collection
npm i https://pkg.pr.new/@tanstack/rxdb-db-collection@2332@tanstack/solid-db
npm i https://pkg.pr.new/@tanstack/solid-db@2332@tanstack/svelte-db
npm i https://pkg.pr.new/@tanstack/svelte-db@2332@tanstack/tauri-db-sqlite-persistence
npm i https://pkg.pr.new/@tanstack/tauri-db-sqlite-persistence@2332@tanstack/trailbase-db-collection
npm i https://pkg.pr.new/@tanstack/trailbase-db-collection@2332@tanstack/vue-db
npm i https://pkg.pr.new/@tanstack/vue-db@2332commit:
331128bSize Change: 0 B
Total Size: 238 kB
compressed-size-action::db-and-react-package-sizeℹ️ View Unchanged
Filename Size packages/db/dist/esm/client.js5.51 kB packages/db/dist/esm/collection-options-brand.js219 B packages/db/dist/esm/collection-options.js258 B packages/db/dist/esm/collection/change-events.js1.76 kB packages/db/dist/esm/collection/changes.js3.06 kB packages/db/dist/esm/collection/cleanup-queue.js828 B packages/db/dist/esm/collection/config-errors.js547 B packages/db/dist/esm/collection/events.js504 B packages/db/dist/esm/collection/health-tree.js698 B packages/db/dist/esm/collection/index.js6.23 kB packages/db/dist/esm/collection/indexes.js2.3 kB packages/db/dist/esm/collection/lifecycle.js5.59 kB packages/db/dist/esm/collection/mutations.js2.94 kB packages/db/dist/esm/collection/state.js7.69 kB packages/db/dist/esm/collection/subscription.js9.86 kB packages/db/dist/esm/collection/sync.js6.51 kB packages/db/dist/esm/collection/validate-config.js1.17 kB packages/db/dist/esm/collection/validate-indexing.js366 B packages/db/dist/esm/deferred.js207 B packages/db/dist/esm/error-message.js642 B packages/db/dist/esm/errors.js7.15 kB packages/db/dist/esm/event-emitter.js1.06 kB packages/db/dist/esm/index.js4.75 kB packages/db/dist/esm/indexed-db-wrapper.js1.91 kB packages/db/dist/esm/indexed-db.js3.8 kB packages/db/dist/esm/indexes/auto-index.js924 B packages/db/dist/esm/indexes/base-index.js1.92 kB packages/db/dist/esm/indexes/basic-index.js1.93 kB packages/db/dist/esm/indexes/btree-index.js1.62 kB packages/db/dist/esm/indexes/index-registry.js916 B packages/db/dist/esm/indexes/reverse-index.js1.01 kB packages/db/dist/esm/live-query-adapter.js845 B packages/db/dist/esm/live-query-observer-client.js2.21 kB packages/db/dist/esm/live-query-observer.js3.3 kB packages/db/dist/esm/live-query-options.js2.65 kB packages/db/dist/esm/live-query-primitives.js406 B packages/db/dist/esm/live-query-window-binding.js1.56 kB packages/db/dist/esm/live-query-window-controller.js4.02 kB packages/db/dist/esm/local-only.js1 kB packages/db/dist/esm/local-storage.js4.58 kB packages/db/dist/esm/optimistic-action.js359 B packages/db/dist/esm/paced-mutations.js1.11 kB packages/db/dist/esm/proxy.js3.51 kB packages/db/dist/esm/query/builder/clone-query.js854 B packages/db/dist/esm/query/builder/functions.js1.61 kB packages/db/dist/esm/query/builder/group-keys.js157 B packages/db/dist/esm/query/builder/include-functions.js229 B packages/db/dist/esm/query/builder/index.js7.72 kB packages/db/dist/esm/query/builder/query-ir.js312 B packages/db/dist/esm/query/builder/ref-proxy-identity.js292 B packages/db/dist/esm/query/builder/ref-proxy.js1.67 kB packages/db/dist/esm/query/builder/wrapper-identity.js221 B packages/db/dist/esm/query/compiler/evaluators.js2.51 kB packages/db/dist/esm/query/compiler/expressions.js603 B packages/db/dist/esm/query/compiler/find-aggregate.js328 B packages/db/dist/esm/query/compiler/group-by.js4.38 kB packages/db/dist/esm/query/compiler/grouping.js161 B packages/db/dist/esm/query/compiler/index.js10.3 kB packages/db/dist/esm/query/compiler/joins.js3.29 kB packages/db/dist/esm/query/compiler/lazy-targets.js1.11 kB packages/db/dist/esm/query/compiler/order-by.js2.87 kB packages/db/dist/esm/query/compiler/parent-routes.js325 B packages/db/dist/esm/query/compiler/query-equivalence.js568 B packages/db/dist/esm/query/compiler/route-metadata.js1.45 kB packages/db/dist/esm/query/compiler/select.js1.66 kB packages/db/dist/esm/query/effect.js5.81 kB packages/db/dist/esm/query/equality-conjunct.js486 B packages/db/dist/esm/query/equality-value-identity.js736 B packages/db/dist/esm/query/expression-helpers.js1.61 kB packages/db/dist/esm/query/ir-stable-identity.js4.29 kB packages/db/dist/esm/query/ir.js2.26 kB packages/db/dist/esm/query/join-conditions.js257 B packages/db/dist/esm/query/live-query-collection.js391 B packages/db/dist/esm/query/live/bucket-facade-adapter.js3.17 kB packages/db/dist/esm/query/live/collection-config-builder.js8.54 kB packages/db/dist/esm/query/live/collection-registry.js264 B packages/db/dist/esm/query/live/collection-subscriber.js2.69 kB packages/db/dist/esm/query/live/graph-scheduler.js305 B packages/db/dist/esm/query/live/includes-runtime.js212 B packages/db/dist/esm/query/live/internal.js145 B packages/db/dist/esm/query/live/materialized-pipeline.js1.94 kB packages/db/dist/esm/query/live/ordered-source-loader.js6.53 kB packages/db/dist/esm/query/live/public-key-reduction.js970 B packages/db/dist/esm/query/live/subset-demand-controller.js2.44 kB packages/db/dist/esm/query/live/utils.js1.35 kB packages/db/dist/esm/query/optimizer.js2.95 kB packages/db/dist/esm/query/pooled-live-query.js5.14 kB packages/db/dist/esm/query/pooled-source.js219 B packages/db/dist/esm/query/query-once.js359 B packages/db/dist/esm/query/runtime-reference-identity.js630 B packages/db/dist/esm/query/subset-dedupe.js493 B packages/db/dist/esm/scheduler.js1.23 kB packages/db/dist/esm/SortedMap.js1.77 kB packages/db/dist/esm/strategies/commit-completion.js154 B packages/db/dist/esm/strategies/debounceStrategy.js658 B packages/db/dist/esm/strategies/queueStrategy.js523 B packages/db/dist/esm/strategies/serial-pacer.js486 B packages/db/dist/esm/strategies/throttleStrategy.js738 B packages/db/dist/esm/sync-persistence.js669 B packages/db/dist/esm/sync-receipt.js211 B packages/db/dist/esm/transaction-commit-work.js351 B packages/db/dist/esm/transactions.js4.66 kB packages/db/dist/esm/utils.js1.7 kB packages/db/dist/esm/utils/array-utils.js270 B packages/db/dist/esm/utils/browser-polyfills.js304 B packages/db/dist/esm/utils/btree.js3.02 kB packages/db/dist/esm/utils/callbacks.js219 B packages/db/dist/esm/utils/comparison.js1.95 kB packages/db/dist/esm/utils/cursor.js753 B packages/db/dist/esm/utils/error.js262 B packages/db/dist/esm/utils/get-or-create.js155 B packages/db/dist/esm/utils/index-optimization.js2.58 kB packages/db/dist/esm/utils/source-record.js140 B packages/db/dist/esm/utils/type-guards.js230 B packages/db/dist/esm/utils/uuid.js530 B packages/db/dist/esm/virtual-props.js400 B packages/react-db/dist/esm/DbProvider.js317 B packages/react-db/dist/esm/development.js190 B packages/react-db/dist/esm/HydrationBoundary.js263 B packages/react-db/dist/esm/index.js330 B packages/react-db/dist/esm/source-id-bindings.js339 B packages/react-db/dist/esm/useLiveInfiniteQuery.js1.45 kB packages/react-db/dist/esm/useLiveQuery.js3.08 kB packages/react-db/dist/esm/useLiveQueryEffect.js504 B packages/react-db/dist/esm/useLiveSuspenseQuery.js1.27 kB packages/react-db/dist/esm/usePacedMutations.js429 B KyleAMathews merged thisa2c3854
KyleAMathews closed this
Sign in to join this conversation.
🦋 Changeset detected#
Latest commit: 331128bb0f6ac677173d7ae0c8e3c9be6bbb3b81
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 6 packages
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR