Skip to content
Source
Sign inSign up
TanStack/db

fix(query-db): preserve ordered coverage during held refetches #2332

MergedKyleAMathewsmerged 4 commits intomain fromrefs/pull/2332/headmerged by KyleAMathews

KyleAMathewscommented

🎯 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 LoadSubsetFn and 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. changeset-bot[bot](GitHub profile, opens in a new tab)commented

      🦋 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
      NameType
      @tanstack/query-db-collectionPatch
      offline-first-electronPatch
      offline-transactions-react-nativePatch
      @tanstack/db-example-react-action-enforcementPatch
      @tanstack/db-example-react-todoPatch
      @tanstack/db-example-solid-todoPatch

      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

    2. github-actions[bot](GitHub profile, opens in a new tab)commented

      Incremental update benchmark

      Comparing 36cd8e4dd (this PR) against 30e85464e (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 caseWorst caseFlags
      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 caseWorst caseFlags
      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)
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.243ms0.231ms-4.9%0.414ms0.397ms-4.0%16.794ms17.390ms+3.5%
      list: newest 50 open0.596ms0.534ms-10.4%1.046ms0.828ms-20.9%5.649ms5.267ms-6.8%
      list + author0.244ms0.313ms+28.3%0.444ms0.409ms-7.9%🔴13.551ms14.322ms+5.7%
      list + comment count0.390ms0.457ms+17.1%0.600ms0.606ms+1.1%13.345ms14.849ms+11.3%
      list + 3 recent comments0.264ms0.268ms+1.3%0.452ms0.439ms-2.9%11.676ms13.193ms+13.0%
      issue detail + comments0.176ms0.176ms-0.4%0.323ms0.313ms-3.0%1.935ms1.925ms-0.5%
      100 rows/collection | source indexes: none | optimistic writes — geomean 0.98×, cold 1.13×
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.171ms0.174ms+1.6%0.273ms0.281ms+2.9%2.703ms3.906ms+44.5%
      list: newest 50 open0.120ms0.118ms-1.5%0.195ms0.165ms-15.4%2.007ms2.757ms+37.4%
      list + author0.191ms0.205ms+6.9%0.318ms0.322ms+1.3%7.090ms7.394ms+4.3%
      list + comment count0.248ms0.253ms+2.0%0.421ms0.417ms-0.8%6.553ms5.797ms-11.5%
      list + 3 recent comments0.200ms0.162ms-18.8%0.287ms0.301ms+4.8%9.842ms11.109ms+12.9%
      issue detail + comments0.195ms0.191ms-1.8%0.315ms0.325ms+3.3%1.226ms1.254ms+2.3%
      100 rows/collection | source indexes: manual | synced writes — geomean 1.01×, cold 1.05×
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.192ms0.187ms-2.7%0.347ms0.290ms-16.3%4.689ms3.569ms-23.9%
      list: newest 50 open0.392ms0.415ms+5.8%0.698ms0.654ms-6.3%1.722ms2.352ms+36.6%
      list + author0.158ms0.164ms+4.3%0.285ms0.284ms-0.1%4.954ms7.296ms+47.3%
      list + comment count0.283ms0.276ms-2.7%0.496ms0.485ms-2.2%4.269ms4.579ms+7.3%
      list + 3 recent comments0.190ms0.186ms-2.0%0.335ms0.337ms+0.8%6.146ms6.064ms-1.3%
      issue detail + comments0.141ms0.148ms+4.8%0.264ms0.266ms+0.7%0.702ms0.578ms-17.6%
      100 rows/collection | source indexes: manual | optimistic writes — geomean 1.07×, cold 0.93×
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.134ms0.132ms-1.4%0.227ms0.198ms-12.8%1.790ms2.383ms+33.1%
      list: newest 50 open0.109ms0.122ms+11.5%0.167ms0.263ms+57.2%2.168ms1.490ms-31.3%
      list + author0.168ms0.178ms+6.1%0.279ms0.307ms+10.0%6.430ms5.718ms-11.1%
      list + comment count0.236ms0.264ms+12.0%0.369ms0.399ms+8.3%6.215ms4.676ms-24.8%
      list + 3 recent comments0.142ms0.153ms+8.3%0.250ms0.268ms+7.2%6.155ms6.342ms+3.0%
      issue detail + comments0.126ms0.134ms+6.5%0.180ms0.166ms-7.8%0.673ms0.706ms+4.8%
      1,000 rows/collection | source indexes: none | synced writes — geomean 1.05×, cold 0.99×
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.103ms0.107ms+3.9%0.216ms0.137ms-36.3%9.121ms9.085ms-0.4%
      list: newest 50 open1.098ms1.112ms+1.3%1.832ms1.400ms-23.6%8.612ms7.471ms-13.2%
      list + author0.136ms0.140ms+3.0%0.251ms0.184ms-26.6%31.744ms39.813ms+25.4%
      list + comment count0.313ms0.363ms+15.8%0.568ms0.596ms+4.9%11.856ms9.973ms-15.9%
      list + 3 recent comments0.249ms0.271ms+8.8%0.347ms0.321ms-7.4%17.921ms18.075ms+0.9%
      issue detail + comments0.189ms0.187ms-1.1%0.395ms0.315ms-20.4%1.234ms1.274ms+3.2%
      1,000 rows/collection | source indexes: none | optimistic writes — geomean 1.02×, cold 0.88×
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.126ms0.167ms+32.0%0.259ms0.307ms+18.4%6.932ms8.164ms+17.8%
      list: newest 50 open0.090ms0.087ms-2.6%0.186ms0.180ms-3.3%7.165ms6.419ms-10.4%
      list + author0.198ms0.150ms-24.4%0.240ms0.189ms-21.2%42.076ms36.132ms-14.1%
      list + comment count0.201ms0.208ms+3.5%0.248ms0.269ms+8.7%15.127ms10.248ms-32.3%
      list + 3 recent comments0.124ms0.134ms+7.7%0.215ms0.218ms+1.0%11.927ms13.219ms+10.8%
      issue detail + comments0.115ms0.120ms+4.6%0.153ms0.149ms-2.4%1.535ms1.077ms-29.9%
      1,000 rows/collection | source indexes: manual | synced writes — geomean 1.02×, cold 1.14×
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.100ms0.100ms-0.3%0.129ms0.129ms+0.1%1.392ms1.477ms+6.1%
      list: newest 50 open0.364ms0.347ms-4.5%0.639ms0.602ms-5.8%1.249ms2.303ms+84.4%
      list + author0.135ms0.134ms-0.6%0.167ms0.164ms-1.6%4.254ms4.075ms-4.2%
      list + comment count0.236ms0.245ms+3.9%0.306ms0.319ms+4.1%3.958ms4.095ms+3.4%
      list + 3 recent comments0.156ms0.166ms+6.4%0.264ms0.205ms-22.3%6.338ms6.643ms+4.8%
      issue detail + comments0.110ms0.119ms+8.0%0.141ms0.149ms+6.0%0.418ms0.444ms+6.2%
      1,000 rows/collection | source indexes: manual | optimistic writes — geomean 1.04×, cold 0.98×
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.116ms0.119ms+2.6%0.165ms0.210ms+27.0%1.256ms1.194ms-4.9%
      list: newest 50 open0.097ms0.095ms-2.0%0.131ms0.132ms+1.1%1.224ms1.248ms+2.0%
      list + author0.147ms0.148ms+0.6%0.184ms0.179ms-2.9%7.129ms3.922ms-45.0%
      list + comment count0.209ms0.236ms+12.8%0.258ms0.379ms+46.9%3.925ms4.049ms+3.2%
      list + 3 recent comments0.132ms0.137ms+3.7%0.175ms0.173ms-1.0%5.715ms10.302ms+80.3%
      issue detail + comments0.118ms0.129ms+9.5%0.168ms0.219ms+30.6%0.486ms0.425ms-12.5%
      10,000 rows/collection | source indexes: none | synced writes — geomean 1.04×, cold 0.97×
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.097ms0.092ms-4.2%0.132ms0.124ms-6.4%72.417ms73.364ms+1.3%
      list: newest 50 open9.692ms10.090ms+4.1%10.353ms10.691ms+3.3%58.008ms75.768ms+30.6%
      list + author0.210ms0.221ms+5.6%0.271ms0.290ms+7.0%330.742ms344.343ms+4.1%
      list + comment count0.223ms0.233ms+4.5%0.323ms0.281ms-13.1%104.690ms77.272ms-26.2%
      list + 3 recent comments0.152ms0.162ms+7.1%0.293ms0.299ms+2.0%90.802ms73.392ms-19.2%
      issue detail + comments0.107ms0.114ms+6.9%0.142ms0.147ms+3.4%5.289ms5.324ms+0.7%
      10,000 rows/collection | source indexes: none | optimistic writes — geomean 1.06×, cold 1.13×
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.117ms0.122ms+4.8%0.206ms0.183ms-11.0%68.786ms96.647ms+40.5%
      list: newest 50 open0.085ms0.090ms+5.3%0.126ms0.149ms+18.0%65.304ms72.079ms+10.4%
      list + author0.149ms0.153ms+2.3%0.185ms0.242ms+30.6%319.690ms334.278ms+4.6%
      list + comment count0.238ms0.258ms+8.3%0.288ms0.435ms+50.8%74.920ms85.483ms+14.1%
      list + 3 recent comments0.125ms0.135ms+7.7%0.159ms0.225ms+41.7%76.366ms85.361ms+11.8%
      issue detail + comments0.120ms0.127ms+5.8%0.157ms0.192ms+22.1%5.182ms5.273ms+1.8%
      10,000 rows/collection | source indexes: manual | synced writes — geomean 0.90×, cold 1.01×, 1 change(s)
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.107ms0.099ms-7.1%0.144ms0.125ms-12.8%3.321ms2.360ms-28.9%
      list: newest 50 open1.004ms0.996ms-0.8%1.181ms1.489ms+26.2%2.283ms2.241ms-1.8%
      list + author0.134ms0.142ms+5.5%0.218ms0.269ms+22.9%5.066ms8.884ms+75.4%
      list + comment count0.244ms0.251ms+2.7%0.293ms0.435ms+48.2%5.734ms6.090ms+6.2%
      list + 3 recent comments0.331ms0.176ms-46.9%0.408ms0.289ms-29.3%🟢7.913ms6.296ms-20.4%
      issue detail + comments0.124ms0.124ms-0.8%0.238ms0.156ms-34.5%0.679ms0.709ms+4.3%
      10,000 rows/collection | source indexes: manual | optimistic writes — geomean 1.08×, cold 0.94×, 1 change(s)
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.120ms0.127ms+6.3%0.165ms0.167ms+1.4%2.382ms2.418ms+1.5%
      list: newest 50 open0.098ms0.103ms+4.9%0.125ms0.132ms+6.0%1.997ms2.104ms+5.4%
      list + author0.148ms0.159ms+7.2%0.190ms0.282ms+48.8%5.583ms7.334ms+31.4%
      list + comment count0.248ms0.266ms+7.2%0.425ms0.322ms-24.3%15.002ms6.191ms-58.7%🟢
      list + 3 recent comments0.141ms0.147ms+4.8%0.172ms0.179ms+4.4%5.902ms6.094ms+3.3%
      issue detail + comments0.130ms0.157ms+20.7%0.199ms0.302ms+51.9%0.634ms0.723ms+14.0%
      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.
    3. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →

      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.md
      • docs/contributing/oracle-reviews/2026-11-02-query-refetch-held-page-end.md
      • docs/contributing/oracle-reviews/2026-11-02-query-refetch-nine-item-review.md
      • packages/query-db-collection/src/query.ts
      • packages/query-db-collection/tests/refetch-ordered-prefix-oracle.test.ts
      • packages/query-db-collection/tsconfig.refetch.json
      • packages/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.md
      The 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 to 33112

      The ordered-refetch correction has no identified merge-blocking issue.

      Pre-merge checks: Passed 4 · Failed 1
      Failed Failed checks: 1 warning
      Check nameStatusExplanationResolution
      Docstring CoverageWarningDocstring 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 Passed checks: 4 passed
      Check nameStatusExplanation
      Title checkPassedThe title clearly and concisely identifies the main change: preserving ordered coverage during held Query DB refetches.
      Description checkPassedThe 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 checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck 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.

      Share
    4. pkg-pr-new[bot](GitHub profile, opens in a new tab)commented
      More templates

      @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@2332

      commit: 331128b

    5. github-actions[bot](GitHub profile, opens in a new tab)commented

      Size Change: 0 B

      Total Size: 238 kB

      ℹ️ View Unchanged
      FilenameSize
      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
      compressed-size-action::db-and-react-package-size
    6. KyleAMathews merged thisa2c3854

    7. KyleAMathews closed this

    8. 🎉 This PR has been released!

      Thank you for your contribution!

Sign in to join this conversation.