chore(deps): update prisma monorepo to v5.5.2 #188
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:
5.3.1
->5.5.2
5.3.1
->5.5.2
Release Notes
prisma/prisma (@prisma/client)
v5.5.2
Compare Source
Today, we are issuing the
5.5.2
patch release.Fix in Prisma CLI
v5.5.1
Compare Source
Today, we are issuing the
5.5.1
patch release.Fix in Prisma Client
v5.5.0
Compare Source
🌟 Help us spread the word about Prisma by starring the repo or tweeting about the release. 🌟
Highlights
Serverless database drivers improvements and request for feedback (Preview)
In version 5.4.0, we released
driverAdapters
into Preview. ThedriverAdapter
feature enables Prisma Client to access your database using other JavaScript or Serverless database drivers such as Neon, PlanetScale, and Turso.The driver adapters allow Prisma Client to connect to your database using protocols besides TCP, such as HTTP (PlanetScale and Turso) and WebSockets (Neon). You can learn more about the Preview feature from the announcement blog post.
In this release, we focused our efforts on fixing bugs and improving the stability of the Preview feature.
We encourage you to try it out and share your feedback to help us move it to General Availability in either of the following GitHub discussions:
New flags for the
prisma init
commandThis release introduces 3 new flags you can provide when initializing Prisma in your project using the
prisma init
command:--generator-provider
: Defines the default generator to use--preview-features
: Specifies the default Preview features to use in your project--output
: Specifies the default output location for the generated clientFixes and improvements
Prisma CLI
Prisma Client
prisma.model.count
does not typedistinct
correctly….findMany()
invocation: The columnj1.id
does not exist in the current database.Credits
Huge thanks to @onichandame, @fqazi, @KhooHaoYit, @alencardc, @Oreilles, @christianledgard, @skyzh, @alula, @michaelpoellath, @lukahartwig, @steebchen, @icanipa, @jiashengguo, @stephenwade for helping!
v5.4.2
Compare Source
Today, we are issuing the
5.4.2
patch release.Fix in Prisma Client
v5.4.1
Compare Source
Today, we are issuing the
5.4.1
patch release.Fix in Prisma Client
….findMany()
invocation: The columnj1.id
does not exist in the current database.Fix in
@prisma/adapter-planetscale
v5.4.0
Compare Source
🌟 Help us spread the word about Prisma by starring the repo or tweeting about the release. 🌟
Highlights
Preview support for PlanetScale and Neon serverless database drivers
We’re excited to announce Preview support for the Neon and PlanetScale serverless database drivers. The PlanetScale and Neon serverless database drivers allow Prisma to connect to your database using protocols besides TCP — HTTP (PlanetScale) or WebSockets (Neon).
To get started with the serverless database drivers, first enable the
driverAdapters
Preview feature flag in your Prisma schema:Next, to set up Prisma Client to use the serverless database drivers:
PlanetScale
Install the Prisma adapter for PlanetScale and PlanetScale serverless database driver, and undici:
Ensure you update the host value in your connection string to
aws.connect.psdb.cloud
. You can learn more about this here.DATABASE_URL='mysql://johndoe:[email protected]/clear_nightsky?sslaccept=strict'
Update your Prisma Client instance to use the PlanetScale database driver:
Neon
Install the Prisma adapter for Neon, Neon serverless database driver and undici (WebSockets):
Update your Prisma Client instance to use the Neon serverless database driver:
Let us know your feedback about the Neon or Planetscale serverless database drivers in the linked GitHub discussions. Create a bug report if you run into any issues.
Early Access support for Turso
Turso is an edge-hosted, distributed database that's based on libSQL, an open-source and open-contribution fork of SQLite, enabling you to bring data closer to your application and minimize query latency.
Since support for Turso is in Early Access, there may be some rough edges which we’re still working on it to improve the API and overall support. Additionally, it is behind the
driverAdapters
Preview feature flag. Enable it to get started using Turso in your project:Next, install the Prisma Client adapter for Turso and the
libSQL
database clientUpdate your Prisma Client instance:
You can learn more on how to use Prisma together with Turso in the announcement blog post.
Try it out! Let us know what you think and create a bug report if you run into any issues.
Query performance improvements
In our continued efforts to make Prisma Client faster, we identified and improved the performance of different types of queries.
Relation filters improvements
We made the following improvements to relation filters:
INNER JOIN
used in relation filter queries (Big thank you to @KhooHaoYit for helping out)LEFT JOIN
's for to-one relations. Previously, Prisma made use of sub-queries to fetch data.Example Prisma Client query
Before 5.4.0
After 5.4.0
If you’re interested in more details on the relation query filter improvements, you can take a look at this pull request.
Enum improvements on PostgreSQL and CockroachDB
Previously, when an enum value was used in a query, our Postgres driver would make additional queries to resolve the enum types that were used.
In this release, we’re making improvements by casting enums to
TEXT
to avoid the additional roundtrips when resolving the types.This change should have the most impact if you’re using
pgBouncer
or if you’re running Prisma in a serverless environment, where our Postgres driver can’t cache enum types information.Prisma schema
Prisma Client query
Before 5.4.0
After 5.4.0
Bulk delete improvements
We optimized the
deleteMany
operation by:SELECT
queries used to fetch data that would be used as input for theDELETE
operation. In some cases, this also improves index usage.Prisma Client query
Before 5.4.0
After 5.4.0
Upsert improvements
We improved the
upsert
operation (non-native database upsert) by removing a redundantSELECT
query:Prisma Client query
Before 5.4.0
After 5.4.0
Fixes and improvements
Prisma Client
SELECT
may be generated byupsert()
deleteMany
optimisationUPDATE
, slowing down transaction.deleteMany
seems to send 2 identical read queries first before triggering the actual deleteRustPanic: RuntimeError: panicked at 'internal error: entered unreachable code', query-engine/prisma-models/src/field/scalar.rs:93:50
metrics
propertiesjest-mock-extended
orvitest-mock-extended
expectsnever
inputLanguage tools (e.g. VS Code)
@@​schema
is defined in a block without theschemas
attributePrisma Engines
Credits
Huge thanks to @onichandame, @fqazi, @KhooHaoYit, @alencardc, @Oreilles, @christianledgard, @skyzh, @alula, @michaelpoellath, @RobertCraigie, @icanipa, @jiashengguo, @stephenwade, @darthmaim, @ludralph, @Gerschtli, @andyjy for helping!
💼 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 currently hiring for the following roles:
Feel free to read the job descriptions and apply using the links provided.
Configuration
📅 Schedule: Branch creation - "before 3am on Monday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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.