使用方法: SemverCompare

SemverCompare 是一款免费在线开发者工具工具,可在浏览器中即时compare two semantic versions by precedence and tell you whether the change is breaking。粘贴数据、调整选项即可实时获得结果——无需安装、无需注册,任何数据都不会上传到服务器。

立即使用 SemverCompare →

说明

Compare two semantic versions by precedence and tell you whether the change is breaking.

  • 开发者工具
  • 由于全部计算都在客户端完成,使用 API 密钥、令牌或私有日志等敏感数据处理时,SemverCompare 同样安全。
输入 SemverCompare 输出 100% 在浏览器内运行——数据不会离开您的设备。
SemverCompare — 输入 → 输出

使用方法

使用 SemverCompare 只需三步:

  1. 将数据粘贴到输入框(或载入示例)。
  2. 根据目标格式或使用场景调整选项。
  3. 复制、下载或查看输出——输入时结果实时更新。
使用方法 · SemverCompare 1 将数据粘贴到输入框(或载入示例)。 2 根据目标格式或使用场景调整选项。 3 复制、下载或查看输出——输入时结果实时更新。
使用方法

运行

示例

Compare against 1.9.0 — numerically per component, not as a string, so 1.10.0 wins.

输入

1.10.0

输出

1.10.0 < 2.0.0

Comparison: A is OLDER than B
Difference: major -1, minor 10, patch 0
Breaking change between them: YES (major differs)

此输出由工具真实运行产生,并非人工编写。

使用场景

SemverCompare 常见的使用场景:

  • Compare two semantic versions by precedence and tell you whether the change is breaking.

参数说明

key选项typealloweddefaultSemverCompare
modeOperationselectparse (Parse and explain), compare (Compare two versions), bump (Bump a part), range (Test a range), sort (Sort a list)compare
bSecond version / rangetext2.0.0
partBump partselectmajor, minor, patch, premajor, preminor, prepatch, prerelease
prePrerelease tagtextbeta

输入: text · 输出: text · live: ✓

常见问题

什么是 Semver Compare?

Semver Compare 用于compare two semantic versions by precedence and tell you whether the change is breaking。它完全在浏览器内运行,数据保持私密。

Semver Compare 可以免费使用吗?

可以。Semver Compare 免费、无次数限制,无需注册或安装。

我的数据会被上传吗?

不会。所有处理都在本地浏览器完成,不会发送到任何服务器。

注意事项

  • 全部计算在浏览器端完成,因此超大输入受限于标签页内存,而非服务器上传限制。

相关工具

SemverCompare → · 开发者工具 →

立即使用 SemverCompare →