Should Javalin make an outgoing call to check for updates (ex. https://javalin.io/check-for-updates?current-version=$version`) when you start the server? There would of course be an option to disable this.
The output could just be "There is a new version available", alternatively how many versions behind you are, a summary-line for each release, etc.
I wouldn't want a library I used to make "unsolicited" network calls.
@gkopff That's understandable, I have a feeling you're not alone in thinking like this. An alternative could be to log the version number and release date (or time since the release date?), with a link to the news page. Maybe with the option to enable the update-check.
I don't recall exactly what JMH does, but I think it's something along the lines of reporting how many days old it is (so similar to what you say above) ... (I'll look it up when I get back to my desk).
If you really think this is useful (and I have my doubts), please make it opt-in instead of opt-out.
Less than 50% of 1.X users are using the latest version (1.7). IMO it would be nice if the library could inform users that a new version is available, so we avoid a similar situation for 2.X.
[main] INFO io.javalin.Javalin - You're running Javalin v2.0.0, which was released 7 days ago.
[main] INFO io.javalin.Javalin - Check https://javalin.io/news to see if there's a new version available.
You could show a info/warning when compiling the app, but I wouldn't want my users to see this in their log files.
Seems like this is something most people wouldn't appreciate, so I'll just close it as wontfix. Thanks for your input everyone.
Most helpful comment
I wouldn't want a library I used to make "unsolicited" network calls.