Patch Changes
-
Fix nested
toArray()includes not propagating changes at depth 3+. When a query used nested includes liketoArray(runs) → toArray(texts) → concat(toArray(textDeltas)), changes to the deepest level (e.g., inserting a textDelta) were silently lost becauseflushIncludesStateonly drained one level of nested buffers. Also throw a clear error whentoArray()orconcat(toArray())is used inside expressions likecoalesce(), instead of silently producing incorrect results. (#1457) -
fix: orderBy + limit queries crash when no index exists (#1437)
When auto-indexing is disabled (the default), queries with
orderByandlimitwhere the limit exceeds the available data would crash with "Ordered snapshot was requested but no index was found". The on-demand loader now correctly skips cursor-based loading when no index is available.