@prisma/client
7.10.1 · 15 Oct 2026Apache-2.024.6M / weekRepositoryHomepagenpmAtom feed
4.16.2 is the newest release of 4.x.
In short
45 new1 internal
Release note
🌟 Help us spread the word about Prisma by starring the repo or tweeting about the release. 🌟
Highlights
For this release, we focused on fixing bugs and making smaller quality-of-life improvements.
Support for custom arguments for prisma db seed
This release adds support for defining and passing arbitrary arguments to prisma db seed. This creates the opportunity for you to define your own arguments in your seed file that you could pass to the prisma db seed command. A few example use-cases include, but are not limited to:
Seeding different data in different environments
Partially seeding data in some tables
Here is an example seed.ts file that defines custom arguments for seeding different data in different environments:
// prisma/seed.ts
import { parseArgs } from "node:util";
const options = {
environment: { type: 'string', },
}
async function main() {
const { values: { environment } } = parseArgs({ options })
switch (environment) {
case "development":
/** do something for development */
break;
case "test":
/** do something for test environment */
break;
default:
break;
}
}
main()You can then provide the environment argument when executing the seed script as follows:
npx prisma db seed -- --environment development
Let us know what you think, share example usage of this feature, and create a bug report if you run into any issues.
Improved error messages when Query Engine file is not found
This release improves the error messages returned by Prisma Client when the Query Engine file is not found. A few reasons the Query Engine file might be missing from your application bundle include when:
The downloaded Query Engine doesn’t match the runtime/ target platform your application is running on.
The Query Engine is not copied to your final application bundle during the build step.
We hope these error messages are helpful while debugging your application.
Prisma VS Code extension improvements
In this release, we made a few improvements to our VS Code extension:
Updated the file system watcher that is responsible for restarting the TypeScript server when
prisma generateis run to ensure the types are in syncNote:
This new approach is currently only available on Windows and Linux. We plan on adding support for the new file system watcher on macOS soon.
This requires both Prisma CLI & VS code extension version
4.15.0or higher
Added Quick Fixes action for unique identifiers for MongoDB to add the
@map("_id")attribute function when it’s missing on an identifier fieldSupport for renaming symbols for composite types and views
Fixes and improvements
Prisma Client
prisma generateis blocked byquery-engine-rhel-openssl-1.0.xopening in Notepad on WindowsIssue with Yarn Workspace Monorepo: Query engine binary for current platform could not be found.
Deploying to Cloudflare Workers | "PrismaClient is unable to be run in the browser"
No client schema when using PrismaClient during cached (standard) Netlify build
Module "@prisma/client" has no exported member "PrismaClient"
prisma/client crashes when used with older versions of react-refresh
Unable to run prisma cli in pnpm monorepo from workspace install
Prisma seems to be looking in the wrong location for rhel-openssl-1.0.x
Query engine library for current platform could not be found.
GraphQL protocol encoder incorrectly turns empty array into empty object.
GraphQL protocol: Invalid
Datevalues silently turn intonulls@prisma/client/edge + Cloudflare Worker / wrangler = Could not resolve "os"
Client is bricked from connecting to DB if first attempt fails.
JSON protocol: incorrect recursive composites detection through multiple nesting levels
Prisma Migrate
Language tools (e.g. VS Code)
Join us for another "What's new in Prisma" live stream
Learn about the latest release and other news from the Prisma community by joining us for another "What's new in Prisma" live stream.
The stream takes place on YouTube on Thursday, June 1 at 5 pm Berlin | 8 am San Francisco.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.