Vai al contenuto
verdict:

Prisma 6.18.0

notable

note: la sintesi e le note di rilascio sono in inglese

note: nessuna sintesi per questa release più vecchia

Sintetizziamo le release recenti. Le note di rilascio originali di questa versione sono qui sotto.

release-notesgithub.com/prisma/orm · 59 righe
  1. Today, we are excited to share the `6.18.0` stable release 🎉
  2. **🌟 Star this repo for notifications about new releases, bug fixes & features — or [follow us on X](https://pris.ly/x)!**
  3. # Prisma ORM
  4. Prisma ORM is the most popular ORM in the TypeScript ecosystem. Today’s release brings a bunch of new bug fixes and overall improvements:
  5. - `prisma init` now creates a `prisma.config.ts` automatically
  6. When creating a new project with 6.18.0, `prisma init` will now create a `prisma.config.ts` file automatically. This prepares new applications for the future of Prisma 7. Some fields that have been historically set in the `schema.prisma` file are now able to be set in the `prisma.config.ts`, and we encourage people to migrate over to the new structure before the release of version 7, where this file will become a requirement.
  7. - Support for defining your `datasource` in `prisma.config.ts`
  8. If you’re adopting the new `prisma.config.ts` setup in your projects, version 6.18.0 brings the ability to set your datasource directly in your config file. Once this is in your config file, any datasource set in your `schema.prisma` will be ignored. To set the datasource, we also must include the new `engine` key which we can set to `"classic"` , which will be required for Prisma v7
  9. ```tsx
  10. import { defineConfig, env } from "prisma/config";
  11. export default defineConfig({
  12. // The Rust-compiled schema engine
  13. engine: "classic",
  14. datasource: {
  15. url: env('DATABASE_URL'),
  16. }
  17. });
  18. ```
  19. - https://github.com/prisma/prisma/pull/28291 Support multiple Prisma instances with different providers
  20. - https://github.com/prisma/prisma/pull/28305 Add `env` helper function
  21. - https://github.com/prisma/prisma/pull/28266 Add support for `js` or `classic` as engine types in `prisma.config`
  22. - https://github.com/prisma/prisma/pull/28139 Map `Bytes` to `Uint8Array` depending on Typescript version
  23. ### Preparing for Prisma v7
  24. While it has been mentioned a few times already, many of the changes in this release are here to prepare folks for the upcoming release of Prisma v7. It’s worth repeating that these changes and the migration to `prisma.config.ts` will be required for Prisma v7, so we’re releasing this as opt-in features for developers. But come Prisma v7, they will be the new way of configuring your project.
  25. # [Prisma Postgres](https://www.prisma.io/postgres)
  26. [Prisma Postgres](https://www.prisma.io/postgres) is our fully managed Postgres service designed with the same philosophy of great DX that has guided Prisma for close to a decade. With this release we are introducing the following improvements:
  27. ### Database Metric in Console
  28. Inside of your database console, you can now view metrics on your database usage and interactions. You can get insights into the follow:
  29. - Total egress
  30. - Average response size
  31. - Average query duration
  32. In addition, you can also get insights into how to improve your query caching and gain better performance.
  33. ## Open roles at Prisma
  34. Interested in joining Prisma? We’re growing and have several exciting opportunities across the company for developers who are passionate about building with Prisma. Explore our open positions on our [Careers page](https://www.prisma.io/careers#current) and find the role that’s right for you.
  35. ## Enterprise support
  36. Thousands of teams use Prisma and many of them already tap into our Enterprise & Agency Support Program for hands-on help with everything from schema integrations and performance tuning to security and compliance.
  37. With this program you also get priority issue triage and bug fixes, expert scalability advice, and custom training so that your Prisma-powered apps stay rock-solid at any scale. Learn more or join: https://prisma.io/enterprise.

vedi su githubimported 2026-09-28 via npm