使用方法: SemverCompare
SemverCompare 是一款免費線上開發者工具工具,可在瀏覽器中即時compare two semantic versions by precedence and tell you whether the change is breaking。貼上資料、調整選項即可即時獲得結果——無需安裝、無需註冊,任何資料都不會上傳到伺服器。
說明
Compare two semantic versions by precedence and tell you whether the change is breaking.
- 開發者工具
- 由於全部運算都在客戶端完成,使用 API 金鑰、權杖或私有記錄等敏感資料時,SemverCompare 同樣安全。
使用方法
使用 SemverCompare 只需三步:
- 將資料貼上到輸入框(或載入範例)。
- 依目標格式或使用情境調整選項。
- 複製、下載或檢視輸出——輸入時結果即時更新。
執行
範例
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 | 選項 | type | allowed | default | SemverCompare |
|---|---|---|---|---|---|
mode | Operation | select | parse (Parse and explain), compare (Compare two versions), bump (Bump a part), range (Test a range), sort (Sort a list) | — | compare |
b | Second version / range | text | — | 2.0.0 | — |
part | Bump part | select | major, minor, patch, premajor, preminor, prepatch, prerelease | — | — |
pre | Prerelease tag | text | — | beta | — |
輸入: 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 免費、無次數限制,無需註冊或安裝。
我的資料會被上傳嗎?
不會。所有處理都在本機瀏覽器完成,不會傳送到任何伺服器。
注意事項
- 全部计算在浏览器端完成,因此超大输入受限于标签页内存,而非服务器上传限制。
相關工具
Cron 運算式剖析器Explain cron syntax and compute the next 10 run times.HTTP 狀態 Code 查詢表Search all HTTP status codes with meanings and usage notes.User-Agent 剖析器Break a User-Agent string into browser, engine and OS.ASCII 字元表格Interactive reference of all 128 ASCII codes.Unicode 字元查詢表Inspect code points, blocks and UTF encodings of any character..gitignore 產生器Assemble a .gitignore from curated stack templates.