npm / @prisma/adapter-d1
@prisma/adapter-d1
What changed in @prisma/adapter-d1 6 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
8 breaking
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@prisma/adapter-d1 71 changes
Breaking changes 1
Creating a Prisma Client now requires a driver adapter for all databases; pass the adapter when instantiating PrismaClient.
@prisma/adapter-d1 67 changes
Breaking changes 7
async can no longer be used as a model name.
await can no longer be used as a model name.
Prisma ORM v6 requires Node.js 18.18.0, 20.9.0, or 22.11.0 at minimum; Node.js 16, 17, 19, and 21 are not officially supported.
Prisma ORM v6 requires TypeScript 5.1.0 or later.
NotFoundError is removed; findUniqueOrThrow() and findFirstOrThrow() use PrismaClientKnownRequestError with code P2025 instead.
Prisma v6 represents Bytes fields as Uint8Array instead of Buffer; replace Buffer type occurrences accordingly.
using can no longer be used as a model name.