CCodemod

prisma/5/json-protocol

No description available

migrationprisma
Public
0 executions

Run locally

npx codemod prisma/5/json-protocol

This codemod addresses changes mentioned in Prisma's official upgrade guide related to Json Protocol changes.

Note:

There are known FNs for this codemod when in any occassion you pass an identifier (variable) that is not an array into prisma client invocations where it expects an array. This is due to the fact that the codemod is not able to infer the type of the identifier. In such cases, you will have to manually update the code. The codemod will still work for most of the cases when such calls are made with literals.

Ready to evolve your codebase?

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