home-panel
home-panel copied to clipboard
Bump prisma from 5.12.1 to 5.19.0
Bumps prisma from 5.12.1 to 5.19.0.
Release notes
Sourced from prisma's releases.
5.19.0
Today, we are excited to share the
5.19.0stable release 🎉🌟 Help us spread the word about Prisma by starring the repo or posting on X about the release. 🌟
Highlights
Introducing TypedSQL
TypedSQL is a brand new way to interact with your database from Prisma Client. After enabling the
typedSqlPreview feature, you’re able to write SQL queries in a newsqlsubdirectory of yourprismadirectory. These queries are then checked by Prisma during using the new--sqlflag ofprisma generateand added to your client for use in your code.To get started with TypedSQL:
Make sure that you have the latest version of
prismaand@prisma/clientinstalled:npm install -D prisma@latest npm install @prisma/client@latestEnable the
typedSqlPreview feature in your Prisma Schema.generator client { provider = "prisma-client-js" previewFeatures = ["typedSql"] }Create a
sqlsubdirectory of yourprismadirectory.mkdir -p prisma/sqlYou can now add
.sqlfiles to thesqldirectory! Each file can contain one sql query and the name must be a valid JS identifier. For this example, say you had the filegetUsersWithPosts.sqlwith the following contents:SELECT u.id, u.name, COUNT(p.id) as "postCount" FROM "User" u LEFT JOIN "Post" p ON u.id = p."authorId" GROUP BY u.id, u.nameImport your SQL query into your code with the
@prisma/client/sqlimport:import { PrismaClient } from '@prisma/client' import { getUsersWithPosts } from '@prisma/client/sql'
... (truncated)
Commits
8957496feat(client): Typed SQL (#24907)f3856a9chore(deps): update devdependencies patch (non-major) (#24813)ce552f3feat(cli): remove Optimize specific login in Platform CLI (#25036)26c8d91feat(cli): Chokidar-based watch (#24983)cebc9c0feat: Added a tip to remove tips (#24818)b58adc8fix(client): Correctly resolveconfigDirwhenprismaSchemaFolderis used ...a15d3b9feat(cli, generate command): Added promo array to rotate and make cli messagi...7308378feat(cli): Supportprisma platform auth show --sensitive(#24745)190bac1chore(cli): cleanup import message when running generate (#24739)1cc5cb0fix(cli): restoredprisma generate --allow-no-modelsafter regression (#24741)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)