วิธีใช้: 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.
- เครื่องมือนักพัฒนา
- ด้วยการคำนวณฝั่งไคลเอ็นต์ทั้งหมด SemverCompare จึงปลอดภัยสำหรับข้อมูลที่ละเอียดอ่อน เช่น API key
วิธีใช้
ใช้ 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 ใช้ง่ายฟรีไหม?
ฟรี ไม่จำกัด ไม่ต้องสมัครหรือติดตั้ง
ข้อมูลของฉันถูกอัปโหลดไหม?
ไม่ ทุกอย่างประมวลผลในเครื่องของคุณ
ข้อควรรู้
- 全部计算在浏览器端完成,因此超大输入受限于标签页内存,而非服务器上传限制。