Skip to main content

升级 Remotion

做到这一点最简单的方法是在你项目的根目录运行以下命令:

🌐 The easiest way to do this is to run the following command in the root of your project:

npx remotion upgrade
note

你需要安装 @remotion/cli 软件包才能进行此操作。

手动升级 Remotion

🌐 Manually upgrading Remotion

编辑你 package.json 中所有 @remotion/* 包和 remotion 的版本号。当前版本是 4.0.431

在你的 package.json 中删除版本号前的 ^,以强制使用你指定的确切版本。

运行你的包管理器的安装命令:

npm i

重大变更

🌐 Breaking changes

Remotion 遵循语义化版本控制。
这意味着如果版本的第一个数字相同,你可以升级,而且你的代码是向后兼容的。

🌐 Remotion follows semantic versioning.
This means if the first number of the version is the same, you can upgrade and your code is backwards-compatible.

示例:如果你使用的是 4.0.0,你可以在不更改代码的情况下升级到 4.1.100。 但是,要升级到 5.0,你需要遵循 迁移指南

🌐 Example: If you are on 4.0.0, you can upgrade to 4.1.100 without changing your code.
However, to upgrade to 5.0, you will need to follow the migration guide.

打破兼容性规则的例外是被标记为实验性的API。

🌐 Exceptions to the breaking change rule are APIs that are marked as experimental.

更新日志

🌐 Changelog

访问 remotion.dev/changelog 查看所有更改的列表。

🌐 Visit remotion.dev/changelog to see a list of all changes.

稳定版本

🌐 Stable versions

我们维护了一个包含 Remotion 最新稳定版本的仓库,供需要更高稳定性的客户使用。
客户可以通过 remotion.pro 门户访问该仓库。

🌐 We maintain a repo with the latest stable version of Remotion for customers who need a higher level of stability.
Customers may get access to the repo on the remotion.pro portal.