Prisma Util v2 Announcement
Prisma Util v2 Announcement - New and enhanced ways to use Prisma
First time with Prisma Util?
We recommend clicking on the welcome link below to read more about this tool and to familiarize yourself with the environment. By following through with everything on the welcome page, you'll become more comfortable working with this module and it will be easier for you to understand this article.
If you are new to Prisma Util, we recommend that you click the "Welcome to Prisma Util!" button.
Welcome to Prisma Util!Announcement
Prisma Util is coming back with a new and improved version: v2.0.0. This version comes packed with a lot of features, API changes and ways to use Prisma:
Project Toolchain - Project Toolchain is the name we gave to our internal code-generators. This separation has been made so you can use code generated by Prisma Util more safely, efficiently and easily.
Schema Creator Module -
@prisma-util/schema-creator
has been deprecated in favor of a built-in module with the same name that you can import without downloading anything new!Web-based Documentation - We've organized the documentation to make it easier for you to find what you need and provided some new articles to help you with your Prisma Util journey.
Selective Generator Running - Configure which generators should run at different steps based on environment variables.
Enhanced PrismaClient Objects - PrismaClient has also gotten some improvements with the introduction of
$unuse
that allows you to unregister middleware and thePrisma.EnumName
type that represents all enum names from your schema.Better Environment - Configure your environment using JavaScript. Make sure that you don't run any dangerous commands inside of production.
Attribute Functions for @default - You can generate your own JavaScript logic for the
@default
schema attribute to allow for full control over the generation.Middleware Context - Pass down context to middleware to allow selective running.
Refined Types for Fields - Use stricter types to enforce guidelines on your data.
Enhanced Introspection - Configure naming patterns for your models with ease.
To view the full list of changes, check out the changelog here.
Migrating to Prisma Util v2
Because this upgrade has introduced a lot of changes, we have created an easy migration guide for you to follow. To access it, click on the button below:
Migrate to Prisma Util v2.0Roadmap
With holidays just around the corner, we're taking a break from developing any new features. Whilst keeping this in mind, we have released the roadmap for our next minor version. To access it, click on the button below this paragraph:
Package RoadmapLast updated