升级版本
要升级到最新版本的 Prisma ORM:
¥To upgrade to the latest version of Prisma ORM:
-
查看 GitHub 上的 发行说明 以了解重大更改和新功能。
¥Review release notes on GitHub for breaking changes and new features.
-
将以下两个包升级到相同版本:
¥Upgrade both of the following packages to the same version:
-
如果适用,请升级你的代码库。重大更改可能需要你更改 Prisma 架构或使用 Prisma 客户端的方式。
¥Upgrade your codebase where applicable. Breaking changes may require you to change your Prisma schema or the way you use Prisma Client.
常见的升级路径
¥Common upgrade paths
Prisma ORM 2 及更高版本
¥Prisma ORM 2 and onwards
Prisma 1
测试新功能,无需升级
¥Testing new features, without upgrading
dev
分布标签
¥dev
distribution tag
dev
npm 分发标签 指向该包的最新开发版本,该版本针对 prisma/prisma
主分支的每次提交而发布。你可以在正式发布之前使用 dev
发行版标签来验证修复或测试功能。
¥The dev
npm distribution tag points to the most recent development version of the package, which is published for each commit to the main branch of prisma/prisma
. You can use the dev
distribution tag to verify a fix or test a feature before it is officially released.
要安装最新的 dev
发行版标签:
¥To install the latest dev
distribution tag:
npm install @prisma/client@dev prisma@dev
不要在生产中使用 dev
发行版标签 - 等到包含你感兴趣的功能和修复的正式版本发布。例如,当前 @prisma/client@2.23.0-dev.25
的修复最终将作为 @prisma/client@2.23.0
的一部分发布。
¥Do not use the dev
distribution tag in production - wait until the official release that contains the features and fixes you are interested in is released. For example, fixes present @prisma/client@2.23.0-dev.25
will eventually be released as part of @prisma/client@2.23.0
.