vegardit / prisma-generator-nestjs-dto

Generates NestJS DTO classes from Prisma Schema
Apache License 2.0
268 stars 73 forks source link

Bump @prisma/generator-helper from 3.15.2 to 5.12.0 #267

Closed dependabot[bot] closed 3 months ago

dependabot[bot] commented 3 months ago

Bumps @prisma/generator-helper from 3.15.2 to 5.12.0.

Release notes

Sourced from @​prisma/generator-helper's releases.

5.12.0

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

🌟 Help us spread the word about Prisma by starring the repo or posting on X about the release.

Highlights

Cloudflare D1 (Preview)

This release brings Preview support for Cloudflare D1 with Prisma ORM 🥳

D1 is Cloudflare’s SQLite database that can be used when deploying applications with Cloudflare.

When using Prisma ORM with D1, you can continue to: model your database with Prisma schema language, specify sqlite as your database provider in your Prisma schema, and interact with your database using Prisma Client.

To use Prisma ORM and D1 on Cloudflare Workers or Cloudflare Pages, you need to set sqlite as your database provider and use the @prisma/adapter-d1 database adapter via the driverAdapters Preview feature, released back in version 5.4.0.

Here is an example of sending a query to your D1 database using Prisma Client in your Worker:

// src/index.ts file
import { PrismaClient } from '@prisma/client'
import { PrismaD1 } from '@prisma/adapter-d1'

// Add the D1Database to the Env interface export interface Env { // This must match the binding name defined in your wrangler.toml configuration DB: D1Database }

export default { async fetch( request: Request, env: Env, ctx: ExecutionContext ): Promise<Response> { // Make sure the database name matches the binding name in wrangler.toml and Env interface const adapter = new PrismaD1(env.DB) // Instantiate PrismaClient using the PrismaD1 driver adapter const prisma = new PrismaClient({ adapter })

const users = await prisma.user.findMany()
const result = JSON.stringify(users)
return new Response(result)

}, }

📚 Documentation: Deploying a Cloudflare worker with D1 and Prisma ORM

... (truncated)

Commits
  • b6efac2 chore(deps): update definitelytyped (#23550)
  • 2e03068 fix: change type generator.config.output to never as it is a dedicated fiel...
  • 2129a5b chore(deps): update definitelytyped (#23463)
  • 7b0dd40 chore(deps): update devdependencies patch (non-major) (#23465)
  • 7563f2b chore(deps): update devdependencies patch (non-major) (#23375)
  • 5d683bf chore(deps): update dependency @​swc-node/register to v1.9.0 (#23354)
  • 4cd66c6 chore(deps): update definitelytyped (#23304)
  • 5246dd9 chore(deps): update devdependencies patch (non-major) (#23216)
  • 5e2838a chore(deps): update dependency esbuild to v0.20.1 (#23214)
  • 19511a5 chore(deps): update definitelytyped (#23155)
  • Additional commits viewable in compare view


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 show ignore conditions` will show all of the ignore conditions of the specified dependency - `@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)
dependabot[bot] commented 3 months ago

Superseded by #271.