Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade prisma from 3.8.1 to 3.9.0 #36

Open
wants to merge 1 commit into
base: prisma
Choose a base branch
from

Conversation

snyk-bot
Copy link

Snyk has created this PR to upgrade prisma from 3.8.1 to 3.9.0.

merge advice
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 84 versions ahead of your current version.
  • The recommended version was released 21 days ago, on 2022-02-01.
Release notes
Package name: prisma
  • 3.9.0 - 2022-02-01

    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 } },
    })

    // To perform aggregation operations on a collection
    await prisma.user.aggregateRaw({
    pipeline: [
    { $match: { status: 'registered' } },
    { $group: { _id: '$country', total: { $sum: 1 } } },
    ],
    })

    // To run a command against the database
    await prisma.$runCommandRaw({
    aggregate: 'User',
    pipeline: [
    { $match: { name: 'Bob' } },
    { $project: { email: true, _id: false } },
    ],
    explain: false,
    })

    The raw query API for MongoDB differs from Prisma's $queryRaw SQL API to handle some low-level differences between databases to give you a better API and developer experience.

    Learn more about Prisma's new raw query API and how you can use it in our documentation.

    Concurrency issues with Interactive Transactions

    In 3.9.0, we fixed a number of issues around timeouts and rollbacks when there were concurrent reads and writes.

    This is part of the Interactive Transactions preview release, so you'll need to enable the interactiveTransactions preview feature to enable this feature.

    If you experienced timeouts or your interactive transactions weren't working quite as you expected, now's the time to upgrade and give it another go!

    Learn more about Interactive Transactions in our documentation.

    Fixes and improvements

    Prisma Client

    Prisma Migrate

    Prisma Studio

    Prisma Engines

    Credits

    Huge thanks to @ dusandz, @ hyochan, @ cesconix, @ benkroeger, @ YassinEldeeb, @ chenkie, @ Akxe, @ safareli for helping!

    Change in release cadence

    We're making a slight change to our release cadence to every 3 weeks from every 2 weeks.

    📺 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, February 03 at 5 pm Berlin | 8 am San Francisco.

  • 3.9.0-integration-migrate-diff.2 - 2022-01-27
  • 3.9.0-integration-migrate-diff.1 - 2022-01-27
  • 3.9.0-integration-feat-tracing.4 - 2022-01-26
  • 3.9.0-integration-feat-tracing.3 - 2022-01-26
  • 3.9.0-integration-feat-tracing.2 - 2022-01-14
  • 3.9.0-integration-feat-tracing.1 - 2022-01-14
  • 3.9.0-integration-cli-db-execute.10 - 2022-01-27
  • 3.9.0-integration-cli-db-execute.9 - 2022-01-26
  • 3.9.0-integration-cli-db-execute.8 - 2022-01-26
  • 3.9.0-integration-cli-db-execute.7 - 2022-01-26
  • 3.9.0-integration-cli-db-execute.6 - 2022-01-26
  • 3.9.0-integration-cli-db-execute.5 - 2022-01-25
  • 3.9.0-integration-cli-db-execute.4 - 2022-01-25
  • 3.9.0-integration-cli-db-execute.3 - 2022-01-25
  • 3.9.0-integration-cli-db-execute.2 - 2022-01-25
  • 3.9.0-integration-cli-db-execute.1 - 2022-01-25
  • 3.9.0-dev.67 - 2022-02-01
  • 3.9.0-dev.66 - 2022-02-01
  • 3.9.0-dev.65 - 2022-02-01
  • 3.9.0-dev.64 - 2022-02-01
  • 3.9.0-dev.63 - 2022-01-31
  • 3.9.0-dev.62 - 2022-01-31
  • 3.9.0-dev.61 - 2022-01-31
  • 3.9.0-dev.60 - 2022-01-31
  • 3.9.0-dev.59 - 2022-01-31
  • 3.9.0-dev.58 - 2022-01-31
  • 3.9.0-dev.57 - 2022-01-31
  • 3.9.0-dev.56 - 2022-01-31
  • 3.9.0-dev.55 - 2022-01-31
  • 3.9.0-dev.54 - 2022-01-31
  • 3.9.0-dev.53 - 2022-01-28
  • 3.9.0-dev.52 - 2022-01-28
  • 3.9.0-dev.51 - 2022-01-28
  • 3.9.0-dev.50 - 2022-01-27
  • 3.9.0-dev.49 - 2022-01-27
  • 3.9.0-dev.48 - 2022-01-27
  • 3.9.0-dev.47 - 2022-01-26
  • 3.9.0-dev.46 - 2022-01-26
  • 3.9.0-dev.45 - 2022-01-26
  • 3.9.0-dev.44 - 2022-01-26
  • 3.9.0-dev.43 - 2022-01-26
  • 3.9.0-dev.42 - 2022-01-26
  • 3.9.0-dev.41 - 2022-01-26
  • 3.9.0-dev.40 - 2022-01-26
  • 3.9.0-dev.39 - 2022-01-24
  • 3.9.0-dev.38 - 2022-01-24
  • 3.9.0-dev.37 - 2022-01-24
  • 3.9.0-dev.36 - 2022-01-24
  • 3.9.0-dev.35 - 2022-01-24
  • 3.9.0-dev.34 - 2022-01-24
  • 3.9.0-dev.33 - 2022-01-21
  • 3.9.0-dev.32 - 2022-01-21
  • 3.9.0-dev.31 - 2022-01-21
  • 3.9.0-dev.30 - 2022-01-21
  • 3.9.0-dev.29 - 2022-01-21
  • 3.9.0-dev.28 - 2022-01-20
  • 3.9.0-dev.27 - 2022-01-20
  • 3.9.0-dev.26 - 2022-01-20
  • 3.9.0-dev.25 - 2022-01-20
  • 3.9.0-dev.24 - 2022-01-19
  • 3.9.0-dev.23 - 2022-01-19
  • 3.9.0-dev.22 - 2022-01-19
  • 3.9.0-dev.21 - 2022-01-19
  • 3.9.0-dev.20 - 2022-01-19
  • 3.9.0-dev.19 - 2022-01-19
  • 3.9.0-dev.18 - 2022-01-19
  • 3.9.0-dev.17 - 2022-01-19
  • 3.9.0-dev.16 - 2022-01-19
  • 3.9.0-dev.15 - 2022-01-14
  • 3.9.0-dev.14 - 2022-01-14
  • 3.9.0-dev.13 - 2022-01-14
  • 3.9.0-dev.12 - 2022-01-14
  • 3.9.0-dev.11 - 2022-01-14
  • 3.9.0-dev.10 - 2022-01-12
  • 3.9.0-dev.9 - 2022-01-12
  • 3.9.0-dev.8 - 2022-01-12
  • 3.9.0-dev.7 - 2022-01-12
  • 3.9.0-dev.6 - 2022-01-12
  • 3.9.0-dev.5 - 2022-01-12
  • 3.9.0-dev.4 - 2022-01-12
  • 3.9.0-dev.3 - 2022-01-12
  • 3.9.0-dev.2 - 2022-01-11
  • 3.9.0-dev.1 - 2022-01-11
  • 3.8.1 - 2022-01-14

    Today, we are issuing the 3.8.1 patch release.

    Fixes

from prisma GitHub release notes

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant