origranot / reduced.to

Free Modern URL Reducer. Make sure to share love by giving it a star.🌟 Have a great day!
https://reduced.to
MIT License
661 stars 279 forks source link

[Snyk] Upgrade @prisma/client from 5.16.0 to 5.16.1 #822

Closed origranot closed 1 month ago

origranot commented 1 month ago

This PR was automatically created by Snyk using the credentials of a real user.


![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)

Snyk has created this PR to upgrade @prisma/client from 5.16.0 to 5.16.1.

:information_source: 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 **2 versions** ahead of your current version. - The recommended version was released on **21 days ago**.
Release notes
Package name: @prisma/client
  • 5.16.1 - 2024-06-27

    Today, we are issuing the 5.16.1 patch release to fix an issue in Prisma client.

    Fix in Prisma Client

      </li>
      <li>
        <b>5.16.1-dev.1</b> - 2024-06-27
      </li>
      <li>
        <b>5.16.0</b> - <a href="https://github.com/prisma/prisma/releases/tag/5.16.0">2024-06-25</a></br><p>🌟 <strong>Help us spread the word about Prisma by starring the repo or <a href="https://twitter.com/intent/tweet?text=Check%20out%20the%20latest%20@ prisma%20release%20v5.16.0%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/prisma/prisma/releases/tag/5.16.0" rel="nofollow">tweeting</a> about the release.</strong> 🌟</p>

    Highlights

    Omit model fields globally

    With Prisma ORM 5.16.0 we’re more than happy to announce that we’re expanding the omitApi Preview feature to also include the ability to omit fields globally.

    When the Preview feature is enabled, you’re able to define fields to omit when instantiating Prisma Client.

    const prisma = new PrismaClient({
    omit: {
    user: {
    // make sure that password is never queried.
    password: true,
    },
    },
    });

    You’re also able to omit fields from multiple models and multiple fields from the same model

    const prisma = new PrismaClient({
    omit: {
    user: {
    // make sure that password and internalId are never queried.
    password: true,
    internalId: true,
    },
    post: {
    secretkey: true,
    },
    },
    });

    With both local and global omit, you now have the flexibility to completely remove sensitive fields while also tailoring individual queries. If you need the ability to generally omit a field except in a specific query, you can also overwrite a global omit locally

    <div class="highlight highlight-source-tsx notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const prisma = new PrismaClient({ omit: { user: { // password is omitted globally. password: true, }, }, });

    const userWithPassword = await prisma.user.findUnique({ omit: { password: false }, // omit now false, so password is returned where: { id: 1 }, });">

    const prisma = new PrismaClient({
    omit: {
    user: {
    // password is omitted globally.
    password: true,
    },
    },
    });

    const userWithPassword = await prisma.user.findUnique({ omit: { password: false }, // omit now false, so password is returned where: { id: 1 }, });

Changes to prismaSchemaFolder

In 5.15.0 we released the prismaSchemaFolder Preview feature, allowing you to create multiple Prisma Schema files in a prisma/schema directory. We’ve gotten a lot of great feedback and are really excited with how the community has been using the feature.

To continue improving our multi-file schema support, we have a few breaking changes to the prismaSchemaFolder feature:

Changes to fullTextSearch

In order to improve our full-text search implementation we have made a breaking change to the fullTextSearch Preview feature.

Previously, when the feature was enabled we updated the <Model>OrderByWithRelationInput TypeScript type with the <Model>OrderByWithRelationAndSearchRelevanceInput type. However, we have noted that there are no cases where relational ordering is needed but search relevance is not. Thus, we have decided to remove the <Model>OrderByWithRelationAndSearchRelevanceInput naming and only use the <Model>OrderByWithRelationInput naming.

Fixes and improvements

Prisma

Language tools (e.g. VS Code)

Prisma Engines

Credits

Huge thanks to @ key-moon, @ pranayat, @ yubrot, @ skyzh, @ brian-dlee, @ mydea, @ nickcarnival, @ eruditmorina, @ nzakas, @ gutyerrez, @ avallete, @ ceddy4395, @ Kayoshi-dev, @ yehonatanz for helping!

  </li>
</ul>
from <a href="https://github.com/prisma/prisma/releases">@prisma/client GitHub release notes</a>


[!IMPORTANT]


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:

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
reduced-to ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 19, 2024 4:27pm