Semver तुलनाकर्ता और चेकर
हमारे बारे में
Semantic Versioning (semver.org) version numbers को एक contract देता है: breaking changes के लिए MAJOR, backward-compatible features के लिए MINOR, backward-compatible fixes के लिए PATCH — साथ में pre-release suffixes (1.0.0-alpha < 1.0.0-alpha.1 < 1.0.0-beta < 1.0.0) and +build metadata that never affects precedence. The comparator implements the spec's precedence algorithm exactly, including the fiddly pre-release rules (numeric identifiers compare numerically and rank below alphanumeric ones; a version with a pre-release is older than the same version without). It is the check CI pipelines and package managers run millions of times a day.
अक्सर पूछे जाने वाले सवाल
क्या 1.0.0-alpha, 1.0.0 से नया है?
नहीं — pre-release अपने release से पुराना होता है: 1.0.0-alpha < 1.0.0। यह वह नियम है जो package managers को betas सुरक्षित रूप से देने देता है।
क्या +build metadata मायने रखता है?
Precedence के लिए नहीं: 1.0.0+exp और 1.0.0 ordering में बराबर हैं, हालाँकि metadata जानकारी के लिए सुरक्षित रहती है।