Prisma

Latest version: v0.15.0

Safety actively analyzes 714772 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 11 of 44

4.3.1

Today, we are issuing the `4.3.1` patch release.

Fixes in Prisma Client

- [Prisma Client is incompatible with TypeScript 4.8](https://github.com/prisma/prisma/issues/15041)

Fixes in Prisma CLI

- [Prisma 4.3.0 takes 100x more time to generate types](https://github.com/prisma/prisma/issues/15109)

4.3.0

๐ŸŒŸ **Help us spread the word about Prisma by starring the repo or [tweeting](https://twitter.com/intent/tweet?text=Check%20out%20the%20latest%20prisma%20release%20v4.3.0%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/prisma/prisma/releases/tag/4.3.0) about the release.** ๐ŸŒŸ

Major improvements

Field reference support on query filters (Preview)

We're excited to announce [Preview](https://www.prisma.io/docs/about/prisma/releases#preview) support for field references. You can enable it with the `fieldReference` Preview feature flag.

Field references will allow you to compare columns against other columns. For example, given the following schema:

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

model Invoice {
id Int id default(autoincrement)
paid Int
due Int
}


You can now compare one column with another after running `prisma generate`, for example:

ts
// Filter all invoices that haven't been paid yet
await prisma.invoice.findMany({
where: {
paid: {
lt: prisma.invoice.fields.due // paid < due
}
}
})


Learn more about field references in [our documentation](https://www.prisma.io/docs/reference/api-reference/prisma-client-reference#compare-columns-in-the-same-table). Try it out and let us know what you think in this [GitHub issue](https://github.com/prisma/prisma/issues/15068).

Count by filtered relation (Preview)

In this release, we're adding support for the ability to count by a filtered relation. You can enable this feature by adding the `filteredRelationCount` Preview feature flag.

Given the following Prisma schema:
prisma
generator client {
provider = "prisma-client-js"
previewFeatures = ["filteredRelationCount"]
}

model User {
id Int id default(autoincrement())
email String unique
name String?
posts Post[]
}

model Post {
id Int id default(autoincrement())
title String
content String?
published Boolean default(false)

author User? relation(fields: [authorId], references: [id])
authorId Int?
}


You can now express the following query with the Preview feature after re-generating Prisma Client:
ts
// Count all user posts with the title "Hello!"
await prisma.user.findMany({
select: {
_count: {
select: {
posts: { where: { title: 'Hello!' } },
},
},
},
})


Learn more in [our documentation](https://www.prisma.io/docs/concepts/components/prisma-client/aggregation-grouping-summarizing#filter-the-relation-count) and let us know what you think in [this issue](https://github.com/prisma/prisma/issues/15069)

Multi-schema support (Preview)

In this release, we're adding _very_ early Preview support of multi-schema support for [PostgreSQL](https://www.postgresql.org/docs/14/ddl-schemas.html) and [SQL Server](https://docs.microsoft.com/en-us/sql/relational-databases/security/authentication-access/create-a-database-schema?view=sql-server-ver16) behind the `multiSchema` Preview feature flag. With it, you can write a Prisma schema that accesses models across multiple schemas.

Read further in this [GitHub issue](https://github.com/prisma/prisma/issues/1122#issuecomment-1231773471). Try it out and let us know what you think in this [GitHub issue](https://github.com/prisma/prisma/issues/15077).


Prisma CLI exit code fixes

We've made several improvements to the Prisma CLI:

- `prisma migrate dev` previously returned a successful exit code (0) when `prisma db seed` was triggered but failed due to an error. We've fixed this and `prisma migrate dev` will now exit with an unsuccessful exit code (1) when seeding fails.

- `prisma migrate status` previously returned a successful exit code (0) in unexpected cases. The command will now exit with an unsuccessful exit code (1) if:
- An error occurs
- There's a failed or unapplied migration
- The migration history diverges from the local migration history (`/prisma/migrations` folder)
- Prisma Migrate does not manage the database' migration history

- The previous behavior when canceling a prompt by pressing <kbd>Ctrl</kbd> + <kbd>C</kbd> was returning a successful exit code (0). It now returns a non-successful, `SIGINT`, exit code (130).

- In the _rare_ event of a Rust panic from the Prisma engine, the CLI now asks you to submit an error report and exit the process with a non-successful exit code (1). Prisma previously ended the process with a successful exit code (0).

Improved precision for the `tracing` Preview feature
Before this release, you may have occasionally seen some traces that took 0ฮผs working with the `tracing` Preview feature. In this release, we've increased the precision to ensure you get accurate traces.

Let us know if you run into any issues in this [GitHub issue](https://github.com/prisma/prisma/issues/14640).

`prisma format` now uses a Wasm module

Initially, the `prisma format` command relied on logic from the Prisma engines in form of a native binary. In an ongoing effort to make `prisma` more portable and easier to maintain, we decided to shift to a Wasm module.

`prisma format` now uses the same Wasm module as the one the Prisma language server uses, i.e. `prisma/prisma-fmt-wasm`, which is now visible in `prisma version` command's output.

Let us know what you think. In case you run into any issues, let us know by creating a [GitHub issue](https://github.com/prisma/prisma).

MongoDB query fixes
> โš ๏ธย This may affect your query results if you relied on this _buggy_ behavior in your application.

While implementing field reference support, we noticed a few correctness bugs in our MongoDB connector that we fixed along the way:
1. `mode: insensitive` alphanumeric comparisons (e.g. โ€œaโ€ > โ€œZโ€) didnโ€™t work ([GitHub issue](https://github.com/prisma/prisma/issues/14663))
2. `mode: insensitive` didnโ€™t exclude undefined ([GitHub issue](https://github.com/prisma/prisma/issues/14664))
3. `isEmpty: false` on lists types (e.g. String[]) returned true when a list is empty ([GitHub issue](https://github.com/prisma/prisma-engines/issues/3133))
4. `hasEvery` on list types wasnโ€™t aligned with the SQL implementations ([GitHub issue](https://github.com/prisma/prisma-engines/issues/3132))

JSON filter query fixes

> โš ๏ธย This may affect your query results if you relied on this _buggy_ behavior in your application.
We also noticed a few correctness bugs in when filtering JSON values when used in combination with the `NOT` condition. For example:

ts
await prisma.log.findMany({
where: {
NOT: {
meta: {
string_contains: "GET"
}
}
}
})


<details>

<summary>Prisma schema</summary>

prisma
model Log {
id Int id default(autoincrement())
level Level
message String
meta Json
}

enum Level {
Info
Warn
Error
}

</details>

If you used `NOT` with any of the following queries on a `Json` field, double-check your queries to ensure they're returning the correct data:

- `string_contains`
- `string_starts_with`
- `string_ends_with`
- `array_contains`
- `array_starts_with`
- `array_ends_with`
- `gt`/`gte`/`lt`/`lte`

Prisma extension for VS Code improvements

The Prisma language server now provides [Symbols](https://code.visualstudio.com/docs/editor/editingevolved#_go-to-symbol) in VS Code. This means you can now:
- See the different blocks (`datasource`, `generator`, `model`, `enum`, and `type`) of your Prisma schema in the [Outline view](https://code.visualstudio.com/docs/getstarted/userinterface#_outline-view). This makes it easier to navigate to a block in 1 click
A few things to note about the improvement are that:
- <kbd>CMD</kbd> + hover on a field whose type is an enum will show the block in a popup
- <kbd>CMD</kbd> + left click on a field whose type is a model or enum will take you to its definition.

<img alt="" src="https://user-images.githubusercontent.com/33921841/187421410-cd1f30cf-d0b4-4147-9467-70ca4da12321.png">

- Enable [Editor sticky scroll](https://code.visualstudio.com/updates/v1_70#_editor-sticky-scroll) from version `1.70` of VS Code. This means you can have sticky blocks in your Prisma schema, improving your experience when working with big schema files

Make sure to update your VS Code application to 1.70, and the [Prisma extension](https://marketplace.visualstudio.com/items?itemName=Prisma.prisma) to `4.3.0`.

We'd also like to give a big **Thank you** to yume-chan for your [contribution](https://github.com/yume-chan)!

Prisma Studio improvements

We've made several improvements to the filter panel which includes:
- Refined filter panel
- Reducing the contrast of the panel in dark mode
- Ability to toggle filters in the panel

- Refined error handling for MongoDB m-n relations
Prisma Studio prevents fatal errors when interacting with m-n relations by explicitly disabling creating, deleting, or editing records for m-n relations

- Multi-row copying
You can select multiple rows and copy them to your clipboard as JSON objects using <kbd>CMD</kbd> + <kbd>C</kbd> on MacOS or <kbd>Ctrl</kbd> + <kbd>C</kbd> on Windows/ Linux

Prisma Client Extensions: request for comments

For the last couple of months, we've been working on a specification for an upcoming feature โ€” Prisma Client extensions. We're now ready to share our proposed design and we would appreciate your feedback.

Prisma Client Extensions aims to provide a type-safe way to extend your existing Prisma Client instance. With Prisma Client Extensions you can:
- Define computed fields
- Define methods for your models
- Extend your queries
- Exclude fields from a model
... and much more!

Hereโ€™s a glimpse at how that will look:

jsx
const prisma = new PrismaClient().$extend({
$result: {
User: {
fullName: (user) => {
return `${user.firstName} ${user.lastName}`
},
},
},
$model: {
User: {
signup: async ({ firstName, lastName, email, password }) => {
// validate and create the user here
return prisma.user.create({
data: { firstName, lastName, email, password }
})
},
},
},
})

const user = await prisma.user.signup({
firstName: "Alice",
lastName: "Lemon",
email: "aliceprisma.io",
password: "pri$mar0ckz"
})
console.log(user.fullName) // Alice Lemon


For further details, refer to [this GitHub issue](https://github.com/prisma/prisma/issues/15074). Have a read and let us know what you think!

Fixes and improvements

Prisma Client
- [Allow WHERE conditions to compare columns in same table](https://github.com/prisma/prisma/issues/5048)
- [Dates serialized without quotation marks in query event parameters property ](https://github.com/prisma/prisma/issues/6578)
- [Ability to filter count in "Count Relation Feature"](https://github.com/prisma/prisma/issues/8413)
- [Some traces show 0ฮผs](https://github.com/prisma/prisma/issues/14614)
- [[MongoDB] Alphanumeric insensitive filters don't work](https://github.com/prisma/prisma/issues/14663)
- [[MongoDB] Insensitive filters don't exclude undefineds](https://github.com/prisma/prisma/issues/14664)
- [Schema size affects runtime speed](https://github.com/prisma/prisma/issues/14695)
- [Prisma Client always receive engine spans even when not tracing](https://github.com/prisma/prisma/issues/14842)
- [Environment variables not available when using Wrangler 2](https://github.com/prisma/prisma/issues/14924)

Prisma
- [Undo "skip flaky referentialActions sql server test"](https://github.com/prisma/prisma/issues/7936)
- [Add `prisma/prisma-fmt-wasm` to CLI and output dependency version in `-v`, use instead of Formatter Engine binary](https://github.com/prisma/prisma/issues/12496)
- [Add jest snapshots for improved `db push` output in MongoDB](https://github.com/prisma/prisma/issues/13776)
- [OpenSSL error message appearing while using query-engine has false positives](https://github.com/prisma/prisma/issues/14104)
- [Calling `dmmf` raises "Schema parsing - Error while interacting with query-engine-node-api library" misleading error message when there is a schema validation error.](https://github.com/prisma/prisma/issues/14588)
- [Unique composite indexes do not clash with a matching name on schema validation (composite types)](https://github.com/prisma/prisma/issues/14768)
- [CLI: `migrate status` should return a non-successful exit code (1) when a failed migration is found or an error occurs](https://github.com/prisma/prisma/issues/14860)
- [CLI: `migrate dev` should return a non-successful exit code (1) when there is an error during seeding](https://github.com/prisma/prisma/issues/14862)

Prisma Migrate
- [Prisma CLI non-interactive detection is incorrect.](https://github.com/prisma/prisma/issues/14620)

Language tools (e.g. VS Code)
- [Provide Symbols to VSCode](https://github.com/prisma/language-tools/issues/751)
- [Support "Outline view" for Prisma Schema](https://github.com/prisma/language-tools/issues/1031)

Credits

Huge thanks to abenhamdine, drzamich, AndrewSouthpaw, kt3k, lodi-g, Gnucki, apriil15, givensuman for helping!

Prisma Data Platform
We're working on the Prisma Data Platform โ€” a collaborative environment for connecting apps to databases. It includes the:
- **Data Browser** for navigating, editing, and querying data
- **Data Proxy** for your database's persistent, reliable, and scalable connection pooling.
- **Query Console** for experimenting with queries

[Try it out](https://cloud.prisma.io/) and let us know what you think!

๐Ÿ’ผ 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 looking for a [Developer Advocate (Frontend / Fullstack)](https://grnh.se/894b275b2us) and [Back-end Engineer: Prisma Data Platform](https://grnh.se/45afe7982us).

Feel free to read 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"](https://youtu.be/YE668p2nxv8) livestream.

The stream takes place [on YouTube](https://youtu.be/YE668p2nxv8) on **Thursday, September 1** at **5 pm Berlin | 8 am San Francisco**.

4.2.1

Today, we are issuing the `4.2.1` patch release.

Fix in Prisma Client

- [Fixed a cold start performance regression in case of multiple queries starting in parallel right after client creation](https://github.com/prisma/prisma/issues/14695)

4.2.0

๐ŸŒŸ **Help us spread the word about Prisma by starring the repo or [tweeting](https://twitter.com/intent/tweet?text=Check%20out%20the%20latest%20prisma%20release%20v4.2.0%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/prisma/prisma/releases/tag/4.2.0) about the release.** ๐ŸŒŸ

Major improvements

Prisma Client tracing support (Preview)

We're excited to announce [Preview](https://www.prisma.io/docs/about/prisma/releases#preview) support for tracing in Prisma Client! ๐ŸŽ‰

Tracing allows you to track requests as they flow through your application. This is especially useful for debugging distributed systems where each request can span multiple services.

With tracing, you can now see how long Prisma takes and what queries are issued in each operation. You can visualize these traces as waterfall diagrams using tools such as [Jaeger](https://www.jaegertracing.io/), [Honeycomb](https://www.honeycomb.io/trace/), or [DataDog](https://www.datadoghq.com/).

![](https://user-images.githubusercontent.com/33921841/183606710-5945999c-4e0b-420c-9de5-4c6bf9984f0c.png)

Read more about tracing in our [announcement post](https://www.prisma.io/blog/tracing-launch-announcement-pmk4rlpc0ll) and learn more in [our documentation](https://prisma.io/docs/concepts/components/prisma-client/opentelemetry-tracing) on how to start working with tracing.

Try it out and [let us know what you think](https://github.com/prisma/prisma/issues/14640).

Isolation levels for interactive transactions

We are improving the `interactiveTransactions` Preview feature with the support for defining the isolation level of an interactive transaction.

Isolation levels describe different types of trade-offs between isolation and performance that databases can make when processing transactions. Isolation levels determine what types of data leaking can occur between transactions or what data anomalies can occur.

To set the transaction isolation level, use the `isolationLevel` option in the second parameter of the API. For example:

ts
await prisma.$transaction(
async (prisma) => {
// Your transaction...
},
{
isolationLevel: Prisma.TransactionIsolationLevel.Serializable,
maxWait: 5000,
timeout: 10000,
}
)


Prisma Client supports the following isolation levels if they're available in your database provider:
- `ReadCommitted`
- `ReadUncommitted`
- `RepeatableRead`
- `Serializable`
- `Snapshot`

Learn more about in [our documentation](https://www.prisma.io/docs/concepts/components/prisma-client/transactions#transaction-isolation-level). Try it out, and let us know what you think in this [GitHub issue](https://github.com/prisma/prisma/issues/8664).

Renaming of Prisma Client Metrics

In this release, we've renamed the metrics โ€” counters, gauges, and histograms โ€” returned from `prisma.$metrics()` to make it a little easier to understand at a glance.

| Previous | Updated |
| ---------------------------------- | -------------------------------------------------- |
| `query_total_operations` | `prisma_client_queries_total` |
| `query_total_queries` | `prisma_datasource_queries_total` |
| `query_active_transactions` | `prisma_client_queries_active` |
| `query_total_elapsed_time_ms` | `prisma_client_queries_duration_histogram_ms` |
| `pool_wait_duration_ms` | `prisma_client_queries_wait_histogram_ms` |
| `pool_active_connections` | `prisma_pool_connections_open` |
| `pool_idle_connections` | `prisma_pool_connections_idle` |
| `pool_wait_count` | `prisma_client_queries_wait` |

Give Prisma Client `metrics` a shot and let us know what you think in this [GitHub issue](https://github.com/prisma/prisma/issues/13579)

To learn more, check out [our documentation](https://www.prisma.io/docs/concepts/components/prisma-client/metrics).

Syntax highlighting for raw queries in Prisma Client

This release adds syntax highlighting support for raw SQL queries when using `$queryRaw`` ` and `$executeRaw`` `. This is made possible using [Prisma's VS Code extension](https://marketplace.visualstudio.com/items?itemName=Prisma.prisma).

<img width="678" alt="Screenshot 2022-08-09 at 12 30 27" src="https://user-images.githubusercontent.com/33921841/183627500-ad866a4d-8624-4f05-839f-81daaaf3ce2d.png">

Note: Syntax highlighting currently doesn't work with when using parentheses, `()`, `$queryRaw()`, `$executeRaw()`, `$queryRawUnsafe()`, and `$executeRawUnsafe()`.

If you are interested in having this supported, let us know in this [GitHub issue](https://github.com/prisma/language-tools/issues/1219).

Experimental Cloudflare Module Worker Support

We fixed a bug in this release that prevented the [Prisma Edge Client](https://www.prisma.io/docs/data-platform/data-proxy#edge-runtimes) from working with [Cloudflare Module Workers](https://developers.cloudflare.com/workers/learning/migrating-to-module-workers/).

We now provide experimental support with a [workaround for environment variables](https://github.com/prisma/prisma/issues/13771#issuecomment-1204295665).

Try it out and let us know how what you think! In case you run into any errors, feel free to create a [bug report](https://github.com/prisma/prisma/issues/new?assignees=&labels=kind%2Fbug&template=bug_report.yml).

Upgrade to Prisma 4

In case you missed it, we held a [livestream](https://www.youtube.com/watch?v=FSjkBrfaoEY) a few weeks ago and walked through issues you may run into while upgrading to [Prisma 4](https://github.com/prisma/prisma/releases/tag/4.0.0) and how to fix them!

Request for feedback

Our Product teams are currently running two surveys to help close the feature gaps and improve Prisma.

If you have a use-case for geographical data (GIS) or full-text search/ indexes (FTS), we would appreciate your feedback on your needs:

- [Prisma GIS](https://prisma103696.typeform.com/to/p8xo5o95) User Research Survey
- [Prisma Full-Text Search](https://prisma103696.typeform.com/fts-survey) User Research Survey

Many thanks! ๐Ÿ™Œ๐Ÿฝ

Fixes and improvements

Prisma Client

- [Allow `dataproxy` to have datasource overrides](https://github.com/prisma/prisma/issues/11595)
- [Warning during build: equals-negative-zero](https://github.com/prisma/prisma/issues/14188)
- [getGraphQLType throws error if object has no prototype](https://github.com/prisma/prisma/issues/14274)
- [Prisma Client: Log Data Proxy usage explicitly](https://github.com/prisma/prisma/issues/14319)
- [Cannot read property 'name' of undefined attempting to create row](https://github.com/prisma/prisma/issues/14342)
- [Edge client crashes when enabling debug logs in constructor](https://github.com/prisma/prisma/issues/14536)
- [TypeError: Cannot read properties of undefined (reading '_hasPreviewFlag')](https://github.com/prisma/prisma/issues/14548)
- [Large package.json log output in prisma:client:dataproxyEngine](https://github.com/prisma/prisma/issues/14660)

Prisma

- [Error: [libs/datamodel/connectors/dml/src/model.rs:338:29] Crash probably due to cyrillic table names](https://github.com/prisma/prisma/issues/12615)
- [Prisma doesn't validate composite attributes correctly](https://github.com/prisma/prisma/issues/14252)
- [Not letting me add Int as a type?](https://github.com/prisma/prisma/issues/14389)
- [Introspection crash, `libs\datamodel\connectors\dml\src\model.rs:494:29` (missing PK?)](https://github.com/prisma/prisma/issues/14403)
- [SQL Server introspection panic](https://github.com/prisma/prisma/issues/14438)
- [Hi Prisma Team! Prisma Migrate just crashed. ](https://github.com/prisma/prisma/issues/14462)
- [Primary key in model using a missing column](https://github.com/prisma/prisma/issues/14511)
- [Migrate just crashed sqlserver](https://github.com/prisma/prisma/issues/14611)
- [Prisma is trying to find column that doesn't exists `prisma db pull` on `SQL Server`](https://github.com/prisma/prisma/issues/14636)
- [Issue that occurred during `prisma db pull`](https://github.com/prisma/prisma/issues/14647)

Language tools (e.g. VS Code)

- [Highlight raw SQL syntax](https://github.com/prisma/language-tools/issues/74)
- [Do not offer all the attributes for composite fields in a model or a type](https://github.com/prisma/language-tools/issues/1198)


Prisma Studio
- [Horizontal scrolling does not work](https://github.com/prisma/studio/issues/992)

Credits

Huge thanks to shian15810, zifeo, lodi-g, Gnucki, apriil15, givensuman, peter-gy for helping!

Prisma Data Platform
We're working on the Prisma Data Platform โ€” a collaborative environment for connecting apps to databases. It includes the:
- **Data Browser** for navigating, editing, and querying data
- **Data Proxy** for persistent, reliable, and scalable connection pooling for your database.
- **Query Console** for experimenting with queries

[Try it out](https://cloud.prisma.io/) and let us know what you think!

๐Ÿ’ผ 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 looking for a [Developer Advocate (Frontend / Fullstack)](https://grnh.se/894b275b2us) and [Back-end Engineer: Prisma Data Platform](https://grnh.se/45afe7982us).

Feel free to read 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"](https://youtu.be/5Su2c3ZLBGs) livestream.

The stream takes place [on YouTube](https://youtu.be/5Su2c3ZLBGs) on **Thursday, August 11** at **5 pm Berlin | 8 am San Francisco**.

4.1.1

Today, we are issuing the `4.1.1` patch release.

Fix in Prisma Studio

- [Fixed a regression in Prisma Studio introduced in 4.1.0, that caused horizontal scrolling to not always work](https://github.com/prisma/studio/issues/992)

4.1.0

๐ŸŒŸ **Help us spread the word about Prisma by starring the repo or [tweeting](https://twitter.com/intent/tweet?text=Check%20out%20the%20latest%20prisma%20release%20v4.1.0%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/prisma/prisma/releases/tag/4.1.0) about the release.** ๐ŸŒŸ

Upgrading to Prisma 4

In case you missed it, we held a [livestream](https://www.youtube.com/watch?v=FSjkBrfaoEY) last week and walked through issues you may run into while upgrading to [Prisma 4](https://github.com/prisma/prisma/releases/tag/4.0.0) and how to fix them!

Major improvements

Ordering by nulls first and last support (Preview)

In this release, we're adding support for choosing how to sort null values in a query.

To get started, enable the `orderByNulls` [Preview](https://www.prisma.io/docs/about/prisma/releases#preview) feature flag in your Prisma schema:

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


Next, run `prisma generate` to re-generate Prisma Client. You will now have new fields you can now use to order null values:

ts
await prisma.post.findMany({
orderBy: {
updatedAt: {
sort: 'asc',
nulls: 'last'
},
},
})


Learn more in [our documentation](https://www.prisma.io/docs/concepts/components/prisma-client/filtering-and-sorting#sort-with-null-records-first-or-last) and don't hesitate to share your feedback in [this issue](https://github.com/prisma/prisma/issues/14377).

Fixed memory leaks and CPU usage in Prisma Client

In this release, we've fixed the following issues experienced when setting up and tearing down Prisma Client while running tests:

1. Prisma Client now correctly releases memory on Prisma Client instances that are no longer being used. Learn more in this [GitHub issue](https://github.com/prisma/prisma/issues/8989)
1. Reduced CPU usage spikes when disconnecting Prisma Client instances while using Prisma Client. You can learn more in this [GitHub issue](https://github.com/prisma/prisma/issues/12516)

These fixes will allow you to run your tests a little faster!

Prisma Studio improvements

We're refining the experience when working with Prisma studio with the following changes:
1. An always visible filter panel and functionality to clear **all** filters at once

![](https://i.imgur.com/QXzdJrZ.png)

2. Improved relationship model view with more visible buttons

![](https://i.imgur.com/MTDWnDK.png)

Let us know what you think, and in the event, you run into any issues, please create a [GitHub issue](https://github.com/prisma/studio/issues)

Fixes and improvements

Prisma

- [Formatter doesn't allow comments on consecutive indices](https://github.com/prisma/prisma/issues/11455)
- [Internal: reformatter is not idempotent](https://github.com/prisma/prisma/issues/12726)
- [`prisma format` strips comments on block level attributes](https://github.com/prisma/prisma/issues/13471)
- [Reformatter crash in relation code](https://github.com/prisma/prisma/issues/13742)
- [Formatter crashes on arbitrary blocks ](https://github.com/prisma/prisma/issues/13992)
- [`prisma --version` crashes if `openssl` isn't properly installed](https://github.com/prisma/prisma/issues/14014)
- [Rename 'getVersion' to 'getEngineVersion' in `prisma/internals`](https://github.com/prisma/prisma/issues/14055)
- [BigInt with a default value cause duplicates in all migrations](https://github.com/prisma/prisma/issues/14063)
- [Formatter: thread 'main' panicked at 'not yet implemented'](https://github.com/prisma/prisma/issues/14090)
- [Mongodb introspection fails with "called `Option::unwrap()` on a `None` value"](https://github.com/prisma/prisma/issues/14135)
- [PSL should support inline `//` comments in the generator and datasource blocks](https://github.com/prisma/prisma/issues/14171)
- [Unable to use native database types with Prisma and CockroachDB](https://github.com/prisma/prisma/issues/14176)


Prisma Client

- [High permanent CPU usage after calling $disconnect on a client that executed an interactive transaction before (v3.9.0+)](https://github.com/prisma/prisma/issues/12516)
- [Slow Tests](https://github.com/prisma/prisma/issues/13092)
- [`prisma generate`: Non-functional debounce mechanism for watch mode](https://github.com/prisma/prisma/issues/13677)
- [Unknown error in SQLite Connector migrating from Prisma 3.x to 4.0.0 on ARM/M1 machines](https://github.com/prisma/prisma/issues/14057)
- [macOS 12 sometimes kills Node.js process when loading the QE library](https://github.com/prisma/prisma/issues/14058)


Prisma Migrate

- [migrate-cli: do not override RUST_LOG from the environment](https://github.com/prisma/prisma/issues/13931)
- [Incorrect migration creates on sql server when index deleted](https://github.com/prisma/prisma/issues/14051)
- [Float cause duplicate alter table in all migrations](https://github.com/prisma/prisma/issues/14052)
- [db error: ERROR: cannot drop view geography_columns because extension postgis requires it](https://github.com/prisma/prisma/issues/14182)




Language tools (e.g. VS Code)

- [Check when `id` is suggested and fix](https://github.com/prisma/language-tools/issues/1084)
- [Implement a code action adding a unique constraint to a relation](https://github.com/prisma/language-tools/issues/1181)
- [Potential pipeline ๐Ÿ”ฅ of language-tools with versioning change of `prisma/engines`](https://github.com/prisma/language-tools/issues/1184)
- [Cannot add comments to my unique constraints](https://github.com/prisma/language-tools/issues/1186)


prisma/engines npm package

- [Share build logic with `prisma/prisma`](https://github.com/prisma/engines-wrapper/issues/225)


Credits

Huge thanks to shian15810, zifeo, lodi-g, Gnucki, apriil15 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 looking for a [Technical Support Engineer](https://grnh.se/ff0d8a702us) and [Back-end Engineer: Prisma Data Platform](https://grnh.se/45afe7982us).

Feel free to read 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"](https://youtu.be/R_nVzarAOUM) livestream.

The stream takes place [on YouTube](https://youtu.be/R_nVzarAOUM) on **Thursday, July 19** at **5 pm Berlin | 8 am San Francisco**.

Page 11 of 44

Links

Releases

Has known vulnerabilities

ยฉ 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.