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

⬆️ Bump @prisma/client from 2.14.0 to 2.27.0#1818

Closed
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/npm_and_yarn/prisma/client-2.27.0
Closed

⬆️ Bump @prisma/client from 2.14.0 to 2.27.0#1818
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/npm_and_yarn/prisma/client-2.27.0

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 14, 2021

Bumps @prisma/client from 2.14.0 to 2.27.0.

Release notes

Sourced from @​prisma/client's releases.

2.27.0

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

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

Major improvements & new features

MongoDB is Now in Preview 🎉

We're thrilled to announce that Prisma now has Preview support for MongoDB. Here's how to get started:

Inside your schema.prisma file, you'll need to set the database provider to mongodb. You'll also need to add mongoDb to the previewFeatures property in the generator block:

// Set the database provider to "mongodb"
datasource db {
  provider = "mongodb"
  url      = env("DATABASE_URL")
}
// We want to generate a Prisma Client
// Since mongodb is a preview feature, we need to enable it.
generator client {
provider        = "prisma-client-js"
previewFeatures = ["mongoDb"]
}
// Create our Post model which will be mapped to a collection in the database.
// All posts have a required title, slug and body fields.
// The id attributes tell Prisma it's a primary key and to generate
// object ids by default when inserting posts.
model Post {
id    String @​id @​default(dbgenerated()) @​map("_id") @​db.ObjectId
slug  String @​unique
title String
body  String
}

Next, you'll need to add a database connection string to your .env file. We recommend using MongoDB Atlas to spin up a MongoDB database for free. Set the DATABASE_URL to the connection string you got from MongoDB Atlas, it should be similar to the following string:

DATABASE_URL="mongodb+srv://admin:<password>@cluster0.quvqo.mongodb.net/myFirstDatabase?retryWrites=true&w=majority"

❗️ Don't forget to include the username and password you set while creating the database in the connection string, otherwise you won't be able to connect to it.

Then you can run npx prisma generate to generate a MongoDB-compatible Prisma Client. The Prisma Client API is the same for Mongo as it is for other supported relational databases (PostgreSQL, MySQL, SQLite and Microsoft SQL Server).

To test that everything works, you can run the following script:

... (truncated)

Commits
  • 4345a7a fix(init): mongoDb fixes for prisma init (#8233)
  • 7407495 tests(exit-hook): Make exit-hook test a bit clearer (#8213)
  • 6986e7a fix(init): support SqlServer and MongoDB Preview with flag (#8195)
  • c0c04dd fix(init): Better error message on existing env var in .env (#7719)
  • 6475206 ci: add new kind labels to stale action exclusion list (#8227)
  • e0b009f fix(deps): update engines to 2.27.0-43.cdba6ec525e0213cce26f8e4bb23cf556d1479...
  • 00f9d3c fix(deps): update engines to v2.27.0-43.cdba6ec525e0213cce26f8e4bb23cf556d1479bb
  • 88aea01 fix(deps): update engines to 2.27.0-42.8d5fae9e9f94c60926420216a4ca9c400c3d29...
  • c26bdc3 fix(deps): update engines to 2.27.0-41.31f4bffe57224fca3374b36d780a071905ddf0...
  • b874b16 chore(deps): pin dependency @​types/resolve to 1.20.1 (#8169)
  • 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 2.27.0.
- [Release notes](https://github.com/prisma/prisma/releases)
- [Changelog](https://github.com/prisma/prisma/blob/master/docs/releases.md)
- [Commits](prisma/prisma@2.14.0...2.27.0)

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

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 Jul 14, 2021
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Jul 27, 2021

Superseded by #1820.

@dependabot dependabot bot closed this Jul 27, 2021
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/prisma/client-2.27.0 branch July 27, 2021 21:42
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