CarterGrimmeisen / zod-prisma

A custom prisma generator that creates Zod schemas from your Prisma model.
MIT License
810 stars 87 forks source link

Support for Prisma v4 #141

Open SOULPWRD opened 2 years ago

SOULPWRD commented 2 years ago

Hi!

Fist of all, thank you for this package :)

I'm about to upgrade from Prisma v3 to v4. Unfortunately npm cli rejects to do the upgrade because the peer deps support only Prisma version ^3.0.0. I've noticed you've already started working on zod-prisma v1. Do you have some rough estimate when it's going to be released please?

Thank you in advance!

mauriciabad commented 1 year ago

My project uses Prisma v4 and I can't use this awesome package 😢

Is there any update about it?

mauriciabad commented 1 year ago

Well, I'll just use prisma-zod-generator meanwhile.

baran-ozer commented 11 months ago

Actually, you can use it with Prisma >= 4.0 by modifying your package.json file. Just add these lines: "overrides": { "zod-prisma": { "prisma": "$prisma" } },