Skip to content
Source
Sign inSign up
TanStack/db

fix(db): publish optimistic ordered-window departures immediately #2177

MergedKyleAMathews(GitHub profile, opens in a new tab)merged 9 commits intomain fromrefs/pull/2177/headmerged by KyleAMathews(GitHub profile, opens in a new tab)

What changes

An optimistic update or delete now makes its row leave an ordered live query immediately. The view can be short while an on-demand provider fetches a replacement. The provider write becomes public when it applies.

For example, a descending window starts at [3, 2]. An optimistic update moves row 3 out of the query. The window publishes [2] at mutation admission. If row 1 is not installed, the provider fetches it. The window publishes [2, 1] after that write applies. If row 1 is already installed, local recomputation can publish [2, 1] immediately. An isolated rollback restores [3, 2].

Why it works

The ordered loader distinguishes an optimistic overlay from an authoritative loss of source order. It sends the optimistic change into the live-query graph and permits bounded refill work. It does not start an authoritative repair for that overlay. A non-optimistic source-order change still uses the complete-window repair barrier from #2131.

This rule applies to live-query Collections and Effects. The architecture document defines when a short window can publish and when an accepted provider write can become public.

Oracle evidence

The core ordered-work oracle checks immediate rows, callbacks, acquisition, held provider writes, settlement, and later task turns. Its 96-case matrix crosses source, joined, and anti-joined filters. It also crosses updates, deletes, Collections, Effects, acknowledgement, rollback, window widths, and indexed or unindexed loading. Adjacent histories cover ascending joins, offsets, ties, installed extent, late answers, and marker-side changes.

A real Query DB oracle holds the optimistic update while its mutation handler calls utils.refetch(). It checks the immediate [2], a bounded refill, and the final [2, 1] callback. Restoring the old loader classification fails at the immediate checkpoint.

PR #2154 is now merged into this branch. The Query DB oracle also invalidates a shifted ordered page while the optimistic update persists. Query DB reports the shift, and the loader starts a bounded request after that report. The public window stays [2] until persistence settles, then publishes [5, 2]. A mutant that ignores the report fails at the request checkpoint.

Limits

The controlled ascending joined and anti-joined histories reach the shape reported in #2148. That issue does not include a complete historical provider schedule for an exact replay. The new report-triggered history covers one held optimistic update and one inserted provider head. It does not cover every refetch shape or a second optimistic change during held repair.

This PR does not promise immediate rank-only rollback. Provider rejection, overlapping optimistic transactions, exact callback payloads, and framework render timing need separate witnesses. The coverage map and review record name the owners and limits.

Verification

  • The combined core ordered oracles passed: 976 tests.
  • The full Query DB suite passed: 1,383 tests, with 2 skipped.
  • The new report-triggered receiver test passed after the merge.
  • The DB and Query DB TypeScript projects passed tsc --noEmit.
  • ESLint and formatting checks reported no errors on the changed files.
  • CI for the latest push is pending.

Checklist

  • I have tested this code locally with pnpm test.

Release impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).

Refs #2169 Refs #2148

Summary by CodeRabbit

  • Behavior
    • Ordered live-query windows now show optimistic row removals immediately, even while replacement rows are being fetched. The window may temporarily contain fewer rows while a refill is pending.
    • Provider-backed replacement rows remain hidden until their updates are applied. Applied updates can refill the window, while a rollback recalculates it from the remaining changes.
  • Documentation
    • Clarified ordered-window behavior during optimistic updates, refills, and rollbacks.
    • Added guidance on coverage ownership and review evidence for ordered-window behavior.
    1. 🦋 Changeset detected

      Latest commit: a1a17dbe81c8c569dc6bd211a0bc4643bb959118

      The changes in this PR will be included in the next version bump.

      This PR includes changesets to release 24 packages
      NameType
      @tanstack/dbPatch
      @tanstack/angular-dbPatch
      @tanstack/capacitor-db-sqlite-persistence-e2e-appPatch
      @tanstack/db-sqlite-persistence-corePatch
      @tanstack/electric-db-collectionPatch
      @tanstack/expo-db-sqlite-persistence-e2e-appPatch
      @tanstack/offline-transactionsPatch
      @tanstack/powersync-db-collectionPatch
      @tanstack/query-db-collectionPatch
      @tanstack/react-dbPatch
      @tanstack/rxdb-db-collectionPatch
      @tanstack/solid-dbPatch
      @tanstack/svelte-dbPatch
      @tanstack/tauri-db-sqlite-persistence-e2e-appPatch
      @tanstack/trailbase-db-collectionPatch
      @tanstack/vue-dbPatch
      @tanstack/browser-db-sqlite-persistencePatch
      @tanstack/capacitor-db-sqlite-persistencePatch
      @tanstack/cloudflare-durable-objects-db-sqlite-persistencePatch
      @tanstack/electron-db-sqlite-persistencePatch
      @tanstack/expo-db-sqlite-persistencePatch
      @tanstack/node-db-sqlite-persistencePatch
      @tanstack/react-native-db-sqlite-persistencePatch
      @tanstack/tauri-db-sqlite-persistencePatch

      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. Incremental update benchmark

      Comparing d73abe2d (this PR) against 92b11b00 (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: 0.82× · cold hydrate time: 0.96× (geometric mean of per-case ratios; lower is faster).

      Writes: 2 regression(s), 8 improvement(s) (threshold: ±20% and >0.05ms).

      Cold hydrate: 2 regression(s), 0 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-46.1%-99.4%+21.2%7 🟢
      list + author-0.2%-15.9%+8.4%—
      list + comment count+3.2%-11.1%+49.6%1 🔴
      list + 3 recent comments-0.8%-28.0%+9.7%1 🟢
      issue detail + comments+2.0%-13.4%+75.6%1 🔴

      Cold hydrate

      QueryΔ cold hydrate time (geomean)Best caseWorst caseFlags
      list: newest 50 open-8.7%-50.1%+34.0%—
      list + author-8.0%-66.3%+71.2%1 🔴
      list + comment count-7.3%-43.8%+13.8%—
      list + 3 recent comments+2.7%-44.1%+67.9%—
      issue detail + comments+8.5%-26.6%+121.7%1 🔴

      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 0.99×, cold 0.89×
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.208ms0.208ms-0.1%0.334ms0.331ms-0.7%14.581ms13.436ms-7.8%
      list: newest 50 open0.517ms0.536ms+3.7%0.849ms0.838ms-1.2%3.242ms2.712ms-16.3%
      list + author0.201ms0.213ms+6.0%0.343ms0.350ms+2.2%8.342ms8.399ms+0.7%
      list + comment count0.394ms0.351ms-11.1%0.578ms0.548ms-5.1%12.234ms11.489ms-6.1%
      list + 3 recent comments0.218ms0.219ms+0.2%0.296ms0.288ms-2.7%11.182ms10.522ms-5.9%
      issue detail + comments0.161ms0.158ms-2.1%0.255ms0.275ms+7.8%1.983ms1.456ms-26.6%
      100 rows/collection | source indexes: none | optimistic writes — geomean 0.77×, cold 1.01×, 1 change(s)
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.138ms0.137ms-1.3%0.224ms0.236ms+5.6%2.475ms2.909ms+17.5%
      list: newest 50 open0.365ms0.093ms-74.5%0.616ms0.168ms-72.8%🟢2.292ms1.615ms-29.6%
      list + author0.189ms0.159ms-15.9%0.291ms0.278ms-4.3%3.989ms3.707ms-7.1%
      list + comment count0.224ms0.229ms+2.5%0.370ms0.361ms-2.2%5.091ms4.450ms-12.6%
      list + 3 recent comments0.134ms0.138ms+2.7%0.236ms0.261ms+10.8%6.461ms7.921ms+22.6%
      issue detail + comments0.174ms0.157ms-9.7%0.251ms0.211ms-15.7%0.948ms1.193ms+25.9%
      100 rows/collection | source indexes: manual | synced writes — geomean 1.02×, cold 1.04×
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.141ms0.147ms+4.8%0.185ms0.200ms+8.4%3.450ms3.479ms+0.8%
      list: newest 50 open0.440ms0.439ms-0.4%0.686ms0.695ms+1.3%1.273ms1.309ms+2.8%
      list + author0.125ms0.131ms+4.1%0.186ms0.220ms+18.1%3.945ms3.856ms-2.2%
      list + comment count0.249ms0.249ms-0.1%0.437ms0.457ms+4.5%3.490ms3.899ms+11.7%
      list + 3 recent comments0.166ms0.173ms+4.6%0.205ms0.302ms+47.4%4.422ms4.556ms+3.0%
      issue detail + comments0.123ms0.124ms+0.9%0.232ms0.206ms-11.2%0.562ms0.596ms+6.1%
      100 rows/collection | source indexes: manual | optimistic writes — geomean 0.83×, cold 0.98×, 1 change(s)
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.108ms0.109ms+0.9%0.195ms0.198ms+1.7%0.911ms1.220ms+34.0%
      list: newest 50 open0.294ms0.087ms-70.3%0.498ms0.181ms-63.6%🟢1.015ms1.019ms+0.4%
      list + author0.144ms0.144ms-0.3%0.243ms0.237ms-2.3%2.886ms2.724ms-5.6%
      list + comment count0.199ms0.203ms+2.1%0.332ms0.330ms-0.4%3.481ms3.043ms-12.6%
      list + 3 recent comments0.129ms0.129ms+0.2%0.230ms0.251ms+9.0%4.544ms4.374ms-3.7%
      issue detail + comments0.105ms0.110ms+4.5%0.145ms0.150ms+3.0%0.621ms0.522ms-15.9%
      1,000 rows/collection | source indexes: none | synced writes — geomean 1.09×, cold 0.96×, 4 change(s)
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.095ms0.086ms-9.3%0.174ms0.161ms-7.2%12.678ms7.436ms-41.3%
      list: newest 50 open1.118ms1.139ms+1.8%2.101ms2.096ms-0.2%7.536ms6.333ms-16.0%
      list + author0.127ms0.120ms-4.9%0.210ms0.205ms-2.2%22.078ms37.801ms+71.2%🔴
      list + comment count0.213ms0.319ms+49.6%0.327ms0.449ms+37.2%🔴16.627ms15.358ms-7.6%
      list + 3 recent comments0.205ms0.148ms-28.0%0.351ms0.285ms-18.8%🟢14.643ms11.153ms-23.8%
      issue detail + comments0.097ms0.170ms+75.6%0.143ms0.218ms+52.2%🔴1.306ms1.728ms+32.3%
      1,000 rows/collection | source indexes: none | optimistic writes — geomean 0.56×, cold 0.84×, 2 change(s)
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.176ms0.117ms-33.9%0.218ms0.206ms-5.3%🟢12.117ms12.360ms+2.0%
      list: newest 50 open1.242ms0.065ms-94.7%1.910ms0.092ms-95.2%🟢10.199ms5.303ms-48.0%
      list + author0.131ms0.128ms-2.7%0.162ms0.158ms-2.5%21.605ms21.277ms-1.5%
      list + comment count0.195ms0.191ms-2.0%0.293ms0.297ms+1.4%11.846ms9.057ms-23.5%
      list + 3 recent comments0.120ms0.115ms-4.2%0.188ms0.142ms-24.3%10.849ms10.100ms-6.9%
      issue detail + comments0.108ms0.105ms-2.7%0.141ms0.133ms-6.2%1.257ms1.146ms-8.8%
      1,000 rows/collection | source indexes: manual | synced writes — geomean 0.98×, cold 0.72×
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.082ms0.080ms-2.7%0.108ms0.107ms-1.0%0.985ms1.008ms+2.4%
      list: newest 50 open0.305ms0.312ms+2.0%0.561ms0.556ms-0.8%1.140ms0.762ms-33.1%
      list + author0.109ms0.110ms+0.4%0.154ms0.208ms+35.0%5.078ms1.712ms-66.3%
      list + comment count0.231ms0.231ms-0.4%0.369ms0.405ms+9.7%2.649ms2.791ms+5.4%
      list + 3 recent comments0.154ms0.147ms-4.4%0.204ms0.181ms-11.4%10.180ms5.688ms-44.1%
      issue detail + comments0.114ms0.110ms-3.9%0.144ms0.139ms-3.5%0.426ms0.420ms-1.6%
      1,000 rows/collection | source indexes: manual | optimistic writes — geomean 0.79×, cold 1.06×, 1 change(s)
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.095ms0.095ms+0.3%0.125ms0.125ms+0.2%0.805ms0.746ms-7.3%
      list: newest 50 open0.295ms0.075ms-74.7%0.438ms0.131ms-70.0%🟢0.846ms0.813ms-3.9%
      list + author0.121ms0.122ms+0.5%0.198ms0.163ms-17.5%1.945ms1.892ms-2.7%
      list + comment count0.201ms0.214ms+6.8%0.320ms0.347ms+8.4%2.672ms2.742ms+2.6%
      list + 3 recent comments0.129ms0.125ms-3.3%0.159ms0.160ms+0.8%3.691ms3.832ms+3.8%
      issue detail + comments0.116ms0.109ms-6.3%0.210ms0.142ms-32.2%0.376ms0.586ms+55.8%
      10,000 rows/collection | source indexes: none | synced writes — geomean 0.97×, cold 1.03×
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.123ms0.091ms-26.2%0.168ms0.148ms-12.0%73.594ms71.888ms-2.3%
      list: newest 50 open10.267ms10.674ms+4.0%11.156ms12.848ms+15.2%63.539ms73.720ms+16.0%
      list + author0.175ms0.175ms+0.2%0.216ms0.217ms+0.6%217.433ms200.255ms-7.9%
      list + comment count0.218ms0.217ms-0.6%0.362ms0.299ms-17.3%90.014ms92.209ms+2.4%
      list + 3 recent comments0.134ms0.139ms+4.3%0.163ms0.249ms+53.0%78.071ms90.171ms+15.5%
      issue detail + comments0.100ms0.102ms+2.5%0.139ms0.159ms+14.1%5.620ms5.309ms-5.5%
      10,000 rows/collection | source indexes: none | optimistic writes — geomean 0.45×, cold 1.13×, 2 change(s)
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.098ms0.110ms+12.6%0.153ms0.181ms+18.6%64.077ms64.493ms+0.6%
      list: newest 50 open11.283ms0.070ms-99.4%11.945ms0.119ms-99.0%🟢68.986ms64.697ms-6.2%
      list + author0.122ms0.131ms+7.5%0.181ms0.178ms-2.0%198.280ms191.385ms-3.5%
      list + comment count0.218ms0.224ms+2.8%0.374ms0.269ms-28.1%80.968ms81.072ms+0.1%
      list + 3 recent comments0.114ms0.121ms+5.8%0.141ms0.149ms+5.9%72.584ms74.959ms+3.3%
      issue detail + comments0.114ms0.114ms+0.5%0.235ms0.139ms-40.8%4.958ms10.989ms+121.7%🔴
      10,000 rows/collection | source indexes: manual | synced writes — geomean 1.06×, cold 1.14×
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.080ms0.097ms+21.2%0.109ms0.138ms+27.1%2.839ms3.273ms+15.3%
      list: newest 50 open0.934ms0.968ms+3.6%1.062ms1.521ms+43.1%1.617ms2.000ms+23.6%
      list + author0.100ms0.108ms+8.4%0.172ms0.195ms+13.2%2.495ms2.646ms+6.1%
      list + comment count0.213ms0.228ms+7.3%0.249ms0.259ms+4.2%3.541ms4.031ms+13.8%
      list + 3 recent comments0.142ms0.156ms+9.7%0.188ms0.184ms-2.2%5.016ms7.366ms+46.9%
      issue detail + comments0.127ms0.110ms-13.4%0.228ms0.137ms-40.1%0.680ms0.579ms-14.8%
      10,000 rows/collection | source indexes: manual | optimistic writes — geomean 0.65×, cold 0.86×, 1 change(s)
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.112ms0.108ms-3.8%0.195ms0.195ms-0.1%3.293ms1.643ms-50.1%
      list: newest 50 open0.933ms0.077ms-91.7%1.100ms0.105ms-90.4%🟢1.702ms1.786ms+4.9%
      list + author0.128ms0.124ms-3.2%0.159ms0.200ms+25.8%3.554ms2.917ms-17.9%
      list + comment count0.264ms0.243ms-7.8%0.417ms0.298ms-28.6%6.176ms3.473ms-43.8%
      list + 3 recent comments0.136ms0.147ms+8.3%0.235ms0.240ms+1.9%4.371ms7.337ms+67.9%
      issue detail + comments0.118ms0.116ms-1.1%0.146ms0.144ms-1.7%0.622ms0.605ms-2.7%
      Runner: node v24.8.0, linux 6.17.0-1022-azure, AMD EPYC 7763 64-Core Processor. Timings on shared CI runners are noisy; treat small deltas as indicative only.
    3. Review in Change Stack →

      Note

      Reviews paused

      It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

      • Last reviewed commit: c8af03995012b1390fd2b678a1f7310a47241c2b
      • Latest commit, not reviewed: a1a17dbe81c8c569dc6bd211a0bc4643bb959118

      Use the following commands to manage reviews:

      • @coderabbitai resume to resume automatic reviews.
      • @coderabbitai review to trigger a single review.

      Use the checkboxes below for quick actions:

      • ▶️ Resume reviews
      • 🔍 Trigger review

      No actionable comments were generated in the recent review. 🎉

      ℹ️ Recent review info
      ⚙️ Run configuration
      • Configuration used: defaults
      • Review profile: CHILL
      • Plan: Advanced
      • Run ID: 4225ec58-5e54-4e63-8282-18defa0354c6
      📥 Commits

      Reviewing files that changed from the base of the PR and between 247a8513c261b6afa605c6272605db1cbb9e58fd and c8af03995012b1390fd2b678a1f7310a47241c2b.

      📒 Files selected for processing: 1
      • packages/db/src/query/live/ordered-source-loader.ts

      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 source loader now receives optimistic-overlay state. When an optimistic departure leaves a non-eager ordered window short, the loader can request a refill. Tests and documentation describe immediate publication, bounded acquisition, and settlement behavior.

      Changes: Optimistic Ordered-Window Refills

      Layer / File(s)Summary
      Overlay-aware source-change classification
      packages/db/src/query/effect.ts, packages/db/src/query/live/collection-subscriber.ts, packages/db/src/query/live/ordered-source-loader.ts, packages/db/tests/query/ordered-source-loader-oracle.test.ts, packages/db/src/query/live/ARCHITECTURE.md
      The Effect and Collection subscriber pass an overlay lookup to the loader. For qualifying overlaid deletes or order-changing updates, the loader can mark a refill and invalidate its cursor when the remaining local rows do not fill the window. The architecture document describes publication and settlement boundaries.
      Oracle observations and validation
      packages/db/tests/query/ordered-work-oracle.property.test.ts, docs/contributing/oracle-reviews/issue-2169-optimistic-window.md, docs/contributing/oracle-coverage.md
      The oracle checks publication, bounded refill acquisition, request constraints, and settlement across query shapes and loading modes. The review and coverage documents record test evidence and remaining scope.
      Query DB refetch receiver
      packages/query-db-collection/tests/optimistic-ordered-refetch-oracle.test.ts
      The test checks immediate publication of an optimistic departure, bounded refill requests while persistence is pending, and the settled window after the mutation handler refetches.
      Package changeset
      .changeset/verify-optimistic-window-refills.md
      The changeset records the patch for @tanstack/db.

      Priority: ➖ Normal

      Estimated code review effort: 3 (Moderate) | ~25 minutes

      Change: Bug fix

      Sequence Diagram(s)

      sequenceDiagram
        participant Effect
        participant CollectionSubscriber
        participant OrderedSourceLoader
        participant Provider
        Effect->>OrderedSourceLoader: Pass changes and overlay lookup
        CollectionSubscriber->>OrderedSourceLoader: Pass ordered changes and overlay lookup
        OrderedSourceLoader->>Provider: Request refill when the window is short
      Merge Risk: ⚪ Minimal · up to c8af0

      Optimistic departures can publish before bounded refill, while authoritative ordering losses retain their repair barrier. No actionable merge-blocking issue was identified in the reviewed change.

      Pre-merge checks: Passed 4 · Failed 1
      Failed Failed checks: 1 warning
      Check nameStatusExplanationResolution
      Docstring CoverageWarningDocstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 8 functions across 6 files.Write docstrings for the functions missing them to satisfy the coverage threshold.
      Passed Passed checks: 4 passed
      Check nameStatusExplanation
      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.
      Title checkPassedThe title clearly and concisely describes the primary change: immediate publication of optimistic ordered-window departures.
      Description checkPassedThe description explains the change, motivation, implementation, evidence, limits, verification, and release impact. It includes equivalent sections for the template requirements and records a generat…
      Full details: Description check

      Explanation

      The description explains the change, motivation, implementation, evidence, limits, verification, and release impact. It includes equivalent sections for the template requirements and records a generated changeset. The local pnpm test checklist remains unchecked, although focused and full-suite verification is reported.

      • Fix all pre-merge checks with AI
      ✨ Finishing Touches: 💡 1
      📝 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
      Comment `@coderabbitai help` to get the list of available commands.
    4. More templates

      @tanstack/angular-db

      npm i https://pkg.pr.new/@tanstack/angular-db@2177

      @tanstack/browser-db-sqlite-persistence

      npm i https://pkg.pr.new/@tanstack/browser-db-sqlite-persistence@2177

      @tanstack/capacitor-db-sqlite-persistence

      npm i https://pkg.pr.new/@tanstack/capacitor-db-sqlite-persistence@2177

      @tanstack/cloudflare-durable-objects-db-sqlite-persistence

      npm i https://pkg.pr.new/@tanstack/cloudflare-durable-objects-db-sqlite-persistence@2177

      @tanstack/db

      npm i https://pkg.pr.new/@tanstack/db@2177

      @tanstack/db-ivm

      npm i https://pkg.pr.new/@tanstack/db-ivm@2177

      @tanstack/db-sqlite-persistence-core

      npm i https://pkg.pr.new/@tanstack/db-sqlite-persistence-core@2177

      @tanstack/electric-db-collection

      npm i https://pkg.pr.new/@tanstack/electric-db-collection@2177

      @tanstack/electron-db-sqlite-persistence

      npm i https://pkg.pr.new/@tanstack/electron-db-sqlite-persistence@2177

      @tanstack/expo-db-sqlite-persistence

      npm i https://pkg.pr.new/@tanstack/expo-db-sqlite-persistence@2177

      @tanstack/node-db-sqlite-persistence

      npm i https://pkg.pr.new/@tanstack/node-db-sqlite-persistence@2177

      @tanstack/offline-transactions

      npm i https://pkg.pr.new/@tanstack/offline-transactions@2177

      @tanstack/powersync-db-collection

      npm i https://pkg.pr.new/@tanstack/powersync-db-collection@2177

      @tanstack/query-db-collection

      npm i https://pkg.pr.new/@tanstack/query-db-collection@2177

      @tanstack/react-db

      npm i https://pkg.pr.new/@tanstack/react-db@2177

      @tanstack/react-native-db-sqlite-persistence

      npm i https://pkg.pr.new/@tanstack/react-native-db-sqlite-persistence@2177

      @tanstack/react-router-with-db

      npm i https://pkg.pr.new/@tanstack/react-router-with-db@2177

      @tanstack/rxdb-db-collection

      npm i https://pkg.pr.new/@tanstack/rxdb-db-collection@2177

      @tanstack/solid-db

      npm i https://pkg.pr.new/@tanstack/solid-db@2177

      @tanstack/svelte-db

      npm i https://pkg.pr.new/@tanstack/svelte-db@2177

      @tanstack/tauri-db-sqlite-persistence

      npm i https://pkg.pr.new/@tanstack/tauri-db-sqlite-persistence@2177

      @tanstack/trailbase-db-collection

      npm i https://pkg.pr.new/@tanstack/trailbase-db-collection@2177

      @tanstack/vue-db

      npm i https://pkg.pr.new/@tanstack/vue-db@2177

      commit: a1a17db

    5. Size Change: +168 B (+0.08%)

      Total Size: 217 kB

      📦 View Changed
      FilenameSizeChange
      packages/db/dist/esm/query/effect.js5.36 kB+52 B (+0.98%)
      packages/db/dist/esm/query/live/collection-subscriber.js2.28 kB+32 B (+1.42%)
      packages/db/dist/esm/query/live/ordered-source-loader.js5.35 kB+84 B (+1.59%)
      ℹ️ View Unchanged
      FilenameSize
      packages/db/dist/esm/client.js4.22 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.js2.96 kB
      packages/db/dist/esm/collection/cleanup-queue.js901 B
      packages/db/dist/esm/collection/config-errors.js547 B
      packages/db/dist/esm/collection/events.js481 B
      packages/db/dist/esm/collection/index.js5.27 kB
      packages/db/dist/esm/collection/indexes.js2.3 kB
      packages/db/dist/esm/collection/lifecycle.js2.94 kB
      packages/db/dist/esm/collection/mutations.js2.99 kB
      packages/db/dist/esm/collection/state.js7.16 kB
      packages/db/dist/esm/collection/subscription.js8.9 kB
      packages/db/dist/esm/collection/sync.js5.4 kB
      packages/db/dist/esm/collection/validate-config.js1.17 kB
      packages/db/dist/esm/deferred.js207 B
      packages/db/dist/esm/error-message.js642 B
      packages/db/dist/esm/errors.js6.53 kB
      packages/db/dist/esm/event-emitter.js1.06 kB
      packages/db/dist/esm/index.js4.52 kB
      packages/db/dist/esm/indexed-db-wrapper.js1.91 kB
      packages/db/dist/esm/indexed-db.js3.7 kB
      packages/db/dist/esm/indexes/auto-index.js926 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.js338 B
      packages/db/dist/esm/live-query-observer.js4.8 kB
      packages/db/dist/esm/live-query-options.js1.41 kB
      packages/db/dist/esm/live-query-window-controller.js4.27 kB
      packages/db/dist/esm/local-only.js1.08 kB
      packages/db/dist/esm/local-storage.js3.93 kB
      packages/db/dist/esm/optimistic-action.js359 B
      packages/db/dist/esm/paced-mutations.js1.11 kB
      packages/db/dist/esm/persisted-readiness.js195 B
      packages/db/dist/esm/proxy.js3.51 kB
      packages/db/dist/esm/query/builder/clone-query.js849 B
      packages/db/dist/esm/query/builder/functions.js1.56 kB
      packages/db/dist/esm/query/builder/index.js7.48 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/group-by.js4.48 kB
      packages/db/dist/esm/query/compiler/index.js10.3 kB
      packages/db/dist/esm/query/compiler/joins.js3.42 kB
      packages/db/dist/esm/query/compiler/lazy-targets.js1.11 kB
      packages/db/dist/esm/query/compiler/order-by.js2.26 kB
      packages/db/dist/esm/query/compiler/parent-routes.js319 B
      packages/db/dist/esm/query/compiler/query-equivalence.js568 B
      packages/db/dist/esm/query/compiler/route-metadata.js1.24 kB
      packages/db/dist/esm/query/compiler/select.js1.5 kB
      packages/db/dist/esm/query/equality-conjunct.js486 B
      packages/db/dist/esm/query/equality-value-identity.js735 B
      packages/db/dist/esm/query/expression-helpers.js1.61 kB
      packages/db/dist/esm/query/ir-stable-identity.js4.2 kB
      packages/db/dist/esm/query/ir.js2.2 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.js6.84 kB
      packages/db/dist/esm/query/live/collection-registry.js264 B
      packages/db/dist/esm/query/live/graph-scheduler.js305 B
      packages/db/dist/esm/query/live/internal.js145 B
      packages/db/dist/esm/query/live/materialized-pipeline.js2.39 kB
      packages/db/dist/esm/query/live/subset-demand-controller.js1.73 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.js4.13 kB
      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.6 kB
      packages/db/dist/esm/strategies/commit-completion.js156 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.js626 B
      packages/db/dist/esm/sync-receipt.js211 B
      packages/db/dist/esm/transaction-commit-work.js351 B
      packages/db/dist/esm/transactions.js4.61 kB
      packages/db/dist/esm/utils.js1.67 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.js174 B
      packages/db/dist/esm/utils/comparison.js1.94 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.43 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.js413 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/live-query-internals.js282 B
      packages/react-db/dist/esm/source-id-bindings.js746 B
      packages/react-db/dist/esm/useLiveInfiniteQuery.js2.15 kB
      packages/react-db/dist/esm/useLiveQuery.js3.34 kB
      packages/react-db/dist/esm/useLiveQueryEffect.js504 B
      packages/react-db/dist/esm/useLiveSuspenseQuery.js1.33 kB
      packages/react-db/dist/esm/usePacedMutations.js429 B
      compressed-size-action::db-and-react-package-size
    6. 🎉 This PR has been released!

      Thank you for your contribution!

Sign in to join this conversation.