You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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)
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)
Breaking changes1: 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 [email protected]. Cheers.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependenciesPull requests that update a dependency file
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps @prisma/client from 4.16.1 to 5.2.0.
Release notes
Sourced from
@prisma/client's releases.... (truncated)
Commits
25258e0chore(deps): update engines to 5.3.0-1.98bd6d18365f86d632686c26d1b26d8e054c67...509014bfix(client): error for missing env on cloudflare (#20782)a7e4353test(cli): studio via mini-proxy (#20781)e3ecd91fix(client): use Proxy for "browser" import (#20683)02164a6chore(deps): update engines to 5.2.0-25.2804dc98259d2ea960602aca6b8e7fdc03c17...0e7a144fix(client): improve edge env var errors (#20734)01d6118fix(client): Add missing aliases for legacy args names (#20726)41e09d4feat(client): Add shortuct for overriding single datasource URL (#20740)9ff064echore(deps): update engines to 5.2.0-24.0bc8ee687eb17771fa7ca5167bcad38f8f2d0...e77d823fix(client): error when accelerate is used with metrics (#20732)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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)