github posva/pinia-colada v1.2.0

10 hours ago

   🚀 Features

  • Add entry to UseMutationGlobalContext  -  by @posva in #544 (21826)
  • Add defineMutationOptions for type-safe reusable mutation options  -  by @posva (56773)
  • Add tagged key type to defineMutationOptions  -  by @posva (fa54b)
  • Warn when defineMutation is called outside a scope  -  by @posva (bc0bb)
  • infinite: Add defineInfiniteQueryOptions and getter support for useInfiniteQuery  -  by @posva (2dce2)
  • infinite-query: Add setInfiniteQueryData to safely set infinite query data  -  by @posva (96b58)

   🐞 Bug Fixes

  • Avoid aborting settled queries during garbage collection  -  by @markimbriaco, Mark Imbriaco and @posva in #548 (9b56a)
  • Missing global type of context in onMutate  -  by @posva (5bb4a)
  • Resolve type errors in defineMutationOptions tests  -  by @posva (aec43)
  • Avoid undefined in mutation key to fix type error with custom ErrorDefault  -  by @posva (98210)
  • Also guard previousPageParam in the check  -  by @tzzo (cc5e5)
  • Use proper cast for readonly ext in test  -  by @tzzo (5f997)
  • Align defineMutation lifecycle with defineQuery  -  by @posva (cac83)
  • cache-persister: Guard localStorage.clear() for Node 25+  -  by @posva (c29c6)
  • infinite-query: Guard computePageParams against missing ext refs  -  by @tzzo (113d6)

   🏎 Performance

    View changes on GitHub

Don't miss a new pinia-colada release

NewReleases is sending notifications on new releases.