Hey <!everyone> :v: :prisma-cool: We just release...
# prisma-whats-new
a
Hey <!everyone> โœŒ๏ธ prisma cool We just released Prisma
3.15.0
prisma rainbow ๐Ÿ”ฎ Improvements to Prisma Client for Data Proxy The Prisma Data Proxy provides connection management and pooling for database connections for efficiently scaling database connections in serverless environments. The Prisma Client for Data Proxy includes support for connecting to the Prisma Data Proxy using HTTP. One of the changes in this release is improving the Prisma Client for the Data Proxy generation step. You can now generate Prisma Client for the Data Proxy it using the
--data-proxy
flag:
Copy code
npx prisma generate --data-proxy
We also updated how you can run Prisma Client using the Data Proxy in Cloudflare Workers and Edge environments. You can now use
@prisma/client/edge
instead of
@prisma/client
in your application.
Copy code
import { PrismaClient } from '@prisma/client/edge'
To learn more, check out our documentation. ๐Ÿ“Š Prisma Client Metrics is now in Preview Metrics is a new Preview feature that allows you to monitor how Prisma Client interacts with your database. Metrics expose a set of counters, gauges, and histograms that can be labeled and piped into an external monitoring system like Prometheus or StatsD. You can use metrics in your project to help diagnose how your applicationโ€™s number of idle and active connections changes with counters, gauges, and histograms. To get started using metrics in your project, enable the Preview feature flag in your Prisma schema:
Copy code
generator client {
  provider        = "prisma-client-js"
  previewFeatures = ["metrics"]
}
You can then get started using metrics in your project:
Copy code
import { PrismaClient } from '@prisma/client'
const prisma = new PrismaClient()

const metrics = await prisma.$metrics.json()
console.log(metrics)
To learn more, check out the metrics documentation. Give it a try and let us know what you think. ๐Ÿ”ง
migrate reset
now returns with a non-0 exit code if the seed script returns with a non-0 exit code
This will help user scripts know more about the success of the command but might break existing scripts. ๐Ÿ“š Learn more in the release notes For more info and links to documentation, you can read the release notes. ๐ŸŒŸ Help us spread the word about Prisma. ๐ŸŒŸ To help spread the word about Prisma, weโ€™d very much appreciate it if you would star the repo, And if youโ€™re excited about the features in this weekโ€™s release, then help us and share your excitement on Twitter. ๐Ÿ“ฐ Join us on Thursday for the โ€œWhatโ€™s new in Prismaโ€ livestream This week, @Tasin Ishmam and I will discuss the latest release and other news from the Prisma ecosystem in a

livestream on YouTubeโ–พ

this Thursday at 5 pm Berlin | 8 am San Francisco.
๐Ÿ‡ช๐Ÿ‡น 2
๐Ÿ˜„ 1
3๏ธโƒฃ 4
5๏ธโƒฃ 3
1๏ธโƒฃ 4
0๏ธโƒฃ 4
๐ŸŽค 16
๐Ÿ’ซ 15
๐Ÿณ๏ธโ€๐ŸŒˆ 23
prisma cool 41
๐Ÿ˜ป 17
๐Ÿ‡ฆ๐Ÿ‡ท 5
๐Ÿ† 5
catjam 8
๐ŸŒŸ 5
๐Ÿš€ 7
โญ 5
๐Ÿ”ฅ 5
๐Ÿ™๐Ÿพ 1
๐Ÿ’š 4
๐Ÿฆฆ 3
๐Ÿ™๐Ÿฟ 1
๐Ÿ’ช๐Ÿฟ 1
๐ŸŒถ๏ธ 41
๐ŸŽ‰ 25
๐Ÿ’ช๐Ÿป 1
๐Ÿ‡ฐ๐Ÿ‡ช 10
prisma rainbow 18
๐Ÿ’ช 18
๐Ÿ‡ฐ๐Ÿ‡ท 7
๐Ÿ™ 7
โœจ 6
๐Ÿ™Œ๐Ÿป 1
๐Ÿ™Œ 10
๐Ÿ™Œ๐Ÿพ 1
๐Ÿ™Œ๐Ÿผ 2
๐Ÿ•ถ๏ธ 3
๐Ÿ™Œ๐Ÿฟ 1
fast parrot 25
๐Ÿ’ช๐Ÿพ 1
๐Ÿ‡ง๐Ÿ‡ท 8
๐Ÿ’ฏ 10
๐Ÿ‘พ 4
prisma green 10
๐Ÿ’ช๐Ÿผ 3
๐Ÿ™๐Ÿผ 2
๐Ÿฆœ 4
๐Ÿ•บ๐Ÿพ 1
๐Ÿ‡ฏ๐Ÿ‡ต 2
๐Ÿ‡ฎ๐Ÿ‡ณ 3