@pinia/colada
1.4.9 · 30 Oct 2026MIT207.8k / weekRepositoryHomepagenpmAtom feed
0.21.7 is the newest release of 0.17.x.
In short
2 breaking1 removed3 new2 fixed
- Breaking
Replace
EntryNodeKeywithEntryKey - Breaking
types: The
EntryKeyTaggedtype now has multiple type params and an array is no longer assignable to it. This is necessary to correctly infer the types forTDataandTDataInitialand if you were manually usingEntryKeyTagged, you will either need to cast arrays to it or useEntryKeyinstead. In most cases this should not affect you. This makes types stricter and also disallows setting a query data toundefined. If you were doingqueryCache.setQueryData(key, undefined), usequeryCache.setEntryStateinstead. - Removed
Remove deprecated
EntryNodeKey
Release note
Breaking changes
- Breaking
Replace
EntryNodeKeywithEntryKey - Breaking
types: The
EntryKeyTaggedtype now has multiple type params and an array is no longer assignable to it. This is necessary to correctly infer the types forTDataandTDataInitialand if you were manually usingEntryKeyTagged, you will either need to cast arrays to it or useEntryKeyinstead. In most cases this should not affect you. This makes types stricter and also disallows setting a query data toundefined. If you were doingqueryCache.setQueryData(key, undefined), usequeryCache.setEntryStateinstead.
Features
Add a queryCache.get method to a typed entry
Add error to tagged keys
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.