fix(deps): update prisma monorepo to v3.14.0 #5504
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:
3.13.0
->3.14.0
3.13.0
->3.14.0
3.13.0
->3.14.0
Release Notes
prisma/prisma
v3.14.0
Compare Source
🌟 Help us spread the word about Prisma by starring the repo or tweeting about the release. 🌟
Major improvements
CockroachDB connector is now Generally Available!
We are proud to announce the CockroachDB connector is now stable and Generally Available. The connector was built in joined efforts with the team at Cockroach Labs and comes with full Prisma Client and Prisma Migrate support.
If you're upgrading from Prisma version
3.9.0
+ or the PostgreSQL connector, you can now runnpx prisma db pull
and review the changes to your schema. To learn more about CockroachDB-specific native types we support, refer to our docs.To learn more about the connector and how it differs from PostgreSQL, head to our documentation.
PostgreSQL
GIN
,GiST
,SP-GiST
, andBRIN
indexes support (Preview)We introduced the
extendedIndexes
Preview feature in version3.5.0
, and we have been adding new configuration options for indexes. We've expanded index type support with theGIN
,GiST
,SP-GiST
, andBRIN
indexes in this release.To make use of an index type, you can update your Prisma schema by providing the
type
argument to the@@​index
attribute:The following SQL will be generated in your migration when you run
prisma migrate dev
:To learn more about configuring index types in your schema, refer to our documentation.
Improved
queryRaw
APIIn this release, we made improvements to the SQL raw API. Some improvements are breaking and will be available behind the new
improvedQueryRaw
Preview feature flag.The
improvedQueryRaw
Preview feature solves most of the issues faced when working with the raw API. We would encourage you to turn on the Preview feature flag, try out the new API, and let us know how we can make it even better.You can enable the Preview feature in your Prisma schema as follows:
Here's a list of the improvements
improvedQueryRaw
comes with:1. Raw scalar values are deserialized as their correct JavaScript types
Prisma Client queries such as
findMany
deserialize database scalar values to their corresponding JavaScript types. For example, aDateTime
value is deserialized as a JavaScriptDate,
and aBytes
would be deserialized as a JavaScriptBuffer
.Raw queries now implement the same behavior when the
improvedQueryRaw
Preview feature flag is enabled.The types of values from the database will be used instead of the types in the Prisma schema. Here's an example query and response:
Here's a table that recaps the serialization type-mapping for raw results:
2. PostgreSQL type-casts
We've also fixed a lot of PostgreSQL type-casts that were broken by enabling the
improvedQueryRaw
Preview feature flag.Here's an example of a query that used to fail:
You can now perform some more type-casts in your queries:
A consequence of this fix is that some subtle implicit casts are now handled more strictly and would fail. Here's an example that used to work but won't work anymore under the
improvedQueryRaw
feature flag:The
LENGTH
PostgreSQL function only accepttext
as input. Prisma used to coerce42
totext
silently, but won’t anymore. As suggested by the hint, cast42
totext
as follows:3. Query parameters are correctly sent to the database
Before this release, query parameters of type
BigInt
,Bytes
, andDecimal
were incorrectly sent to the database leading to instances of unexpected inserts. Passing the types as query parameters now works:Fixes and improvements
Prisma Client
incorrect binary data format in bind parameter 3
$queryRaw
generate
output withoutput
has weird package path on Windows$
fromexecuteRaw
in error message "Invalid `prisma.executeRaw()` invocation:"Result::unwrap()
on anErr
value: Any { .. } in query-engine/connectors/sql-query-connector/src/error.rs:58:51referentialIntegrity = prisma
: Broken query ononUpdate: Cascade
|symbol ... not found
|The column ... does not exist in the current database.
N/A
. Message:error deserializing column 0: a Postgres value was
NULL``" error when using Postgres ARRAY_AGG with a nullable columndebugPanic
like functionality forgetConfig
andgetDmmf
of Query EngineResult::unwrap()
on anErr
value: Any { .. } in query-engine/connectors/sql-query-connector/src/error.rs:58:51Prisma
Result::unwrap()
on anErr
value: Custom { kind: InvalidData, error: "stream did not contain valid UTF-8" }prisma format
panics when you use a colon to declare field type (field: Type
syntax)TEXT
orBLOB
in MySQL @id/@index/@uniqueError parsing attribute "@​id"
but it's actually about@@​id
Option::unwrap()
on aNone
valueprovider=posgresql
schema--url
fordb pull
ignored/overwritesprovider=cockroachdb
Prisma Migrate
Language tools (e.g. VS Code)
Credits
Huge thanks to @ever0de, @flatplate, @njmaeff, @tnzk, @DePasqualeOrg for helping!
Prisma Day
Prisma Day is back this year, and it'll be on June 15 - 16 at the JamesJune Sommergarten in Berlin. Join us in-person or online for talks and workshops on modern application development and databases. Come and meet and chat with the team behind the Prisma ORM and Prisma Data Platform.
💼 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 a number of roles: Technical Support Engineer, Back-end Engineer: Prisma Data Platform, and a Developer Advocate(Frontend/ Fullstack). You can find more jobs we're hiring for on our jobs page.
Feel free to read through the job descriptions and apply using the links provided.
📺 Join us for another "What's new in Prisma" livestream
Learn about the latest release and other news from the Prisma community by joining us for another "What's new in Prisma" livestream.
The stream takes place on YouTube on Thursday, May 12 at 5 pm Berlin | 8 am San Francisco.
Configuration
📅 Schedule: 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 WhiteSource Renovate. View repository job log here.