github TanStack/db @tanstack/db@0.5.25

latest releases: @tanstack/react-db@0.1.69, @tanstack/powersync-db-collection@0.1.29, @tanstack/solid-db@0.2.5...
8 hours ago

Patch Changes

  • Fixed infinite loop in BTreeIndex.takeInternal when indexed values are undefined. (#1198)

    The BTree uses undefined as a special parameter meaning "start from beginning/end", which caused an infinite loop when the actual indexed value was undefined.

    Added takeFromStart and takeReversedFromEnd methods to explicitly start from the beginning/end, and introduced a sentinel value for storing undefined in the BTree.

  • Fix isReady tracking for on-demand live queries without orderBy. Previously, non-ordered live queries using syncMode: 'on-demand' were incorrectly marked as ready before data finished loading. Also fix preload() promises hanging when cleanup occurs before the collection becomes ready. Additionally, fix concurrent live queries subscribing to the same source collection - each now independently tracks loading state. (#1192)

Don't miss a new db release

NewReleases is sending notifications on new releases.