Skip to content

Commit

Permalink
fix(deps): update prisma monorepo to v5.19.0 (#1121)
Browse files Browse the repository at this point in the history
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

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
[https://github.com/prisma/prisma-engines/pull/4970](https://togithub.com/prisma/prisma-engines/pull/4970)
and
[https://github.com/prisma/prisma/pull/24922](https://togithub.com/prisma/prisma/pull/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

-
[https://github.com/prisma/prisma/issues/23742](https://togithub.com/prisma/prisma/issues/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**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, 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://www.mend.io/free-developer-tools/renovate/). View the
[repository job log](https://developer.mend.io/github/huv1k/website).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Aug 27, 2024
1 parent 5418d57 commit 1904753
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 37 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@heroicons/react": "2.1.5",
"@pothos/core": "4.2.0",
"@pothos/plugin-simple-objects": "4.1.0",
"@prisma/client": "5.18.0",
"@prisma/client": "5.19.0",
"@vercel/analytics": "1.3.1",
"@vercel/og": "0.6.2",
"contentlayer": "0.3.4",
Expand Down Expand Up @@ -65,7 +65,7 @@
"husky": "8.0.3",
"lint-staged": "15.2.9",
"prettier": "3.3.3",
"prisma": "5.18.0",
"prisma": "5.19.0",
"typescript": "5.5.4"
}
}
72 changes: 37 additions & 35 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1904753

Please sign in to comment.