github TanStack/db @tanstack/db@0.15.2

latest releases: @tanstack/react-db@0.5.12, @tanstack/node-db-sqlite-persistence@0.2.37
4 hours ago

Patch Changes

  • Keep a settled optimistic row visible while its server row waits behind an earlier persisted write. Previously, two quick writes to one row in a persisted Collection could briefly show the row before the second write. (#2208)

  • LocalStorage Collections with the default JSON parser now reject an insert or update whose row a restore could not return, such as a row with a function, symbol, NaN, Map, Set, or undefined array entry. The write's isPersisted promise rejects with SerializationError, nothing is written, and the optimistic row rolls back. Previously, JSON silently dropped or replaced these values, so peers and later sessions saw a different row than the writer. (#2207)

    IndexedDB Collections now report a value that structured clone cannot store as SerializationError instead of a raw DataCloneError. The SerializationError message no longer says "JSON".

Don't miss a new db release

NewReleases is sending notifications on new releases.