build(deps-dev): bump prisma from 4.12.0 to 4.15.0
Created by: dependabot[bot]
Bumps prisma from 4.12.0 to 4.15.0.
Release notes
Sourced from prisma's releases.
4.15.0
🌟 Help us spread the word about Prisma by starring the repo or tweeting about the release.🌟 Highlights
For this release, we focused on fixing bugs and making smaller quality-of-life improvements.
Support for custom arguments for
prisma db seed
This release adds support for defining and passing arbitrary arguments to
prisma db seed
. This creates the opportunity for you to define your own arguments in your seed file that you could pass to theprisma db seed
command. A few example use-cases include, but are not limited to:
- Seeding different data in different environments
- Partially seeding data in some tables
Here is an example
seed.ts
file that defines custom arguments for seeding different data in different environments:// prisma/seed.ts import { parseArgs } from "node:util"; const options = { environment: { type: 'string', }, } async function main() { const { values: { environment } } = parseArgs({ options }) switch (environment) { case "development": /** do something for development / break; case "test": /* do something for test environment */ break; default: break; } } main()
You can then provide the
environment
argument when executing the seed script as follows:npx prisma db seed -- --environment development
Let us know what you think, share example usage of this feature, and create a bug report if you run into any issues.
... (truncated)
Commits
-
4646315
chore: update readme (#19484) -
aa527d1
fix(generator-helper): continuously handle generator errors (#19385) -
28149a2
fix(deps): update definitelytyped (#19412) -
91c0cc7
fix(deps): update dependency ts-pattern to v4.3.0 (#19293) -
a80825b
fix(deps): update dependency node-fetch to v2.6.11 (#19046) -
72fc580
refactor(cli): better type and error for tryToReadDataFromSchema (#18992) -
ba05696
fix(generator-helper): Fix DMMF field dbName name and type (#18694) -
9f02f22
chore(deps): update jest (#18250) -
e413a29
ci: replace jest --verbose logging by --silent (#19017) -
cec59d3
refactor: remove some promisify to fs.promises (#18990) - 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 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)