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

Update prisma monorepo to v3.8.1 #4152

Merged
merged 1 commit into from
Jan 14, 2022
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 14, 2022

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@prisma/client (source) 3.7.0 -> 3.8.1 age adoption passing confidence
@prisma/sdk (source) 3.7.0 -> 3.8.1 age adoption passing confidence
prisma (source) 3.7.0 -> 3.8.1 age adoption passing confidence

Release Notes

prisma/prisma

v3.8.1

Compare Source

Today, we are issuing the 3.8.1 patch release.

Fixes

v3.8.0

Compare Source

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

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

Major improvements and new features

Full-text search support for MySQL is now in Preview 🚀

We're back from the holidays with a special treat for you.

Prisma now supports full-text search in MySQL. You can enable full-text support by adding the fullTextIndex and fullTextSearch Preview flags in your Prisma schema and defining @@​fulltext() indexes on fields you'd like to use full-text search on.

generator client {
  provider        = "prisma-client-js"
  previewFeatures = ["fullTextIndex", "fullTextSearch"]
}

datasource db {
  provider = "mysql"
  url      = env("DATABASE_URL")
}

model Post {
  id     Int    @​id @​default(autoincrement())
  title  String @​unique
  @​@​fulltext([title])
}

Run prisma db push or prisma migrate dev to update your database schema. Prisma Client will also be re-generated, enabling you to use full-text search in your application.

// search for titles that contain cat, but not fox
await prisma.post.findMany({
  where: {
    title: {
      search: "+cat -fox",
    },
  },
})

Learn more in our documentation.

dataProxy and interactiveTransactions Preview Features are now mutually exclusive

Before Prisma 3.8.0, Prisma $transaction queries would fail whenever the Data Proxy and Interactive Transactions Preview features were used together. The interactiveTransactions and dataProxy Preview flags cannot be used together in this release. Generating the Prisma Client when both Preview features are enabled will throw an error.

Fixed support for push when adding an element to an array in MongoDB

In 3.8.0, we fixed push support for ObjectIds on MongoDB.

Given the following schema:

model Course {
  id          String   @​id @​default(dbgenerated()) @​map("_id") @​db.ObjectId
  title       String
  students    String[] @​db.Array(ObjectId)
}

You can now run the following query:

// Add a new student to the course
await prisma.course.update({
  where: {
    id: 1
  },
  data: {
    students: {
      push: new ObjectID("...")
    }
  }
})

A special thanks to Anthony Luzquiños for raising this issue!

Fixes and improvements

Prisma Migrate
Prisma Client
Language tools (e.g. VS Code)
Prisma Studio

Credits

Huge thanks to @​hyochan, @​cesconix for helping!

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


Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate renovate bot added the release:chore This PR is a chore (means nothing for users) label Jan 14, 2022
@thedavidprice thedavidprice merged commit 2e23424 into main Jan 14, 2022
@thedavidprice thedavidprice deleted the renovate/prisma-monorepo branch January 14, 2022 16:58
@redwoodjs-bot redwoodjs-bot bot added this to the next-release milestone Jan 14, 2022
dac09 added a commit to dac09/redwood that referenced this pull request Jan 17, 2022
…ize-jest-config

* 'main' of github.com:redwoodjs/redwood: (32 commits)
  Update dependency eslint to v8.7.0 (redwoodjs#4168)
  remove projects beta automation (redwoodjs#4171)
  Update dependency core-js to v3.20.3 (redwoodjs#4162)
  Don't mask GraphQL errors when you're in the dev environment (redwoodjs#4166)
  Update storybook monorepo to v6.4.13 (redwoodjs#4160)
  Fix: Run web tests in parallel (redwoodjs#4024)
  Update Issue and PR templates with v1-rc status (redwoodjs#4155)
  Update dependency fast-glob to v3.2.11 (redwoodjs#4158)
  Update dependency @auth0/auth0-spa-js to v1.19.4 (redwoodjs#4153)
  Update dependency react-hook-form to v7.24.0 (redwoodjs#4149)
  Update dependency @clerk/clerk-sdk-node to v2.6.1 (redwoodjs#4151)
  Update prisma monorepo to v3.8.1 (redwoodjs#4152)
  Update e2e.yaml
  Update dependency firebase to v9.6.3 (redwoodjs#4148)
  chore(setup-deploy): refactor setup deploy (redwoodjs#4065)
  Update dependency mini-css-extract-plugin to v2.4.7 (redwoodjs#4142)
  test project install autoprefixer@^9.8.8 (redwoodjs#4143)
  Update dependency @graphql-codegen/typescript-react-apollo to v3.2.4 (redwoodjs#4137)
  Render all MetaTag tags within a `<Head>` element (redwoodjs#4128)
  fix: running tests with mysql datasource (redwoodjs#4084)
  ...
@thedavidprice thedavidprice modified the milestones: next-release, v0.42.0 Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:chore This PR is a chore (means nothing for users)
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants