Skip to content

@tanstack/db@0.15.2

Choose a tag to compare

@github-actions github-actions released this 21 Oct 18:06
· 6 commits to main since this release
Immutable release. Only release title and notes can be modified.
bd10e56

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".