YassinEldeeb / create-prisma-generator

Get started developing your own ◭ Prisma generator by running a single command.
MIT License
193 stars 8 forks source link

Feat: Prisma 4 Support #267

Open zackdotcomputer opened 2 years ago

zackdotcomputer commented 2 years ago

Currently the package generated by this tool is built against Prisma 3.

Prisma 4 is now mature and so this package should either be deprecated or updated to support Prisma 4. This will mostly likely require ditching the exported logger object from @prisma/sdk in favor of using console.log directly. (Logger is only a chalk-colored wrapper around a vanilla log function)

YassinEldeeb commented 1 year ago

Hey,

yes, this indeed is still using Prisma 3 which is inconvenient. updating the generated boilerplate dependencies for Prisma wouldn't be hard though. I'll see when I have time to update it but surely it's not and won't be considered deprecated because of old prisma dependencies. in fact you can just use it and migrate to prisma v4 yourself after generating the project boilerplate which shouldn't take a few minutes.

PRs are welcome though on making this change.