Minor Changes
- Add opt-in network-first initial rendering for eagerly persisted SQLite Collections.
initialRender: { strategy: 'network-first', networkTimeoutMs }lets React and Solid Suspense render restored rows after the configured deadline (three seconds by default) or a network failure while sync continues. Live-query observers and the Angular, React, Solid, Svelte, and Vue integrations exposepersistedStatus,isPersistedReady, andpersistedErrorseparately from Collection readiness. (#1955)
Patch Changes
-
Correct the error recovery guide for source Collections with dependent live queries. Document the supported sequence to restart the source and live query together. (#1957)
-
Reject invalid index comparator results instead of silently corrupting ordered indexes. A custom
compareFn, or a custom collationcompareincompareOptions, that returnsNaNor a non-number (for example a boolean from(a, b) => a > b) now throws when an index operation calls it, on bothBTreeIndexandBasicIndex. When this happens while a collection updates its indexes, the collection moves to theerrorstate and later mutations throwCollectionInErrorStateError; previously the rows were kept with a misordered index.NaNkeys remain supported with the default comparator. (#1949) -
Speed up large collection sync batches by deferring row ordering until the batch completes. (#1953)
-
Use a monotonic clock for Collection garbage collection when available, so wall-clock changes do not delay or advance scheduled cleanup. (#1941)
-
Suggest an index for large manually indexed Collections when a queried field lacks one. Omit the suggestion when eager indexing creates the index. (#1942)
-
Fix live queries that order numeric NaN values in descending windows. Equal NaN values no longer cause a contributor-congruence error. (#1952)
-
Render completed persisted query data when a client query stream fails during network-first initial rendering. Keep derived-query load failures on the React ErrorBoundary, with errors isolated by client and cleared when the Collection restarts. (#1960)
-
Reduce the size of the B+ tree that
BTreeIndexuses. Remove unused features from the vendoredsorted-btreecode and one insert branch that cannot run. Public behavior does not change. The full@tanstack/dbentry is about 1.4 KB smaller when minified, and about 455 B smaller with gzip. (#1946) -
Updated dependencies [
1b317d2,8283f2e,9125dab]:- @tanstack/db-ivm@0.1.24