🌟 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. The driverAdapter
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
command
This 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 client
Fixes and improvements
Prisma CLI
Prisma Client
prisma.model.count
does not typedistinct
correctly- Generate fails on 5.2 with unsupported type
- Invalid
….findMany()
invocation: The columnj1.id
does not exist in the current database. - 5.4.0 subquery has too many columns
- One-to-Many relationship does not join on the specified field
- Planetscale driver: unsupported column type NULL
Credits
Huge thanks to @onichandame, @fqazi, @KhooHaoYit, @alencardc, @Oreilles, @christianledgard, @skyzh, @alula, @michaelpoellath, @lukahartwig, @steebchen, @icanipa, @jiashengguo, @stephenwade 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: