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

chore(deps): bump @prisma/client from 4.16.1 to 5.2.0 #91

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 23, 2023

Bumps @prisma/client from 4.16.1 to 5.2.0.

Release notes

Sourced from @​prisma/client's releases.

5.2.0

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

Highlights

Improved Prisma Client experience for Prisma Accelerate and Data Proxy

In this release, we’ve made the following improvements to Prisma Client when using Prisma Accelerate or Prisma Data Proxy:

  • Prisma Client will now automatically determine how it should connect to the database depending on the protocol in the connection string. If the connection string starts with prisma://, Prisma Client will try to connect to your database using Prisma Accelerate or Prisma Data Proxy.

  • Prisma Studio now works with Prisma Data Proxy and Prisma Accelerate.

  • We’ve introduced a new --no-engine flag which will prevent a Query Engine file from being included in the generated Prisma Client. This flag will also help ensure the bundle size of your application remains small by excluding the Query Engine files from the generated Prisma Client.

    prisma generate --no-engine

    The --data-proxy and --accelerate flags have not been removed but are now aliases for the new --no-engine flag.

    We recommend using the --no-engine flag when generating Prisma Client that uses either Accelerate or Data Proxy.

Simplified connection string override in Prisma Client

This release simplifies the API used when programmatically overriding the connection string by introducing the datasourceUrl property in Prisma Client’s constructor. This means you do not have to use the datasource name defined in your Prisma schema.

const prisma = new PrismaClient({
  datasourceUrl: "postgresql://johndoe:randompassword@localhost:5432/mydb",
})

Query performance improvements

Continuing our work from 5.1.0 we made further performance improvements around the queries Prisma executes, targeting one-to-many relation fields and nested updates.

Use LIMIT in one-to-many relations on a single parent

In cases where there is a single parent with a one-to-many relation included (findFirst, findUnique, findMany({ take: 1 })), we now utilize LIMIT at the database level to restrict the number of related items returned instead of retrieving all related items into memory and performing a take in memory.

For situations where you have many related objects but only need a few, you should see a dramatic improvement in speed and memory usage.

Note: we are still working on bringing this improvement to other parts of Prisma Client in upcoming releases. If multiple parent records are returned, the previous behavior is used.

Further improvements for nested writes

Thanks to our introduction of using RETURNING in some cases in 5.1.0, we could now improve performance in nested writes by removing reload nodes. This will now result in one less query per relation traversed in a nested write. For more info, check out the pull request.

Prisma Client query

... (truncated)

Commits
  • 25258e0 chore(deps): update engines to 5.3.0-1.98bd6d18365f86d632686c26d1b26d8e054c67...
  • 509014b fix(client): error for missing env on cloudflare (#20782)
  • a7e4353 test(cli): studio via mini-proxy (#20781)
  • e3ecd91 fix(client): use Proxy for "browser" import (#20683)
  • 02164a6 chore(deps): update engines to 5.2.0-25.2804dc98259d2ea960602aca6b8e7fdc03c17...
  • 0e7a144 fix(client): improve edge env var errors (#20734)
  • 01d6118 fix(client): Add missing aliases for legacy args names (#20726)
  • 41e09d4 feat(client): Add shortuct for overriding single datasource URL (#20740)
  • 9ff064e chore(deps): update engines to 5.2.0-24.0bc8ee687eb17771fa7ca5167bcad38f8f2d0...
  • e77d823 fix(client): error when accelerate is used with metrics (#20732)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@prisma/client](https://github.com/prisma/prisma/tree/HEAD/packages/client) from 4.16.1 to 5.2.0.
- [Release notes](https://github.com/prisma/prisma/releases)
- [Commits](https://github.com/prisma/prisma/commits/5.2.0/packages/client)

---
updated-dependencies:
- dependency-name: "@prisma/client"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot requested a review from supalarry as a code owner August 23, 2023 09:28
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Aug 23, 2023
@supalarry
Copy link
Contributor

@gerpetto this

Bumps [semver](https://github.com/npm/node-semver) from 7.5.3 to 7.5.4.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md)
- [Commits](npm/node-semver@v7.5.3...v7.5.4)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@adaptly-bot
Copy link

⚠️  @prisma/client

 Breaking changes
1: Removal of rejectOnNotFound property

The rejectOnNotFound parameter was removed from Prisma Client. It was deprecated in version 4.0.0. To adapt your application, replace your queries with the findFirstOrThrow or findUniqueOrThrow methods if enabled at a query-level, or use a Prisma Client extension to overload the findFirstOrThrow and findUniqueOrThrow model methods with your custom error handling if enabled at the client-level.

2: Removal of some array shortcuts

Some array shortcuts were removed to make typings more consistent and logical. Array values are now required for the OR operator shortcuts, in and notIn operator shortcuts, PostgreSQL JSON path field shortcut, scalar list shortcuts, and MongoDB Composite types list shortcuts. Update your queries to use array values for these shortcuts.

3: cockroachdb provider is now required when connecting to a CockroachDB database

Explicit support for CockroachDB with the cockroachdb provider is now required when working with CockroachDB databases. If you were using the PostgreSQL provider to work with CockroachDB, update your connector.

4: Removal of runtime/index.js from the generated Prisma Client

The runtime/index.js file was removed from Prisma Client. If you were using APIs from runtime/index.js, such as Decimal, PrismaClientKnownRequestError, NotFoundError, PrismaClientUnknownRequestError, update your imports to use Prisma.Decimal.

5: Removal of the beforeExit hook from the library engine

The beforeExit hook was removed from the default library engine. Use the built-in Node.js exit events instead.

6: Removal of deprecated prisma2 executable

The prisma2 executable has been deprecated and will be removed. Replace prisma2 with prisma in your scripts.

7: Removal of deprecated flags in the Prisma CLI

The following deprecated flags were removed from the Prisma CLI: --preview-feature, --experimental, --early-access-feature, --force, --experimental-reintrospection, --clean. Remove these flags from your commands.

8: Removal of deprecated experimentalFeatures generator property

The experimentalFeatures property in the generator property of the Prisma schema was removed. It has been renamed to previewFeatures. Manually rename the property to previewFeatures or use the VS Code action to rename it.

9: Renamed migration-engine to schema-engine

The migration-engine was renamed to schema-engine. Update your code references if you explicitly include or exclude the engine files.

✅  semver 

No breaking changes found in dependency changelogs.

👤 Who am I? I am a bot that helps developers to update dependencies by informing if changelogs contain breaking changes or not.

👋 See you again? If you want my help with other dependency updates, add me to your repository.

PS. I hope I didn't bother you - my purpose is to help developers and I won't comment anymore without your request. Feel free to shoot me a message about anything support@adaptly.dev. Cheers.

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 13, 2023

A newer version of @​prisma/client exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants