remotion-upgrade

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Upgrade Remotion

升级Remotion

  1. Inspect the project manifests and lockfile to identify the package manager and workspaces. Preserve unrelated changes.
  2. Determine whether
    @remotion/cli
    is locally available. If it is, run:
    bash
    npx remotion upgrade
    Skip the manual package upgrade below.
  3. If
    @remotion/cli
    is not available, upgrade manually:
    • Get the latest stable Remotion version with
      npm view remotion version
      .
    • Find every installed
      remotion
      and
      @remotion/*
      dependency across the project and upgrade them all to that exact version. Preserve their dependency sections and the project's workspace or catalog conventions.
    • Read the current Mediabunny compatibility page and determine the Mediabunny version compatible with the target Remotion version. Upgrade every installed
      mediabunny
      and
      @mediabunny/*
      package to the documented compatible version.
    • Run the project's package manager to update its lockfile.
  4. Update the installed Remotion skills:
    bash
    npx remotion skills update
  5. Review the manifest and lockfile diff. Ensure all Remotion packages use one version and all installed Mediabunny packages use the compatible version. If the CLI is available, run
    npx remotion versions
    as an additional check.
The Remotion releases contain the changelog and may be useful for summarizing relevant changes after the upgrade.
  1. 检查项目清单和锁定文件,以确定包管理器和工作区。保留无关更改。
  2. 判断
    @remotion/cli
    是否本地可用。如果可用,运行:
    bash
    npx remotion upgrade
    跳过下方的手动包升级步骤。
  3. 如果
    @remotion/cli
    不可用,则手动升级:
    • 使用
      npm view remotion version
      获取Remotion的最新稳定版本。
    • 在项目中找到所有已安装的
      remotion
      @remotion/*
      依赖项,将它们全部升级到该确切版本。保留它们的依赖项部分以及项目的工作区或目录约定。
    • 查看当前的Mediabunny兼容性页面,确定与目标Remotion版本兼容的Mediabunny版本。将所有已安装的
      mediabunny
      @mediabunny/*
      包升级到文档中指定的兼容版本。
    • 运行项目的包管理器以更新其锁定文件。
  4. 更新已安装的Remotion skills:
    bash
    npx remotion skills update
  5. 查看清单和锁定文件的差异。确保所有Remotion包使用同一版本,所有已安装的Mediabunny包使用兼容版本。如果CLI可用,可额外运行
    npx remotion versions
    进行检查。
Remotion发布记录包含变更日志,在升级后总结相关变更时可能会有用。