@pinia/colada
1.4.9 · 30 Oct 2026MIT207.8k / weekRepositoryHomepagenpmAtom feed
0.21.7 is the newest release of 0.21.x.
In short
1 deprecated5 new3 fixed
- Deprecated
The two-parameter form of
useQuery(setup, () => params)anduseQueryState(setup, () => params)is deprecated. Use a single function parameter instead:
Release note
Features
Improve hover titel
Pass previousEntry in placeholderData
devtools: Distinguish prefetched queries in DevTools panel
retry: Track retry state with retryCount and isRetrying
retry: Add retryError and suppress error state during retries
Bug Fixes
Missing type in extension
ssr: Prevent memory leak
types: Restore UseQueryOptions variance for placeholderData callback
Deprecations
- Deprecated
The two-parameter form of
useQuery(setup, () => params)anduseQueryState(setup, () => params)is deprecated. Use a single function parameter instead:- useQuery(useContactList, () => ({ search: search.value })) + useQuery(() => useContactList({ search: search.value }))A codemod is available to automate this migration. Commit your changes first, then run:
pnpm --package=@ast-grep/cli dlx ast-grep scan -r node_modules/@pinia/colada/codemods/rules/migration-0-21-to-1-0.yaml -i src
See Migration Codemods for details.
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.