Skip to content

@tanstack/query-db-collection@1.0.5

Choose a tag to compare

@github-actions github-actions released this 26 Nov 03:55
· 12 commits to main since this release
e3819e5

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