AtlatestRenderedmarkdown
sigil-version / treeREADME.md
Readme
sigil-version
Semantic versioning for Sigil — parse, compare, and constraint-match version strings per semver 2.0.0.
Usage
(import (sigil version))
(define v (parse-version "1.2.3-alpha.1"))
(version-major v) ; => 1
(version<? v (parse-version "1.2.4")) ; => #t
;; Constraint matching
(version-satisfies? v ">= 1.0.0") ; => #t
(version-satisfies? v "^1.2.0") ; => #t (caret: same major, >= given)
(version-satisfies? v "~1.2.0") ; => #t (tilde: same major.minor, >= given)Supports the standard constraint operators (=, >, >=, <, <=, ^, ~, *) plus the full semver field set (major / minor / patch / prerelease / build). See `src/sigil/version.sgl` for the full export list and inline reference.
Building
sigil deps install
sigil build
sigil testFor local development against an in-tree sigil-lang checkout:
sigil build --redirects ./dev-redirects.sglLicense
BSD-3-Clause. See LICENSE (license header lives in package.sgl).