Skip to content

️ deps: Bump @prisma/client from 3.5.0 to 3.9.0

Yogi Bot requested to merge dependabot-npm_and_yarn-prisma-client-3.9.0 into main

Bumps @prisma/client from 3.5.0 to 3.9.0.

Release notes

Sourced from @​prisma/client's releases.

3.9.0

Today, we are excited to share the 3.9.0 stable release 🎉

🌟 Help us spread the word about Prisma by starring the repo or tweeting about the release. 🌟

Major improvements and new features

Prisma Migrate improvements to troubleshoot migrations

Last year, we released Prisma Migrate for General Availability. Since then, we've gotten feedback from you to understand the challenges you experience building, testing, and deploying migrations.

We're thrilled to announce that we're introducing new CLI commands to improve the experience troubleshooting migrations:

  • prisma migrate diff
  • prisma db execute

The prisma migrate diff command creates a diff of your database schema, Prisma schema file, or the migration history. All you would have to do is feed the command with a schema from state and a schema to state to get an SQL script or human-readable diff in return.

As a companion to the prisma migrate diff, we also built prisma db execute to execute SQL scripts against a database. You can pipe the output from prisma migrate diff directly to prisma db execute.

Both commands are non-interactive, so it's possible to build many new workflows such as forward and backward migrations with some automation tooling.

Both commands are in Preview, and we are looking forward to learning how they work for you and how we could make them better.

You can learn about them here and give us feedback on the issue.

Preview support for CockroachDB

We are excited to announce Preview support for CockroachDB 🎉

CockroachDB is a distributed SQL database that shines in its ability to scale efficiently while maintaining developer agility and reducing operational overhead.

CockroachDB support in Prisma is the product of collaboration with the Cockroach Labs team, and with this release you can use Prisma in existing CockroachDB projects with introspection.

Raw query support for MongoDB

Prisma version 3.9.0 introduces raw queries to the MongoDB (Preview) connector. Raw queries help writing queries that Prisma doesn't support yet, such as:

// To find zero or more documents matching a filter
const result = await prisma.user.findRaw({
  filter: { age: { $gt: 25 } },
  options: { projection: { _id: false } },
})
</tr></table> 

... (truncated)

Commits
  • 197d8ca fix(client): change itx test to use allSettled (#11523)
  • e2a0081 fix(client): rethrow error for tx (#10797)
  • e2c6b94 test(client): add type snap for mongo (#11516)
  • 1b91d78 chore(deps): update engines to 3.9.0-58.bcc2ff906db47790ee902e7bbc76d7ffb1893...
  • 870325a chore(deps): update engines to 3.9.0-57.f4f8863693085a9568927e4ee461cbadac14a...
  • 8096212 chore(deps): update engines to 3.9.0-56.e63514b2b37fdd66c93191c04e38d1e049abe...
  • 6470d6c chore(deps): update engines to 3.9.0-54.9334eadcf42477a37659767696fa661638b56...
  • 56acea6 fix(deps): update dependency mssql to v8 (#11502)
  • 25651cf fix(client): prisma promise for count (#11479)
  • d6e2dbc chore(deps): update engines to 3.9.0-52.965af575d6fda329cab342f8bff0beffc151e...
  • Additional commits viewable in compare view

Merge request reports