@pinia/colada
1.4.9 · 30 Oct 2026MIT207.8k / weekRepositoryHomepagenpmAtom feed
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
keysoption that automatically invalidate keys has been renamed toinvalidateKeysand 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 theonSettled()hook inuseMutation():
Release note
Breaking changes
- Breaking
This change is mainly to simplify migration from
TanStack Query. - Breaking
Caches.invalidateQueries only fetches active queries
- Breaking
The
keysoption that automatically invalidate keys
has been renamed toinvalidateKeysand 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 theonSettled()hook inuseMutation():
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.