Skip to content

Update peer dependency for @prisma/client to include v7#519

Open
AlexHartford wants to merge 1 commit intoQuramy:mainfrom
AlexHartford:patch-1
Open

Update peer dependency for @prisma/client to include v7#519
AlexHartford wants to merge 1 commit intoQuramy:mainfrom
AlexHartford:patch-1

Conversation

@AlexHartford
Copy link
Copy Markdown

With prisma 7 released, it would be great if this package were updated to work with it.

@hisabimbola
Copy link
Copy Markdown

@Quramy Could you please take a look at this PR when you have a chance? It would be great to have Prisma v7 support. Thank you!

@notnotdrew
Copy link
Copy Markdown

Hey @AlexHartford & @hisabimbola, have either of you been using a version of this change (e.g., a temporary fork) in the meantime? Starting a new project at work, and the fabbrica API is so much nicer than factory-js/prisma... so I'm tempted to start with a fork until Prisma 7 is officially supported 😬 Curious if you've been using it, and if so, if it's worked out alright?

@lelgenio
Copy link
Copy Markdown

lelgenio commented Mar 3, 2026

@notnotdrew, I've been using this with no trouble.

Since there's no change on fabbrica to make it work with prisma v7, you can just force it to work by adding an override in your package.json without needing a fork:

{
  "dependencies": {
    "@prisma/client": "^7.4.0"
  },
  "devDependencies": {
    "@quramy/prisma-fabbrica": "^2.3.0"
  },
  "overrides": {
    "@quramy/prisma-fabbrica": {
      "@prisma/client": "^7.4.0"
    }
  }
}

@hisabimbola
Copy link
Copy Markdown

Yeah, I also use override in pnpm and it works

@AlexHartford
Copy link
Copy Markdown
Author

Also use the override! Bigger issues come from things like soft delete middleware... if anyone has leads on getting that working with the fluent API in v7 I'd be all ears

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants