github TanStack/db @tanstack/db@0.6.2

latest releases: @tanstack/vue-db@0.0.113, @tanstack/rxdb-db-collection@0.1.68, @tanstack/query-db-collection@1.0.33...
6 hours ago

Patch Changes

  • Deduplicate and filter null join keys in lazy join subset queries. Previously, when multiple rows referenced the same foreign key or had null foreign keys, the full unfiltered array was passed to inArray(), producing bloated ANY() SQL params with repeated IDs and NULLs. (#1448)

  • fix: default getKey on live query collections fails when used as a source in chained collections (#1432)

    The default WeakMap-based getKey breaks when enriched change values (with virtual props like $synced, $origin, $key) are passed through chained live query collections. The enriched objects are new references not found in the WeakMap, causing all items to resolve to key undefined and collapse into a single item. Falls back to item.$key when the WeakMap lookup misses.

Don't miss a new db release

NewReleases is sending notifications on new releases.