File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed
Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change 1+ # [ 1.0.0] ( https://github.com/posva/pinia-colada/compare/v0.21.7...v1.0.0 ) (2026-03-06)
2+
3+ - feat!: remove deprecated two-parameter overloads from ` useQuery ` and ` useQueryState ` ([ 422c391] ( https://github.com/posva/pinia-colada/commit/422c391789a8d20d618a9b1b4d3b4fd900ce361b ) )
4+
5+ ### BREAKING CHANGES
6+
7+ Deprecations from 0.21.5 are now removed:
8+
9+ - The ` useQuery(setupOptions, paramsGetter) ` and
10+ ` useQueryState(setupOptions, paramsGetter) ` two-parameter forms have been
11+ removed. Migrate to the single function parameter form:
12+
13+ // Before
14+ useQuery(opts, () => id.value)
15+ useQueryState(opts, () => id.value)
16+
17+ // After
18+ useQuery(() => opts(id.value))
19+ useQueryState(() => opts(id.value).key)
20+
21+ An ast-grep codemod is available to automate most callsites (may not
22+ cover all edge cases):
23+
24+ ``` sh
25+ ast-grep scan -r node_modules/@pinia/colada/codemods/rules/migration-0-21-to-1-0.yaml -i src
26+ ```
27+
128## [ 0.21.7] ( https://github.com/posva/pinia-colada/compare/v0.21.6...v0.21.7 ) (2026-03-02)
229
330### Bug Fixes
Original file line number Diff line number Diff line change 11{
22 "name" : " @pinia/colada" ,
3- "version" : " 0.21.7 " ,
3+ "version" : " 1.0.0 " ,
44 "description" : " The smart data fetching layer for Vue.js" ,
55 "keywords" : [
66 " cache" ,
You can’t perform that action at this time.
0 commit comments