TiddlyWiki / TiddlyWikiClassic

TiddlyWiki Classic (not to be confused with TiddlyWiki5: https://github.com/Jermolene/TiddlyWiki5)
https://classic.tiddlywiki.com/
492 stars 114 forks source link

Utilities formatVersion include nightly #291

Closed qbroker closed 9 months ago

qbroker commented 9 months ago

To avoid mistakes the nightly build version should be expressed in the version output. Consider if nightly version check is required in the update functions.

qbroker commented 9 months ago

Hi Yakov,

Please forget the 449d46e commit.

Okido

YakovL commented 9 months ago

Looks reasonable, thanks!

To me, it seems that upgrading shouldn't be affected by nightly versions at all, since one only can upgrade (and should only try so) if they know what they're doing (nightly builds are not supposed to be served on the main site, and using upgrade feature is only possible with some via some customization). Do you have some specific scenario in mind?

YakovL commented 9 months ago

Note for myself: may be refactor/fix to

{
    v = v || version;
    var label = v.nightly ? "nightly " + v.nightly :
        v.alpha ? "alpha " + v.alpha :
        v.beta ? "beta " + v.beta :
        "";
    return v.major + "." + v.minor + "." + v.revision +
        (label ? " (" + label + ")" : "");
}
YakovL commented 9 months ago

Note for myself: may be refactor/fix to

{
    v = v || version;
    var label = v.nightly ? "nightly " + v.nightly :
        v.alpha ? "alpha " + v.alpha :
        v.beta ? "beta " + v.beta :
        "";
    return v.major + "." + v.minor + "." + v.revision +
        (label ? " (" + label + ")" : "");
}
qbroker commented 9 months ago

Hello Yakov,

You are right that upgrading shouldn't be affected by nightly versions at all. I had no specific scenario in mind.

Thanks, Okido