chore(deps): update dependency @prisma/internals to v5.7.0 #82
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:
5.6.0
->5.7.0
Release Notes
prisma/prisma (@prisma/internals)
v5.7.0
Compare Source
🌟 Help us spread the word about Prisma by starring the repo or posting on X (formerly Twitter) about the release.
Highlights
✨ In this release, we improved the SQL queries Prisma Client generates for you with two new Preview features, the driver adapters, and support for the database drivers we currently support. 5.7.0 will be the last release of the year. Stay tuned for the next one in January! ✨
Preview support for
JOIN
s for relation queries for PostgreSQL and CockroachDBWe’re excited to announce Preview support for
JOIN
s in Prisma Client when querying relations. Support forJOIN
s has been a long-standing feature request, and this release adds support for PostgreSQL and CockroachDB. The upcoming releases will expand support for other databases Prisma supports.To get started using
JOIN
s, enable the Preview feature in your Prisma schema:Run
prisma generate
to regenerate Prisma Client and enable the Preview feature.Prisma Client will use a
JOIN
in your query to fetch relation data for a majority of the cases.Example queries
1-1 relation queries example
Prisma Client query
SQL
1-m relation queries example
Prisma Client query
SQL
m-n relation queries example
Prisma Client query
SQL
Share your feedback and create a bug report if you encounter any issues.
Prisma’s
distinct
option now uses SQL queries (Preview)From this release, Prisma Client’s
distinct
option now uses the native SQLDISTINCT ON
for unordered queries with PostgreSQL and CockroachDB. The upcoming releases will expand support for the other databases that Prisma supports.Prisma Client already supports querying for distinct records. However, Prisma Client took care of the post-processing for distinct records in memory.
To get started, enable the Preview feature in your Prisma schema:
Regenerate your Prisma Client to get started using the Preview feature.
Given the following Prisma Client query:
Before 5.7.0
Previously, Prisma Client handled the post-processing to select distinct records in-memory. Therefore, the following query was generated and executed against your database:
After 5.7.0
Share your feedback and create a bug report if you encounter any issues.
Improved support for Netlify using Node.js v20
In this release, we improved Prisma support when deploying to Netlify on Node.js v20. Previously, the Prisma Client could not resolve the location of the Query Engine after deploying to Netlify when using Node.js v20. If you run into this issue, we recommend updating to Prisma v5.7.0.
We recommend giving this comment on GitHub a read if you are not yet able to upgrade Prisma, to learn how to get around the error.
Fixes and improvements
Prisma Client
InterpretationError("Unable to convert expression result into a set of selection results", None)
(starting with 5.2.0)TRUNCATE
ing the table on CockroachDB:placeholder $1 already has type string, cannot assign Color
Prisma Client could not locate the Query Engine for runtime "rhel-openssl-3.0.x"
)Prisma
Prisma Migrate
prisma debug
command does not show env variables declared in.env
fileCredits
Huge thanks to @anuraaga, @onichandame, @LucianBuzzo, @RobertCraigie, @fqazi, @KhooHaoYit, @alencardc, @Oreilles, @christianledgard, @skyzh, @alula, @AikoRamalho, @petradonka for helping!
Company news
💼 We’re hiring!
If you're interested in joining our growing team to help empower developers to build data-intensive applications, Prisma is the place for you.
We're hiring for the following roles:
Configuration
📅 Schedule: Branch creation - "every weekend" in timezone Australia/Melbourne, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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 this update again.
This PR has been generated by Mend Renovate. View repository job log here.