- Index
- »
- fan.xeto
- »
- LibVersion
LibVersion
@Js
const mixin LibVersion
Xeto library name, version, and dependencies
Sort by name, then version
Dependencies of this library
Digest of the exact bytes of xetolib zip file
Summary information or empty string if not available
Publication maturity as claimed by the author in the lib meta
Library dotted name
Order a list of versions by their dependencies
Origin metadata if this lib was installed from a remote repo
Return "name-version"
Library version
Int compare(Obj that)
Sort by name, then version
abstract LibDepend[]? depends(Bool checked := true)
Dependencies of this library. This field may be not be available in remote repo searches in which case return raise exception or return null based on checked flag.
virtual Str? digest()
Digest of the exact bytes of xetolib zip file. The string is formatted as "sha256:" followed by base64uri encoding of the SHA-256 hash. A null digest means there is no stable zip artifact, such as a source lib whose zip is assembled on the fly with non-reproducible bytes.
abstract Str doc()
Summary information or empty string if not available
const static Int : flagHxSysOnly
virtual LibMaturity maturity()
Publication maturity as claimed by the author in the lib meta; an unclaimed version defaults to stable
abstract Str name()
Library dotted name
static LibVersion[] orderByDepends(LibVersion[] libs, Bool extern := false)
Order a list of versions by their dependencies. Raise exception if the given list does not satisify all the internal dependencies or has circular dependencies. If extern is true then dependencies on libs outside the list are allowed and ignored for ordering.
abstract LibOrigin? origin(Bool checked := true)
Origin metadata if this lib was installed from a remote repo
abstract Str toStr()
Return "name-version"
abstract Version version()
Library version