{"library":"semiver","type":"library","category":null,"description":"SemiVer is a lightweight (187B) utility designed for accurate comparison of semantic version strings, including those with pre-release identifiers (e.g., `1.0.0-alpha.1` vs `1.0.0-beta`). It leverages the native JavaScript `Intl.Collator` API to perform language-sensitive string comparisons, ensuring correctness across various versioning formats. The library is currently stable at version 1.1.0 and is actively maintained with an as-needed release cadence for bug fixes and minor enhancements. Its primary differentiators are its minimal bundle size, its reliance on a native Web API rather than a heavy parsing library, and its direct compatibility with `Array.sort()` as a comparison function, making it an efficient choice for sorting version lists without external dependencies. Unlike other semver utilities that provide parsing and range matching, SemiVer focuses solely on providing a three-way comparison, outputting `0`, `1`, or `-1`.","language":"javascript","status":"active","version":"1.1.0","tags":["javascript","compare","semver","sort","typescript"],"install":[{"cmd":"npm install semiver","imports":["import semiver from 'semiver';","const semiver = require('semiver');","import type semiver from 'semiver';"]},{"cmd":"yarn add semiver","imports":[]},{"cmd":"pnpm add semiver","imports":[]}],"homepage":null,"github":"https://github.com/lukeed/semiver","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/semiver","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/semiver/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}