Skip to content
This repository was archived by the owner on Apr 19, 2023. It is now read-only.

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 21, 2021

Bumps @prisma/client from 2.14.0 to 3.1.1.

Release notes

Sourced from @​prisma/client's releases.

3.1.1

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

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

Major improvements

Referential Integrity is in Preview 🚀

Relational databases typically ensure integrity between relations with foreign key constraints, for example, given a 1:n relation between User:Post, you can configure the deletion of a user to cascade to posts so that no posts are left pointing to a User that doesn't exist. In Prisma, these constraints are defined in the Prisma schema with the @relation() attribute.

However, databases like PlanetScale do not support defining foreign keys. To work around this limitation so that you can use Prisma with PlanetScale, we're introducing a new referentialIntegrity setting in Preview.

This was initially introduced in version 2.24.0 of Prisma with the planetScaleMode preview feature and setting. Starting with this release both have been renamed to referentialIntegrity.

The setting lets you control whether referential integrity is enforced by the database with foreign keys (default), or by Prisma, by setting referentialIntegrity = "prisma".

Setting Referential Integrity to prisma has the following implications:

  • Prisma Migrate will generate SQL migrations without any foreign key constraints.
  • Prisma Client will emulate foreign key constraints and referential actions on a best-effort basis.

You can give it a try in version 3.1.1 by enabling the referentialIntegrity preview flag:

datasource db {
  provider             = "mysql"
  url                  = env("DATABASE_URL")
  referentialIntegrity = "prisma"
}
generator client {
provider        = "prisma-client-js"
previewFeatures = ["referentialIntegrity"]
}

Note that this feature is not applicable to MongoDB.

Learn more about it in our documentation.

Full-Text Search for the Go Client

In an earlier release, we added Full-Text Search (for PostgreSQL) to the Typescript Client. This was released as a Preview feature.

In this release, we've added that Preview feature to the Go Client. Enable it in your Go project by adding the fullTextSearch preview feature.

Here's an example:

</tr></table> 

... (truncated)

Commits
  • 66e6e36 chore(deps): Revert update dependency @​prisma/studio-server to v0.426.0 (#9357)
  • fd104cf chore: binaryVersion => engineVersion, Binary => Engine (#9300)
  • 4078eb3 chore: fix publish on patch if minor = 0 (#9189)
  • d75d71e chore(deps): update dependency @​prisma/studio-server to v0.426.0 (#9244)
  • a74d776 chore: remove fixed versions of engine hashes for generator (#9339)
  • eb4563a chore(deps): update engines to 3.1.0-24.c22652b7e418506fab23052d569b85d3aec48...
  • cd6cfdb chore(deps): update engines to 3.1.0-23.64be1d8bfc2cdbb7d569a6641f0058f655358...
  • 3983485 fix: emitted patterns for engine resolution (#9295)
  • 7f96178 chore(deps): update engines to 3.1.0-22.2daba733fb04a6cf0657504f914eb07696b18...
  • 5e08d19 chore(deps): update engines to 3.1.0-19.f9692989db71e6ca83d0b3631f1df6a82e443...
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by prismabot, a new releaser for @​prisma/client since your current version.


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 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) from 2.14.0 to 3.1.1.
- [Release notes](https://github.com/prisma/prisma/releases)
- [Changelog](https://github.com/prisma/prisma/blob/main/docs/releases.md)
- [Commits](prisma/prisma@2.14.0...3.1.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Sep 21, 2021
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Oct 6, 2021

Superseded by #1845.

@dependabot dependabot bot closed this Oct 6, 2021
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/prisma/client-3.1.1 branch October 6, 2021 21:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants