Packages

@pinia/colada

1.4.9 · 30 Oct 2026MIT207.8k / weekRepositoryHomepagenpmAtom feed

Your version

0.10.0

4 Oct 2024Where it was published

0.21.7 is the newest release of 0.10.x.

In short

3 breaking2 internal

  • Breaking

    This change is mainly to simplify migration from TanStack Query.

  • Breaking

    Caches.invalidateQueries only fetches active queries

  • Breaking

    The keys option that automatically invalidate keys has been renamed to invalidateKeys and moved to a plugin. This is in practice not needed. It's just an opinionated convenience that can be replaced by directly invalidating queries in the cache with the onSettled() hook in useMutation():

Release note

Breaking changes

  • Breaking

    This change is mainly to simplify migration from
    TanStack Query.

  • Breaking

    Caches.invalidateQueries only fetches active queries

  • Breaking

    The keys option that automatically invalidate keys
    has been renamed to invalidateKeys and moved to a plugin. This is in
    practice not needed. It's just an opinionated convenience that can be
    replaced by directly invalidating queries in the cache with the
    onSettled() hook in useMutation():

const { mutate } = useMutation({
  onSettled({ caches, vars: { id } }) {
    caches.invalidateQueries({ key: ['contacts-search'] })
    caches.invalidateQueries({ key: ['contacts', id] })
  },
  mutation: (contact) => patchContact(contact),
})

Features

  • Caches.invalidateQueries only fetches active queries

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.