Skip to content

Commit 4521d2d

Browse files
committed
release: @pinia/colada@1.0.0
1 parent ba6a946 commit 4521d2d

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

0 commit comments

Comments
 (0)