fix(deps): update prisma monorepo to v4.6.0 #6851
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
4.5.0
->4.6.0
4.5.0
->4.6.0
4.5.0
->4.6.0
Release Notes
prisma/prisma
v4.6.0
Compare Source
🌟 Help us spread the word about Prisma by starring the repo or tweeting about the release. 🌟
Highlights
Interactive Transactions for Prisma Data Proxy (Preview)
In 3.8.0, we disabled the
interactiveTransactions
Preview feature when using the Prisma Data Proxy. This was because the API was not yet supported.In this release, we're removing the limitation. You can now try the Preview version of interactive transactions with the Prisma Data Proxy. Re-generate Prisma Client using
prisma generate --data-proxy
after enabling the Preview feature.Note: The
interactiveTransactions
Preview feature flag is still needed. We will remove this in a future version when the feature is stable.Try it out and let us know your thoughts in our interactive transactions feedback GitHub issue.
Native database level upserts for PostgreSQL, SQLite, and CockroachDB
Prisma’s upsert is one of its most powerful and most convenient APIs. In this release, Prisma will now default to the native database upsert for PostgreSQL, SQLite, and CockroachDB whenever possible.
Prisma will use the native database upsert if:
upsert
'screate
andupdate
optionsupsert
'swhere
optionwhere
option and the unique field in thecreate
option have the same valuePrisma Client's
upsert
operation was implemented on a Prisma-level and did not use the native database implementations like, e.g.,INSERT .. ON CONFLICT .. UPDATE SET
. This allowed Prisma to also upsert nested queries.The Prisma-implementation came at a cost. In some scenarios, it was more likely for a transaction to roll back because of a conflict when multiple
upsert
operations were being executed in parallel, and the multiple queries often took longer than the native database query would have taken.Try it out and let us know what you think. If you run into any issues, don't hesitate to create a GitHub issue.
Relation Mode improvements (Preview)
In 4.5.0, we renamed the "Referential Integrity" Preview feature to "Relation Mode". We also changed the
datasource
property name of the feature torelationMode
.In this release, we fixed all remaining known bugs of
relationMode = "prisma"
and cleaned up our documentation. You can now read about Relation mode on its own documentation page which is up to date with the implementation.If you encounter any problems please comment on our feedback issue. We plan to make this Generally Available soon.
extendedWhereUnique
improvements (Preview)In 4.5.0, we introduced the
extendedWhereUnique
Preview feature to allow filtering for non-unique properties in unique where queries. In this release, we're adding new rules to decide when concurrentfindUnique
queries get batched into afindMany
query.Unfortunately, we forgot to adapt our
findUnique
query batch optimization, which turns multiple concurrentfindUnique
queries into a singlefindMany
query when possible — GitHub issue.Therefore,
findUnique
queries will get batched into afindMany
query if:where: { field: <val>, field1: { equals: <val> } }
)Conversely, suppose the filter object contains any boolean operators, relation filters, or scalar filters that are not using
equals
. Prisma will fall back to executing thefindUnique
queries independently.Let us know your thoughts and share your feedback on the Preview feature in this GitHub issue.
Fixes and improvements
Prisma Client
relationMode=prisma
upsert()
should do ON CONFLICT DO UPDATE/NOTHING in postgresqlbinary
EnginereferentialIntegrity = "prisma"
): MakeNoAction
a synonym/alias ofRestrict
for the emulation, for all databases except PostgreSQL & SQLite.OnDelete: SetNull
withreferentialIntegrity = "prisma"
user.delete()
should fail, but succeeds.Prisma
referentialIntegrity = prisma
not respected when using@@​map()
SetNull
referential action referencing non-optional fieldsreferentialIntegrity
policy is lost during re-introspectionLanguage tools (e.g. VS Code)
Design Partner Program
Are you building data-intensive applications in serverless environments using Prisma? If so, you should join our Design Partner Program to help us build the tools that best fit your workflows!
The Design Partner Program aims to help development teams solve operational, data-related challenges in serverless environments. Specifically, we’re looking to build tools that help with the following problems:
Submit an application through our application form to join the Prisma Design Partner Program to take advantage of new features that you won't have to build or maintain yourselves.
Prisma Data Platform
We're working on the Prisma Data Platform — a collaborative environment for connecting apps to databases. It includes the following:
Try it out. Let us know what you think!
📺 Join us for another "What's new in Prisma" live stream
Learn about the latest release and other news from the Prisma community by joining us for another "What's new in Prisma" live stream.
The stream takes place on YouTube on Thursday, November 10 at 5 pm Berlin | 8 am San Francisco.
Credits
Huge thanks to @cmd-johnson 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.
This PR has been generated by Mend Renovate. View repository job log here.