Packages

@pinia/colada

1.4.9 · 30 Oct 2026MIT207.8k / weekRepositoryHomepagenpmAtom feed

Your version

1.2.0

17 Apr 2026Where it was published

1.4.9 is the newest release of 1.x.

In short

6 new1 faster9 fixed

Release note

Features

  • Add entry to UseMutationGlobalContext

  • Add defineMutationOptions for type-safe reusable mutation options

  • Add tagged key type to defineMutationOptions

  • Warn when defineMutation is called outside a scope

  • infinite: Add defineInfiniteQueryOptions and getter support for useInfiniteQuery

  • infinite-query: Add setInfiniteQueryData to safely set infinite query data

Bug Fixes

  • Avoid aborting settled queries during garbage collection

  • Missing global type of context in onMutate

  • Resolve type errors in defineMutationOptions tests

  • Avoid undefined in mutation key to fix type error with custom ErrorDefault

  • Also guard previousPageParam in the check

  • Use proper cast for readonly ext in test

  • Align defineMutation lifecycle with defineQuery

  • cache-persister: Guard localStorage.clear() for Node 25+

  • infinite-query: Guard computePageParams against missing ext refs

Performance

  • Smaller bundle

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.