In the current version of the Semver Comparator, strings are compared with each other. The methods do not receive any version or constraint objects as parameters. I think it's better if the comparator works on objects and not on string. This makes it easier to check whether the input strings are valid when parsing the string for objects.
In the current version of the Semver Comparator, strings are compared with each other. The methods do not receive any version or constraint objects as parameters. I think it's better if the comparator works on objects and not on string. This makes it easier to check whether the input strings are valid when parsing the string for objects.