Patch Changes
-
Rebuild correlated include materialization as one D2 graph, fixing stale or missing nested results across route changes, batching, lazy loading, optimistic updates, and layered queries. Add canonical structural relation keys, abortable subset demand, and coherent publication for Collection-valued includes. Dispose delayed PowerSync subset hooks after cleanup, and prevent released Query Collection cache results from reaching the collection. (#1740)
-
Support Temporal values in the
gt/gte/lt/ltequery operators. Comparisons now dispatch to the Temporal types' staticcompare()instead of the native relational operators, which throw on Temporal objects (valueOf()is designed to throw).orderByuses the same logic, so filtering and ordering now agree — previouslyorderBycompared Temporal values lexicographically by theirtoString(), which mis-ordered equivalentDurationforms (PT60MvsPT1H) and same-instantZonedDateTimevalues in different zones. (#1519)Note two intentional behavior changes for
orderByover Temporal columns:- Ordering
Temporal.PlainMonthDayvalues now throws aTypeError, since the type has no defined ordering (previously they were silently ordered by string). - Ordering mixed Temporal types (e.g.
PlainDatevsPlainDateTime) now throws aTypeErrorinstead of comparing their string forms.
Equality (
eq) is unchanged:ZonedDateTimeequality still treats the zone as part of identity, and equivalentDurationforms remain unequal, mirroring Temporal's.equals()vs.compare()semantics. - Ordering
-
Updated dependencies [
5d9335d]:- @tanstack/db-ivm@0.1.19