-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Stability
-
None
For server version comparisons (e.g. all 3.4-only features) we should use a library that can handle version numbers correctly, e.g. the "semver" package.
Otherwise, we might run into issues with release candidates or other unusual version strings.
Simple string comparison fails in these cases:
> '3.4.0' > '3.4.0-rc3' false
But semver can handle this correctly:
> semver.gt('3.4.0', '3.4.0-rc3') true
One place where this happens:
Need to find all other places where we use simple string comparisons for versions.