PackageTrack

npm · #3659 most downloaded on npm

@prisma/client

7.10.0prisma/prisma

Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.

Release timeline

10653 releases since 2020
20202026

One column per quarter.

Releases

  1. 3.16.0-dev.78 Jun 2022pre-release

    Nothing published for this version

  2. 3.16.0-dev.68 Jun 2022pre-release

    Nothing published for this version

  3. 3.16.0-dev.58 Jun 2022pre-release

    Nothing published for this version

  4. 3.16.0-dev.48 Jun 2022pre-release

    Nothing published for this version

  5. 3.16.0-dev.38 Jun 2022pre-release

    Nothing published for this version

  6. 3.16.0-dev.28 Jun 2022pre-release

    Nothing published for this version

  7. 3.16.0-dev.17 Jun 2022pre-release

    Nothing published for this version

  8. 3.15.215 Jun 2022
    Release notes

    Today, we are issuing the 3.15.2 patch release.

    Fixes

    In order to use the Prisma Data Proxy via Prisma Client, you need to generate it with prisma generate --data-proxy as described in our documentation. We are introducing PRISMA_GENERATE_DATAPROXY="true" as an additional way to do the same thing, but via an environment variable.

    This is necessary, for example, to reliably deploy a Prisma Client for Data Proxy on Vercel Serverless Functions, where it can be hard to update the build command to run prisma generate --data-proxy. Starting with this version you can just set PRISMA_GENERATE_DATAPROXY="true" as an environment variable the Vercel project settings.

    If you are unfamiliar with the Data Proxy, read how to get started.

    Open source →
  9. 3.15.2-dev.215 Jun 2022pre-release

    Nothing published for this version

  10. 3.15.2-dev.115 Jun 2022pre-release

    Nothing published for this version

  11. 3.15.19 Jun 2022
    Release notesOpen source →
  12. 3.15.1-dev.18 Jun 2022pre-release

    Nothing published for this version

  13. 3.15.07 Jun 2022
    Release notes

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

    Major improvements

    Improvements to Prisma Client for Data Proxy

    In this release, we're shipping a couple of 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 provides support for connecting to the Prisma Data Proxy using HTTP.

    We introduced this feature in version 3.3.0 and constantly shipped features, fixes, and improvements.

    One of the changes in this release is improving the Prisma Client for the Data Proxy generation step.

    datasource db {
      provider = "postgresql"
      url      = env("DATABASE_URL")
    }
    
    generator client {
      provider        = "prisma-client-js"
    - previewFeatures = ["dataProxy"]
    }
    

    You can generate Prisma Client for the Data Proxy it by using the --data-proxy flag:

    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.

    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:

    generator client {
      provider        = "prisma-client-js"
      previewFeatures = ["metrics"]
    }
    

    You can then get started using metrics in your project:

    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.

    Regression

    Azure SQL on MacOS

    This release includes a known regression when connecting to Azure SQL from MacOS only and will be resolved soon. Follow this issue for updates and resolution.

    Fixes and improvements

    migrate reset 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.

    Prisma

    Prisma Client

    Credits

    Huge thanks to @shian15810, @zifeo, @ever0de, @rushabhhere for helping!

    Prisma Day

    Prisma Day is back this year, and it'll be on June 15 - 16 at the James June Sommergarten in Berlin. Join us in-person or online for talks and workshops on modern application development and databases. Come and meet and chat with the team behind the Prisma ORM and Prisma Data Platform.

    💼 We're hiring!

    If you're interested in joining our growing team to help empower developers to build data-intensive applications, Prisma is the place for you.

    We're looking for a Technical Support Engineer and Back-end Engineer: Prisma Data Platform.

    Feel free to read through the job descriptions and apply using the links provided.

    📺 Join us for another "What's new in Prisma" livestream

    Learn about the latest release and other news from the Prisma community by joining us for another "What's new in Prisma" livestream.

    The stream takes place on YouTube on Thursday, June 9 at 5 pm Berlin | 8 am San Francisco.

    Open source →
  14. 3.15.0-integration-tweak-ci.510 May 2022pre-release

    Nothing published for this version

  15. 3.15.0-integration-tweak-ci.410 May 2022pre-release

    Nothing published for this version

  16. 3.15.0-integration-tweak-ci.310 May 2022pre-release

    Nothing published for this version

  17. 3.15.0-integration-tweak-ci.210 May 2022pre-release

    Nothing published for this version

  18. 3.15.0-integration-tweak-ci.110 May 2022pre-release

    Nothing published for this version

  19. 3.15.0-integration-renovate.1012 May 2022pre-release

    Nothing published for this version

  20. 3.15.0-integration-renovate.912 May 2022pre-release

    Nothing published for this version

  21. 3.15.0-integration-renovate.812 May 2022pre-release

    Nothing published for this version

  22. 3.15.0-integration-renovate.712 May 2022pre-release

    Nothing published for this version

  23. 3.15.0-integration-renovate.612 May 2022pre-release

    Nothing published for this version

  24. 3.15.0-integration-renovate.412 May 2022pre-release

    Nothing published for this version

  25. 3.15.0-integration-renovate.311 May 2022pre-release

    Nothing published for this version

  26. 3.15.0-integration-renovate.211 May 2022pre-release

    Nothing published for this version

  27. 3.15.0-integration-renovate.111 May 2022pre-release

    Nothing published for this version

  28. 3.15.0-integration-open-github-issues-on-windows-and-wsl.427 May 2022pre-release

    Nothing published for this version

  29. 3.15.0-integration-open-github-issues-on-windows-and-wsl.326 May 2022pre-release

    Nothing published for this version

  30. 3.15.0-integration-open-github-issues-on-windows-and-wsl.224 May 2022pre-release

    Nothing published for this version

  31. 3.15.0-integration-open-github-issues-on-windows-and-wsl.113 May 2022pre-release

    Nothing published for this version

  32. 3.15.0-integration-metrics-client.33 Jun 2022pre-release

    Nothing published for this version

  33. 3.15.0-integration-metrics-client.22 Jun 2022pre-release

    Nothing published for this version

  34. 3.15.0-integration-metrics-client.11 Jun 2022pre-release

    Nothing published for this version

  35. 3.15.0-integration-handle-fmt-panics.1412 May 2022pre-release

    Nothing published for this version

  36. 3.15.0-integration-handle-fmt-panics.1312 May 2022pre-release

    Nothing published for this version

  37. 3.15.0-integration-handle-fmt-panics.1212 May 2022pre-release

    Nothing published for this version

  38. 3.15.0-integration-handle-fmt-panics.1112 May 2022pre-release

    Nothing published for this version

  39. 3.15.0-integration-handle-fmt-panics.1012 May 2022pre-release

    Nothing published for this version

  40. 3.15.0-integration-handle-fmt-panics.912 May 2022pre-release

    Nothing published for this version

  41. 3.15.0-integration-handle-fmt-panics.812 May 2022pre-release

    Nothing published for this version

  42. 3.15.0-integration-handle-fmt-panics.712 May 2022pre-release

    Nothing published for this version

  43. 3.15.0-integration-handle-fmt-panics.612 May 2022pre-release

    Nothing published for this version

  44. 3.15.0-integration-handle-fmt-panics.512 May 2022pre-release

    Nothing published for this version

  45. 3.15.0-integration-handle-fmt-panics.412 May 2022pre-release

    Nothing published for this version

  46. 3.15.0-integration-handle-fmt-panics.311 May 2022pre-release

    Nothing published for this version

  47. 3.15.0-integration-handle-fmt-panics.211 May 2022pre-release

    Nothing published for this version

  48. 3.15.0-integration-handle-fmt-panics.110 May 2022pre-release

    Nothing published for this version

  49. 3.15.0-integration-fix-inline-schema.513 May 2022pre-release

    Nothing published for this version

  50. 3.15.0-integration-fix-inline-schema.413 May 2022pre-release

    Nothing published for this version

  51. 3.15.0-integration-fix-inline-schema.313 May 2022pre-release

    Nothing published for this version

  52. 3.15.0-integration-fix-inline-schema.212 May 2022pre-release

    Nothing published for this version

  53. 3.15.0-integration-fix-inline-schema.112 May 2022pre-release

    Nothing published for this version

  54. 3.15.0-integration-chore-data-proxy-ga-6.36 Jun 2022pre-release

    Nothing published for this version

  55. 3.15.0-integration-chore-data-proxy-ga-6.26 Jun 2022pre-release

    Nothing published for this version

  56. 3.15.0-integration-chore-data-proxy-ga-6.16 Jun 2022pre-release

    Nothing published for this version

  57. 3.15.0-integration-chore-data-proxy-ga-5.297 Jun 2022pre-release

    Nothing published for this version

  58. 3.15.0-integration-chore-data-proxy-ga-5.286 Jun 2022pre-release

    Nothing published for this version

  59. 3.15.0-integration-chore-data-proxy-ga-5.276 Jun 2022pre-release

    Nothing published for this version

  60. 3.15.0-integration-chore-data-proxy-ga-5.266 Jun 2022pre-release

    Nothing published for this version