Packages

@pinia/colada

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

Your version

0.17.0

3 Jun 2025Where it was published

0.21.7 is the newest release of 0.17.x.

In short

2 breaking1 removed3 new2 fixed

  • Breaking

    Replace EntryNodeKey with EntryKey

  • Breaking

    types: The EntryKeyTagged type now has multiple type params and an array is no longer assignable to it. This is necessary to correctly infer the types for TData and TDataInitial and if you were manually using EntryKeyTagged, you will either need to cast arrays to it or use EntryKey instead. In most cases this should not affect you. This makes types stricter and also disallows setting a query data to undefined. If you were doing queryCache.setQueryData(key, undefined), use queryCache.setEntryState instead.

  • Removed

    Remove deprecated EntryNodeKey

Release note

Breaking changes

  • Breaking

    Replace EntryNodeKey with EntryKey

  • Breaking

    types: The EntryKeyTagged type now has multiple type params and an array is no longer assignable to it. This is necessary to correctly infer the types for TData and TDataInitial and if you were manually using EntryKeyTagged, you will either need to cast arrays to it or use EntryKey instead. In most cases this should not affect you. This makes types stricter and also disallows setting a query data to undefined. If you were doing queryCache.setQueryData(key, undefined), use queryCache.setEntryState instead.

Features

  • Add a queryCache.get method to a typed entry

  • Add error to tagged keys

  • useQueryState (e1e84eb), closes #23

Bug Fixes

  • types: avoid incorrect undefined from tagged keys

  • types: make options parameter optional in types

Code Refactoring

  • Removed

    Remove deprecated EntryNodeKey

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.