We should probably do a semver > check rather than == here - if we have a pre-release published, this current logic would actually downgrade the release. (Say latest is 1.0.0, but we publish 1.1.0-beta as a pre-release. If the user has the beta installed, then runs this, they will not be equal, so user will be downgraded to 1.0.0)
Originally posted by @MicaiahReid in #620 (comment)
We should probably do a semver > check rather than
==here - if we have a pre-release published, this current logic would actually downgrade the release. (Say latest is 1.0.0, but we publish 1.1.0-beta as a pre-release. If the user has the beta installed, then runs this, they will not be equal, so user will be downgraded to 1.0.0)Originally posted by @MicaiahReid in #620 (comment)