This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| @pinia/colada (source) | ^0.21.7 → ^1.2.1 |
Release Notes
posva/pinia-colada (@​pinia/colada)
v1.2.1
Bug Fixes
- hmr: avoid cancelling in-flight requests on remount (c01b6dc), closes #569 #570
- hmr: key **hmr snapshots by **hmrId (95ea5ac)
- infinite-query: respect global query options (#577) (a14cc9f)
v1.2.0
Bug Fixes
- align defineMutation lifecycle with defineQuery (cac8326), closes #85
- also guard previousPageParam in the check (cc5e548)
- avoid aborting settled queries during garbage collection (#548) (9b56ad4)
- avoid undefined in mutation key to fix type error with custom ErrorDefault (98210a5)
- infinite-query: guard computePageParams against missing ext refs (113d6cb), closes #525
- missing global type of context in onMutate (5bb4a63)
- resolve type errors in defineMutationOptions tests (aec434a)
- use proper cast for readonly ext in test (5f99764)
Features
- add
defineMutationOptionsfor type-safe reusable mutation options (567732e) - add
entrytoUseMutationGlobalContext(#544) (218261d) - add tagged key type to
defineMutationOptions(fa54b5f) - infinite-query: add
setInfiniteQueryDatato safely set infinite query data (96b58c3) - infinite: add
defineInfiniteQueryOptionsand getter support foruseInfiniteQuery(2dce28a) - warn when defineMutation is called outside a scope (bc0bbf6)
Performance Improvements
- smaller bundle (bb68d33)
v1.1.0
Bug Fixes
Features
v1.0.0
- feat!: remove deprecated two-parameter overloads from
useQueryanduseQueryState(422c391)
BREAKING CHANGES
Deprecations from 0.21.5 are now removed:
The
useQuery(setupOptions, paramsGetter)anduseQueryState(setupOptions, paramsGetter)two-parameter forms have been removed. Migrate to the single function parameter form:// Before useQuery(opts, () => id.value) useQueryState(opts, () => id.value)
// After useQuery(() => opts(id.value)) useQueryState(() => opts(id.value).key)
An ast-grep codemod is available to automate most callsites (may not cover all edge cases):
ast-grep scan -r node_modules/@​pinia/colada/codemods/rules/migration-0-21-to-1-0.yaml -i src0.21.7 (2026-03-02)
Bug Fixes
0.21.6 (2026-02-26)
Bug Fixes
- infinite: allow initial null page (00e4ed1), closes #518 #519
- infinite: ensure page params are attached to entries (e43b3fd), closes #517
Performance Improvements
- use shallowRef (3f8235b)
0.21.5 (2026-02-22)
Bug Fixes
- ssr: prevent memory leak (#514) (9fd9baa)
- types: restore UseQueryOptions variance for placeholderData callback (ef4a006)
Features
Deprecations
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 srcSee Migration Codemods for details.
0.21.4 (2026-02-09)
Features
0.21.3 (2026-02-06)
Bug Fixes
- infinite-query: compute hasNextPage correctly on cache hit (#480) (895914a)
- skip refetchOnWindowFocus and refetchOnReconnect for inactive defined queries (1d7f9d2), closes #485
0.21.2 (2026-01-20)
Bug Fixes
- correct GC time display for prefetched queries (#464) (80e2c5a)
- query: gc prefetched queries (ba1e90c)
0.21.1 (2026-01-09)
Bug Fixes
Features
- make ext readonly (8dd595a)
Configuration
📅 Schedule: (UTC)
- Branch creation
- Between 12:00 AM and 03:59 AM, only on Monday (
* 0-3 * * 1)
- Between 12:00 AM and 03:59 AM, only on Monday (
- Automerge
- At any time (no schedule defined)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.