question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

making release bigger that pre-releases

See original GitHub issue

i have this comparing in my app, “1.0.3” and “1.0.3-rc1”

i want users to have the possible latest version, so i’m using .isAtLeast() to compare, which i think returning a wrong answer. here is my code:

Boolean isLatest = new Version("1.0.3-rc1").isAtLeast("1.0.3");

since “1.0.3-rc1” is a pre-release, so it shouldn’t be the latest release when comparing with “1.0.3”.

i might be mistaking, but this is the logic i could understand. Fix my thoughts if i’m wrong.

i have found this docs explaining release hierarchy. link: https://semver.org/#spec-item-11

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
G00fY2commented, Jan 16, 2019

Fixed with 1.3.0 (12155ac).

0reactions
chlegoucommented, Jan 16, 2019

thanks! i really appreciate it! now the code is working as Sharp!

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Magic Prerelease Primer: Everything You Need to Know
Release the Gremlins | Illustration by Izzy ... So, have fun with it! Build something crazy and make sure you explore everything the...
Read more >
Your Prerelease Just Got Bigger | WPN - Wizards Play Network
We're making The Brothers' War Prerelease a historic event—WPN stores globally can sell the entire suite of available products for the new ...
Read more >
First time attending Pre-Release : r/magicTCG - Reddit
Most Pre-Releases will last for around 5-7 hours, but larger ones may go on for longer. The last few pre-releases I have attended...
Read more >
The New Player's Guide To Building a Sealed Constructed ...
MTG - Introduction to Sealed Deck Construction 101 - For Magic: The Gathering Prerelease and Launch. Tolarian Community College•388K views.
Read more >
Pre-Release Hype and How To Create It - Audio Issues
The more preparation that's done BEFORE the release means that you will drastically increase your chances of reaching a larger audience and getting...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found