Skip to content

Releases: TanStack/db

@tanstack/[email protected]

09 Jun 15:35
55595a7
Compare
Choose a tag to compare

Patch Changes

@tanstack/[email protected]

09 Jun 15:35
55595a7
Compare
Choose a tag to compare

Patch Changes

@tanstack/[email protected]

09 Jun 15:35
55595a7
Compare
Choose a tag to compare

Patch Changes

  • Collections must have a getId function & use an id for update/delete operators (#134)

  • the select operator is not optional on a query, it will default to returning the whole row for a basic query, and a namespaced object when there are joins (#148)

  • the keyBy query operator has been removed, keying withing the query pipeline is now automatic (#144)

  • update d2ts to to latest version that improves hashing performance (#136)

  • Switch to Collection options factories instead of extending the Collection class (#145)

    This refactors ElectricCollection and QueryCollection into factory functions (electricCollectionOptions and queryCollectionOptions) that return standard CollectionConfig objects and utility functions. Also adds a createCollection function to standardize collection instantiation.

@tanstack/[email protected]

09 Jun 15:35
55595a7
Compare
Choose a tag to compare

Patch Changes

  • Collections must have a getId function & use an id for update/delete operators (#134)

  • Switch to Collection options factories instead of extending the Collection class (#145)

    This refactors ElectricCollection and QueryCollection into factory functions (electricCollectionOptions and queryCollectionOptions) that return standard CollectionConfig objects and utility functions. Also adds a createCollection function to standardize collection instantiation.

  • Updated dependencies [1fbb844, 338efc2, ee5d026, e7b036c, e4feb0c]:

@tanstack/[email protected]

24 May 15:36
0232063
Compare
Choose a tag to compare

Patch Changes

@tanstack/[email protected]

24 May 15:36
0232063
Compare
Choose a tag to compare

Patch Changes

@tanstack/[email protected]

24 May 15:36
0232063
Compare
Choose a tag to compare

Patch Changes

  • fix a bug where optimistic operations could be applied to the wrong collection (#113)

@tanstack/[email protected]

24 May 15:36
0232063
Compare
Choose a tag to compare

Patch Changes

@tanstack/[email protected]

23 May 12:53
9ae2a22
Compare
Choose a tag to compare

Patch Changes

  • Replace queryCollection.invalidate() with queryCollection.refetch(). (#109)

    This means that we actually wait for the collection to be updated before
    discarding local optimistic state.

@tanstack/[email protected]

22 May 13:30
a4eff0d
Compare
Choose a tag to compare

Patch Changes

  • Added staleTime support for QueryCollection (#104)