github TanStack/db @tanstack/db@0.5.2

latest releases: @tanstack/vue-db@0.0.78, @tanstack/powersync-db-collection@0.1.6, @tanstack/solid-db@0.1.45...
16 hours ago

Patch Changes

  • Fix localStorage collections to properly handle numeric and string IDs without collisions. Previously, operations could target the wrong item when using numeric IDs (e.g., id: 1, id: 2) after the page reloaded, due to a type mismatch between numeric keys in memory and stringified keys from localStorage. Keys are now encoded with type prefixes (n: for numbers, s: for strings) to prevent all possible collisions between different key types. (#845)

Don't miss a new db release

NewReleases is sending notifications on new releases.