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.3.1 #9187

Merged
merged 2 commits into from
Sep 16, 2023
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 15, 2023

Mend Renovate

This PR contains the following updates:

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

Release Notes

prisma/prisma (@​prisma/client)

v5.3.1

Compare Source

Today, we are issuing the 5.3.1 patch release.

Fix in Prisma Client

v5.3.0

Compare Source

🌟 Help us spread the word about Prisma by starring the repo or tweeting about the release. 🌟

Highlights

In this sprint, we’ve made bug fixes and overall improvements to Prisma Client. We’ve been working on a few projects that will be announced soon. Stay tuned for the upcoming releases for updates!

Improvements and bug fixes

We made the following changes:

Prisma Client improvements
  • Validation for undefined values in arrays in Json fields
    We added runtime validation for undefined values in arrays in Json fields. Prisma Client will now return an error when an array contains an undefined value. Therefore, we encourage you to add validation that either removes the value or transforms it to null if you stumble on the runtime validation:
// Query
await prisma.user.findMany({
 where: {
   // JSON field
   preferences: [undefined, '"theme": "dark"', null, ]
 }
})

// Example error message on running the query
Can not use `undefined` value within array. Use `null` or filter out `undefined` values
  • Performance improvements for models with many unique fields

This release improves Prisma Client’s memory consumption for models with many @unique constraints. This was a regression from version 4.10.1, where in some cases, if a model had many unique constraints, Prisma Client would use up a lot of available memory.

  • Fixed the segmentation fault error that used to occur on ARM64 Linux binary targets
  • Metrics Preview feature improvements:
    • We updated the counters and gauge properties
    • We fixed the bug that caused the prisma_pool_connections_open metric to have a negative value in some cases.
Prisma Migrate improvements
  • Fixed an introspection bug for MongoDB views. Previously, if a MongoDB database contained a view, prisma db pull would throw an error. We resolved this, and views are now ignored.
  • Added the PRISMA_SCHEMA_DISABLE_ADVISORY_LOCK environment variable that enables you to disable advisory locking.
VS Code extension improvements
  • Added support for rendering multi-line comments in tooltips when hovering on a block.
  • Improved the auto-completion for composite types in other blocks.
  • Added a Code Action that allows you to replace SetDefault with NoAction when using MySQL and the default/foreignKeys relation mode.
Fixes and improvements
Prisma Migrate
Prisma Client
Language tools (e.g. VS Code)
Credits

Huge thanks to @​alencardc, @​Oreilles, @​christianledgard, @​skyzh, @​alula, @​michaelpoellath, @​RobertCraigie, @​stephenwade for helping!


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) September 15, 2023 22:17
@jtoar jtoar added this to the next-release milestone Sep 16, 2023
@jtoar jtoar added the release:chore This PR is a chore (means nothing for users) label Sep 16, 2023
@renovate renovate bot merged commit aa15dad into main Sep 16, 2023
27 checks passed
@renovate renovate bot deleted the renovate/prisma-monorepo branch September 16, 2023 01:01
jtoar added a commit that referenced this pull request Sep 16, 2023
[![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)) | [`5.2.0` ->
`5.3.1`](https://renovatebot.com/diffs/npm/@prisma%2fclient/5.2.0/5.3.1)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@prisma%2fclient/5.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@prisma%2fclient/5.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@prisma%2fclient/5.2.0/5.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@prisma%2fclient/5.2.0/5.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [@prisma/internals](https://www.prisma.io)
([source](https://togithub.com/prisma/prisma)) | [`5.2.0` ->
`5.3.1`](https://renovatebot.com/diffs/npm/@prisma%2finternals/5.2.0/5.3.1)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@prisma%2finternals/5.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@prisma%2finternals/5.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@prisma%2finternals/5.2.0/5.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@prisma%2finternals/5.2.0/5.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [prisma](https://www.prisma.io)
([source](https://togithub.com/prisma/prisma)) | [`5.2.0` ->
`5.3.1`](https://renovatebot.com/diffs/npm/prisma/5.2.0/5.3.1) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/prisma/5.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/prisma/5.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/prisma/5.2.0/5.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/prisma/5.2.0/5.3.1?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.3.0...5.3.1)

Today, we are issuing the `5.3.1` patch release.

- [Duplicated keys in `metrics`
properties](https://togithub.com/prisma/prisma/issues/21069)

[Compare
Source](https://togithub.com/prisma/prisma/compare/5.2.0...5.3.0)

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

In this sprint, we’ve made bug fixes and overall improvements to Prisma
Client. We’ve been working on a few projects that will be announced
soon. Stay tuned for the upcoming releases for updates!

We made the following changes:

-   Validation for `undefined` values in arrays in `Json` fields
We added runtime validation for `undefined` values in arrays in `Json`
fields. Prisma Client will now return an error when an array contains an
`undefined` value. Therefore, we encourage you to add validation that
either removes the value or transforms it to `null` if you stumble on
the runtime validation:

```ts
// Query
await prisma.user.findMany({
 where: {
   // JSON field
   preferences: [undefined, '"theme": "dark"', null, ]
 }
})

// Example error message on running the query
Can not use `undefined` value within array. Use `null` or filter out `undefined` values
```

-   Performance improvements for models with many unique fields

This release improves Prisma Client’s memory consumption for models with
many `@unique` constraints. This was a regression from version 4.10.1,
where in some cases, if a model had many unique constraints, Prisma
Client would use up a lot of available memory.

- Fixed the segmentation fault error that used to occur on ARM64 Linux
binary targets
-   Metrics Preview feature improvements:
    -   We updated the counters and gauge properties
- We fixed the bug that caused the `prisma_pool_connections_open` metric
to have a negative value in some cases.

- Fixed an introspection bug for MongoDB views. Previously, if a MongoDB
database contained a view, `prisma db pull` would throw an error. We
resolved this, and views are now ignored.
- Added the `PRISMA_SCHEMA_DISABLE_ADVISORY_LOCK` environment variable
that enables you to disable [advisory
locking](https://www.prisma.io/docs/concepts/components/prisma-migrate/migrate-development-production#advisory-locking).

extension](https://marketplace.visualstudio.com/items?itemName=Prisma.prisma)
improvements

- Added support for rendering multi-line comments in tooltips when
hovering on a block.
-   Improved the auto-completion for composite types in other blocks.
- Added a Code Action that allows you to replace `SetDefault` with
`NoAction` when using MySQL and the default/`foreignKeys` relation mode.

- [Percona-XtraDB-Cluster prohibits use of GET_LOCK with pxc_strict_mode
= ENFORCING](https://togithub.com/prisma/prisma/issues/16020)
- [MongoDB views should be ignored introspecting the
database](https://togithub.com/prisma/prisma/issues/16179)
- [Error in Connector on MongoDB executing listIndex:
"system.views"](https://togithub.com/prisma/prisma/issues/17006)
- [`prisma migrate deploy`: `MariaDB doesn't yet support 'GET_LOCK in
cluster
(WSREP_ON=ON)'`](https://togithub.com/prisma/prisma/issues/19350)

- [Remove all special cases for Data Proxy in our
tests](https://togithub.com/prisma/prisma/issues/16101)
- [Segmentation fault on ARM64
Linux](https://togithub.com/prisma/prisma/issues/18510)
- [In the metrics feature a gauge & counter are
swapped](https://togithub.com/prisma/prisma/issues/18760)
- [The prisma metrics `prisma_pool_connections_open` has a bug where it
goes negative](https://togithub.com/prisma/prisma/issues/18761)
- [Prisma crashes with GraphQL queries of nested one-to-many
relationship](https://togithub.com/prisma/prisma/issues/18787)
- [P1017 Server has closed the connection on
linux_arm64](https://togithub.com/prisma/prisma/issues/19209)
- [`Error: socket hang up` on
Linux/arm64](https://togithub.com/prisma/prisma/issues/19419)
- [Panic in Query Engine with SIGABRT signal (Debian Bookworm,
engineType = binary)](https://togithub.com/prisma/prisma/issues/19743)
- [Prisma 5 drops `undefined` from Arrays when using Json fields with
Postgres](https://togithub.com/prisma/prisma/issues/20325)
- [Suspected memory leak in Lambda function after upgrading from
4.10.1](https://togithub.com/prisma/prisma/issues/20799)
- [Error when generating - No unsupported field should reach that
path](https://togithub.com/prisma/prisma/issues/20986)

- [Models with multi line comments only show last line in
tooltip](https://togithub.com/prisma/language-tools/issues/861)
- [Add VS Code quick fix / code action to replace `SetDefault` with
`NoAction` when `provider = "mysql"` and `relationMode = "foreignKeys" |
default`](https://togithub.com/prisma/language-tools/issues/1286)
- [Composite Types aren't offered as being auto-completable in other
blocks](https://togithub.com/prisma/language-tools/issues/1495)

Huge thanks to [@&#8203;alencardc](https://togithub.com/alencardc),
[@&#8203;Oreilles](https://togithub.com/Oreilles),
[@&#8203;christianledgard](https://togithub.com/christianledgard),
[@&#8203;skyzh](https://togithub.com/skyzh),
[@&#8203;alula](https://togithub.com/alula),
[@&#8203;michaelpoellath](https://togithub.com/michaelpoellath),
[@&#8203;RobertCraigie](https://togithub.com/RobertCraigie),
[@&#8203;stephenwade](https://togithub.com/stephenwade) for helping!

</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:eyJjcmVhdGVkSW5WZXIiOiIzNi44My4wIiwidXBkYXRlZEluVmVyIjoiMzYuODMuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com>
@jtoar jtoar modified the milestones: next-release, v6.3.0 Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:chore This PR is a chore (means nothing for users)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant