Prisma: 6.1.0 Release

Release date:
December 17, 2024
Previous version:
6.0.1 (released December 2, 2024)
Magnitude:
1,353 Diff Delta
Contributors:
6 total committers
Data confidence:
Commits:

34 Commits in this Release

Ordered by the degree to which they evolved the repo in this version.

Authored December 16, 2024
Authored December 16, 2024
Authored December 16, 2024
Authored December 5, 2024

Top Contributors in 6.1.0

aqrln
jkomyno
andyjy
newarifrh
renovate-bot
prisma-bot

Directory Browser for 6.1.0

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

Today we're releasing Prisma ORM version 6.1.0

In this version our tracing Preview feature is being graduated to GA!

Highlights

Tracing goes GA

The tracing Preview feature is now stable. You now no longer have to include tracing in your set of enabled preview features.

generator client {
   provider        = "prisma-client-js"
-  previewFeatures = ["tracing"]
}

We have also changed some of the spans generated by Prisma Client. Previously, a trace would report the following spans: prisma:client:operation prisma:client:serialize prisma:engine prisma:engine:connection prisma:engine:db_query prisma:engine:serialize

Now, the following are reported: prisma:client:operation prisma:client:serialize prisma:engine:query prisma:engine:connection prisma:engine:db_query prisma:engine:serialize prisma:engine:response_json_serialization

Additionally, we have made a few changes to our dependencies: - @opentelemetry/api is now a peer dependency instead of a regular dependency - registerInstrumentations in @opentelemetry/instrumentation is now re-exported by @prisma/instrumentation

After upgrading to Prisma ORM 6.1.0 you will need to add @opentelemetry/api to your dependencies if you haven't already: npm install @opentelemetry/api

You will also no longer need to have @opentelemetry/instrumentation if you only use registerInstrumentations. In this case you can import registerInstrumentations from @prisma/instrumentation diff - import { PrismaInstrumentation } from '@prisma/instrumentation' + import { PrismaInstrumentation, registerInstrumentations } from '@prisma/instrumentation'

Mutli-line comments in Prisma Schema Language (PSL)

Comments can now be defined as multi-line in your Prisma schema! Comments can use the existing format:

// this is a schema comment

or can now also use our multi-line format: prisma /* * this is a multi-line comment * You can add in all you want here * Keep typing and this comment will keep on going */

Bug fixes

Tracing related

As we're moving our tracing preview to GA, a number of issues have been resolved. Here are a few highlights: - Tests for tracing expanded and improved - Issues with Elastic APM addressed - Issues with Datadog tracer addressed - Prisma Client now respects suppressTracing

Other issues

We also have a number of other issues that were resolved outside of our tracing feature. - Resolved type issues with the PrismaNeonHTTP adapter - findUnique returns null when used instead of Promise.all - Resolved an issue with the latest version of Alpine Linux

Fixes and improvements

Prisma

Prisma Client