github TanStack/db @tanstack/query-db-collection@1.0.5

latest releases: @tanstack/react-db@0.1.50, @tanstack/electric-db-collection@0.2.6, @tanstack/vue-db@0.0.82...
2 hours ago

Patch Changes

  • fix: ensure ctx.meta.loadSubsetOptions type-safety works automatically (#869)

    The module augmentation for ctx.meta.loadSubsetOptions is now guaranteed to load automatically when importing from @tanstack/query-db-collection. Previously, users needed to explicitly import QueryCollectionMeta or use @ts-ignore to pass ctx.meta?.loadSubsetOptions to parseLoadSubsetOptions.

    Additionally, QueryCollectionMeta is now an interface (instead of a type alias), enabling users to safely extend meta with custom properties via declaration merging:

    declare module "@tanstack/query-db-collection" {
      interface QueryCollectionMeta {
        myCustomProperty: string
      }
    }
  • Updated dependencies [c8a2c16]:

    • @tanstack/db@0.5.6

Don't miss a new db release

NewReleases is sending notifications on new releases.