Update prisma monorepo from 6.12.0 to 6.13.0#506
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
6.12.0->6.13.06.12.0->6.13.0Release Notes
prisma/prisma (@prisma/client)
v6.13.0Compare Source
Today, we are excited to share the
6.13.0stable release 🎉🌟 Star this repo for notifications about new releases, bug fixes & features — or follow us on X!
Highlights
In this ORM release, we’re moving the Prisma Config file and the multi-schema feature into General Availability. This means these features now are fully production-ready and we’re looking forward to seeing what you are going to build with them!
Additionally, support for SQL views is getting an important update to further stabilize its API.
Configuring Prisma via Prisma Config is now Generally Available
The
prisma.config.tsfile is Prisma ORM’s native way to provide configuration options for your project. It currently lets you specify:seedcommand to populate your database based on some executable scriptHere’s an example Prisma Config file that specified custom locations for various project assets in and a seed script inside a
dbdirectory:Note that you’ll also see warning now if you defined a
prisma.seedcommand inpackage.json.We’re excited to move the
prisma.config.tsfile into General Availability. If you used it before in your projects, you can now dropearlyAccessfrom its options:import { defineConfig } from "prisma/config"; export default defineConfig({ - earlyAccess: true, });There still are and will be fields on the Prisma Config object that are Early Access or Preview features. To opt-into these, you’ll need to explicitly declare them via a new
experimentalfield.For example, usage of
adaptersis currently still in Preview:Finally, the Prisma Config file now also supports various file extensions so it fits neatly into your individual project setups:
.js,.ts,.mjs,.cjs,.mts,.cts. It also can be defined as.config/prisma.${extension}, whereextensionis the same one as file extensions above.📚 Learn more in the docs.
Using multiple schemas in now Generally Available
Databases like PostgreSQL or SQL Server provide a way to logically organize your tables in dedicated namespaces called schemas. In Prisma ORM, you can assign tables to various schemas via the
@@​schemaattribute:This feature has moved into General Availability, so if you were using it before, you can now drop the
multiSchemafeature flag from thegeneratorblock in your Prisma schema:generator client { // ... - previewFeatures = ["multiSchema"] }📚 Learn more in the docs.
More robust support for SQL views (Preview)
SQL views are virtual tables created by a query. Unlike regular tables, views do not store data themselves; instead, they represent the result of a stored SQL query that runs whenever the view is accessed.
We continue to improve support for SQL views, making them more reliable and better aligned with Prisma’s features. In this release, we ensured that
@id,@indexand@uniquecan’t be used on aviewblock in the Prisma schema. Without these attributes, several other features in Prisma Client or the Prisma schema don’t make sense any more either, so we made sure that they can’t be used with views:findUniquequeries and cursor-based pagination in Prisma ClientThis will align the API surface of Prisma ORM with the actual capabilities of SQL views and adds guardrails so you can use views with more confidence!
📚 Learn more in the docs.
Externally managed tables
In some situations, you may not want Prisma ORM to be “responsible” for specific tables in your database because they’re being managed by a different team in your organization or an external service.
In these cases, you still may want to quert these tables using Prisma Client but never want Prisma Migrate to make any changes to them.
In this release, we’re introducing externally managed tables that will be:
You can specify which tables should be ignored by Prisma Migrate using the
tablesoption inprisma.config.ts:A typical use case for this is the
userstable from Supabase which you never want be changed by Prisma Migrate but still may want to query with Prisma Client.📚 Learn more in the docs.
Other news
pgvectorextension support for Prisma Postgres (Early Access)In this release, we’ve implemented a highly popular feature request for Prisma Postgres: Support for the
pgvectorPostgreSQL extension in Early Access!It enables efficient storage and querying of high-dimensional vector embeddings directly in a Postgres database and thus is perfect for building AI-driven applications.
pgvectoressentially allows developers to perform similarity search (e.g., for recommendation systems or semantic search) using standard SQL, eliminating the need for a separate vector database.Native support for
pgvectorin Prisma ORM is going to follow soon, until then you can usepgvectorvia custom migrations and TypedSQL.📚 Learn more in the docs.
Manage Prisma Postgres programmatically via an API
Whether you need a way to quickly provision a Prisma Postgres instance in your CI/CD workflows, want to attach a fresh database to a preview branch of your app or even want to offer Prisma Postgres to your own users—our new Management API has you covered!
It’s shaped as a familiar REST API so you can programmatically take care of your database workflows: Provision or delete Prisma Postgres instances, retrieve or create connection strings and manage entire projects in Prisma Console.
📚 Learn more in the docs.
CI/CD GitHub Actions for Prisma Postgres available on GitHub Marketplace
Based on the Management API, we’ve also published two templates for GitHub Actions that you can use in your own CI/CD setups:
These Actions serve as the foundational building blocks for integrating Prisma Postgres into CI/CD pipelines.
They enable workflows like provisioning databases on every pull request, running integration tests against real instances, and managing database lifecycles end-to-end. We’ve included several examples in the README to help users get started quickly. The setup is straightforward, and these Actions are designed to plug into user's workflows with minimal effort.
Instant Postgres with
npx create-db— no auth requiredWe launched a new CLI command that allows you to spin up a new database within seconds:
npx create-db # no auth requiredThe command doesn’t require authentication, so you can play around with your database without any initial hurdles!
Your instance will be automatically deleted after 24 hours but you can claim it and put it into your Prisma Console account if you want to keep using it after that period. Visit the docs to learn more.
New navigation UI for Prisma Console
The Prisma Console got a little makeover, including a new design for navigating and managing your projects and their databases. This makes common workflows like creating new projects, navigating between projects and databases, as well as accessing project settings a lot more smooth.
We’re eager to hear your feedback, let us know on X what you think of the new UI.
Enterprise support
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. 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.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.