C

prisma/5/json-protocol

How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

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 contribute?

Build your own codemod and share it with the community.