Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@tanstack/[email protected]
Patch Changes
acb3e4f,464805d,2c2e4db,15c772f]:@tanstack/[email protected]
Patch Changes
Fix progressive mode to use fetchSnapshot and atomic swap (#852)
Progressive mode was broken because
requestSnapshot()injected snapshots into the stream in causally correct position, which didn't work properly with thefullmode stream. This release fixes progressive mode by:Core Changes:
fetchSnapshot()during initial sync to fetch and apply snapshots immediately in sync transactionsisBufferingInitialSync)up-to-date: truncate snapshot data → apply buffered messages → mark readyTest Infrastructure:
ELECTRIC_TEST_HOOKSsymbol for test control (hidden from public API)progressiveTestControl.releaseInitialSync()to E2E test config for explicit transition controlBug Fixes:
Improved error messages when invalid source types are passed to
.from()or.join()methods. When users mistakenly pass a string, null, array, or other invalid type instead of an object with a collection, they now receive a clear, actionable error message with an example of the correct usage (e.g.,.from({ todos: todosCollection })). (#875)Migrated paced mutations implementation from
@tanstack/pacerto@tanstack/pacer-lite. The lite version provides the same core functionality with minimal overhead and no external dependencies, making it more suitable for library use. This is an internal implementation change with no impact on the public API - all paced mutation strategies (debounce, throttle, queue) continue to work exactly as before. (#880)Add warning when calling
.preload()on collections withon-demandsyncMode. In on-demand mode, data is only loaded when queries request it, so calling.preload()on the collection itself is a no-op. Users should create a live query and call.preload()on that instead. (#871)@tanstack/[email protected]
Patch Changes
Fixed bug where
like()andilike()operators were not working in on-demand mode. The SQL compiler was incorrectly treating these operators as function calls (LIKE(column, pattern)) instead of binary operators (column LIKE pattern). Nowlike()andilike()correctly compile to SQL binary operator syntax, enabling search queries with pattern matching in on-demand mode. This fix supports patterns likelike(lower(offers.title), '%search%')and combining multiple conditions withor(). (#884)Fix progressive mode to use fetchSnapshot and atomic swap (#852)
Progressive mode was broken because
requestSnapshot()injected snapshots into the stream in causally correct position, which didn't work properly with thefullmode stream. This release fixes progressive mode by:Core Changes:
fetchSnapshot()during initial sync to fetch and apply snapshots immediately in sync transactionsisBufferingInitialSync)up-to-date: truncate snapshot data → apply buffered messages → mark readyTest Infrastructure:
ELECTRIC_TEST_HOOKSsymbol for test control (hidden from public API)progressiveTestControl.releaseInitialSync()to E2E test config for explicit transition controlBug Fixes:
Updated dependencies [
acb3e4f,464805d,2c2e4db,15c772f]:@tanstack/[email protected]
Patch Changes
acb3e4f,464805d,2c2e4db,15c772f]:@tanstack/[email protected]
Patch Changes
Improved the type of the queryFn's ctx.meta property of the Query Collection to include the loadSubsetOptions (#857)
Fixed bug where optimistic state leaked into syncedData when using writeInsert inside onInsert handlers. Previously, when syncing server-generated fields (like IDs or timestamps) using writeInsert within an onInsert handler, the QueryClient cache was updated with combined visible state (including optimistic changes), which triggered the query observer to write optimistic values back to syncedData. Now the cache is correctly updated with only server-confirmed state, ensuring syncedData maintains separation from optimistic state. (#879)
Updated dependencies [
acb3e4f,464805d,2c2e4db,15c772f]:@tanstack/[email protected]
Patch Changes
acb3e4f,464805d,2c2e4db,15c772f]:@tanstack/[email protected]
Patch Changes
acb3e4f,464805d,2c2e4db,15c772f]:@tanstack/[email protected]
Patch Changes
acb3e4f,464805d,2c2e4db,15c772f]:@tanstack/[email protected]
Patch Changes
acb3e4f,464805d,2c2e4db,15c772f]:@tanstack/[email protected]
Patch Changes
acb3e4f,464805d,2c2e4db,15c772f]:@tanstack/[email protected]
Patch Changes
acb3e4f,464805d,2c2e4db,15c772f]:@tanstack/[email protected]
Patch Changes
Fix progressive mode to use fetchSnapshot and atomic swap (#852)
Progressive mode was broken because
requestSnapshot()injected snapshots into the stream in causally correct position, which didn't work properly with thefullmode stream. This release fixes progressive mode by:Core Changes:
fetchSnapshot()during initial sync to fetch and apply snapshots immediately in sync transactionsisBufferingInitialSync)up-to-date: truncate snapshot data → apply buffered messages → mark readyTest Infrastructure:
ELECTRIC_TEST_HOOKSsymbol for test control (hidden from public API)progressiveTestControl.releaseInitialSync()to E2E test config for explicit transition controlBug Fixes:
Updated dependencies [
f66f2cf,e657a7d,f15b2a7,acb3e4f,464805d,2c2e4db,15c772f]: