Skip to content

Commit

Permalink
chore(deps): update prisma to v5.20.0 (#2541)
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://redirect.github.com/prisma/prisma/tree/HEAD/packages/client))
| [`5.19.1` ->
`5.20.0`](https://renovatebot.com/diffs/npm/@prisma%2fclient/5.19.1/5.20.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@prisma%2fclient/5.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@prisma%2fclient/5.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@prisma%2fclient/5.19.1/5.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@prisma%2fclient/5.19.1/5.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [prisma](https://www.prisma.io)
([source](https://redirect.github.com/prisma/prisma/tree/HEAD/packages/cli))
| [`5.19.1` ->
`5.20.0`](https://renovatebot.com/diffs/npm/prisma/5.19.1/5.20.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/prisma/5.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/prisma/5.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/prisma/5.19.1/5.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/prisma/5.19.1/5.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

###
[`v5.20.0`](https://redirect.github.com/prisma/prisma/releases/tag/5.20.0)

[Compare
Source](https://redirect.github.com/prisma/prisma/compare/5.19.1...5.20.0)

🌟 **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.20.0%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/prisma/prisma/releases/tag/5.20.0)
about the release.** 🌟

##### Highlights

##### `strictUndefinedChecks` in Preview

With Prisma ORM 5.20.0, the Preview feature `strictUndefinedChecks` will
disallow any value that is explicitly `undefined` and will be a runtime
error. This change is direct feedback from [this GitHub
issue](https://redirect.github.com/prisma/prisma/issues/20169) and
follows [our latest
proposal](https://redirect.github.com/prisma/prisma/issues/20169#issuecomment-2338360300)
on the same issue.

To demonstrate the change, take the following code snippet:

```tsx
prisma.table.deleteMany({
  where: {
    // If `nullableThing` is nullish, this query will remove all data.
    email: nullableThing?.property,
  }
})
```

In Prisma ORM 5.19.0 and below, this could result in unintended
behavior. In Prisma ORM 5.20.0, if the `strictUndefinedChecks` Preview
feature is enabled, you will get a runtime error instead:

```tsx
Invalid \`prisma.user.findMany()\` invocation in
/client/tests/functional/strictUndefinedChecks/test.ts:0:0
  XX })
  XX 
  XX test('throws on undefined input field', async () => {
→ XX   const result = prisma.user.deleteMany({
         where: {
           email: undefined
                  ~~~~~~~~~
         }
       })
Invalid value for argument \`where\`: explicitly \`undefined\` values are not allowed."
```

We have also introduced the `Prisma.skip` symbol, which will allow you
to get the previous behavior if desired.

```tsx
prisma.table.findMany({
  where: {
    // Use Prisma.skip to skip parts of the query
    email: nullableEmail ?? Prisma.skip
  }
})
```

From Prisma ORM 5.20.0 onward, we recommend enabling
`strictUndefinedChecks`, along with the TypeScript compiler option
`exactOptionalPropertyTypes`, which will help catch cases of undefined
values at compile time. Together, these two changes will help protect
your Prisma queries from potentially destructive behavior.

`strictUndefinedChecks` will be a valid Preview feature for the
remainder of Prisma ORM 5. With our next major version, this behavior
will become the default and the Preview feature will be “graduated” to
Generally Available.

If you have any questions or feedback about `strictUndefinedChecks`,
please ask/comment in our dedicated [Preview feature GitHub
discussion](https://redirect.github.com/prisma/prisma/discussions/25271).

##### `typedSql` bug fix

Thank you to everyone who has tried out our [`typedSql` Preview
feature](https://www.prisma.io/blog/announcing-typedsql-make-your-raw-sql-queries-type-safe-with-prisma-orm)
and [provided
feedback](https://redirect.github.com/prisma/prisma/discussions/25106)!
This release has a quick fix for typescript files generated when Prisma
Schema enums had hyphens.

##### Fixes and improvements

##### Prisma

- [Prisma incorrectly parses CRDB's FK constraint error as `not
available`.](https://redirect.github.com/prisma/prisma/issues/24072)
- [Invalid TypeScript files created by `generate` when typedSql is
enabled and enum contains
hyphens.](https://redirect.github.com/prisma/prisma/issues/25163)
- [`@prisma/internals` didn't list `ts-toolbelt` in
dependencies.](https://redirect.github.com/prisma/prisma/issues/17952)
- [using `$extends` prevents model comments from being passed to
TypeScript](https://redirect.github.com/prisma/prisma/issues/24648)

##### Prisma Engines

- [Planetscale engine tests:
interactive_tx](https://redirect.github.com/prisma/prisma-engines/issues/4469)
- [Fix broken engine size publishing
workflow](https://redirect.github.com/prisma/prisma-engines/issues/4991)

##### Credits

Huge thanks to
[@&#8203;mcuelenaere](https://redirect.github.com/mcuelenaere),
[@&#8203;pagewang0](https://redirect.github.com/pagewang0),
[@&#8203;key-moon](https://redirect.github.com/key-moon),
[@&#8203;pranayat](https://redirect.github.com/pranayat),
[@&#8203;yubrot](https://redirect.github.com/yubrot),
[@&#8203;thijmenjk](https://redirect.github.com/thijmenjk),
[@&#8203;mydea](https://redirect.github.com/mydea),
[@&#8203;HRM](https://redirect.github.com/HRM),
[@&#8203;haaawk](https://redirect.github.com/haaawk),
[@&#8203;baileywickham](https://redirect.github.com/baileywickham),
[@&#8203;brian-dlee](https://redirect.github.com/brian-dlee),
[@&#8203;nickcarnival](https://redirect.github.com/nickcarnival),
[@&#8203;eruditmorina](https://redirect.github.com/eruditmorina),
[@&#8203;nzakas](https://redirect.github.com/nzakas), and
[@&#8203;gutyerrez](https://redirect.github.com/gutyerrez) for helping!

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "on the 2nd through 5th day of the
month" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **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/JabRef/JabRefOnline).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC45Ny4wIiwidXBkYXRlZEluVmVyIjoiMzguOTcuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Oct 3, 2024
1 parent 95d7477 commit 678f052
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 61 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@nuxtjs/tailwindcss": "6.12.1",
"@pinia/nuxt": "0.5.3",
"@popperjs/core": "2.11.8",
"@prisma/client": "5.19.1",
"@prisma/client": "5.20.0",
"@variantjs/core": "0.0.90",
"@variantjs/vue": "0.0.22",
"@vee-validate/zod": "4.13.2",
Expand Down Expand Up @@ -149,7 +149,7 @@
"postinstall-postinstall": "2.1.0",
"prettier": "3.3.3",
"prettier-plugin-organize-imports": "4.1.0",
"prisma": "5.19.1",
"prisma": "5.20.0",
"storybook": "7.6.20",
"storybook-vue-addon": "0.6.1",
"tailwindcss": "3.4.13",
Expand Down
111 changes: 52 additions & 59 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 678f052

Please sign in to comment.