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
json
andenum
fields in SQLite, a newupdateManyAndReturn
function, support for ULID values, as well as the promotion of theomit
feature from Preview to Generally Availability.Highlights
Excluding fields via
omit
is now production-readyOur number one requested feature is out of Preview and Generally Available. In 6.2.0, you no longer need to add
omitApi
to your list of Preview features:generator client { provider = "prisma-client-js" - previewFeatures = ["omitApi"] }
As a refresher:
omit
allows 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.
json
andenum
fields in SQLite
... (truncated)
Commits
-
d6c1639
feat(cli): report typescript version viaprisma --version
(#25968) -
425502f
fix: node 23 support (#25971) - See full diff in compare view
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
-
$dependabot recreate
will recreate this MR rewriting all the manual changes and resolving conflicts