Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update prisma monorepo to v5.11.0 #10262

Merged
merged 1 commit into from Mar 19, 2024
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 18, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@prisma/client (source) 5.10.2 -> 5.11.0 age adoption passing confidence
@prisma/internals (source) 5.10.2 -> 5.11.0 age adoption passing confidence
prisma (source) 5.10.2 -> 5.11.0 age adoption passing confidence

Release Notes

prisma/prisma (@​prisma/client)

v5.11.0

Compare Source

Today, we are excited to share the 5.11.0 stable release 🎉

🌟 Help us spread the word about Prisma by starring the repo ☝️ or posting on X about the release.

Highlights
Edge function support for Cloudflare and Vercel (Preview)

We’re thrilled to announce that support for edge function deployments with Prisma ORM is now in Preview 🥳 As of this release, you can deploy your apps that are using Prisma ORM to:

  • Vercel Edge Functions and Vercel Edge Middleware
  • Cloudflare Workers and Cloudflare Pages

In order to deploy to an edge function, you’ll need to use a compatible database driver (along with its Prisma driver adapter):

  • Neon Serverless Driver (for PostgreSQL databases hosted via Neon)
  • PlanetScale Serverless Driver (for MySQL databases hosted via PlanetScale)
  • pg driver (for traditional PostgreSQL databases)
  • @libsql/client driver (for SQLite databases hosted via Turso)

Check out our documentation to learn how you can deploy an edge function using any combination of supported edge function provider and database.

Performance improvements in nested create operations

With Prisma ORM, you can create multiple new records in nested queries, for example:

const user = await prisma.user.update({
  where: { id: 9 },
  data: {
    name: 'Elliott',
    posts: {
      create: {
        data: [{ title: 'My first post' }, { title: 'My second post' }],
      },
    },
  },
})

In previous versions, Prisma ORM would translate this into multiple SQL INSERT queries, each requiring its own roundtrip to the database. As of this release, these nested create queries are optimized and the INSERT queries are sent to the database in bulk in a single roundtrip. These optimizations apply to one-to-many as well as many-to-many relations.

With this change, using the nested create option to create multiple records effectively becomes equivalent to using a nested createMany operation (except that createMany only works with one-to-many relations, whereas create works both with one-to-many and many-to-many).

Note: Only the deepest nested operation is optimized. If a user specified create (1) -> create (2) -> create (3) in their query, only create (3) will be optimized.

Fixes and improvements
Prisma Client
Prisma Migrate
Prisma Engines

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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot enabled auto-merge (squash) March 18, 2024 07:36
@thedavidprice thedavidprice added release:chore This PR is a chore (means nothing for users) changesets-ok Override the changesets check labels Mar 19, 2024
@thedavidprice thedavidprice added this to the next-release milestone Mar 19, 2024
@jtoar jtoar added the fixture-ok Override the test project fixture check label Mar 19, 2024
@renovate renovate bot merged commit 92a77f7 into main Mar 19, 2024
50 of 53 checks passed
@renovate renovate bot deleted the renovate/prisma-monorepo branch March 19, 2024 17:13
thedavidprice pushed a commit that referenced this pull request Mar 27, 2024
[![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.10.2` ->
`5.11.0`](https://renovatebot.com/diffs/npm/@prisma%2fclient/5.10.2/5.11.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@prisma%2fclient/5.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@prisma%2fclient/5.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@prisma%2fclient/5.10.2/5.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@prisma%2fclient/5.10.2/5.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [@prisma/internals](https://www.prisma.io)
([source](https://togithub.com/prisma/prisma/tree/HEAD/packages/internals))
| [`5.10.2` ->
`5.11.0`](https://renovatebot.com/diffs/npm/@prisma%2finternals/5.10.2/5.11.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@prisma%2finternals/5.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@prisma%2finternals/5.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@prisma%2finternals/5.10.2/5.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@prisma%2finternals/5.10.2/5.11.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.10.2` ->
`5.11.0`](https://renovatebot.com/diffs/npm/prisma/5.10.2/5.11.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/prisma/5.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/prisma/5.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/prisma/5.10.2/5.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/prisma/5.10.2/5.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

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

[Compare
Source](https://togithub.com/prisma/prisma/compare/5.10.2...5.11.0)

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

🌟 **Help us spread the word about Prisma by starring the
repo ☝️ or [posting on
X](https://twitter.com/intent/post?text=Check%20out%20the%20latest%20%40prisma%20release%20v5.11.0%20%F0%9F%9A%80%0D%0A%0D%0Ahttps%3A%2F%2Fgithub.com%2Fprisma%2Fprisma%2Freleases%2Ftag%2F5.11.0) about
the release.**

We’re thrilled to announce that support for edge function deployments
with Prisma ORM is now in Preview 🥳 As of this release, you can deploy
your apps that are using Prisma ORM to:

-   Vercel Edge Functions and Vercel Edge Middleware
-   Cloudflare Workers and Cloudflare Pages

In order to deploy to an edge function, you’ll need to use a compatible
database driver (along with its [Prisma driver
adapter](https://www.prisma.io/docs/orm/overview/databases/database-drivers#driver-adapters)):

- Neon Serverless Driver (for PostgreSQL databases hosted via
[Neon](https://neon.tech/))
- PlanetScale Serverless Driver (for MySQL databases hosted via
[PlanetScale](https://planetscale.com/))
-   `pg` driver (for traditional PostgreSQL databases)
- `@libsql/client` driver (for SQLite databases hosted via
[Turso](https://turso.tech/))

Check out our
[documentation](https://www.prisma.io/docs/orm/prisma-client/deployment/edge/overview)
to learn how you can deploy an edge function using any combination of
supported edge function provider and database.

With Prisma ORM, you can create multiple new records in *nested*
queries, for example:

```ts
const user = await prisma.user.update({
  where: { id: 9 },
  data: {
    name: 'Elliott',
    posts: {
      create: {
        data: [{ title: 'My first post' }, { title: 'My second post' }],
      },
    },
  },
})
```

In previous versions, Prisma ORM would translate this into multiple SQL
`INSERT` queries, each requiring its own roundtrip to the database. As
of this release, these nested `create` queries are optimized and the
`INSERT` queries are sent to the database *in bulk* in a single
roundtrip. These optimizations apply to one-to-many as well as
many-to-many relations.

With this change, using the nested `create` option to create multiple
records effectively becomes equivalent to using a nested `createMany`
operation (except that `createMany` *only* works with one-to-many
relations, whereas `create` works both with one-to-many and
many-to-many).

> **Note**: Only the deepest nested operation is optimized. If a user
specified `create (1) -> create (2) -> create (3)` in their query, only
`create (3)` will be optimized.

- [Prisma errors when not using the major.minor.patch versioning
system](https://togithub.com/prisma/prisma/issues/7317)
- [mongodb where condition resulted in combined $ne but should not be
$eq](https://togithub.com/prisma/prisma/issues/15175)
- [Node hangs when `console.log(new
PrismaClient())`](https://togithub.com/prisma/prisma/issues/18292)
- [Add wolfy linux to supported
OS](https://togithub.com/prisma/prisma/issues/18329)
- [Support Linux
Gentoo](https://togithub.com/prisma/prisma/issues/18698)
- [Know engines to download for Void
Linux](https://togithub.com/prisma/prisma/issues/20434)
- [Engine does not support Linux distro
"openeuler"](https://togithub.com/prisma/prisma/issues/20937)
- [Prisma Doesn't Recognize Crystal Linux
distro](https://togithub.com/prisma/prisma/issues/21955)
- [Regression: Mapped `enum` throws error (collation `cp1250_czech_cs`
or similar)](https://togithub.com/prisma/prisma/issues/21967)
- [`NOT` condition leaks out of its desired
bounds](https://togithub.com/prisma/prisma/issues/22007)
- [The column does not exist in the current
database.](https://togithub.com/prisma/prisma/issues/22098)
- [Logging `PrismaClient` object is
slow](https://togithub.com/prisma/prisma/issues/22848)
- [Running `prisma generate` on Litespeed Web Server cPanel with
ssh](https://togithub.com/prisma/prisma/issues/22857)
- [Prisma doesn't know which engines to download for the Linux distro
"guttaos"](https://togithub.com/prisma/prisma/issues/23031)
- [Error in driver-adapter-utils with `tsc`: `Cannot find namespace
'debug'.`](https://togithub.com/prisma/prisma/issues/23091)
- [VS Code debugger freeze from time to time, when Prisma Client is
involved](https://togithub.com/prisma/prisma/issues/23181)
- [`push` method still unimplemented for scalar lists in
CockroachDB](https://togithub.com/prisma/prisma/issues/23183)
- [`Invalid character` error persists on 5.10.1 in Prisma
Studio](https://togithub.com/prisma/prisma/issues/23225)
- [Add "Peppermint OS" to list of supported
distros](https://togithub.com/prisma/prisma/issues/23237)
- [`runtimeDescription` is not defined
error](https://togithub.com/prisma/prisma/issues/23430)

- [Prisma with UOS or
Deepin](https://togithub.com/prisma/prisma/issues/18374)
- [Warning: Linux distro
"slackware"](https://togithub.com/prisma/prisma/issues/18547)
- [Error when run `npx prisma db pull` with DeepinOS
20.9GNU/LInux](https://togithub.com/prisma/prisma/issues/19157)
- [Add solus to list of known supported
distros](https://togithub.com/prisma/prisma/issues/21493)
- [NixOS not recognised as a Linux
distribution](https://togithub.com/prisma/prisma/issues/22145)
- [Prisma Warning on Ubuntu
20.04](https://togithub.com/prisma/prisma/issues/22347)
- [Let Prisma detect Artix Linux
distro](https://togithub.com/prisma/prisma/issues/22522)
- [couldn't identify
clear-linux-os](https://togithub.com/prisma/prisma/issues/22539)
- [Prisma doesn't know which engines to download with `Linux
Mint`](https://togithub.com/prisma/prisma/issues/23141)
- [`Error: Invalid character` when `schema.prisma` includes
Chinese/Non-ASCII characters in a
comment](https://togithub.com/prisma/prisma/issues/23201)

- [\[DA\] Planetscale engine tests:
aggregations](https://togithub.com/prisma/prisma-engines/issues/4473)
- [\[DA\] Planetscale engine tests: json
filtering](https://togithub.com/prisma/prisma-engines/issues/4475)
- [\[DA\] Planetscale engine tests: order and
pagination](https://togithub.com/prisma/prisma-engines/issues/4478)
- [\[DA\] Planetscale engine tests:
oids](https://togithub.com/prisma/prisma-engines/issues/4479)
- [\[DA\] Planetscale engine tests:
nested_createmany_fail_dups](https://togithub.com/prisma/prisma-engines/issues/4481)
- [\[DA\] Planetscale engine tests:
create_many_error_dups](https://togithub.com/prisma/prisma-engines/issues/4484)
- [\[DA\] Planetscale engine tests:
upsert_fails_if_filter_dont_match](https://togithub.com/prisma/prisma-engines/issues/4486)

</details>

---

📅 **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 has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/redwoodjs/redwood).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNDUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjI0NS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@jtoar jtoar modified the milestones: next-release, v7.2.0 Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changesets-ok Override the changesets check fixture-ok Override the test project fixture check release:chore This PR is a chore (means nothing for users)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants