diff

external fun diff(v1: String, v2: String): ReleaseType?(source)
external fun diff(v1: String, v2: SemVer): ReleaseType?(source)
external fun diff(v1: SemVer, v2: String): ReleaseType?(source)
external fun diff(v1: SemVer, v2: SemVer): ReleaseType?(source)

Returns difference between two versions by the release type (major, premajor, minor, preminor, patch, prepatch, or prerelease), or null if the versions are the same.