CCodemod

pinia-colada-0-14-migration-recipe

No description available

migrationpinia-colada
Public
0 executions

Run locally

npx codemod pinia-colada-0-14-migration-recipe

This codemod updates the usage of PiniaColada to ensure that the enabled and gcTime options are correctly placed under queryOptions. Previously, these options were directly passed as top-level properties, which is now deprecated. The codemod transforms these patterns into the new structure where enabled is nested under queryOptions.

Changes Applied:

  • Moves enabled under queryOptions
  • Moves gcTime under queryOptions if present
  • Ensures PiniaColada is always called with a valid configuration object

Before

text

After

text

Using this codemod

You can run this codemod with the following command:

bash

Ready to evolve your codebase?

Build tailored, compiler-aware skills to assess, plan, and automate complex codebase changes.