v1.0.0
1.0.0 - 2024-08-26
New Feature
- Add
just-semver-decvermodule (#221)
- [
just-semver-decver] AddDecVerExtwhich isDecVerwith pre-release and build metadata (#223)
-
Add
DecVerExtMatcher, the matcher forDecVerExt(#225)DecVerExtMatchers.unsafeParse("1.0 - 2.0").matches(DecVerExt.unsafeParse("1.0")) // true DecVerExtMatchers.unsafeParse("1.0 - 2.0").matches(DecVerExt.unsafeParse("0.9")) // false DecVerExtMatchers.unsafeParse("1.0 - 2.0").matches(DecVerExt.unsafeParse("2.0")) // true DecVerExtMatchers.unsafeParse("1.0 - 2.0").matches(DecVerExt.unsafeParse("2.1")) // false // and more...
- Replace
DecVerwithDecVerExt, and renameDecVerExttoDecVer(#230)
-
Unable to parse version "25.1-jre-graal-sub-1" (#216)
SemVer.parse("25.1-jre-graal-sub-1")
Results in
InvalidVersionStringError(25.1-jre-graal-sub-1)This can be handled by
DecVernow.import just.decver.* DecVer.parse("25.1-jre-graal-sub-1") // Either[DecVer.ParseError, DecVer] = Right(DecVer(Major(25),Minor(1),Some(PreRelease(List(Dsv(List(Alphabet(jre), Hyphen, Alphabet(graal), Hyphen, Alphabet(sub), Hyphen, Num(1)))))),None)) val version = DecVer.unsafeParse("25.1-jre-graal-sub-1") // DecVer = DecVer(Major(25),Minor(1),Some(PreRelease(List(Dsv(List(Alphabet(jre), Hyphen, Alphabet(graal), Hyphen, Alphabet(sub), Hyphen, Num(1)))))),None) version.render // String = 25.1-jre-graal-sub-1