Skip to content

Commit

Permalink
fix(deps): update prisma monorepo to v5.19.0 (#1163)
Browse files Browse the repository at this point in the history
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@prisma/client](https://www.prisma.io) ([source](https://togithub.com/prisma/prisma/tree/HEAD/packages/client)) | [`5.18.0` -> `5.19.0`](https://renovatebot.com/diffs/npm/@prisma%2fclient/5.18.0/5.19.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@prisma%2fclient/5.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@prisma%2fclient/5.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@prisma%2fclient/5.18.0/5.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@prisma%2fclient/5.18.0/5.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [prisma](https://www.prisma.io) ([source](https://togithub.com/prisma/prisma/tree/HEAD/packages/cli)) | [`5.18.0` -> `5.19.0`](https://renovatebot.com/diffs/npm/prisma/5.18.0/5.19.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/prisma/5.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/prisma/5.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/prisma/5.18.0/5.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/prisma/5.18.0/5.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>prisma/prisma (@&#8203;prisma/client)</summary>

### [`v5.19.0`](https://togithub.com/prisma/prisma/releases/tag/5.19.0)

[Compare Source](https://togithub.com/prisma/prisma/compare/5.18.0...5.19.0)

Today, we are excited to share the `5.19.0` stable release 🎉

🌟 **Help us spread the word about Prisma by starring the repo or [posting on X](https://twitter.com/intent/tweet?text=Check%20out%20the%20latest%20@&#8203;prisma%20release%20v5.19.0%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/prisma/prisma/releases/tag/5.19.0) about the release.** 🌟

#### Highlights

##### Introducing TypedSQL

TypedSQL is a brand new way to interact with your database from Prisma Client. After enabling the `typedSql` Preview feature, you’re able to write SQL queries in a new `sql` subdirectory of your `prisma` directory. These queries are then checked by Prisma during using the new `--sql` flag of `prisma generate` and added to your client for use in your code.

To get started with TypedSQL:

1.  Make sure that you have the latest version of `prisma` and `@prisma/client` installed:

        npm install -D prisma@latest
        npm install @&#8203;prisma/client@latest

2.  Enable the `typedSql` Preview feature in your Prisma Schema.

           generator client {
             provider = "prisma-client-js"
             previewFeatures = ["typedSql"]
           }

3.  Create a `sql` subdirectory of your `prisma` directory.

        mkdir -p prisma/sql

4.  You can now add `.sql` files to the `sql` directory! Each file can contain one sql query and the name must be a valid JS identifier. For this example, say you had the file `getUsersWithPosts.sql` with the following contents:

    ```sql
    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.name
    ```

5.  Import your SQL query into your code with the `@prisma/client/sql` import:

    ```tsx
       import { PrismaClient } from '@&#8203;prisma/client'
       import { getUsersWithPosts } from '@&#8203;prisma/client/sql'

       const prisma = new PrismaClient()

       const usersWithPostCounts = await prisma.$queryRawTyped(getUsersWithPosts)
       console.log(usersWithPostCounts)
    ```

There’s a lot more to talk about with TypedSQL. We think that the combination of the high-level Prisma Client API and the low-level TypedSQL will make for a great developer experience for all of our users.

To learn more about behind the “why” of TypedSQL [be sure to check out our announcement blog post](https://pris.ly/typedsql-blog).

For docs, check out our new [TypedSQL section](https://pris.ly/d/typedsql).

#### Bug fixes

##### Driver adapters and D1

A few issues with our `driverAdapters` Preview feature and Cloudflare D1 support were resolved via [prisma/prisma-engines#4970 and [prisma/prisma#24922

-   Mathematic operations such as `max`, `min`, `eq`, etc in queries when using Cloudflare D1.
-   Resolved issues when comparing `BigInt` IDs when `relationMode="prisma"` was enabled and Cloudflare D1 was being used.

##### Joins

-   [prisma/prisma#23742 fixes Prisma Client not supporting deeply nested `some` clauses when the `relationJoins` Preview feature was enabled.

#### Join us

Looking to make an impact on Prisma in a big way? We're now hiring engineers for the ORM team!

-   [Senior Engineer (TypeScript)](https://boards.greenhouse.io/prisma/jobs/5350820002): This person will be primarily working on the TypeScript side and evolving our Prisma client. Rust knowledge (or desire to learn Rust) is a plus.
-   [Senior Engineer (Rust)](https://boards.greenhouse.io/prisma/jobs/6940273002): This person will be focused on the `prisma-engines` Rust codebase. TypeScript knowledge (or, again, a desire to learn) is a plus.

#### Credits

Huge thanks to [@&#8203;mcuelenaere](https://togithub.com/mcuelenaere), [@&#8203;pagewang0](https://togithub.com/pagewang0), [@&#8203;Druue](https://togithub.com/Druue), [@&#8203;key-moon](https://togithub.com/key-moon), [@&#8203;Jolg42](https://togithub.com/Jolg42), [@&#8203;pranayat](https://togithub.com/pranayat), [@&#8203;ospfranco](https://togithub.com/ospfranco), [@&#8203;yubrot](https://togithub.com/yubrot), [@&#8203;skyzh](https://togithub.com/skyzh) for helping!

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/kula-app/OnLaunch).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC41Ni4wIiwidXBkYXRlZEluVmVyIjoiMzguNTYuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
  • Loading branch information
renovate[bot] committed Aug 30, 2024
1 parent 5f06521 commit 6bf5c4b
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 43 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@emotion/react": "11.13.3",
"@emotion/styled": "11.13.0",
"@next/font": "13.5.6",
"@prisma/client": "5.18.0",
"@prisma/client": "5.19.0",
"@sentry/nextjs": "8.27.0",
"@stripe/react-stripe-js": "2.8.0",
"@stripe/stripe-js": "4.3.0",
Expand All @@ -44,7 +44,7 @@
"next-swagger-doc": "0.4.0",
"nodemailer": "6.9.14",
"postcss": "8.4.41",
"prisma": "5.18.0",
"prisma": "5.19.0",
"react": "18.3.1",
"react-chartjs-2": "5.2.0",
"react-dom": "18.3.1",
Expand Down
86 changes: 45 additions & 41 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3198,61 +3198,61 @@ __metadata:
languageName: node
linkType: hard

"@prisma/client@npm:5.18.0":
version: 5.18.0
resolution: "@prisma/client@npm:5.18.0"
"@prisma/client@npm:5.19.0":
version: 5.19.0
resolution: "@prisma/client@npm:5.19.0"
peerDependencies:
prisma: "*"
peerDependenciesMeta:
prisma:
optional: true
checksum: 10c0/2031e0521671e8d922abefbe24e0e37d38dfda38a0069206c928491e570afceb25630ea322536c6c16f24e73e162ce84062e8735e373e1659d8cdf849251a47b
checksum: 10c0/df2604d5d392ed9717a8f6db70d745d8234099d24f23fa1e394b4a53598816227c7e89bf546928b8a457eb13b1580e914327a6033bceb49e6e5f9983d39f6214
languageName: node
linkType: hard

"@prisma/debug@npm:5.18.0":
version: 5.18.0
resolution: "@prisma/debug@npm:5.18.0"
checksum: 10c0/fcc1e784748e207410aac9fe5989d0b9b889f8fe1bf52ca742d7fcc09c5abd5897b7ee4dbce33c86ce501681619a06c5802bbe9bd2ba5264435f6c04eeddeeec
"@prisma/debug@npm:5.19.0":
version: 5.19.0
resolution: "@prisma/debug@npm:5.19.0"
checksum: 10c0/51d851040d552216c548cc9ae23e36a2673f14d55e78890e253e151aad2fdeaaff3ee0b7eed62ef43300c25f5b31bd43bcb0fa4c2daea1dadd16933f358e8708
languageName: node
linkType: hard

"@prisma/engines-version@npm:5.18.0-25.4c784e32044a8a016d99474bd02a3b6123742169":
version: 5.18.0-25.4c784e32044a8a016d99474bd02a3b6123742169
resolution: "@prisma/engines-version@npm:5.18.0-25.4c784e32044a8a016d99474bd02a3b6123742169"
checksum: 10c0/6f5683a61414e95f4adf7bdffa2854733bb4b3bed1c020aa3b9241f6ad38ecf6e2cf0be36492fbd9aa3bbf9d0b2b6d4d2b7b0578d4c1b6b65336ef90f52e79b9
"@prisma/engines-version@npm:5.19.0-31.5fe21811a6ba0b952a3bc71400666511fe3b902f":
version: 5.19.0-31.5fe21811a6ba0b952a3bc71400666511fe3b902f
resolution: "@prisma/engines-version@npm:5.19.0-31.5fe21811a6ba0b952a3bc71400666511fe3b902f"
checksum: 10c0/1938d446d9deda7eb03d80a0f638d7d5f67a8060d74e44fb25c9f07284a200e84207010c019f2bccb6b6e270814261e0157c78f9b844054a94ce4b8e6763b13b
languageName: node
linkType: hard

"@prisma/engines@npm:5.18.0":
version: 5.18.0
resolution: "@prisma/engines@npm:5.18.0"
"@prisma/engines@npm:5.19.0":
version: 5.19.0
resolution: "@prisma/engines@npm:5.19.0"
dependencies:
"@prisma/debug": "npm:5.18.0"
"@prisma/engines-version": "npm:5.18.0-25.4c784e32044a8a016d99474bd02a3b6123742169"
"@prisma/fetch-engine": "npm:5.18.0"
"@prisma/get-platform": "npm:5.18.0"
checksum: 10c0/3d39b8e2e620c54cbb98df303896ef980dd5707f872f26471f6fd3e7dd59d4ddacac70020da1fc9f864c87a69bf38b5a50d3884f7a820314306de53c9aefaa43
"@prisma/debug": "npm:5.19.0"
"@prisma/engines-version": "npm:5.19.0-31.5fe21811a6ba0b952a3bc71400666511fe3b902f"
"@prisma/fetch-engine": "npm:5.19.0"
"@prisma/get-platform": "npm:5.19.0"
checksum: 10c0/217b64da7990c24a1cbad8431eebfd904bcc80fe35f34de80547b3d6f187d90829b35cc7b9c79a9da1e7d0998daee6027d4202d5c00856f9918d5ad76073f01f
languageName: node
linkType: hard

"@prisma/fetch-engine@npm:5.18.0":
version: 5.18.0
resolution: "@prisma/fetch-engine@npm:5.18.0"
"@prisma/fetch-engine@npm:5.19.0":
version: 5.19.0
resolution: "@prisma/fetch-engine@npm:5.19.0"
dependencies:
"@prisma/debug": "npm:5.18.0"
"@prisma/engines-version": "npm:5.18.0-25.4c784e32044a8a016d99474bd02a3b6123742169"
"@prisma/get-platform": "npm:5.18.0"
checksum: 10c0/98e6a9cdaad41b2f99846f9b56d679295353ab33104bd8074ed9390ab898d7c80a3a62b0726b8fafb685da5748c4eca71254777aaa815b9a8da3041d402bdf4e
"@prisma/debug": "npm:5.19.0"
"@prisma/engines-version": "npm:5.19.0-31.5fe21811a6ba0b952a3bc71400666511fe3b902f"
"@prisma/get-platform": "npm:5.19.0"
checksum: 10c0/ae8193017971b3a7a58bdbdc8c8c7f064042e46f58d6d7d7bdac0b3a02c19050c6843ef520d23542c3778bd502567418db677958a9e7a07df9124f207c413fdd
languageName: node
linkType: hard

"@prisma/get-platform@npm:5.18.0":
version: 5.18.0
resolution: "@prisma/get-platform@npm:5.18.0"
"@prisma/get-platform@npm:5.19.0":
version: 5.19.0
resolution: "@prisma/get-platform@npm:5.19.0"
dependencies:
"@prisma/debug": "npm:5.18.0"
checksum: 10c0/a633b6390382899723c88d41af939e324a98a0bdd1683d1a07df5e80ce01f1e24cc534926652ab5352675e553ce54f1123e60eaba911066fb3bbc516b0f3ba19
"@prisma/debug": "npm:5.19.0"
checksum: 10c0/bd14a2937a30230a101a6ab785d8a41658450b6139e5597e7b156a5e29573cbe67ea9af245a767646aa7073f278b495df76de2a50fcb376f54e11e6c5a710420
languageName: node
linkType: hard

Expand Down Expand Up @@ -7813,7 +7813,7 @@ __metadata:
languageName: node
linkType: hard

"fsevents@npm:^2.3.2, fsevents@npm:~2.3.2":
"fsevents@npm:2.3.3, fsevents@npm:^2.3.2, fsevents@npm:~2.3.2":
version: 2.3.3
resolution: "fsevents@npm:2.3.3"
dependencies:
Expand All @@ -7823,7 +7823,7 @@ __metadata:
languageName: node
linkType: hard

"fsevents@patch:fsevents@npm%3A^2.3.2#optional!builtin<compat/fsevents>, fsevents@patch:fsevents@npm%3A~2.3.2#optional!builtin<compat/fsevents>":
"fsevents@patch:fsevents@npm%3A2.3.3#optional!builtin<compat/fsevents>, fsevents@patch:fsevents@npm%3A^2.3.2#optional!builtin<compat/fsevents>, fsevents@patch:fsevents@npm%3A~2.3.2#optional!builtin<compat/fsevents>":
version: 2.3.3
resolution: "fsevents@patch:fsevents@npm%3A2.3.3#optional!builtin<compat/fsevents>::version=2.3.3&hash=df0bf1"
dependencies:
Expand Down Expand Up @@ -11007,7 +11007,7 @@ __metadata:
"@emotion/react": "npm:11.13.3"
"@emotion/styled": "npm:11.13.0"
"@next/font": "npm:13.5.6"
"@prisma/client": "npm:5.18.0"
"@prisma/client": "npm:5.19.0"
"@sentry/nextjs": "npm:8.27.0"
"@stripe/react-stripe-js": "npm:2.8.0"
"@stripe/stripe-js": "npm:4.3.0"
Expand Down Expand Up @@ -11050,7 +11050,7 @@ __metadata:
next-swagger-doc: "npm:0.4.0"
nodemailer: "npm:6.9.14"
postcss: "npm:8.4.41"
prisma: "npm:5.18.0"
prisma: "npm:5.19.0"
react: "npm:18.3.1"
react-chartjs-2: "npm:5.2.0"
react-dom: "npm:18.3.1"
Expand Down Expand Up @@ -11691,14 +11691,18 @@ __metadata:
languageName: node
linkType: hard

"prisma@npm:5.18.0":
version: 5.18.0
resolution: "prisma@npm:5.18.0"
"prisma@npm:5.19.0":
version: 5.19.0
resolution: "prisma@npm:5.19.0"
dependencies:
"@prisma/engines": "npm:5.18.0"
"@prisma/engines": "npm:5.19.0"
fsevents: "npm:2.3.3"
dependenciesMeta:
fsevents:
optional: true
bin:
prisma: build/index.js
checksum: 10c0/83649284d590dc996b1c1ac1b0382dae5f838d2d1c0098ac075564acbb0450ec0f6716077184c4cc1889ca79eae8c6f295dcbc9721b41c00a8494936cd20eab3
checksum: 10c0/ff400bef47e440cee1de31e854fb8efd43a01e5dbbc77b5e19d946ee8743309456efdba47f0f367f90ea8ed4014ca91b841dc99f1f5a745d69ed7d9b7a6f10b6
languageName: node
linkType: hard

Expand Down

0 comments on commit 6bf5c4b

Please sign in to comment.