ReviewOS

also looking at this

stacks/vite-plugin-routes

chore(deps): update dependency @pinia/colada to v1

#5
Merged renovate[bot] wants to merge renovate/pinia-colada-1.x into main
2 files +3 -3
9 days ago

This PR contains the following updates:

PackageChangeAgeConfidence
@pinia/colada (source)^0.21.7 → ^1.2.1ageconfidence

Release Notes

posva/pinia-colada (@​pinia/colada)

v1.2.1

Compare Source

Bug Fixes

v1.2.0

Compare Source

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 defineMutationOptions for type-safe reusable mutation options (567732e)
  • add entry to UseMutationGlobalContext (#​544) (218261d)
  • add tagged key type to defineMutationOptions (fa54b5f)
  • infinite-query: add setInfiniteQueryData to safely set infinite query data (96b58c3)
  • infinite: add defineInfiniteQueryOptions and getter support for useInfiniteQuery (2dce28a)
  • warn when defineMutation is called outside a scope (bc0bbf6)
Performance Improvements

v1.1.0

Compare Source

Bug Fixes
Features

v1.0.0

Compare Source

  • feat!: remove deprecated two-parameter overloads from useQuery and useQueryState (422c391)
BREAKING CHANGES

Deprecations from 0.21.5 are now removed:

  • The useQuery(setupOptions, paramsGetter) and useQueryState(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 src

0.21.7 (2026-03-02)

Bug Fixes
  • infinite: detach $onAction listener to survive component unmount (c756e3a), closes #​525

0.21.6 (2026-02-26)

Bug Fixes
Performance Improvements

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) and useQueryState(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.

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

0.21.1 (2026-01-09)

Bug Fixes
Features

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Between 12:00 AM and 03:59 AM, only on Monday (* 0-3 * * 1)
  • 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.

2 changed files on the files tab, with 0 review threads.

Sign in to comment on this pull request.