Releases: kevin-lee/just-semver
Releases · kevin-lee/just-semver
v1.1.0
v1.0.0
1.0.0 - 2024-08-26
New Feature
- Add
just-semver-decver
module (#221)
- [
just-semver-decver
] AddDecVerExt
which isDecVer
with 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
DecVer
withDecVerExt
, and renameDecVerExt
toDecVer
(#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
DecVer
now.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
v0.13.0
v0.12.0
v0.11.0
v0.10.0
v0.9.0
v0.6.0
v0.5.0
0.5.0 - 2022-06-11
Done
- Add decimal version
DecVer
(major.minor
) (#140)import just.decver.DecVer val decVer1 = DecVer.parse("1.17") // Either[DecVer.ParseError, DecVer] = Right(DecVer(1,17)) decVer1.map(_.render) // Either[DecVer.ParseError, String] = Right(1.17) val decVer2 = DecVer.unsafeParse("1.17") // DecVer = DecVer(1,17) decVer2.render // String = 1.17 val semVer = decVer2.toSemVer // just.semver.SemVer = SemVer(1,17,0,None,None) semVer.toDecVer // just.decver.DecVer = DecVer(1,17) DecVer.unsafeParse("1.16") < DecVer.unsafeParse("1.17") // Boolean = true DecVer.unsafeParse("1.16") == DecVer.unsafeParse("1.17") // Boolean = false DecVer.unsafeParse("1.16") > DecVer.unsafeParse("1.17") // Boolean = false val decVer = DecVer.unsafeParse("1.0") // DecVer = DecVer(1,0) decVer.increaseMinor // DecVer = DecVer(1,1) decVer.increaseMajor // DecVer = DecVer(2,0)
- Set up WartRemover for Scala 3 (#138)
v0.4.0
0.4.0 - 2022-04-11
Done
- Rename
SemVer.parseUnsafe
toSemVer.unsafeParse
to keep the consistency with otherunsafe
methods (#131) - Replace
Major
,Minor
andPatch
value classes withopaque type
in Scala 3 (#129) - Add
SemVerMatchers
,SemVer.matches()
andSemVer.unsafeMatches()
(#125) - Remove
can-equal
(#102) - Use Scala 3 syntax (#91)