unstale

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

@unstale/cli on npm

@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.

    7.0.0upgrade guide

@prisma/adapter-d1 67 changes

Breaking changes 7

  • async can no longer be used as a model name.

    6.0.0upgrade guide

  • await can no longer be used as a model name.

    6.0.0upgrade guide

  • 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.

    6.0.0upgrade guide

  • Prisma ORM v6 requires TypeScript 5.1.0 or later.

    6.0.0upgrade guide

  • NotFoundError is removed; findUniqueOrThrow() and findFirstOrThrow() use PrismaClientKnownRequestError with code P2025 instead.

    6.0.0upgrade guide

  • Prisma v6 represents Bytes fields as Uint8Array instead of Buffer; replace Buffer type occurrences accordingly.

    6.0.0upgrade guide

  • using can no longer be used as a model name.

    6.0.0upgrade guide