July 17, 2025

ORM 6.12.0: ESM-Compatible Generator in Preview & New Options for Prisma Config

Check out the latest Prisma release with the new ESM-compatible prisma-client generator moving into Preview and new options for Prisma Config to speficy locations for migrations, SQL views and TypedSQL queries!

ORM 6.12.0: ESM-Compatible Generator in Preview & New Options for Prisma Config

Prisma ORM v6.12.0

Yesterday, we released Prisma ORM v6.12.0 with some exciting updates!

ESM-compatible prisma-client generator now in Preview

We're excited to share that our new and more flexible prisma-client generator is moving into Preview!

This new generator is ESM-compatible, customizable for various JS runtimes (like Bun, Deno, CF Workers, …) and gives application developers more control over the generated code.

As a reminder, here's what it looks like:

This new generator eliminates any headaches that you may have experienced due to magical code generation into node_modules. With it moving into Preview, we hope that even more of you will try it out and share your feedback with us!

Note: The prisma-client generator will become the default in Prisma v7, replacing the current prisma-client-js generator.

In addition to moving it into Preview, we also created a couple of new ready-to-run examples to help you get started with the new generator and your favorite framework:

Specify locations for views, migrations and typedSql in Prisma Config (Early Access)

The prisma.config.ts file gives you a TypeScript-native way for configuring your Prisma project. It's convenient in situations when you want to customize the locations of your Prisma schema or use specific driver adapters for Prisma Migrate or Prisma Studio.

As we're getting closer to its General Availability release, we're adding more capabilities to it!

In previous versions, the Prisma CLI implicitly used to infer the location for migration, SQL view definition and TypedSQL query files based on the location of the Prisma schema. In this release, we're adding three new fields (migrations, views and typedSql) to give you more flexibility and clarity on how the Prisma CLI should locate these files:

Try out the new features & share your feedback

This week, we released several new features for Prisma ORM! Try the new prisma-client generator examples and the new options for prisma.config.ts, we'd love to hear how you like them.

Join the discussion on Discord, and ping us on X with your thoughts.

Don’t miss the next post!

Sign up for the Prisma Newsletter