home-panel
home-panel copied to clipboard
Bump prisma from 5.12.1 to 6.5.0
Bumps prisma from 5.12.1 to 6.5.0.
Release notes
Sourced from prisma's releases.
6.5.0
Today, we are excited to share the
6.5.0stable release 🎉🌟 Help us spread the word about Prisma by starring the repo ☝️ or tweeting about the release. 🌟
Highlights
Databases can only be reset manually and explicitly
In previous versions, if Prisma ORM determined that a
migratecommand could not be applied cleanly to the underlying database, you would get a message like this one:? We need to reset the "public" schema at "db.url.com:5432" Do you want to continue? All data will be lost. (y/N)While "no" was the default, we've determined that having this prompt in the first place was a mistake. In this version we're removing the prompt entirely and instead exiting with an appropriate error message.
To get the previous behavior, you will need to run
prisma migrate resetdirectly.Support for
prisma.config.tsin Prisma StudioWe've expanded support for our
prisma.config.tsfile to include Prisma Studio!To use the new config file, including the ability to connect to driver adapter enabled databases with Prisma Studio, add a
studioblock to yourprisma.config.tsfile:import path from 'node:path' import type { PrismaConfig } from 'prisma' import { PrismaLibSQL } from '@prisma/adapter-libsql' import { createClient } from '@libsql/client'export default {
earlyAccess: true,
schema: {
kind: 'single',
filePath: './prisma/schema.prisma',
},
studio: {
adapter: async (env: unknown) => {
const connectionString = `file:./dev.db'
const libsql = createClient({
url: connectionString,
})
return new PrismaLibSQL(libsql)
},
},
} satisfies PrismaConfig
... (truncated)
Commits
5e5a2b8chore(deps-dev): bump rimraf from 3.0.2 to 6.0.1 (#26522)4bb2040chore(deps-dev): bump@inquirer/promptsfrom 7.3.2 to 7.3.3 (#26563)13d2709fix: export index.js for compatibility (#26536)e3fd10dfeat(cli): defineprisma.config.tswithout requiring@prisma/config(#26483)ddd5f7bfix(cli): init url showing unnecessary step (#26511)9a4dba7chore(deps-dev): bump@inquirer/promptsfrom 5.0.5 to 7.3.2 (#26479)f0a2f8fchore(depsDev): replace unmaintained eslint plugins (#25058)b737ccechore(deps-dev): bump@swc/corefrom 1.2.204 to 1.11.5 (#26471)f1ef568chore(deps): bump fs-extra and@types/fs-extra(#26457)87e8507feat(studio): ORM-578 enable use of driver adapters in prisma studio (#26329)- Additional commits viewable in compare view
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)