Bump prisma from 6.1.0 to 6.2.0
Bumps prisma from 6.1.0 to 6.2.0.
Release notes
Sourced from prisma's releases.
6.2.0
Today we're releasing Prisma ORM version 6.2.0
🎉
🌟 Help us spread the word about Prisma by starring the repo or tweeting about the release.🌟 We have a number of new features in this version, including support for
jsonandenumfields in SQLite, a newupdateManyAndReturnfunction, support for ULID values, as well as the promotion of theomitfeature from Preview to Generally Availability.Highlights
Excluding fields via
omitis now production-readyOur number one requested feature is out of Preview and Generally Available. In 6.2.0, you no longer need to add
omitApito your list of Preview features:generator client { provider = "prisma-client-js" - previewFeatures = ["omitApi"] }As a refresher:
omitallows you to exclude certain fields from being returned in the results of your Prisma Client queries.You can either do this locally, on a per-query level:
const result = await prisma.user.findMany({ omit: { password: true, }, });Or globally, to ensure a field is excluded from all queries of a certain model:
const prisma = new PrismaClient({ omit: { user: { password: true } } }) // The password field is excluded in all queries, including this one const user = await prisma.user.findUnique({ where: { id: 1 } })For more information on
omit, be sure to check our documentation.
jsonandenumfields in SQLite
... (truncated)
Commits
-
d6c1639feat(cli): report typescript version viaprisma --version(#25968) -
425502ffix: node 23 support (#25971) - See full diff in compare view
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
-
$dependabot recreatewill recreate this MR rewriting all the manual changes and resolving conflicts