Greasy Fork is available in English.

Discussões » Feedback do Greasy Fork

How the version number is compared?

§
Publicado: 05/01/2024

Hi Mods, I wonder how do we compare the version number? My script was version v1.05 and I want to upgrade it to v1.1, but the page warns me that I didn't increase the version number. So I guess it's not String comparison but some other comparing algorithm?

§
Publicado: 06/01/2024

How does "string comparison" for your users would figure out if a version is newer or older?

1.05 probably counts as 1.5

NotYouMod
§
Publicado: 06/01/2024

Hi Mods, I wonder how do we compare the version number? My script was version v1.05 and I want to upgrade it to v1.1, but the page warns me that I didn't increase the version number. So I guess it's not String comparison but some other comparing algorithm?

Your version numbers are incorrect. For example: v1.01 should be v1.1, v1.02 ⇾ v1.2 and so on.

Link to the file that is used to compare versions.

§
Publicado: 06/01/2024

Link to the file that is used to compare versions.

And that has a comment to https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/version/format which is what it's based off.

Publicar resposta

Faça o login para publicar uma resposta.