tidbcloud / prisma-adapter

7 stars 5 forks source link

Doesn't work with latest prisma #23

Open rverma-dev opened 3 months ago

rverma-dev commented 3 months ago

Give validation error for driverName not mapped

shiyuhang0 commented 3 months ago

Hi, could you provide the Prisma version, adapter version, and serverless-js version? I can not reproduce with the following version:

  1. Prisma: v5.14.0
  2. adapter: v5.11.0
  3. serverless-js : v0.1.0
rverma-dev commented 3 months ago

Its the adapter version which is culprit, if you simply bump the adapter version to 5.14.0 you can also see the issue in adapter code.

adapter
shiyuhang0 commented 3 months ago

The adapter doesn't release v5.14.0. Here is the list of releases https://github.com/tidbcloud/prisma-adapter/releases. The adapter v5.11.1 is compatible with Prisma v5.14.0, we suggest you use this version.

rverma-dev commented 3 months ago

We need to bump up https://www.npmjs.com/package/@prisma/driver-adapter-utils

shiyuhang0 commented 3 months ago

We have released a series of versions according to the Prisma version, you can take one as you need. It should resolve your issue, could you have a try?