github TanStack/db @tanstack/db@0.5.21

Patch Changes

  • Clarify queueStrategy error handling behavior in documentation. Changed "guaranteed to persist" to "guaranteed to be attempted" and added explicit documentation about how failed mutations are handled (not retried, queue continues). Added new Retry Behavior section with example code for implementing custom retry logic. (#1107)

  • Improve DuplicateKeySyncError message when using .distinct() with custom getKey. The error now explains that .distinct() deduplicates by the entire selected object, and provides actionable guidance to fix the issue. (#1119)

  • Fix syncedData not updating when manual write operations (writeUpsert, writeInsert, etc.) are called after async operations in mutation handlers. Previously, the sync transaction would be blocked by the persisting user transaction, leaving syncedData stale until the next sync cycle. (#1130)

  • Add string support to min() and max() aggregate functions. These functions now work with strings using lexicographic comparison, matching standard SQL behavior. (#1120)

  • Updated dependencies [bdf9405]:

    • @tanstack/db-ivm@0.1.17

Don't miss a new db release

NewReleases is sending notifications on new releases.