Packages

@pinia/colada

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

Your version

0.6.0

2 Apr 2024Where it was published

0.21.7 is the newest release of 0.6.x.

In short

3 breaking11 new1 internal

  • Breaking

    mutation: Rename type UseQueryStatus to QueryStatus

  • Breaking

    mutation: mutate no longer returns a promise and catches errors to be safely used in templates. The old behavior remains the same with mutateAsync

  • Breaking

    mutation: the mutation option in useMutation() now only accepts one argument for the variables. This allows to add extra parameters in the future like a signal, an extra context, etc

Release note

Breaking changes

  • Breaking

    mutation: Rename type UseQueryStatus to QueryStatus

  • Breaking

    mutation: mutate no longer returns a promise and catches errors
    to be safely used in templates. The old behavior remains the same with
    mutateAsync

  • Breaking

    mutation: the mutation option in useMutation() now only
    accepts one argument for the variables. This allows to add extra
    parameters in the future like a signal, an extra context, etc

Features

  • Abort pending query signal on new query

  • Allow typing the error with transformError

  • mutation: add mutateAsync

  • mutation: allow passing the context to mutation

  • mutation: defineMutation wip

  • mutation: require one argument only for useMutation

  • query: add data and errors to global hooks

  • query: defineQuery

  • Return promise when invalidating query

  • useMutation: add hook context

  • useMutation: add hooks

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.