Packages

@pinia/colada

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

Your version

0.11.0

25 Oct 2024Where it was published

0.21.7 is the newest release of 0.11.x.

In short

4 breaking7 new1 faster1 fixed3 internal

  • Breaking

    mutations: This wasn't needed as instead, one can use useQueryCache() outside. It could be added back if needed but it's more pragmatic to start without it.

  • Breaking

    query: The queryCache.cancelQuery() is renamed to queryCache.cancel() to better match the other functions naming. A new function queryCache.cancelQueries() is added to actually cancel one or multiple queries instead of just one.

  • Breaking

    plugins: In plugins, cache is renamed to queryCache for consistency.

  • Breaking

    This makes it clearer that queryCache is the result of useQueryCache().

Release note

Breaking changes

  • Breaking

    mutations: This wasn't needed as instead, one can use
    useQueryCache() outside. It could be added back if needed but it's
    more pragmatic to start without it.

  • Breaking

    query: The queryCache.cancelQuery() is renamed to
    queryCache.cancel() to better match the other functions naming. A new
    function queryCache.cancelQueries() is added to actually cancel one or
    multiple queries instead of just one.

  • Breaking

    plugins: In plugins, cache is renamed to queryCache for
    consistency.

  • Breaking

    This makes it clearer that queryCache is the result
    of useQueryCache().

Features

  • Add mutation store

  • hmr: warn against bugs

  • nuxt: add auto imports

  • nuxt: support colada.options

  • Predicate in filter

  • query: add cancelQueries

  • Run defined mutations in effect scope

Bug Fixes

  • nuxt: plugins

Performance Improvements

  • Tree shake unused stores

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.