| Currently the SemVer data type allows the user to convert from SemVer to a String. There are several situations where converting SemVer to a Hash would also be greatly beneficial, especially in specific cases where the user needs to extract the a specific component of SemVer.
$myver = SemVer('1.2.3-rc.1+abc456') |
|
notice(Hash($myver)) |
=> {major => 1, minor => 2, patch => 3, prerelease => rc.1, build => abc456}
|
|