Skip to content
Source
Sign inSign up
TanStack/db

fix(db): reject negative limits before changing queries or windows #2333

MergedKyleAMathewsmerged 7 commits intomain fromrefs/pull/2333/headmerged by KyleAMathews

KyleAMathewscommented

🎯 Changes

The query builder now rejects .limit(-2) with a synchronous RangeError. Ordinary ordered list queries also reject negative setWindow limits before changing their window or source demand. Both paths previously admitted negative widths, which could produce inconsistent window deltas.

Zero, including -0, positive integer limits, Infinity, and negative offsets retain their existing behavior. Existing findOne, ordering, and reentrancy guards keep their error precedence. One internal validator checks both entry points. This adds no public API.

Shared clause merging and condition validation remove repeated builder code. The refactor also removes redundant source validation and unreachable window bookkeeping. These reductions offset the new admission checks.

This follows the negative-limit question found during merged #2316. That PR already resolved the page-window optimization in #2291.

🔬 Oracle Coverage

The pagination owner gains a limit-admission companion. Its independent sign law checks admission through six public receivers. Rejected operations must preserve captured public observations.

  • Law: The maintainer decision on 2026-11-02 requires synchronous negative-limit rejection before query, window, or demand changes. Public JSDoc requires RangeError after the existing query-shape and reentrancy guards pass.
  • Reach: Builder, unstarted, ready, initial-pending, move-pending, and replay-pending receivers each reach their declared states in 21 histories per campaign. Fixed and random campaigns retain valid neighbors, partial bounds, held work, and subsequent source updates. Each generated negative held move checks successful and failed acquisition settlement.
  • RED: The oracle-only commit 7ecf97dff precedes the production fix. Unchanged production fails all 12 negative campaigns across the six receivers. All 12 valid campaigns pass.
  • GREEN: All 772 tests in 22 selected files pass. Test TypeScript compilation, changed-file lint, the private-mangle check, formatting, and consumer error checks also pass.
  • Mutant: Eight hostile mutations fail their intended comparisons. Two additional mutations that throw Error or undefined each fail all 12 negative campaigns at the error-class comparison. Request-generation corruption fails the settlement comparison with a reduced replayable history. Failed-move rollback corruption fails the next-use comparison. A valid task-scheduled settlement control passes.
  • Limits: Evidence covers ordinary ordered list queries, fully installed finite source rows, and controlled acquisition settlement. It excludes provider delivery, framework error timing, raw IR, NaN, positive fractions, and raw IVM negative-width semantics.

Run the admission comparison from packages/db:

TANSTACK_DB_ORACLE_STATISTICS=1 pnpm exec vitest run tests/query/pagination-oracle.property.test.ts -t 'negative limit admission' --maxWorkers=2 --coverage.enabled=false

The versioned evidence record preserves exact commands, review findings, mutants, reach counts, and reviewed source hashes. The coverage map records the boundary. The committed error page now includes error 261. A CLI check protects that artifact from catalog drift. No oracle run budget decreased.

📦 Shipped Size

Comparison against merged baseline 30e85464 includes the negative-limit fix:

BundleGzip deltaBrotli delta
Typical app−6 bytes (96,323 → 96,317)−209 bytes
Full db exports−21 bytes+27 bytes

All eight app scenarios shrink in gzip. Brotli varies by scenario. Tests and evidence do not enter the production bundles.

pnpm size:compare --packages db --base 30e85464ed2b9b12c5f10981a062427a1fc8daaa --exact-base --files

✅ Checklist

  • I have tested this code locally with pnpm test.

The complete root command did not run. Local validation used the selected suites and checks recorded above.

🚀 Release Impact

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

The existing changeset patches @tanstack/db.

Summary by CodeRabbit

  • Bug Fixes
    • Negative limits passed to .limit() or setWindow() now throw a RangeError immediately, without changing the query or active window.
    • Zero limits, including negative zero, remain valid, and negative offsets retain their existing behavior.
  • Documentation
    • Clarified when negative limits are rejected and which limit and offset values remain supported.
    1. changeset-bot[bot](GitHub profile, opens in a new tab)commented

      🦋 Changeset detected

      Latest commit: e55c5301eaf03985b622e6ff8751dd0d9008b812

      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/convex-db-collectionPatch
      @tanstack/db-sqlite-persistence-corePatch
      @tanstack/electric-db-collectionPatch
      @tanstack/expo-db-sqlite-persistence-e2e-appPatch
      @tanstack/powersync-db-collectionPatch
      @tanstack/preact-dbPatch
      @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. 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: 7cf5c83f-88a5-4ac6-afcd-46ae2bcf978b
      Commits

      Reviewing files that changed from the base of the PR and between 7fd0d09ef05e3feed1e3afe620609d0b1bac95df and e55c5301eaf03985b622e6ff8751dd0d9008b812.

      Files selected for processing: 8
      • docs/contributing/oracle-coverage.md
      • docs/contributing/oracle-reviews/2026-11-02-negative-limit-admission.md
      • docs/errors.md
      • packages/db/src/query/builder/index.ts
      • packages/db/src/query/live/collection-config-builder.ts
      • packages/db/tests/generate-error-docs.test.ts
      • packages/db/tests/oracle-replay.test.ts
      • packages/db/tests/query/limit-admission-oracle.ts
      Files skipped from review as they are similar to previous changes: 2
      • docs/contributing/oracle-coverage.md
      • docs/contributing/oracle-reviews/2026-11-02-negative-limit-admission.md

      Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 2 remain after this review.

      Walkthrough

      Negative limits now throw synchronously when passed to .limit() or setWindow(), before query or window state changes. Zero limits and negative offsets remain supported. The query builder also consolidates clause updates and condition conversion, with oracle coverage for admission and recovery across several query states.

      Changes: Query limit admission

      Layer / File(s)Summary
      Query builder clause updates
      packages/db/src/query/builder/index.ts, packages/db/mangle-cache.json
      Query builder methods merge clause patches through _clone. Source-reference lookup and condition conversion are shared. The obsolete _createRefForSource mangle-cache entry is removed.
      Negative limit validation
      packages/db/src/query/validate-limit.ts, packages/db/src/query/builder/index.ts, packages/db/src/query/live/collection-config-builder.ts, packages/db/tests/fixtures/error-site-messages.json, packages/db/src/query/live/ARCHITECTURE.md, docs/errors.md, .changeset/reject-negative-limits.md
      A shared validator rejects negative values at .limit() and setWindow() entry points. Documentation and the changeset record the behavior, including support for zero limits and negative offsets.
      Admission oracle and replay
      packages/db/tests/query/limit-admission-oracle.ts, packages/db/tests/query/pagination-oracle.property.test.ts, packages/db/tests/oracle-config.ts, packages/db/tests/oracle-replay-manifest.ts, packages/db/tests/oracle-replay.test.ts, packages/db/tests/generate-error-docs.test.ts, docs/contributing/oracle-coverage.md, docs/contributing/oracle-reviews/*
      Oracle campaigns cover negative and valid limits across builder and live-query states. Replay configuration and documentation record campaign results, tested scope, and exclusions.

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

      Change: Bug fix

      Suggested reviewers: samwillis

      Merge Risk: Minimal · up to e55c5

      No identified issue blocks merging after normal checks.

      Pre-merge checks: Passed 4 · Failed 1
      Failed Failed checks: 1 warning
      Check nameStatusExplanationResolution
      Docstring CoverageWarningDocstring coverage is 37.50% 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 "fix(db): reject negative limits before changing queries or windows" matches the main change. The changeset shows that the query builder's .limit() and setWindow() now reject negative limits…
      Description checkPassedThe description follows the template. It has the Changes section, which explains the new RangeError for negative limits and the setWindow behavior. It has an Oracle Coverage section that names the pag…
      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: Title check

      Explanation

      The title "fix(db): reject negative limits before changing queries or windows" matches the main change. The changeset shows that the query builder's .limit() and setWindow() now reject negative limits before changing state. The title is specific, concise, and follows a conventional commit style. It does not cover the refactors or the oracle test additions, which is expected.

      Full details: Description check

      Explanation

      The description follows the template. It has the Changes section, which explains the new RangeError for negative limits and the setWindow behavior. It has an Oracle Coverage section that names the pagination owner and the limit-admission companion. It states the law, the reach across six receivers, the RED/GREEN results, mutants, and remaining limits, as the bug-fix guidance requires. It has the Checklist and Release Impact sections. The checklist item for local tests is unchecked, and the author states the complete root test command did not run. This gap is disclosed, so it does not make the description incomplete. The Oracle Coverage section is dense, but it contains the required evidence.

      Full details: Docstring Coverage

      Explanation

      Docstring coverage is 37.50% 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 8 functions across 9 files. (3 skipped: 3 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
    3. github-actions[bot](GitHub profile, opens in a new tab)commented

      Incremental update benchmark

      Comparing ac9bf839f (this PR) against d9d0a8e50 (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.00× · cold hydrate time: 1.04× (geometric mean of per-case ratios; lower is faster).

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

      Cold hydrate: 3 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+0.3%-30.7%+15.5%1 🟢
      list + author+0.6%-30.6%+51.3%1 🔴 1 🟢
      list + comment count+0.9%-10.0%+26.5%1 🔴
      list + 3 recent comments-0.2%-47.3%+56.9%1 🔴 1 🟢
      issue detail + comments-4.4%-33.7%+10.6%1 🟢

      Cold hydrate

      QueryΔ cold hydrate time (geomean)Best caseWorst caseFlags
      list: newest 50 open+1.8%-52.1%+94.5%2 🔴
      list + author+7.2%-15.1%+96.6%—
      list + comment count-3.7%-34.1%+25.6%—
      list + 3 recent comments+16.3%-8.8%+69.6%1 🔴
      issue detail + comments+4.4%-14.7%+29.3%—

      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.94×, cold 0.98×, 1 change(s)
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.272ms0.242ms-11.1%0.465ms0.399ms-14.1%16.180ms16.949ms+4.8%
      list: newest 50 open0.589ms0.626ms+6.2%0.956ms0.975ms+2.0%8.584ms5.820ms-32.2%
      list + author0.247ms0.260ms+5.2%0.376ms0.423ms+12.6%15.634ms17.034ms+9.0%
      list + comment count0.411ms0.406ms-1.2%0.666ms0.655ms-1.6%14.877ms14.747ms-0.9%
      list + 3 recent comments0.267ms0.275ms+2.8%0.426ms0.466ms+9.4%13.012ms11.861ms-8.8%
      issue detail + comments0.281ms0.186ms-33.7%0.359ms0.324ms-9.7%🟢2.087ms2.700ms+29.3%
      100 rows/collection | source indexes: none | optimistic writes — geomean 1.01×, cold 0.81×
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.178ms0.168ms-5.3%0.328ms0.285ms-13.1%5.870ms2.813ms-52.1%
      list: newest 50 open0.126ms0.127ms+1.3%0.225ms0.215ms-4.6%4.666ms2.279ms-51.2%
      list + author0.200ms0.210ms+5.3%0.335ms0.346ms+3.5%10.392ms9.227ms-11.2%
      list + comment count0.277ms0.256ms-7.5%0.445ms0.424ms-4.8%5.587ms7.017ms+25.6%
      list + 3 recent comments0.163ms0.200ms+22.2%0.280ms0.356ms+26.8%9.151ms9.165ms+0.2%
      issue detail + comments0.153ms0.142ms-7.6%0.300ms0.290ms-3.1%1.492ms1.634ms+9.6%
      100 rows/collection | source indexes: manual | synced writes — geomean 0.99×, cold 1.06×
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.207ms0.209ms+0.8%0.346ms0.342ms-1.3%5.237ms4.732ms-9.6%
      list: newest 50 open0.405ms0.413ms+1.9%0.774ms0.718ms-7.3%2.631ms4.363ms+65.9%
      list + author0.180ms0.163ms-9.5%0.315ms0.305ms-3.1%5.597ms5.635ms+0.7%
      list + comment count0.300ms0.293ms-2.1%0.528ms0.525ms-0.5%5.392ms5.262ms-2.4%
      list + 3 recent comments0.196ms0.196ms-0.1%0.373ms0.294ms-21.1%7.433ms7.457ms+0.3%
      issue detail + comments0.137ms0.144ms+4.6%0.194ms0.274ms+41.3%0.794ms0.780ms-1.7%
      100 rows/collection | source indexes: manual | optimistic writes — geomean 1.01×, cold 1.04×
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.136ms0.135ms-0.7%0.253ms0.249ms-1.4%1.851ms1.919ms+3.7%
      list: newest 50 open0.116ms0.118ms+2.0%0.215ms0.240ms+11.9%1.501ms2.229ms+48.5%
      list + author0.173ms0.180ms+4.4%0.247ms0.316ms+28.2%6.886ms5.846ms-15.1%
      list + comment count0.248ms0.235ms-5.2%0.423ms0.381ms-9.9%9.711ms7.786ms-19.8%
      list + 3 recent comments0.146ms0.150ms+2.4%0.243ms0.210ms-13.6%6.349ms8.941ms+40.8%
      issue detail + comments0.126ms0.132ms+4.8%0.157ms0.165ms+5.1%0.810ms0.691ms-14.7%
      1,000 rows/collection | source indexes: none | synced writes — geomean 0.84×, cold 1.00×, 3 change(s)
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.109ms0.110ms+1.0%0.217ms0.194ms-10.9%8.176ms13.401ms+63.9%🔴
      list: newest 50 open1.174ms1.188ms+1.2%1.918ms2.215ms+15.5%12.369ms9.933ms-19.7%
      list + author0.202ms0.140ms-30.6%0.352ms0.249ms-29.2%🟢46.513ms42.775ms-8.0%
      list + comment count0.352ms0.358ms+1.7%0.500ms0.575ms+14.9%20.477ms19.994ms-2.4%
      list + 3 recent comments0.384ms0.202ms-47.3%0.462ms0.419ms-9.3%🟢14.130ms13.414ms-5.1%
      issue detail + comments0.201ms0.191ms-5.1%0.343ms0.227ms-33.9%2.179ms1.966ms-9.7%
      1,000 rows/collection | source indexes: none | optimistic writes — geomean 0.91×, cold 1.14×, 1 change(s)
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.182ms0.126ms-30.7%0.250ms0.241ms-3.5%🟢6.367ms12.384ms+94.5%🔴
      list: newest 50 open0.090ms0.093ms+3.2%0.131ms0.191ms+46.1%7.283ms8.612ms+18.2%
      list + author0.161ms0.154ms-4.3%0.273ms0.199ms-26.9%34.737ms46.359ms+33.5%
      list + comment count0.212ms0.191ms-10.0%0.249ms0.248ms-0.4%18.916ms12.463ms-34.1%
      list + 3 recent comments0.137ms0.132ms-3.1%0.168ms0.230ms+36.8%12.935ms12.788ms-1.1%
      issue detail + comments0.125ms0.118ms-5.8%0.155ms0.149ms-3.5%1.296ms1.436ms+10.8%
      1,000 rows/collection | source indexes: manual | synced writes — geomean 0.96×, cold 1.38×, 1 change(s)
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.100ms0.105ms+5.0%0.130ms0.192ms+47.8%1.578ms1.715ms+8.7%
      list: newest 50 open0.358ms0.362ms+1.1%0.592ms0.638ms+7.9%1.412ms2.529ms+79.1%
      list + author0.139ms0.135ms-2.9%0.240ms0.242ms+0.6%4.314ms8.482ms+96.6%
      list + comment count0.256ms0.237ms-7.6%0.351ms0.296ms-15.4%4.595ms4.361ms-5.1%
      list + 3 recent comments0.171ms0.160ms-6.6%0.208ms0.209ms+0.4%8.144ms13.812ms+69.6%🔴
      issue detail + comments0.128ms0.114ms-10.7%0.192ms0.143ms-25.2%0.553ms0.621ms+12.2%
      1,000 rows/collection | source indexes: manual | optimistic writes — geomean 0.98×, cold 1.01×
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.120ms0.117ms-2.5%0.156ms0.167ms+6.8%1.354ms1.463ms+8.1%
      list: newest 50 open0.102ms0.099ms-2.9%0.145ms0.140ms-3.6%1.504ms1.417ms-5.8%
      list + author0.155ms0.146ms-5.8%0.206ms0.183ms-11.0%4.203ms4.123ms-1.9%
      list + comment count0.240ms0.276ms+15.1%0.387ms0.411ms+6.2%4.274ms3.978ms-6.9%
      list + 3 recent comments0.145ms0.134ms-7.2%0.186ms0.184ms-1.2%5.881ms6.744ms+14.7%
      issue detail + comments0.129ms0.118ms-8.5%0.180ms0.160ms-10.8%0.568ms0.573ms+0.9%
      10,000 rows/collection | source indexes: none | synced writes — geomean 1.10×, cold 1.00×, 1 change(s)
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.098ms0.100ms+1.7%0.131ms0.127ms-3.3%79.609ms81.090ms+1.9%
      list: newest 50 open12.018ms12.908ms+7.4%12.721ms14.682ms+15.4%84.672ms73.521ms-13.2%
      list + author0.141ms0.213ms+51.3%0.279ms0.285ms+2.1%🔴363.590ms374.578ms+3.0%
      list + comment count0.239ms0.242ms+1.2%0.403ms0.371ms-8.0%88.901ms93.435ms+5.1%
      list + 3 recent comments0.158ms0.169ms+6.6%0.280ms0.325ms+16.4%89.796ms86.776ms-3.4%
      issue detail + comments0.114ms0.115ms+0.9%0.146ms0.146ms+0.0%6.377ms6.784ms+6.4%
      10,000 rows/collection | source indexes: none | optimistic writes — geomean 1.03×, cold 0.99×
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.118ms0.124ms+5.1%0.158ms0.231ms+46.0%79.785ms71.457ms-10.4%
      list: newest 50 open0.086ms0.089ms+3.2%0.130ms0.135ms+4.4%82.743ms75.552ms-8.7%
      list + author0.157ms0.159ms+1.8%0.190ms0.207ms+8.5%341.001ms341.223ms+0.1%
      list + comment count0.247ms0.257ms+4.2%0.296ms0.329ms+11.2%87.352ms85.272ms-2.4%
      list + 3 recent comments0.138ms0.141ms+2.9%0.296ms0.304ms+2.4%75.738ms93.416ms+23.3%
      issue detail + comments0.129ms0.128ms-0.5%0.160ms0.170ms+6.4%9.523ms8.978ms-5.7%
      10,000 rows/collection | source indexes: manual | synced writes — geomean 1.03×, cold 1.08×
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.096ms0.097ms+1.2%0.126ms0.125ms-0.6%2.398ms2.314ms-3.5%
      list: newest 50 open1.023ms1.049ms+2.5%1.656ms1.211ms-26.9%2.381ms2.295ms-3.6%
      list + author0.128ms0.132ms+3.0%0.156ms0.170ms+8.4%5.012ms4.940ms-1.4%
      list + comment count0.240ms0.243ms+1.1%0.279ms0.280ms+0.1%5.156ms5.364ms+4.0%
      list + 3 recent comments0.168ms0.167ms-0.4%0.209ms0.202ms-3.7%6.680ms8.643ms+29.4%
      issue detail + comments0.121ms0.134ms+10.6%0.313ms0.226ms-27.7%0.641ms0.810ms+26.4%
      10,000 rows/collection | source indexes: manual | optimistic writes — geomean 1.19×, cold 1.13×, 2 change(s)
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.118ms0.137ms+15.5%0.215ms0.243ms+13.0%2.800ms2.525ms-9.8%
      list: newest 50 open0.098ms0.107ms+9.8%0.125ms0.152ms+21.8%2.084ms2.306ms+10.7%
      list + author0.151ms0.161ms+6.8%0.195ms0.256ms+31.2%5.166ms5.963ms+15.4%
      list + comment count0.258ms0.327ms+26.5%0.313ms0.636ms+103.6%🔴5.016ms5.432ms+8.3%
      list + 3 recent comments0.150ms0.235ms+56.9%0.256ms0.293ms+14.6%🔴6.052ms10.215ms+68.8%
      issue detail + comments0.131ms0.140ms+7.1%0.166ms0.194ms+16.8%0.724ms0.714ms-1.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.
    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@2333

      @tanstack/browser-db-sqlite-persistence

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

      @tanstack/capacitor-db-sqlite-persistence

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

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

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

      @tanstack/convex-db-collection

      npm i https://pkg.pr.new/@tanstack/convex-db-collection@2333

      @tanstack/db

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

      @tanstack/db-ivm

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

      @tanstack/db-sqlite-persistence-core

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

      @tanstack/electric-db-collection

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

      @tanstack/electron-db-sqlite-persistence

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

      @tanstack/expo-db-sqlite-persistence

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

      @tanstack/node-db-sqlite-persistence

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

      @tanstack/offline-transactions

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

      @tanstack/powersync-db-collection

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

      @tanstack/preact-db

      npm i https://pkg.pr.new/@tanstack/preact-db@2333

      @tanstack/query-db-collection

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

      @tanstack/react-db

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

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

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

      @tanstack/react-router-with-db

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

      @tanstack/rxdb-db-collection

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

      @tanstack/solid-db

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

      @tanstack/svelte-db

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

      @tanstack/tauri-db-sqlite-persistence

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

      @tanstack/trailbase-db-collection

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

      @tanstack/vue-db

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

      commit: e55c530

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

      Size Change: +224 B (+0.09%)

      Total Size: 239 kB

      📦 View Changed
      FilenameSizeChange
      packages/db/dist/esm/query/builder/index.js7.67 kB-52 B (-0.67%)
      packages/db/dist/esm/query/live/collection-config-builder.js8.57 kB+29 B (+0.34%)
      packages/db/dist/esm/query/validate-limit.js247 B+247 B (new file)🆕
      ℹ️ 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/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-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
      • Fix comments: Fix CodeRabbit comments on this PR
    6. KyleAMathews merged this9be51e0

    7. KyleAMathews closed this

    8. 🎉 This PR has been released!

      Backfilled notification for published release candidates.

Sign in to join this conversation.